:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.55);
  --line: rgba(148, 163, 184, 0.16);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --amber: #f59e0b;
  --orange: #f97316;
  --danger: #ef4444;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.12), transparent 28rem),
    radial-gradient(circle at 90% 6%, rgba(249, 115, 22, 0.12), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 85%);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(2, 6, 23, 0.92);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.28);
}

.logo-text {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  background: linear-gradient(90deg, #fbbf24, #fb923c, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.16));
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.76);
  color: #ffffff;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

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

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
}

.mobile-nav-link:hover {
  background: rgba(245, 158, 11, 0.12);
}

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

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

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

.hero-bg,
.hero-bg::after,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.82));
}

.hero-bg::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.35) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.38) 42%, rgba(2, 6, 23, 0.35) 100%);
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.05);
}

.hero-overlay {
  background:
    radial-gradient(circle at 18% 44%, rgba(245, 158, 11, 0.18), transparent 20rem),
    radial-gradient(circle at 78% 24%, rgba(249, 115, 22, 0.15), transparent 18rem);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 760px;
  margin: 0 auto;
  padding: 116px 0 96px;
}

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

.hero-badges,
.detail-badges,
.movie-card-kicker,
.hero-tags,
.detail-tags,
.movie-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-badges span,
.detail-badges span,
.movie-card-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero h1 {
  max-width: 820px;
  margin: 22px 0 16px;
  color: #ffffff;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.07em;
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.5);
}

.hero-one-line {
  max-width: 760px;
  color: #f8fafc;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.45;
}

.hero-summary {
  max-width: 700px;
  margin-top: 18px;
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.9;
}

.hero-tags,
.detail-tags,
.movie-card-tags {
  margin-top: 16px;
}

.hero-tags span,
.detail-tags span,
.movie-card-tags span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.72);
  font-size: 0.8rem;
}

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

.primary-button,
.ghost-button,
.section-link,
.ranking-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  min-height: 50px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.28);
}

.ghost-button,
.section-link {
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--line);
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.ranking-play:hover {
  transform: translateY(-2px);
}

.hero-poster-card {
  position: relative;
  display: block;
  overflow: hidden;
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.9));
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  z-index: 2;
  pointer-events: none;
}

.hero-poster-image,
.detail-poster-image,
.poster-image,
.category-card-image,
.ranking-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.image-missing {
  opacity: 0;
}

.play-ring {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.34);
}

.hero-controls {
  position: absolute;
  right: 50%;
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(50%);
}

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

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.3s ease, background 0.3s ease;
}

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

.stats-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 36px;
  position: relative;
  z-index: 5;
}

.inner-stats {
  margin-top: 0;
}

.stat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.stat-card strong {
  display: block;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.content-section,
.page-main {
  width: min(1180px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.content-section {
  padding: 58px 0;
}

.muted-section {
  position: relative;
}

.muted-section::before {
  content: "";
  position: absolute;
  top: 18px;
  right: calc(50% - 50vw);
  bottom: 18px;
  left: calc(50% - 50vw);
  z-index: -1;
  border-block: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(15, 23, 42, 0.32);
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.category-overview-head h2,
.detail-card h1 {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p,
.page-hero p,
.category-overview-head p {
  max-width: 700px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.8;
}

.movie-grid,
.featured-grid,
.category-grid,
.mini-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link,
.category-card,
.category-overview-card,
.detail-card,
.info-box,
.player-panel,
.poster-detail-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card-link:hover {
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(245, 158, 11, 0.08);
  transform: translateY(-5px);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.88));
}

.movie-card-wide .poster-frame {
  aspect-ratio: 16 / 9;
}

.movie-card-link:hover .poster-image,
.category-card:hover .category-card-image {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent);
}

.poster-meta,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.poster-meta {
  right: 12px;
  bottom: 12px;
  min-height: 28px;
  padding: 4px 9px;
  background: rgba(15, 23, 42, 0.82);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

.movie-card-kicker {
  gap: 6px;
  margin-bottom: 10px;
}

.movie-card-kicker span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 0.72rem;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 2.6em;
  overflow: hidden;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card p {
  display: -webkit-box;
  min-height: 4.8em;
  margin-top: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.movie-card-tags {
  min-height: 26px;
}

.movie-card-tags span {
  padding: 3px 7px;
  font-size: 0.72rem;
}

.category-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 28px;
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.9));
}

.category-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.3));
}

