* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-soft: #1c1917;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(28, 25, 23, 0.95);
  --border: rgba(245, 158, 11, 0.2);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --dim: #94a3b8;
  --gold: #f59e0b;
  --orange: #ea580c;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.48);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 34rem), linear-gradient(135deg, #0f172a, #1c1917 48%, #0f172a);
  color: var(--text);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.96), rgba(41, 37, 36, 0.96), rgba(30, 41, 59, 0.96));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  height: 76px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: white;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.3);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong,
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-copy em {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #f8fafc;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fbbf24;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 52px;
  padding: 86px max(28px, calc((100vw - 1240px) / 2)) 72px;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.34;
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-title span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 13px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

.btn.primary {
  background: linear-gradient(90deg, var(--gold), var(--orange));
  color: white;
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.26);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
}

.btn.text {
  color: #fbbf24;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.34);
}

.hero-poster {
  display: block;
  border-radius: 28px;
  padding: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(234, 88, 12, 0.7), rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 4 / 5.3;
  object-fit: cover;
  border-radius: 22px;
  background: #111827;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: max(28px, calc((100vw - 1240px) / 2));
  bottom: 38px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 36px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
}

.hero-dots button.active {
  background: linear-gradient(90deg, var(--gold), var(--orange));
}

.quick-search,
.content-section,
.channel-strip,
.page-shell,
.detail-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.quick-search {
  margin-top: -42px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 22px;
  align-items: end;
  padding-top: 26px;
  padding-bottom: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search h2,
.quick-search p {
  margin: 0;
}

.quick-search h2 {
  font-size: 28px;
}

.quick-search p {
  margin-top: 10px;
  color: var(--muted);
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0 14px;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.channel-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding-top: 48px;
}

.channel-card {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(41, 37, 36, 0.92));
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.25);
}

.channel-card span,
.channel-card strong {
  position: relative;
  z-index: 2;
  display: block;
}

.channel-card span {
  color: #fbbf24;
  font-weight: 900;
  margin-bottom: 10px;
}

.channel-card strong {
  max-width: 170px;
  font-size: 15px;
  line-height: 1.55;
}

.channel-card em {
  position: absolute;
  right: -18px;
  bottom: -30px;
  width: 110px;
  height: 150px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  transform: rotate(9deg);
}

.content-section {
  padding-top: 56px;
  padding-bottom: 10px;
}

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

.section-title h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
}

.section-title a {
  color: #fbbf24;
  font-weight: 800;
}

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

.movie-grid.wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(28, 25, 23, 0.92));
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.24);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.48);
  box-shadow: 0 26px 58px rgba(2, 6, 23, 0.36);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster img {
  width: 100%;
  aspect-ratio: 4 / 5.55;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster img {
  transform: scale(1.05);
}

.poster-year,
.poster-type {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(12px);
}

.poster-year {
  left: 12px;
}

.poster-type {
  right: 12px;
  color: #fbbf24;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.card-body h3 a:hover {
  color: #fbbf24;
}

.card-body p {
  min-height: 66px;
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--dim);
  font-size: 13px;
  margin-bottom: 14px;
}

.tag-row span {
  padding: 5px 8px;
  font-size: 12px;
  color: var(--muted);
}

.rank-preview {
  padding-bottom: 70px;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rank-grid a,
.rank-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.64);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rank-grid a:hover,
.rank-row:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.08);
  transform: translateY(-2px);
}

.rank-grid b,
.rank-row b {
  color: #fbbf24;
  font-size: 20px;
}

.rank-grid em,
.rank-row em {
  color: var(--dim);
  font-style: normal;
  font-size: 13px;
}

.page-shell,
.detail-shell {
  padding-top: 44px;
  padding-bottom: 72px;
}

.page-hero.small {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 28rem), linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(41, 37, 36, 0.92));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 12px 0;
  font-size: clamp(36px, 5vw, 56px);
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.category-tile a {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
}

.category-tile img {
  width: 150px;
  height: 170px;
  object-fit: cover;
}

.category-tile h2 {
  margin: 0 0 10px;
  color: #fbbf24;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  margin: 30px 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.64);
}

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

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--dim);
  margin-bottom: 24px;
}

.crumbs a {
  color: #fbbf24;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(250px, 360px) 1fr;
  gap: 34px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 30px;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 28rem), rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 4 / 5.55;
  object-fit: cover;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.36);
}

.detail-info h1 {
  margin: 14px 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
}

.lead {
  max-width: 850px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
  color: var(--muted);
}

.detail-meta span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
}

.player-panel,
.article-section {
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.2);
}

.player-panel h2,
.article-section h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.72));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
}

.play-cover span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 22px 42px rgba(245, 158, 11, 0.3);
  font-size: 34px;
}

.play-cover strong {
  font-size: 18px;
}

.play-cover.hidden {
  display: none;
}

.player-state {
  min-height: 22px;
  color: var(--muted);
}

.article-section p {
  color: var(--muted);
  line-height: 1.95;
  font-size: 17px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(28, 25, 23, 0.96));
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 22px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

.footer-grid a:hover {
  color: #fbbf24;
}

.footer-grid h3 {
  margin-top: 0;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 28px;
  color: var(--dim);
}

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

@media (max-width: 1080px) {
  .hero-slide {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

@media (max-width: 760px) {
  .header-inner {
    height: 68px;
  }

  .main-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 620px;
  }

  .hero-slide {
    padding: 62px 22px 76px;
  }

  .quick-search,
  .filter-bar,
  .detail-hero,
  .footer-grid,
  .category-tile a {
    grid-template-columns: 1fr;
  }

  .channel-strip,
  .category-grid,
  .movie-grid,
  .movie-grid.wide,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .category-tile img {
    width: 100%;
    height: 230px;
  }

  .page-hero.small,
  .detail-hero {
    padding: 24px;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

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

  .rank-grid em,
  .rank-row em {
    grid-column: 2;
  }
}
