:root {
  --bg: #09090b;
  --panel: #111113;
  --panel-soft: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --orange: #f97316;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 34rem),
    radial-gradient(circle at 80% 12%, rgba(245, 158, 11, 0.12), transparent 28rem),
    linear-gradient(180deg, #111113 0%, #08080a 48%, #050506 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.74);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.content-section,
.hero,
.page-hero,
.detail-layout {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #111113;
  box-shadow: 0 12px 34px rgba(249, 115, 22, 0.34);
}

.brand-text {
  font-size: 20px;
}

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

.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #111113;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 640px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  box-shadow: var(--shadow);
  background: #111113;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: center;
  padding: 70px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(4px) saturate(1.15);
}

.hero-bg::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 11, 0.96) 0%, rgba(9, 9, 11, 0.84) 44%, rgba(9, 9, 11, 0.56) 100%),
    radial-gradient(circle at 24% 25%, rgba(249, 115, 22, 0.32), transparent 30rem);
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transform: rotate(2deg);
}

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

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

.primary-button,
.ghost-button,
.quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.primary-button,
.quick-search button {
  color: #111113;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.ghost-button:hover,
.quick-search button:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dot.active {
  width: 34px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
  font-size: 13px;
}

.hero-tags,
.detail-tags {
  margin-top: 18px;
}

.quick-search-wrap {
  width: min(900px, calc(100% - 32px));
  margin: -31px auto 0;
  position: relative;
  z-index: 4;
}

.quick-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 17, 19, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  padding: 0 18px;
}

.content-section {
  padding: 76px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-link {
  color: var(--amber);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.46);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78) 100%);
}

.poster-year {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #111113;
  background: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--soft);
  font-size: 12px;
}

.movie-meta-row a {
  color: var(--amber);
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 58px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

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

.category-tile {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111113;
}

.category-tile img {
  height: 100%;
  min-height: 178px;
  object-fit: cover;
  opacity: 0.45;
  transition: 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
  opacity: 0.6;
}

.category-tile span {
  position: absolute;
  inset: auto 16px 16px 16px;
}

.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile strong {
  font-size: 20px;
}

.category-tile em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

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

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

.rank-panel,
.article-panel,
.player-shell,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.rank-panel h2 {
  margin: 0 0 16px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.compact-card img {
  width: 62px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card em {
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
}

.rank-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #111113;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.page-hero {
  margin-top: 28px;
  padding: 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 12%, rgba(249, 115, 22, 0.28), transparent 30rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

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

.category-card-large h2 {
  margin: 2px 0 8px;
}

.category-card-large p {
  color: var(--muted);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mini-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.13);
  font-size: 13px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.rank-poster img {
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  object-fit: cover;
}

.rank-info h2 {
  margin: 6px 0;
}

.rank-info p {
  margin: 0 0 12px;
  color: var(--muted);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  border-radius: 999px;
  color: #111113;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.subline {
  color: var(--soft) !important;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 190px 170px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
}

.filter-panel select {
  appearance: none;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: blur(5px) saturate(1.15);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  min-height: 620px;
  padding: 58px 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--soft);
  font-size: 14px;
}

.breadcrumb a {
  color: #fed7aa;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 26px;
  align-items: start;
}

.player-shell {
  padding: 14px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--text);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  color: #111113;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.38);
  font-size: 30px;
}

.article-panel {
  padding: 26px;
}

.article-panel h2 {
  margin: 0 0 12px;
}

.article-panel h2:not(:first-child) {
  margin-top: 26px;
}

.article-panel p {
  margin: 0;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.info-grid span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.info-grid strong {
  display: block;
  color: var(--amber);
  font-size: 12px;
}

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

.site-footer {
  margin-top: 86px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
}

.footer-inner p,
.copyright {
  color: var(--soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #fed7aa;
}

.copyright {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 30px;
  font-size: 13px;
}

@media (max-width: 1060px) {
  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .rank-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(9, 9, 11, 0.96);
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .hero-poster {
    width: min(260px, 76vw);
    margin: 0 auto;
  }

  .page-hero {
    padding: 38px 26px;
  }

  .movie-grid,
  .related-grid,
  .slim-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid,
  .category-overview {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: min(280px, 78vw);
  }
}

@media (max-width: 560px) {
  .header-inner,
  .footer-inner,
  .content-section,
  .hero,
  .page-hero,
  .detail-layout {
    width: min(100% - 20px, 1220px);
  }

  .brand-text {
    font-size: 17px;
  }

  .hero {
    margin-top: 14px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero h1,
  .page-hero h1,
  .detail-intro h1 {
    font-size: 38px;
  }

  .quick-search {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

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

  .category-card-large,
  .rank-item {
    grid-template-columns: 1fr;
  }

  .category-cover,
  .rank-poster {
    width: 180px;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 18px;
  }
}
