:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #101318;
  --panel: rgba(17, 24, 39, 0.82);
  --panel-strong: rgba(20, 27, 39, 0.96);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f9fafb;
  --muted: #a8b0bd;
  --soft: #d1d5db;
  --amber: #f59e0b;
  --amber-light: #fde68a;
  --amber-strong: #d97706;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 36rem),
    linear-gradient(180deg, #000 0%, #0b0f18 48%, #000 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 7, 18, 0.86);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: var(--max);
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #050505;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.35);
}

.brand-name,
.footer-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--amber-light), #fff7ed, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.nav-links a {
  color: #d1d5db;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover {
  color: var(--amber);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(15, 23, 42, 0.82);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.filter-bar input {
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.header-search input {
  width: 150px;
  padding: 10px 12px 10px 16px;
}

.header-search button,
.mobile-search button {
  border: 0;
  min-height: 40px;
  padding: 0 16px;
  cursor: pointer;
  color: #111827;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #f3f4f6;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  padding: 16px 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 7, 18, 0.98);
}

.mobile-panel.open {
  display: grid;
  gap: 14px;
}

.mobile-panel a {
  color: #d1d5db;
  font-weight: 700;
}

.mobile-search {
  margin-top: 8px;
}

.mobile-search input {
  width: 100%;
  flex: 1;
  padding: 12px 16px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #000;
}

.hero-track {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 54px;
  align-items: center;
  padding: 96px max(24px, calc((100vw - var(--max)) / 2)) 84px;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.88)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.75s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.84) 100%),
    radial-gradient(circle at 74% 24%, rgba(245, 158, 11, 0.25), transparent 24rem);
}

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

.hero-content {
  max-width: 760px;
}

.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--amber-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  background: linear-gradient(90deg, #fff7ed, var(--amber-light), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.2vw, 42px);
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.button.primary {
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.3);
}

.button.secondary {
  color: #f9fafb;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster {
  align-self: center;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(2deg);
}

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

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

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--amber);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 22px;
}

.section-tight {
  padding-top: 42px;
}

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

.section-head.simple {
  align-items: center;
}

.section-head h2,
.content-panel h2,
.footer-inner h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.05em;
}

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

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

.category-tile,
.category-overview-card,
.highlight-box,
.content-panel,
.player-shell,
.detail-hero,
.filter-bar {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.92), rgba(8, 13, 24, 0.86));
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
}

.category-tile {
  min-height: 170px;
  padding: 22px;
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.48);
}

.category-tile span {
  display: block;
  margin-bottom: 12px;
  color: #fff7ed;
  font-size: 20px;
  font-weight: 900;
}

.category-tile p,
.category-overview-card p,
.highlight-box p,
.footer-inner p,
.content-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.category-tile em {
  display: block;
  margin-top: 14px;
  color: var(--amber-light);
  font-style: normal;
  font-size: 13px;
  line-height: 1.7;
}

.chip-links,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-links a,
.filter-chips button,
.detail-tags span,
.tag-row span {
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.chip-links a,
.filter-chips button {
  padding: 9px 13px;
}

.filter-chips button {
  cursor: pointer;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.82);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  background: #111827;
}

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

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  min-height: 188px;
}

.movie-card h2 {
  margin: 0;
  color: #f9fafb;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-card.compact h2 {
  font-size: 16px;
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.movie-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag-row span {
  padding: 5px 8px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: stretch;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.74);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(245, 158, 11, 0.48);
  transform: translateX(3px);
}

.rank-num,
.rank-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
}

.rank-dot {
  width: 12px;
  height: 12px;
  justify-self: center;
}

.rank-item img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
}

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

.rank-copy strong {
  color: #f9fafb;
  font-size: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
}

.highlight-box {
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 16rem),
    linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(0, 0, 0, 0.86));
}

.highlight-box h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.05em;
}

.highlight-box .button {
  margin-top: 18px;
  width: fit-content;
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 84px max(22px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(15, 23, 42, 0.62)),
    radial-gradient(circle at 82% 22%, rgba(245, 158, 11, 0.2), transparent 24rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.07em;
}

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

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

.category-overview-card {
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-overview-card ul,
.site-footer ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.category-overview-card li,
.site-footer li {
  margin-top: 9px;
}

.category-overview-card a:hover,
.site-footer a:hover {
  color: var(--amber-light);
}

.filter-bar {
  margin-bottom: 24px;
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.filter-bar input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.7);
}

.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-light);
}

.detail-hero {
  max-width: var(--max);
  margin: 28px auto 0;
  border-radius: 30px;
  padding: 28px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  overflow: hidden;
}

.detail-poster img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-one-line {
  margin: 0 0 22px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.detail-meta dd {
  margin: 4px 0 0;
  color: #fff7ed;
  font-weight: 800;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tags span {
  padding: 8px 11px;
}

.player-section {
  padding-top: 32px;
  padding-bottom: 32px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-content: center;
  gap: 16px;
  color: #fff;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.72));
}

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

.big-play {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #111827;
  font-size: 32px;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.34);
}

.player-overlay strong {
  font-size: 22px;
}

.detail-content {
  padding-top: 16px;
}

.content-panel {
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 22px;
}

.content-panel p {
  margin: 16px 0 0;
  font-size: 17px;
}

.related-grid {
  margin-top: 22px;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.72), #000);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 22px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 30px;
}

.footer-inner h2 {
  color: #fff7ed;
  font-size: 18px;
  letter-spacing: 0;
}

.footer-inner a,
.footer-inner p,
.footer-bottom {
  color: var(--muted);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
}

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

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

@media (max-width: 860px) {
  .header-search {
    display: none;
  }

  .hero,
  .hero-track {
    min-height: 720px;
  }

  .hero-slide {
    min-height: 720px;
    grid-template-columns: 1fr;
    padding-top: 86px;
    gap: 28px;
  }

  .hero-poster {
    width: min(260px, 72vw);
    justify-self: center;
    transform: none;
  }

  .section-head,
  .split-section,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

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

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

@media (max-width: 560px) {
  .nav-wrap {
    height: 64px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 19px;
  }

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

  .hero-content p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .section,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .category-overview-grid,
  .wide-list {
    grid-template-columns: 1fr;
  }

  .detail-hero,
  .content-panel {
    padding: 20px;
  }

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

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