:root {
  --color-bg: #f7f4ef;
  --color-surface: #ffffff;
  --color-ink: #171717;
  --color-muted: #6b7280;
  --color-soft: #f4efe6;
  --color-line: rgba(23, 23, 23, 0.09);
  --color-amber: #f59e0b;
  --color-orange: #f97316;
  --color-red: #ef4444;
  --color-slate: #0f172a;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 14px 34px rgba(15, 23, 42, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.13), transparent 32rem),
    linear-gradient(135deg, #fffaf0 0%, #f8fafc 42%, #f1f5f9 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.site-logo__mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 58%, #ef4444 100%);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.34);
  font-weight: 900;
}

.site-logo__text {
  font-size: 1.18rem;
}

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

.nav-link {
  padding: 10px 13px;
  color: #374151;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #92400e;
  background: #fef3c7;
  transform: translateY(-1px);
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: #9a3412;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 680px;
  color: #ffffff;
  overflow: hidden;
  background: #0f172a;
}

.hero__slides {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: 92px max(24px, calc((100vw - 1180px) / 2)) 116px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.01);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.84) 44%, rgba(15, 23, 42, 0.55) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto -18% -24% -18%;
  height: 280px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.30), transparent 68%);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 32%, rgba(245, 158, 11, 0.34), transparent 24rem),
    radial-gradient(circle at 76% 24%, rgba(168, 85, 247, 0.22), transparent 26rem);
}

.hero-slide__content,
.hero-slide__poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.section .eyebrow,
.page-hero .eyebrow,
.detail-hero .eyebrow {
  color: #b45309;
  background: #fff7ed;
  border-color: #fed7aa;
}

.hero-slide h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 8vw, 6.6rem);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.075em;
}

.hero-slide p {
  max-width: 760px;
  margin: 0;
  color: #e5e7eb;
  font-size: clamp(1rem, 2.2vw, 1.26rem);
}

.hero-slide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
}

.hero-slide__meta span,
.detail-tags span,
.detail-pills span,
.movie-card__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-slide__meta span {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-slide__actions,
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.34);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.page-hero .btn-ghost {
  color: #7c2d12;
  background: #fff7ed;
  border-color: #fed7aa;
}

.hero-slide__poster {
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero__controls {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.7rem;
}

.hero-dots {
  display: inline-flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 99px;
  background: #f59e0b;
}

.hero-picks {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 36px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 10px;
  width: min(390px, 36vw);
}

.hero-pick {
  min-width: 0;
  padding: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.hero-pick img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 6px;
}

.hero-pick span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.section--search {
  padding-top: 56px;
}

.section--dark {
  width: 100%;
  margin: 0;
  padding: 82px max(24px, calc((100vw - 1180px) / 2));
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.25), transparent 28rem),
    linear-gradient(135deg, #111827 0%, #0f172a 54%, #1e1b4b 100%);
}

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

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

.section-heading--center {
  text-align: center;
}

.section-heading--center .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2,
.page-hero h1,
.detail-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.section-heading p,
.page-hero p,
.detail-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--color-muted);
  font-size: 1.04rem;
}

.section--dark .section-heading p,
.section--dark .eyebrow {
  color: #e5e7eb;
}

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

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

.movie-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.movie-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-card__media img {
  transform: scale(1.07);
}

