:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg-soft: #101827;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --orange: #f97316;
  --orange-soft: rgba(249, 115, 22, 0.18);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.16);
  --green: #34d399;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(249, 115, 22, 0.18), transparent 32rem),
    radial-gradient(circle at 82% 0%, rgba(34, 211, 238, 0.14), transparent 30rem),
    linear-gradient(135deg, #030712 0%, #111827 48%, #030712 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(3, 7, 18, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-nav {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  box-shadow: 0 12px 35px rgba(34, 211, 238, 0.18);
  transform: translateZ(0);
}

.brand:hover .brand-mark {
  transform: scale(1.05);
}

.brand-text,
.gradient-text {
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fb923c, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: #fb923c;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: white;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

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

.mobile-menu {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-menu.is-open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-link {
  padding: 10px 12px;
  color: #dbeafe;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.68);
}

.mobile-link.sub {
  color: #bae6fd;
}

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

.hero-slider {
  position: relative;
  overflow: hidden;
  width: min(100% - 32px, var(--container));
  min-height: 650px;
  margin: 28px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 5vw, 70px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.012);
  transition: opacity 0.6s ease, transform 0.7s ease;
}

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

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.68) 52%, rgba(3, 7, 18, 0.38)),
    radial-gradient(circle at 84% 18%, rgba(34, 211, 238, 0.2), transparent 28rem),
    radial-gradient(circle at 16% 84%, rgba(249, 115, 22, 0.24), transparent 28rem);
}

.hero-media {
  position: relative;
  z-index: 1;
  min-height: 430px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 50%, rgba(3, 7, 18, 0.9));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: #fed7aa;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-title h1 {
  margin: 18px 0 16px;
  line-height: 1.06;
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  font-size: clamp(30px, 4.2vw, 56px);
}

.hero-copy p,
.page-hero p,
.detail-title p {
  color: #cbd5e1;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.8;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: white;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  font-weight: 900;
  box-shadow: 0 16px 42px rgba(239, 68, 68, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: none;
}

.btn.cyan {
  background: linear-gradient(135deg, #0891b2, var(--cyan));
  box-shadow: 0 16px 42px rgba(34, 211, 238, 0.16);
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd5e1;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.rank-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: clamp(28px, 5vw, 70px);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.hero-dot.is-active {
  width: 38px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: white;
  background: rgba(15, 23, 42, 0.82);
  cursor: pointer;
}

.search-bar {
  display: flex;
  gap: 10px;
  max-width: 720px;
  margin-top: 24px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.search-bar input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
}

.search-bar button {
  min-width: 116px;
}

.section {
  margin: 72px auto 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 950;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.72));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 146, 60, 0.5);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 44%, rgba(3, 7, 18, 0.78));
}

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 1;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  box-shadow: 0 15px 38px rgba(34, 211, 238, 0.24);
}

.card-info {
  padding: 16px;
}

.card-title {
  display: block;
  min-height: 48px;
  color: white;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.card-title:hover {
  color: #fb923c;
}

.card-info p {
  min-height: 52px;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta {
  gap: 8px;
  font-size: 12px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.08);
  font-size: 12px;
  line-height: 1.2;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(34, 211, 238, 0.08)),
    rgba(15, 23, 42, 0.82);
}

.category-card::after {
  position: absolute;
  inset: auto -28px -44px auto;
  width: 140px;
  height: 140px;
  content: "";
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.14);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 1;
  color: #cbd5e1;
  line-height: 1.7;
}

.category-card .btn {
  position: relative;
  z-index: 1;
  margin-top: 10px;
}


.category-mini {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}

.category-mini a {
  color: #bfdbfe;
  line-height: 1.45;
}

.category-mini a:hover {
  color: #fb923c;
}

.rank-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.4);
}

.rank-no {
  color: #fb923c;
  font-size: 22px;
  font-weight: 950;
}

.rank-item img {
  width: 68px;
  height: 68px;
  border-radius: 13px;
  object-fit: cover;
}

