* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

body.ui-style-6 {
  background: #1a1a2e;
  color: #eee;
}

body.ui-style-6 a {
  color: #4a9eff;
}

body.ui-style-6 .site-nav {
  background: #16213e;
  border-bottom: 2px solid #0f3460;
}

body.ui-style-6 .video-card {
  background: #0f3460;
  border: 1px solid #16213e;
}

body.ui-style-6 .video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(74, 158, 255, 0.3);
}

body.ui-style-6 .site-footer {
  background: #16213e;
  border-top: 2px solid #0f3460;
}

body.ui-style-6 .filter-btn, body.ui-style-6 .filter-tag {
  background: #16213e;
  color: #eee;
  border-color: #0f3460;
}

body.ui-style-6 .filter-btn.active, body.ui-style-6 .filter-tag.active {
  background: #4a9eff;
  color: #fff;
}

body.ui-style-6 .top-item {
  background: #0f3460;
  border-left: 4px solid #4a9eff;
}

body.ui-style-6 .side-widget {
  background: #0f3460;
  border: 1px solid #16213e;
}

.site-nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
}

.site-logo {
  font-size: 24px;
  font-weight: bold;
  color: #4a9eff;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-menu li a {
  text-decoration: none;
  color: #333;
  padding: 8px 16px;
  display: block;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 14px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: #4a9eff;
  color: #fff;
}

.layout-s2 {
  max-width: 1400px;
  margin: 20px auto;
  display: flex;
  gap: 20px;
  padding: 0 20px;
}

.layout__side {
  width: 280px;
  flex-shrink: 0;
}

.layout__main {
  flex: 1;
  min-width: 0;
}

.side-widget {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.side-widget h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #4a9eff;
}

.side-widget p {
  font-size: 14px;
  line-height: 1.8;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #e8f4ff;
  color: #4a9eff;
  border-radius: 16px;
  font-size: 13px;
  border: 1px solid #cce5ff;
}

.home-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 40px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}

.home-hero h1 {
  font-size: 28px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.95;
}

.home-intro {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  line-height: 1.8;
}

.video-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #4a9eff;
}

.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.filter-btn:hover {
  border-color: #4a9eff;
  color: #4a9eff;
}

.filter-btn.active {
  background: #4a9eff;
  color: #fff;
  border-color: #4a9eff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.video-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #f0f0f0;
}

.video-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.video-one-line {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 12px;
  color: #999;
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 4px;
}

.page-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 8px;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #4a9eff;
}

.page-header p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.page--grid,
.page--with-sidebar,
.page--top,
.page--grouped {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.page--with-sidebar {
  display: flex;
  gap: 20px;
}

.layout__side--filters {
  width: 250px;
  flex-shrink: 0;
}

.layout__side--filters h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #4a9eff;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #666;
}

.filter-tag {
  display: inline-block;
  padding: 6px 14px;
  margin: 4px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 13px;
}

.filter-tag:hover {
  border-color: #4a9eff;
  color: #4a9eff;
}

.filter-tag.active {
  background: #4a9eff;
  color: #fff;
  border-color: #4a9eff;
}

.list-main {
  flex: 1;
}

.top-list__items {
  list-style: none;
}

.top-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid #4a9eff;
  align-items: center;
}

.top-rank {
  font-size: 32px;
  font-weight: bold;
  color: #4a9eff;
  min-width: 50px;
  text-align: center;
}

.top-cover {
  width: 120px;
  flex-shrink: 0;
}

.top-cover img {
  width: 100%;
  border-radius: 4px;
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.top-title a {
  text-decoration: none;
  color: inherit;
}

.top-title a:hover {
  color: #4a9eff;
}

.top-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.6;
}

.top-meta {
  display: flex;
  gap: 10px;
}

.top-meta span {
  font-size: 12px;
  color: #999;
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 4px;
}

.group {
  margin-bottom: 40px;
}

.group__title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #4a9eff;
  border-left: 4px solid #4a9eff;
  padding-left: 15px;
}

.group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.video-player-section {
  margin-bottom: 30px;
}

.video-player {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(74, 158, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.player-play-btn:hover {
  background: rgba(74, 158, 255, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  font-size: 32px;
  color: #fff;
}

.detail-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px 20px;
  background: #fff;
  border-radius: 8px;
}

.detail-header h1 {
  font-size: 32px;
  color: #333;
}

.detail-info,
.detail-module,
.related-section {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-info h2,
.detail-module h2,
.related-section h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #4a9eff;
  border-left: 4px solid #4a9eff;
  padding-left: 15px;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  line-height: 1.8;
}

.info-list dt {
  font-weight: 600;
  color: #666;
}

.info-list dd {
  color: #333;
}

.detail-module p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

.site-footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: #4a9eff;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #3182ce;
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .layout-s2 {
    flex-direction: column;
  }

  .layout__side {
    width: 100%;
  }

  .nav-menu {
    gap: 4px;
  }

  .nav-menu li a {
    padding: 6px 10px;
    font-size: 12px;
  }

  .home-hero {
    padding: 40px 20px;
  }

  .home-hero h1 {
    font-size: 22px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }

  .page--with-sidebar {
    flex-direction: column;
  }

  .layout__side--filters {
    width: 100%;
  }

  .top-item {
    flex-direction: column;
    text-align: center;
  }

  .top-cover {
    width: 100%;
    max-width: 200px;
  }

  .video-card {
    height: auto;
  }

  .video-cover {
    padding-top: 45%;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .detail-header h1 {
    font-size: 24px;
  }

  .page-header h1 {
    font-size: 24px;
  }
}
