* {
  box-sizing: border-box;
}

:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-soft: #fee2e2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: var(--gray-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #ef4444);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.26);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.04em;
}

.brand-text em {
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
}

.desktop-nav > a,
.nav-dropdown > a {
  color: var(--gray-700);
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > a:hover {
  color: var(--red);
}

.nav-dropdown {
  position: relative;
  padding: 22px 0;
}

.dropdown-panel {
  position: absolute;
  top: 64px;
  left: -28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 8px;
  width: 300px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s ease;
}

.dropdown-panel a {
  padding: 10px 12px;
  color: var(--gray-700);
  border-radius: 10px;
}

.dropdown-panel a:hover {
  color: var(--red);
  background: var(--red-soft);
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--gray-100);
  border-radius: 12px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--gray-800);
}

.mobile-nav {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 16px 16px;
}

.mobile-nav a {
  padding: 10px;
  text-align: center;
  background: var(--gray-100);
  border-radius: 10px;
}

.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide > img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.55) 42%, rgba(0, 0, 0, 0.18)), linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 50%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  gap: 56px;
  padding-bottom: 86px;
  color: #fff;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.section-title span,
.inner-hero span {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: #fecaca;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span {
  padding: 6px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-weight: 800;
  border-radius: 12px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: var(--red);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.35);
}

.primary-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.hero-poster {
  overflow: hidden;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.section-block {
  padding: 58px 0 16px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-title h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
}

.section-title span {
  margin-bottom: 4px;
  color: var(--red);
}

.section-title a {
  color: var(--red);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

.six-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: block;
}

.poster-wrap,
.wide-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--gray-200);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

.poster-wrap {
  aspect-ratio: 2 / 3;
}

.poster-wrap img,
.wide-thumb img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s ease;
}

.poster-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: all 0.25s ease;
}

.poster-mask span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: var(--red);
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.movie-card:hover img,
.wide-card:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.movie-card:hover .poster-mask,
.wide-card:hover .poster-mask {
  background: rgba(0, 0, 0, 0.42);
  opacity: 1;
}

.movie-card strong {
  display: block;
  overflow: hidden;
  margin-bottom: 4px;
  color: var(--gray-900);
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-card em,
.movie-card small {
  display: block;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--gray-500);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.badge {
  position: absolute;
  z-index: 2;
  padding: 4px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
}

.year-badge {
  top: 10px;
  left: 10px;
  background: var(--red);
}

.hot-badge {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.72);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.rank-panel,
.side-card,
.detail-card,
.article-page,
.category-card a,
.rank-feature a {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.compact-title {
  margin-bottom: 14px;
}

.rank-mini {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-mini a {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 14px;
}

.rank-num,
.rank-index {
  color: var(--red);
  font-weight: 900;
}

.rank-mini strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-mini em {
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.wide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.wide-thumb {
  aspect-ratio: 16 / 9;
}

.wide-card strong {
  display: block;
  color: var(--gray-900);
  font-size: 18px;
}

.wide-card em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 14px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-grid,
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-tile,
.category-card a {
  display: block;
  min-height: 150px;
  padding: 22px;
  color: var(--gray-800);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card a:hover {
  color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.12);
}

.category-tile strong,
.category-card h2 {
  display: block;
  margin: 0 0 10px;
  font-size: 22px;
}

.category-tile span,
.category-card p {
  color: var(--gray-500);
  font-size: 14px;
}

.category-card span {
  color: var(--red);
  font-weight: 900;
}

.inner-hero {
  padding: 74px 0;
  color: #fff;
}

.red-hero {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}

.dark-hero {
  background: radial-gradient(circle at top left, rgba(220, 38, 38, 0.42), transparent 36%), linear-gradient(135deg, #111827, #020617);
}

.inner-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1;
}

.inner-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.channel-filter,
.search-page-form {
  display: flex;
  gap: 12px;
  width: min(680px, 100%);
  margin-top: 28px;
}

.channel-filter input,
.search-page-form input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  outline: none;
}

.channel-filter button,
.search-page-form button {
  min-width: 110px;
  height: 52px;
  color: #fff;
  font-weight: 900;
  background: var(--gray-900);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
}

.search-page-form button {
  background: var(--red);
}

.chip-row,
.search-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.chip,
.search-tabs button {
  padding: 9px 14px;
  color: var(--gray-700);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  cursor: pointer;
}

.chip.active,
.search-tabs button.active,
.chip:hover,
.search-tabs button:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.rank-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.rank-feature a {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 420px;
  padding: 28px;
  color: #fff;
}

.rank-feature img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62);
}

.rank-feature h2,
.rank-feature p,
.rank-feature strong,
.rank-crown {
  position: relative;
  z-index: 2;
}

.rank-crown {
  display: inline-flex;
  padding: 6px 12px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-weight: 900;
}

.rank-feature h2 {
  margin: 220px 0 8px;
  font-size: 28px;
}

.rank-feature p {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row a {
  display: grid;
  grid-template-columns: 58px 74px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.rank-row img {
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.rank-info strong,
.rank-info em,
.rank-info small {
  display: block;
}

.rank-info strong {
  color: var(--gray-900);
  font-size: 18px;
}

.rank-info em,
.rank-info small {
  color: var(--gray-500);
  font-style: normal;
}

.rank-info small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-heat {
  color: var(--red);
  font-weight: 900;
}

.detail-top {
  padding: 18px 0;
  background: #0b0f19;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #d1d5db;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
  padding-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 20px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
  border: 0;
  cursor: pointer;
}

.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  background: var(--red);
  border-radius: 999px;
  font-size: 36px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.player-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-card {
  margin-top: 24px;
  padding: 30px;
}

.detail-card h1 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
}

.detail-card .detail-meta span {
  color: var(--gray-700);
  background: var(--gray-100);
  border-color: var(--gray-100);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 26px;
}

.tag-cloud span {
  padding: 6px 10px;
  color: var(--red-dark);
  background: var(--red-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.detail-card h2,
.article-page h2,
.info-card h2 {
  margin: 26px 0 12px;
  color: var(--gray-900);
  font-size: 24px;
}

.detail-card p,
.article-page p {
  margin: 0 0 14px;
  color: var(--gray-700);
  font-size: 17px;
}

.detail-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.side-card {
  padding: 20px;
}

.cover-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.full-btn {
  width: 100%;
  margin-top: 16px;
}

.info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-card dl div {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.info-card dt {
  color: var(--gray-500);
}

.info-card dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 800;
}

.small-tags span {
  font-size: 12px;
}

.article-page {
  max-width: 880px;
  padding: 34px;
}

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: var(--gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 52px 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  margin: 10px 0 0;
  color: #9ca3af;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .six-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-grid,
  .category-overview-grid,
  .wide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: grid;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero {
    height: 620px;
  }

  .hero-content {
    padding-bottom: 74px;
  }

  .hero-actions,
  .channel-filter,
  .search-page-form {
    flex-direction: column;
  }

  .six-grid,
  .wide-grid,
  .category-grid,
  .category-overview-grid,
  .rank-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-row a {
    grid-template-columns: 42px 66px 1fr;
  }

  .rank-heat {
    grid-column: 3;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-card,
  .side-card,
  .article-page {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .six-grid,
  .wide-grid,
  .category-grid,
  .category-overview-grid,
  .rank-feature-grid {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }
}