.movie-card__badge,
.movie-card__rank {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.movie-card__badge {
  right: 12px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.movie-card__rank {
  left: 12px;
  width: 34px;
  padding: 0;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.movie-card__body {
  padding: 18px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h3 a:hover {
  color: #d97706;
}

.movie-card__meta,
.movie-card__desc {
  margin: 0;
}

.movie-card__meta {
  color: #9a3412;
  font-size: 0.84rem;
  font-weight: 800;
}

.movie-card__desc {
  display: -webkit-box;
  min-height: 3.1em;
  margin-top: 8px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__tags,
.detail-tags,
.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.movie-card__tags span,
.detail-tags span,
.detail-pills span {
  color: #92400e;
  background: #fff7ed;
}

.movie-card--compact .movie-card__body {
  padding: 15px;
}

.movie-card--compact h3 {
  font-size: 1rem;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  color: #ffffff;
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.category-tile::before,
.category-overview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.96;
}

.from-amber::before { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.from-orange::before { background: linear-gradient(135deg, #fb923c, #c2410c); }
.from-purple::before { background: linear-gradient(135deg, #a855f7, #6d28d9); }
.from-pink::before { background: linear-gradient(135deg, #ec4899, #be185d); }
.from-blue::before { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.from-green::before { background: linear-gradient(135deg, #22c55e, #15803d); }
.from-red::before { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.from-cyan::before { background: linear-gradient(135deg, #06b6d4, #0e7490); }

.category-tile > *,
.category-overview-card > * {
  position: relative;
  z-index: 2;
}

.category-tile__shine {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-tile h3,
.category-overview-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 950;
}

.category-tile p,
.category-overview-card p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
}

.category-tile strong,
.category-overview-card strong {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: #111827;
  background: #ffffff;
  border-radius: 999px;
  font-size: 0.86rem;
}

.category-overview-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-overview-card__links {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.category-overview-card__links a {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  background: #111827;
  color: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.rank-panel__head {
  margin-bottom: 20px;
}

.rank-panel__head h2 {
  margin: 0 0 8px;
  font-size: 1.9rem;
  line-height: 1;
}

.rank-panel__head a {
  color: #fbbf24;
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.rank-row span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: #f97316;
  border-radius: 50%;
  font-weight: 950;
}

.rank-row strong,
.rank-row em {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row em {
  grid-column: 2;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-style: normal;
}

.listing-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px)) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--color-line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.listing-tools label {
  display: grid;
  gap: 6px;
  color: #6b7280;
  font-size: 0.83rem;
  font-weight: 900;
}

.listing-tools input,
.listing-tools select {
  min-height: 44px;
  width: 100%;
  padding: 0 13px;
  color: #111827;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 13px;
  outline: none;
}

.listing-tools input:focus,
.listing-tools select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.listing-tools button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  color: #ffffff;
  background: #111827;
  border-radius: 13px;
  font-weight: 900;
}

.filter-empty {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  text-align: center;
  color: #92400e;
  background: #fff7ed;
  border-radius: 18px;
}

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

.page-hero,
.detail-hero {
  padding: 84px max(24px, calc((100vw - 1180px) / 2));
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.18), transparent 28rem),
    linear-gradient(135deg, #ffffff 0%, #fff7ed 48%, #f8fafc 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.page-hero--rank {
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 25%, rgba(245, 158, 11, 0.30), transparent 24rem),
    linear-gradient(135deg, #111827 0%, #0f172a 55%, #3b0764 100%);
}

.page-hero--rank p {
  color: #e5e7eb;
}

.page-hero--rank .eyebrow {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.32);
}

.rank-page-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.rank-page-row {
  display: grid;
  grid-template-columns: 48px 74px minmax(0, 0.7fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.rank-page-row__num {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 50%;
  font-weight: 950;
}

.rank-page-row img {
  width: 74px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-page-row strong,
.rank-page-row em {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-page-row em {
  color: var(--color-muted);
  font-style: normal;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: #92400e;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
}

.detail-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.16);
}

.detail-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.detail-tags span {
  color: #7c2d12;
  background: #ffedd5;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 28px;
}

.player-card,
.detail-article,
.related-section,
.detail-meta-card {
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
}

.player-card {
  padding: 14px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 20px;
}

.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
  z-index: 1;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #020617;
  cursor: pointer;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.player-cover__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 22rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.68));
}

.player-cover__button {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.45);
}

.detail-article {
  padding: clamp(22px, 4vw, 38px);
}

.detail-article h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.12;
  font-weight: 950;
}

.detail-article p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 1.04rem;
}

.detail-article p:last-child {
  margin-bottom: 0;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.detail-meta-card {
  overflow: hidden;
}

.detail-meta-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-meta-card dl {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 18px;
}

.detail-meta-card dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line);
}

.detail-meta-card dt {
  color: var(--color-muted);
  font-weight: 900;
}

.detail-meta-card dd {
  margin: 0;
  font-weight: 800;
}

.detail-pills {
  padding: 0 18px 18px;
  margin-top: 0;
}

.side-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-radius: 16px;
  font-weight: 950;
  box-shadow: var(--shadow-card);
}

.side-link--dark {
  background: #111827;
}

.site-footer {
  color: #e5e7eb;
  background: #0f172a;
}

.site-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
}

.site-footer__brand {
  display: grid;
  gap: 12px;
  align-content: start;
}

.site-footer__brand .site-logo__mark {
  width: 38px;
  height: 38px;
}

.site-footer__brand strong {
  font-size: 1.2rem;
}

.site-footer__brand p {
  margin: 0;
  color: #cbd5e1;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-content: start;
}

.site-footer__links a {
  padding: 8px 12px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-weight: 800;
}

.site-footer__bottom {
  padding: 16px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  display: none;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  font-size: 1.4rem;
  font-weight: 950;
  cursor: pointer;
}

.back-top.is-visible {
  display: block;
}

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

  .menu-button {
    display: inline-flex;
  }

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

  .hero-slide__poster {
    display: none;
  }

  .hero-picks {
    display: none;
  }

  .section--split,
  .detail-layout,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .detail-side {
    position: static;
  }

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

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

  .site-footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header__inner {
    height: 66px;
  }

  .site-logo__text {
    font-size: 1rem;
  }

  .hero,
  .hero__slides {
    min-height: 610px;
  }

  .hero-slide {
    min-height: 610px;
    padding: 54px 20px 110px;
  }

  .hero-slide h1 {
    font-size: clamp(2.5rem, 16vw, 4.2rem);
  }

  .hero__controls {
    width: calc(100% - 32px);
    justify-content: center;
    bottom: 24px;
  }

  .section,
  .detail-layout {
    width: min(100% - 24px, 1180px);
  }

  .section,
  .section--dark {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .movie-grid,
  .movie-grid--featured,
  .movie-grid--compact,
  .category-grid,
  .category-overview-grid,
  .listing-tools {
    grid-template-columns: 1fr;
  }

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

  .rank-page-row em {
    grid-column: 3;
  }

  .page-hero,
  .detail-hero {
    padding: 54px 20px;
  }

  .player-cover__button {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }
}