.rank-body {
  display: grid;
  gap: 5px;
}

.rank-body strong {
  font-size: 16px;
}

.rank-body em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.rank-tag {
  color: #a5f3fc;
  font-size: 12px;
}

.page-hero {
  width: min(100% - 32px, var(--container));
  margin: 28px auto 0;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 85% 25%, rgba(34, 211, 238, 0.16), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.58));
  box-shadow: var(--shadow);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.filter-chip {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  border-color: rgba(249, 115, 22, 0.54);
  color: white;
  background: rgba(249, 115, 22, 0.18);
}

.notice-empty {
  display: none;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.68);
}

.notice-empty.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  margin-bottom: 62px;
  border-bottom: 1px solid var(--line);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.28;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.03);
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.96), rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.88)),
    radial-gradient(circle at 76% 20%, rgba(34, 211, 238, 0.2), transparent 24rem),
    radial-gradient(circle at 18% 80%, rgba(249, 115, 22, 0.2), transparent 26rem);
}

.detail-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 38px 0 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  color: #cbd5e1;
}

.breadcrumb a {
  color: #a5f3fc;
}

.detail-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: clamp(26px, 5vw, 54px);
  align-items: center;
}

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

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

.detail-title p {
  max-width: 820px;
}

.detail-meta {
  margin: 18px 0;
}

.content-layout {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.content-panel,
.side-panel,
.player-section {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.2);
}

.content-panel {
  padding: clamp(22px, 3vw, 34px);
}

.content-panel h2,
.side-panel h2,
.player-section h2 {
  margin: 0 0 18px;
  font-size: 25px;
}

.content-panel p {
  color: #cbd5e1;
  font-size: 17px;
  line-height: 2;
}

.content-panel dl {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px 18px;
  margin: 0 0 28px;
  color: #cbd5e1;
}

.content-panel dt {
  color: #e2e8f0;
  font-weight: 900;
}

.side-panel {
  padding: 22px;
  align-self: start;
}

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

.side-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.6);
}

.side-link:hover {
  background: rgba(249, 115, 22, 0.13);
}

.side-link img {
  width: 64px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
}

.side-link strong {
  display: block;
  margin-bottom: 5px;
  color: #f8fafc;
  line-height: 1.35;
}

.side-link span {
  color: var(--muted);
  font-size: 13px;
}

.player-section {
  width: min(100% - 32px, var(--container));
  margin: -20px auto 34px;
  padding: clamp(16px, 3vw, 28px);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  min-height: 260px;
  max-height: 70vh;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 160px;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 22px 60px rgba(34, 211, 238, 0.22);
}

.player-shell.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  min-height: 22px;
  margin-top: 12px;
  color: #fca5a5;
}

.site-footer {
  margin-top: 82px;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.72);
}

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

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

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

.footer-links h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.footer-links a {
  display: block;
  margin: 10px 0;
  color: var(--muted);
}

.footer-links a:hover {
  color: #fb923c;
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  text-align: center;
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-slider {
    min-height: 760px;
  }

  .hero-media {
    min-height: 300px;
  }

  .rank-panel,
  .content-layout {
    grid-template-columns: 1fr;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .site-nav {
    min-height: 64px;
  }

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

  .hero-slider {
    min-height: 740px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1,
  .detail-title h1 {
    font-size: 34px;
  }

  .hero-media,
  .hero-media img {
    min-height: 300px;
  }

  .hero-controls {
    left: 24px;
    bottom: 20px;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar button {
    width: 100%;
  }

  .section-head {
    display: block;
  }

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

  .card-info {
    padding: 13px;
  }

  .card-title {
    min-height: auto;
    font-size: 15px;
  }

  .card-info p {
    min-height: auto;
    font-size: 13px;
  }

  .rank-item {
    grid-template-columns: 42px 56px minmax(0, 1fr);
  }

  .rank-item img {
    width: 56px;
    height: 56px;
  }

  .rank-tag {
    display: none;
  }

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

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

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

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

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

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

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