:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --border: rgba(148, 163, 184, 0.16);
  --muted: #94a3b8;
  --text: #e5e7eb;
  --white: #ffffff;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --shadow: 0 24px 60px rgba(8, 145, 178, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(34, 211, 238, 0.16),
      transparent 28rem
    ),
    radial-gradient(
      circle at 86% 6%,
      rgba(59, 130, 246, 0.14),
      transparent 30rem
    ),
    linear-gradient(180deg, #020617 0%, #07111f 42%, #020617 100%);
}

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

img {
  max-width: 100%;
}

img.image-hidden {
  opacity: 0;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.84);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #00131a;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), #38bdf8);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.28);
}

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

.brand-text strong,
.footer-brand strong {
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text em {
  margin-top: 4px;
  color: var(--cyan);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 600;
}

.nav-link {
  position: relative;
  padding: 24px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--cyan);
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: -18px;
  width: 210px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 14px;
}

.dropdown-panel a:hover {
  color: var(--cyan);
  background: rgba(51, 65, 85, 0.68);
}

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.large-search input,
.inline-search input {
  width: 260px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 11px 44px 11px 18px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.86);
  outline: none;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.inline-search input:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.98);
}

.header-search button,
.mobile-search button,
.large-search button {
  border: 0;
  cursor: pointer;
  color: white;
  background: var(--cyan-strong);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.header-search button {
  position: absolute;
  right: 4px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 20px;
}

.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover {
  transform: translateY(-1px);
  background: #0891b2;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #e2e8f0;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.96);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav,
.mobile-search {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 0;
}

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
}

.mobile-panel nav a:hover {
  color: var(--cyan);
}

.mobile-search {
  padding: 0 0 18px;
}

.mobile-search input {
  width: 100%;
}

.mobile-search button {
  padding: 10px 16px;
  border-radius: 999px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  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: linear-gradient(135deg, #0f172a, #020617);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
  opacity: 0.78;
}

.hero-backdrop span {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 74% 44%,
      rgba(34, 211, 238, 0.2),
      transparent 26rem
    ),
    linear-gradient(
      90deg,
      rgba(2, 6, 23, 0.98) 0%,
      rgba(2, 6, 23, 0.82) 48%,
      rgba(2, 6, 23, 0.28) 100%
    ),
    linear-gradient(0deg, #020617 0%, transparent 28%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 390px;
  align-items: center;
  gap: 52px;
  padding-top: 88px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.8);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: var(--white);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
}

.hero p {
  max-width: 700px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags,
.detail-meta,
.card-meta,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.hero-tags a,
.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

.hero-tags a,
.hero-tags span {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
}

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

.button-primary,
.button-ghost,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border 0.2s ease;
}

.button-primary {
  min-width: 132px;
  padding: 14px 26px;
  color: #00131a;
  background: linear-gradient(135deg, var(--cyan), #38bdf8);
  box-shadow: 0 18px 36px rgba(8, 145, 178, 0.26);
}

.button-ghost {
  padding: 13px 24px;
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.22);
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
}

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

.button-ghost:hover {
  border-color: rgba(34, 211, 238, 0.62);
  color: var(--cyan);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92),
    rgba(8, 47, 73, 0.75)
  );
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(34, 211, 238, 0.16);
  transform: perspective(900px) rotateY(-5deg) rotateX(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(226, 232, 240, 0.32);
  transition:
    background 0.2s ease,
    width 0.2s ease;
}

.hero-dot.is-active {
  width: 56px;
  background: var(--cyan);
}

.main-layout,
.page-shell {
  padding-top: 72px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: 24px;
  align-items: center;
  margin: -48px 0 72px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.search-panel h2,
.section-heading h2,
.site-footer h2,
.info-block h2,
.detail-aside h2 {
  margin: 0;
  color: var(--white);
  font-weight: 850;
}

.search-panel h2 {
  font-size: 26px;
}

.search-panel p,
.section-heading p,
.page-hero p,
.category-card-copy p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.search-panel p {
  margin: 8px 0 0;
}

.large-search {
  display: flex;
  gap: 10px;
}

.large-search input {
  width: 100%;
  padding-right: 18px;
}

.large-search button {
  min-width: 98px;
  border-radius: 999px;
  font-weight: 800;
}

.content-section {
  margin: 0 0 74px;
}

.section-shaded,
.rank-section {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.68),
    rgba(15, 23, 42, 0.32)
  );
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-heading p {
  margin: 8px 0 0;
}

.section-more,
.text-link {
  color: var(--cyan);
  font-size: 15px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.56);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.24s ease,
    border 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 28px 60px rgba(8, 145, 178, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #083344);
}

.movie-card-compact .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

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

.poster-shade,
.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 28%,
    rgba(2, 6, 23, 0.88) 100%
  );
}

