:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(34, 211, 238, 0.32);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --soft: #64748b;
  --white: #ffffff;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --amber: #f59e0b;
  --purple: #a855f7;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.52);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(34, 211, 238, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 8%, rgba(59, 130, 246, 0.16), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(2, 6, 23, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.26);
}

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

.brand-copy strong,
.footer-logo strong {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.desktop-nav a,
.mobile-nav a {
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.nav-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text);
  background: rgba(15, 23, 42, 0.74);
  border-radius: 999px;
  padding: 11px 15px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  width: 230px;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
  background: rgba(15, 23, 42, 0.96);
}

.nav-search button,
.mobile-search button,
.search-page-form button,
.primary-action,
.detail-watch-button {
  border: 0;
  color: var(--white);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 34px rgba(34, 211, 238, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.primary-action:hover,
.detail-watch-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 48px rgba(34, 211, 238, 0.28);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.86);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
  margin: 5px 0;
}

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

.mobile-nav,
.mobile-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.mobile-category-links a,
.page-hero-links a,
.secondary-action,
.detail-tags a,
.tag-row span,
.hero-tags span,
.hero-extra-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(8, 145, 178, 0.08);
  color: #a5f3fc;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.84rem;
  font-weight: 700;
}

.main-content {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 98px;
}

.hero-slider {
  position: relative;
  min-height: 660px;
  margin-top: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72)),
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.22), transparent 25rem);
  box-shadow: var(--shadow);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 48% 32%, black, transparent 76%);
  opacity: 0.26;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  gap: 54px;
  align-items: center;
  padding: 74px;
  transition: opacity 0.5s ease;
}

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

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 45%, rgba(2, 6, 23, 0.52) 100%),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.04);
  opacity: 0.72;
}

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

.hero-tags,
.hero-extra-tags,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-content h1 {
  margin: 24px 0 18px;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: var(--white);
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-intro {
  max-width: 720px;
  color: #f8fafc;
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  line-height: 1.55;
  font-weight: 700;
}

.hero-summary {
  max-width: 760px;
  margin: 16px 0 22px;
  color: #cbd5e1;
  line-height: 1.75;
  font-size: 1rem;
}

.hero-actions {
  margin-top: 28px;
}

.secondary-action {
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  padding: 11px 18px;
}

.hero-poster {
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.24), rgba(59, 130, 246, 0.12));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
}

.hero-controls button {
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.2rem;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dots button.is-active {
  width: 24px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.quick-panel,
.page-hero,
.detail-card,
.side-card,
.player-card,
.search-panel,
.filter-panel,
.ranking-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.25);
  backdrop-filter: blur(14px);
}

.quick-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 28px 0 68px;
  padding: 22px;
}

.quick-panel span,
.section-kicker,
.page-hero > span,
.detail-kicker {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: 1.1rem;
}

.quick-panel nav,
.page-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-panel nav a {
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(15, 23, 42, 0.82);
}

.quick-panel nav a:hover,
.page-hero-links a:hover,
.page-hero-links a.is-current {
  border-color: rgba(34, 211, 238, 0.48);
  color: var(--cyan);
}

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

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

.section-heading h2 {
  margin: 4px 0 0;
  color: var(--white);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.section-more {
  color: var(--cyan);
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.18);
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.36);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(59, 130, 246, 0.12));
}

.movie-card-large .poster-link {
  aspect-ratio: 16 / 11;
}

.poster-link img,
.side-poster img,
.play-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.03), rgba(2, 6, 23, 0.72));
}

.type-pill,
.year-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 9px;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.type-pill {
  top: 12px;
  left: 12px;
  color: #a5f3fc;
}

.year-pill {
  right: 12px;
  bottom: 12px;
  color: #e2e8f0;
}

.rank-badge {
  right: 12px;
  top: 12px;
  min-width: 34px;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber), #ef4444);
}

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

.movie-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  color: var(--white);
  font-weight: 850;
  font-size: 1.03rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: var(--cyan);
}

.movie-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 10px 0 12px;
  min-height: 3em;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.55;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: #475569;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span {
  font-size: 0.76rem;
  padding: 5px 9px;
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.68);
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.62)),
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.17), transparent 18rem);
  transition: transform 0.25s ease, border 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.4);
}

