:root {
  --bg: #0f172a;
  --bg-deep: #020617;
  --panel: #111827;
  --panel-soft: rgba(15, 23, 42, 0.82);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --orange: #f97316;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.18);
  --radius: 18px;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.18), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(245, 158, 11, 0.12), transparent 26%),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #111827 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 34px rgba(249, 115, 22, 0.35);
}

.logo-text {
  font-size: 22px;
  background: linear-gradient(90deg, #fb923c, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav a,
.mobile-nav a {
  color: #e2e8f0;
  padding: 10px 14px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fff;
  background: rgba(249, 115, 22, 0.16);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #fff;
}

.mobile-nav {
  display: none;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.94);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  min-height: 640px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.56);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.78) 43%, rgba(15, 23, 42, 0.12) 100%),
    radial-gradient(circle at 72% 46%, rgba(249, 115, 22, 0.22), transparent 32%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  width: 100%;
  padding: 74px;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(249, 115, 22, 0.12);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #111827;
  background: linear-gradient(135deg, var(--orange), #fbbf24);
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.34);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button.dark {
  border-color: rgba(249, 115, 22, 0.34);
  color: #fed7aa;
}

.text-button {
  color: #fed7aa;
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #f97316, #facc15);
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-controls button {
  border: 0;
  color: #fff;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.7);
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.64);
}

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

.hero-dots button.is-active {
  width: 28px;
  background: linear-gradient(90deg, #fb923c, #facc15);
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 56px auto;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2,
.story-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.compact-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.compact-heading a {
  color: #fed7aa;
  font-weight: 800;
}

.search-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.24);
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: #fbbf24;
  font-weight: 800;
}

.search-row {
  display: flex;
  gap: 12px;
}

.search-row input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  outline: none;
  color: #fff;
  background: rgba(2, 6, 23, 0.56);
}

.search-row input:focus {
  border-color: rgba(251, 146, 60, 0.74);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.search-row button {
  min-width: 88px;
  border: 0;
  border-radius: 16px;
  color: #111827;
  background: linear-gradient(135deg, #fb923c, #facc15);
  font-weight: 900;
  cursor: pointer;
}

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

.category-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.2), transparent 42%),
    rgba(15, 23, 42, 0.76);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 146, 60, 0.42);
  background:
    radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.28), transparent 46%),
    rgba(30, 41, 59, 0.88);
}

.category-kicker,
.category-arrow {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
}

.category-card strong {
  font-size: 24px;
}

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

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

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

.category-movie-grid {
  margin-top: 22px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 146, 60, 0.36);
  box-shadow: 0 24px 58px rgba(2, 6, 23, 0.36);
}

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

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #f97316, #facc15);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--subtle);
  font-size: 13px;
}

.movie-meta a {
  color: #fbbf24;
  font-weight: 800;
}

.movie-card h3,
.rank-body h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p,
.rank-body p {
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.compact.movie-card .movie-card-body {
  padding: 14px;
}

.compact.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 20px 52px rgba(2, 6, 23, 0.28);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.3);
}

.full-rank .rank-item {
  grid-template-columns: 60px 112px minmax(0, 1fr);
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(135deg, #f97316, #facc15);
  font-weight: 900;
}

.rank-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.page-hero,
.detail-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 28px auto 0;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.78));
  box-shadow: var(--shadow);
}

.small-page-hero {
  padding: 54px;
}

.stacked-sections {
  display: grid;
  gap: 26px;
}

.category-preview {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.66);
}

.category-preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 32px 0;
  color: var(--subtle);
}

.breadcrumb a {
  color: #fed7aa;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  padding: 30px 36px 44px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.38);
}

.detail-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta-grid span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section {
  margin-top: 36px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #f97316, #facc15);
  box-shadow: 0 20px 44px rgba(249, 115, 22, 0.36);
  font-weight: 900;
  cursor: pointer;
}

.play-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #f97316;
  background: #111827;
}

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

.story-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.74);
}

.story-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.site-footer {
  margin-top: 70px;
  padding: 40px 0 26px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.62);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
}

.footer-inner p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}

.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: 28px auto 0;
  color: var(--subtle);
  font-size: 14px;
}

[data-movie-card][hidden] {
  display: none !important;
}

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

  .menu-button {
    display: block;
  }

  .hero-content,
  .content-layout,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 46px;
  }

  .hero-poster {
    display: none;
  }

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

  .rank-panel {
    position: static;
  }

  .detail-poster {
    max-width: 280px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 20px, var(--max));
  }

  .logo-text {
    font-size: 18px;
  }

  .mobile-nav.is-open {
    grid-template-columns: 1fr;
  }

  .hero {
    width: min(100% - 20px, var(--max));
    min-height: 620px;
    border-radius: 24px;
  }

  .hero-content {
    padding: 36px 24px 86px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1,
  .detail-copy h1 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .section,
  .page-hero,
  .detail-hero {
    width: min(100% - 20px, var(--max));
  }

  .small-page-hero,
  .detail-layout {
    padding: 32px 22px;
  }

  .breadcrumb {
    padding: 22px 22px 0;
  }

  .category-grid,
  .movie-grid,
  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .content-layout {
    gap: 18px;
  }

  .compact-heading,
  .category-preview-head,
  .search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .full-rank .rank-item,
  .rank-item {
    grid-template-columns: 34px 72px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-body p {
    display: none;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .category-grid,
  .movie-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .movie-card .poster-link img {
    height: 100%;
    min-height: 174px;
  }

  .compact.movie-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
  }
}