.card-category,
.card-duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.card-category {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: var(--cyan);
  background: rgba(2, 6, 23, 0.75);
}

.card-duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.74);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #00131a;
  background: linear-gradient(135deg, var(--cyan), #38bdf8);
}

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

.movie-card-body h3 {
  margin: 0 0 9px;
  color: white;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h3 a:hover {
  color: var(--cyan);
}

.movie-card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
}

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

.card-meta {
  margin-bottom: 13px;
  color: #64748b;
  font-size: 12px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #475569;
}

.tag-row span,
.detail-tags span {
  padding: 5px 9px;
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #0f172a;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  color: white;
  font-size: 20px;
}

.category-tile em {
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.36);
  transition:
    transform 0.2s ease,
    border 0.2s ease,
    background 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(15, 23, 42, 0.7);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #00131a;
  font-weight: 900;
  background: var(--cyan);
}

.rank-row img {
  width: 88px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

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

.rank-content strong {
  color: white;
  font-size: 16px;
  line-height: 1.4;
}

.rank-content em {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
  line-height: 1.4;
}

.page-shell {
  min-height: 70vh;
}

.page-hero {
  padding: 84px 0 42px;
}

.compact-hero,
.category-hero,
.ranking-hero {
  padding-top: 118px;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 62px);
}

.page-hero p {
  max-width: 820px;
  margin: 16px 0 0;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb strong {
  color: #cbd5e1;
  font-weight: 600;
}

.inline-search {
  margin-top: 28px;
}

.inline-search input {
  width: min(100%, 540px);
  padding-right: 18px;
}

.category-listing {
  display: grid;
  gap: 22px;
  padding-bottom: 64px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.56);
}

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

.category-card-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #0f172a;
}

.category-card-copy h2 {
  margin: 0;
  color: white;
  font-size: 28px;
}

.category-card-copy h2 a:hover {
  color: var(--cyan);
}

.category-card-copy p {
  margin: 12px 0 18px;
}

.ranking-grid .movie-card:nth-child(-n + 3) .rank-badge {
  background: linear-gradient(135deg, #fbbf24, var(--cyan));
}

.empty-state {
  display: none;
  padding: 54px 20px;
  text-align: center;
  color: #94a3b8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.55);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 34px;
  padding-top: 116px;
}

.player-card {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 20px;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: white;
  background: radial-gradient(
    circle,
    rgba(2, 6, 23, 0.12),
    rgba(2, 6, 23, 0.66)
  );
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

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

.play-ring {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  color: #00131a;
  font-size: 34px;
  background: linear-gradient(135deg, var(--cyan), #38bdf8);
  box-shadow:
    0 0 0 12px rgba(34, 211, 238, 0.12),
    0 20px 44px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.player-overlay:hover .play-ring {
  transform: scale(1.08);
}

.detail-copy {
  padding: 28px 0 0;
}

.detail-copy h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.detail-meta {
  margin-top: 18px;
  color: #94a3b8;
  font-size: 14px;
}

.detail-meta a {
  color: var(--cyan);
}

.detail-meta span,
.detail-meta a {
  padding: 7px 11px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.54);
}

.lead-text {
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags {
  margin-top: 20px;
}

.info-block {
  margin-top: 26px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
}

.gradient-block {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.68),
    rgba(8, 47, 73, 0.34)
  );
}

.info-block h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.info-block p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
}

.detail-aside {
  min-width: 0;
}

.sticky-panel {
  position: sticky;
  top: 92px;
}

.sticky-panel h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.related-list {
  display: grid;
  gap: 16px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr;
  gap: 34px;
  padding: 46px 0;
}

.site-footer p {
  margin: 16px 0 0;
  max-width: 430px;
}

.site-footer h2 {
  margin-bottom: 16px;
  font-size: 18px;
}

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

.site-footer a {
  color: #94a3b8;
}

.site-footer a:hover {
  color: var(--cyan);
}

.footer-bottom {
  padding: 18px 0 26px;
  text-align: center;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }

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

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

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

  .sticky-panel {
    position: static;
  }

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

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
    min-height: 680px;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 112px;
    padding-bottom: 88px;
  }

  .hero-poster {
    width: min(74vw, 280px);
    transform: none;
  }

  .search-panel {
    grid-template-columns: 1fr;
    margin-top: -28px;
  }

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

  .large-search button {
    min-height: 46px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .category-grid,
  .rank-list,
  .related-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text em {
    display: none;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p,
  .page-hero p,
  .lead-text {
    font-size: 16px;
  }

  .section-shaded,
  .rank-section,
  .search-panel,
  .info-block {
    padding: 22px;
  }

  .movie-grid {
    gap: 16px;
  }

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

  .rank-row img {
    width: 74px;
    height: 54px;
  }

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

  .detail-layout {
    padding-top: 100px;
  }

  .play-ring {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
