:root {
  --bg: #0b111e;
  --bg-soft: #111827;
  --bg-card: rgba(17, 24, 39, 0.78);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #aeb7c6;
  --muted-2: #7c8798;
  --sunset: #f59e0b;
  --sunset-2: #f97316;
  --twilight: #ea580c;
  --glow: rgba(245, 158, 11, 0.28);
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(245, 158, 11, 0.15), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(234, 88, 12, 0.14), transparent 32%),
    linear-gradient(180deg, #0b1120 0%, #111827 42%, #0b111e 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

a {
  color: inherit;
}

img {
  width: 100%;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(10, 15, 28, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 78px;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  color: #111827;
  background: linear-gradient(135deg, var(--sunset), var(--twilight));
  box-shadow: 0 12px 40px var(--glow);
  font-weight: 900;
}

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

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

.brand-subtitle {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted-2);
}

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

.nav-link {
  padding: 10px 14px;
  color: #d1d5db;
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(245, 158, 11, 0.14);
}

.header-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.88);
  overflow: hidden;
}

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

.header-search input {
  width: 230px;
  padding: 11px 14px 11px 18px;
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  color: #111827;
  background: linear-gradient(135deg, var(--sunset), var(--twilight));
  font-weight: 800;
}

.header-search button {
  padding: 11px 18px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.8);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-panel a {
  padding: 10px 8px;
  color: #dbe4f0;
  text-decoration: none;
}

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

.mobile-search button {
  padding: 12px 18px;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #050814;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.04);
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 20, 0.98) 0%, rgba(5, 8, 20, 0.78) 46%, rgba(5, 8, 20, 0.28) 100%),
    linear-gradient(0deg, #0b111e 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 650px;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 58px;
  padding: 90px 0 80px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 18px 0 20px;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 680px;
  color: #d8dee8;
  font-size: 18px;
  line-height: 1.9;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fcd34d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-tags,
.card-tags,
.detail-tags,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.card-tags span,
.detail-tags span {
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
}

.hero-tags span,
.detail-tags span {
  padding: 8px 12px;
}

.card-tags span {
  padding: 5px 8px;
  font-size: 12px;
}

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

.primary-btn,
.ghost-btn,
.rank-action,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--sunset), var(--twilight));
  box-shadow: 0 18px 42px var(--glow);
}

.ghost-btn {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.primary-btn:hover,
.ghost-btn:hover,
.rank-action:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  background: rgba(17, 24, 39, 0.68);
  box-shadow: var(--shadow);
  text-decoration: none;
}

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

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

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 40px;
  line-height: 1;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.quick-search-block {
  margin-top: -42px;
  position: relative;
  z-index: 6;
}

.big-search {
  min-height: 84px;
  padding: 10px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.big-search input {
  flex: 1;
  padding: 0 22px;
  font-size: 17px;
}

.big-search button {
  align-self: stretch;
  padding: 0 30px;
  border-radius: 22px;
}

.content-section,
.page-main {
  padding-top: 64px;
}

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

.section-heading h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading a,
.text-link {
  color: #fbbf24;
}

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

.listing-grid {
  padding-bottom: 20px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.96));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(234, 88, 12, 0.16));
}

.poster-frame img {
  aspect-ratio: 2 / 2.75;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge,
.poster-play {
  position: absolute;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.poster-badge {
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-line {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 10px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 13px;
}

.card-tags {
  margin-top: 12px;
}

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

.category-tile,
.category-overview-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 26px;
  color: #fff;
  background: rgba(17, 24, 39, 0.76);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  text-decoration: none;
}

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

.category-tile h3,
.category-overview-card h2 {
  margin: 4px 0 8px;
  font-size: 22px;
  font-weight: 920;
}

.category-tile p,
.category-overview-card p,
.page-hero p {
  color: var(--muted);
  line-height: 1.75;
}

.category-images,
.category-overview-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.category-images img,
.category-overview-images img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.18);
}

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

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

.category-overview-card span {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(234, 88, 12, 0.08)),
    rgba(17, 24, 39, 0.7);
  box-shadow: var(--shadow);
}

.compact-hero {
  padding: 52px;
}

.page-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted-2);
  font-size: 14px;
}

.breadcrumb a {
  color: #fbbf24;
  text-decoration: none;
}

.filter-panel {
  margin: 28px 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.filter-chips {
  margin-top: 14px;
}

.filter-chips button {
  padding: 9px 13px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.08);
}

.filter-chips button.is-active {
  color: #111827;
  background: linear-gradient(135deg, var(--sunset), var(--twilight));
}

.movie-card.is-hidden,
.rank-row.is-hidden {
  display: none;
}

.rank-list {
  display: grid;
  gap: 14px;
  padding-bottom: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 82px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.78);
}

.rank-cover img {
  aspect-ratio: 2 / 2.8;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.18);
}

.rank-index {
  color: #fbbf24;
  font-size: 26px;
  font-weight: 950;
}

.rank-info a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
}

.rank-info p {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.5;
}

.rank-info span {
  color: var(--muted-2);
  font-size: 13px;
}

.rank-action {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--sunset), var(--twilight));
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  margin-bottom: 30px;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 34px;
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.2), transparent 35%),
    rgba(17, 24, 39, 0.78);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(245, 158, 11, 0.12);
}

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

.detail-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 760px;
  color: #d6dde8;
  font-size: 18px;
  line-height: 1.85;
}

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

.detail-meta-grid div,
.side-card {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
}

.detail-meta-grid span {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 5px;
  color: #fff;
}

.player-section {
  margin: 32px 0;
}

.video-player {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  font-size: 18px;
  font-weight: 900;
}

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

.play-symbol {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.35);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
}

.detail-article,
.detail-side {
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 26px;
  background: rgba(17, 24, 39, 0.72);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 930;
}

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

.detail-article p,
.detail-side p {
  color: var(--muted);
  line-height: 1.95;
}

.wide {
  width: 100%;
  margin-top: 16px;
}

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

.site-footer {
  margin-top: 90px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(5, 8, 20, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding: 42px 0;
}

.site-footer p,
.site-footer a {
  display: block;
  color: var(--muted);
  line-height: 1.85;
  text-decoration: none;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.footer-bottom {
  padding: 18px 0 28px;
  color: var(--muted-2);
  text-align: center;
}

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-content,
  .detail-hero,
  .detail-layout,
  .footer-grid,
  .category-tile,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 30px;
    padding-top: 78px;
  }

  .hero-poster {
    width: min(320px, 78vw);
  }

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

  .compact-hero {
    padding: 34px 24px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-subtitle {
    display: none;
  }

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

  .hero-carousel,
  .hero-content {
    min-height: 680px;
  }

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

  .hero-arrow {
    display: none;
  }

  .big-search {
    display: grid;
    border-radius: 24px;
  }

  .big-search input,
  .big-search button {
    width: 100%;
    min-height: 52px;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-title {
    min-height: 44px;
    font-size: 16px;
  }

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

  .rank-action {
    grid-column: 3;
    justify-self: start;
  }

  .detail-hero,
  .detail-article,
  .detail-side {
    padding: 18px;
    border-radius: 24px;
  }

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