.category-stack {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  opacity: 0.28;
}

.category-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
}

.category-copy span {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.category-copy h3 {
  margin: 8px 0;
  color: var(--white);
  font-size: 1.55rem;
}

.category-copy p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.page-layout {
  padding-top: 118px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 42px;
  margin-bottom: 40px;
  background:
    radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.18), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72));
}

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

.page-hero h1 {
  margin: 10px 0 12px;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0 0 24px;
  color: #cbd5e1;
  line-height: 1.78;
  font-size: 1.04rem;
}

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

.breadcrumb a {
  color: #a5f3fc;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.filter-panel select {
  border-radius: 16px;
}

.empty-state {
  display: none;
  margin: 26px 0 0;
  color: var(--muted);
  text-align: center;
}

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

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

.ranking-side {
  position: sticky;
  top: 104px;
  padding: 20px;
}

.ranking-side h2,
.side-card h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 1.25rem;
}

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

.compact-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.3);
}

.compact-card img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(34, 211, 238, 0.12);
}

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

.compact-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--white);
}

.compact-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.mini-rank {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(34, 211, 238, 0.18);
  font-weight: 900;
}

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

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

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
  background: rgba(2, 6, 23, 0.76);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.78)),
    radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 18rem);
}

.play-cover button {
  position: relative;
  z-index: 4;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.98), rgba(59, 130, 246, 0.98));
  box-shadow: 0 24px 70px rgba(34, 211, 238, 0.32);
}

.play-cover button span {
  display: block;
  margin-left: 6px;
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid #fff;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 5;
  margin: 0;
  color: #fecaca;
  font-weight: 800;
}

.player-message:empty {
  display: none;
}

.detail-card {
  padding: 28px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.detail-title-row h1 {
  margin: 8px 0 0;
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.7);
}

.detail-one-line {
  color: #f8fafc;
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.7;
}

.detail-card h2 {
  margin: 28px 0 10px;
  color: var(--white);
  font-size: 1.35rem;
}

.detail-card p {
  color: #cbd5e1;
  line-height: 1.85;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.detail-side {
  position: sticky;
  top: 104px;
}

.side-poster {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(34, 211, 238, 0.12);
  box-shadow: var(--shadow);
}

.side-poster img {
  aspect-ratio: 3 / 4;
}

.side-card {
  padding: 18px;
  margin-top: 18px;
}

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

.search-panel {
  padding: 24px;
}

.search-page-form {
  margin-bottom: 24px;
}

.search-page-form input {
  flex: 1;
  border-radius: 18px;
  padding: 15px 17px;
}

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

.site-footer {
  margin-top: 92px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.76);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 1fr 1fr;
  gap: 30px;
  padding: 46px 0;
}

.footer-logo p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1rem;
}

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

.footer-column a {
  color: var(--muted);
}

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 20px 0 30px;
  color: var(--soft);
  font-size: 0.9rem;
}

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

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

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

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

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

  .detail-side,
  .ranking-side {
    position: static;
  }
}

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

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

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

  .main-content,
  .page-layout {
    padding-top: 94px;
  }

  .hero-slider {
    min-height: 760px;
    border-radius: 26px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 34px 24px 86px;
  }

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

  .quick-panel,
  .section-heading,
  .detail-title-row,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-panel {
    align-items: stretch;
  }

  .movie-grid,
  .featured-grid,
  .related-grid,
  .search-result-grid,
  .category-grid,
  .category-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .nav-shell,
  .main-content,
  .mobile-panel,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1240px);
  }

  .brand-copy small {
    display: none;
  }

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

  .hero-slider {
    min-height: 700px;
    margin-top: 10px;
  }

  .hero-content h1 {
    font-size: 2.45rem;
  }

  .hero-summary {
    display: none;
  }

  .page-hero,
  .detail-card,
  .search-panel {
    padding: 22px;
  }

  .movie-grid,
  .featured-grid,
  .related-grid,
  .search-result-grid,
  .category-grid,
  .category-grid-wide {
    grid-template-columns: 1fr;
  }

  .movie-card-large .poster-link {
    aspect-ratio: 3 / 4;
  }

  .search-page-form {
    flex-direction: column;
    align-items: stretch;
  }
}
