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

:root {
  --primary-color: #00C75A;
  --bg-dark: #141414;
  --bg-darker: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --card-bg: #1f1f1f;
  --hover-bg: #2a2a2a;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.ui-style-8 {
  --primary-color: #00C75A;
}

.site-header {
  background-color: var(--bg-darker);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

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

.site-logo a {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-container {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  overflow: visible;
}

.nav-container a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-container a:hover,
.nav-container a.active {
  color: var(--text-primary);
  background-color: var(--hover-bg);
}

.main-content {
  flex: 1;
  padding-bottom: 60px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-section {
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  padding: 60px 0 40px;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.intro-section {
  padding: 40px 0;
  background-color: var(--card-bg);
  margin: 20px 0;
  border-radius: var(--border-radius);
}

.intro-section .container {
  max-width: 1000px;
}

.intro-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.intro-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.video-section {
  padding: 40px 0;
}

.section-title {
  font-size: 26px;
  margin-bottom: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

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

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

.video-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 199, 90, 0.2);
}

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

.video-cover {
  position: relative;
  padding-top: 140%;
  background-color: var(--hover-bg);
  overflow: hidden;
}

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

.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.video-card:hover .cover-overlay {
  opacity: 1;
}

.play-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #000;
  font-weight: bold;
}

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.video-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.video-one-line {
  font-size: 14px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}

.page-header {
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  padding: 40px 0;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.page-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 900px;
  line-height: 1.8;
}

.filter-bar {
  background-color: var(--card-bg);
  padding: 16px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
}

.filter-bar p {
  color: var(--text-secondary);
}

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

.top-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  transition: var(--transition);
}

.top-item:hover {
  background-color: var(--hover-bg);
}

.top-rank {
  font-size: 32px;
  font-weight: 900;
  min-width: 50px;
  text-align: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.top-rank--top {
  color: var(--primary-color);
}

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

.top-cover img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.top-info {
  flex: 1;
  min-width: 0;
}

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

.top-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.top-title a:hover {
  color: var(--primary-color);
}

.top-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.top-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.layout__side--filters {
  position: sticky;
  top: 90px;
  height: fit-content;
}

.filter-box {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius);
}

.filter-box h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.filter-box p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.grouped-content .group {
  margin-bottom: 40px;
}

.group__title {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 16px;
}

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

.video-player-section {
  background-color: var(--bg-darker);
  padding: 40px 0;
}

.video-player {
  max-width: 1200px;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 199, 90, 0.4);
}

.player-play-icon {
  font-size: 32px;
  color: #000;
  margin-left: 4px;
}

.detail-page {
  padding-top: 0;
}

.detail-content {
  max-width: 1000px;
  margin: 40px auto;
}

.detail-title {
  font-size: 36px;
  margin-bottom: 32px;
  line-height: 1.3;
}

.detail-module {
  background-color: var(--card-bg);
  padding: 32px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
}

.detail-module h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-bottom: 2px solid rgba(0, 199, 90, 0.2);
  padding-bottom: 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.info-item {
  display: flex;
  gap: 8px;
  font-size: 15px;
}

.info-label {
  color: var(--text-secondary);
  font-weight: 600;
  flex-shrink: 0;
}

.info-value {
  color: var(--text-primary);
}

.highlight-text {
  font-size: 18px;
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.8;
}

.summary-text p,
.review-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.summary-text p:last-child,
.review-text p:last-child {
  margin-bottom: 0;
}

.module-audience p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--hover-bg);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-primary);
  transition: var(--transition);
}

.tag:hover {
  background-color: var(--primary-color);
  color: #000;
}

.genre-note {
  font-size: 14px;
  color: var(--text-secondary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.video-card--related .video-cover {
  padding-top: 130%;
}

.site-footer {
  background-color: var(--bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-container p {
  color: var(--text-secondary);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  transition: var(--transition);
  z-index: 99;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 199, 90, 0.4);
}

@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .layout__side--filters {
    position: static;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: auto;
    padding: 12px 16px;
  }

  .site-logo a {
    font-size: 22px;
  }

  .nav-container {
    gap: 4px;
    font-size: 13px;
  }

  .nav-container a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .hero-title {
    font-size: 24px;
  }

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

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

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

  .video-info {
    padding: 12px;
  }

  .video-title {
    font-size: 14px;
  }

  .video-meta,
  .video-one-line {
    font-size: 12px;
  }

  .section-title {
    font-size: 20px;
  }

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

  .top-item {
    flex-direction: column;
    padding: 16px;
  }

  .top-rank {
    font-size: 24px;
    min-width: auto;
  }

  .top-cover {
    width: 100%;
  }

  .top-cover img {
    width: 100%;
    height: auto;
  }

  .detail-title {
    font-size: 26px;
  }

  .detail-module {
    padding: 20px;
  }

  .detail-module h2 {
    font-size: 18px;
  }

  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-container a {
    padding: 6px 8px;
    font-size: 12px;
  }
}