.category-card-content {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
}

.category-card-content span,
.category-overview-head span {
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 900;
}

.category-card-content h3 {
  margin: 8px 0;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
}

.category-card-content p {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.65;
}

.page-main {
  padding-top: 112px;
  padding-bottom: 72px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 34px;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 158, 11, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.45));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.02;
}

.page-section {
  padding-top: 20px;
}

.filter-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
}

.filter-input-wrap {
  display: grid;
  flex: 1;
  gap: 8px;
  color: var(--muted-strong);
  font-weight: 800;
}

.filter-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  outline: none;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.62);
}

.filter-input:focus {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.filter-count {
  white-space: nowrap;
  color: var(--muted);
}

.filter-count strong {
  color: #fbbf24;
}

.empty-tip {
  margin-top: 24px;
  padding: 18px;
  border: 1px dashed rgba(245, 158, 11, 0.36);
  border-radius: 18px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.08);
}

.category-overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  padding: 24px;
  border-radius: 28px;
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-item a {
  display: grid;
  grid-template-columns: 64px 86px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.ranking-item a:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateX(4px);
}

.ranking-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(249, 115, 22, 0.95));
  font-weight: 950;
}

.ranking-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.88));
}

.ranking-info h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
}

.ranking-info p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: #fcd34d;
  font-size: 0.82rem;
}

.ranking-play {
  min-height: 38px;
  padding: 0 14px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.88);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

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

.detail-primary {
  display: grid;
  gap: 24px;
}

.player-panel,
.detail-card,
.info-box,
.poster-detail-card {
  overflow: hidden;
  border-radius: 28px;
}

.static-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  gap: 12px;
  place-items: center;
  align-content: center;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(rgba(2, 6, 23, 0.36), rgba(2, 6, 23, 0.8)),
    radial-gradient(circle, rgba(245, 158, 11, 0.16), transparent 22rem);
  cursor: pointer;
}

.player-play-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.34);
  font-size: 2rem;
}

.player-status {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 4;
  padding: 10px 12px;
  border-radius: 14px;
  color: #fde68a;
  background: rgba(2, 6, 23, 0.74);
  font-size: 0.88rem;
  text-align: center;
}

.player-status.error {
  color: #fecaca;
}

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

.detail-card h1 {
  margin-top: 14px;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 1.06;
}

.detail-one-line {
  margin-top: 16px;
  color: #f8fafc;
  font-size: 1.16rem;
  line-height: 1.72;
}

.text-block {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.text-block h2,
.info-box h2 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
}

.text-block p {
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 2;
  white-space: pre-line;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.poster-detail-card {
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.9));
}

.info-box {
  padding: 22px;
}

.info-box dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-box div {
  display: grid;
  gap: 5px;
}

.info-box dt {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
}

.info-box dd {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.55;
}

.info-box a {
  color: #fbbf24;
}

.related-section {
  width: 100%;
  margin-top: 18px;
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 36px;
}

.footer-logo {
  margin-bottom: 16px;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}

.site-footer p,
.site-footer li,
.footer-bottom {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #fbbf24;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

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

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

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

  .hero-poster-card {
    display: none;
  }

  .detail-sidebar {
    position: static;
    grid-template-columns: 220px 1fr;
  }
}

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

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

  .site-header.menu-open .mobile-nav {
    display: block;
  }

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

  .hero-content {
    padding-top: 100px;
    padding-bottom: 90px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 18px;
  }

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

  .section-heading,
  .category-overview-head,
  .filter-bar,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .ranking-item a {
    grid-template-columns: 46px 70px minmax(0, 1fr);
  }

  .ranking-play {
    display: none;
  }

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

@media (max-width: 560px) {
  .header-inner {
    height: 68px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

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

  .hero h1 {
    font-size: clamp(2.5rem, 15vw, 4.3rem);
  }

  .hero-summary {
    display: none;
  }

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

  .stats-strip,
  .movie-grid,
  .featured-grid,
  .category-grid,
  .compact-grid,
  .mini-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-main {
    padding-top: 92px;
  }

  .page-hero {
    padding: 28px;
    border-radius: 24px;
  }

  .movie-card h3 {
    min-height: auto;
  }

  .movie-card p {
    min-height: auto;
  }

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

  .ranking-poster {
    display: none;
  }
}
