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

:root {
  --primary-color: #fff;
  --bg-color: #000;
  --text-color: #fff;
  --accent-color: #e50914;
  --card-bg: #181818;
  --hover-bg: #2a2a2a;
}

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

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

.site-header {
  background: rgba(0, 0, 0, 0.95);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.main-nav {
  display: flex;
  gap: 30px;
  white-space: nowrap;
}

.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

.main-nav a:hover {
  color: var(--accent-color);
}

.hero-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
}

.hero-section h1 {
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.3;
}

.hero-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.video-card--hero {
  transform: scale(1);
  transition: transform 0.3s;
}

.video-card--hero:hover {
  transform: scale(1.05);
}

.intro-section {
  padding: 60px 0;
  background: #0a0a0a;
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-content h2 {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 400;
}

.intro-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #b3b3b3;
}

.featured-section,
.top-preview-section,
.latest-section {
  padding: 60px 0;
}

.featured-section h2,
.top-preview-section h2,
.latest-section h2 {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

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

.video-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

.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;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-one-line {
  font-size: 13px;
  color: #b3b3b3;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-player-section {
  padding: 40px 0;
  background: #000;
}

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.9);
  border: 3px solid #fff;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(229, 9, 20, 1);
}

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

.detail-main {
  padding: 40px 0;
}

.detail-header h1 {
  font-size: 36px;
  margin: 30px 0;
  font-weight: 500;
}

.detail-info,
.detail-module,
.related-section {
  margin: 40px 0;
}

.detail-info h2,
.detail-module h2,
.related-section h2 {
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 500;
  border-left: 4px solid var(--accent-color);
  padding-left: 12px;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  font-size: 15px;
  line-height: 1.6;
}

.info-list dt {
  color: #999;
  font-weight: 500;
}

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

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

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(229, 9, 20, 0.2);
  color: var(--accent-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(229, 9, 20, 0.4);
}

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

.video-card--related {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.video-card--related:hover {
  transform: translateY(-4px);
}

.page-header {
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 500;
}

.page-header p {
  font-size: 15px;
  color: #b3b3b3;
  line-height: 1.6;
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.layout__side--filters {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.layout__side--filters h2 {
  font-size: 18px;
  margin-bottom: 15px;
}

.layout__side--filters p {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
}

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

.top-item {
  display: grid;
  grid-template-columns: 60px 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  margin-bottom: 15px;
  background: var(--card-bg);
  border-radius: 8px;
  transition: background 0.3s;
}

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

.top-rank {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-color);
  text-align: center;
}

.top-cover {
  width: 120px;
  height: 180px;
  border-radius: 4px;
  overflow: hidden;
  background: #2a2a2a;
}

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

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

.top-info h3 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
}

.top-info h3 a:hover {
  color: var(--accent-color);
}

.top-info p {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
  line-height: 1.5;
}

.top-meta {
  font-size: 13px;
  color: #666;
}

.page--grouped .group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--accent-color);
  font-weight: 500;
}

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

.site-footer {
  background: #0a0a0a;
  padding: 30px 0;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.site-footer p {
  color: #666;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

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

body.ui-style-9 {
  --bg-color: #141414;
  --card-bg: #1f1f1f;
  --hover-bg: #2a2a2a;
  --accent-color: #e50914;
}

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

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

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

  .layout__side--filters {
    position: static;
  }

  .top-item {
    grid-template-columns: 50px 100px 1fr;
    gap: 15px;
  }

  .top-cover {
    width: 100px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    gap: 15px;
    font-size: 12px;
  }

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

  .hero-section h1 {
    font-size: 24px;
  }

  .hero-video-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

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

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

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

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

  .top-item {
    grid-template-columns: 40px 80px 1fr;
    gap: 12px;
    padding: 15px;
  }

  .top-rank {
    font-size: 28px;
  }

  .top-cover {
    width: 80px;
    height: 120px;
  }

  .top-info h3 {
    font-size: 16px;
  }

  .top-info p {
    font-size: 13px;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .main-nav {
    gap: 8px;
    font-size: 11px;
  }

  .hero-section h1 {
    font-size: 20px;
  }

  .video-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}
