:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.82);
  --bg-card-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(59, 130, 246, 0.24);
  --line-strong: rgba(34, 211, 238, 0.36);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --amber: #f59e0b;
  --pink: #ec4899;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.18), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(37, 99, 235, 0.16), transparent 28%),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.72), rgba(15, 23, 42, 0.92));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(1240px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, #38bdf8, #2563eb 55%, #22d3ee);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.24);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text {
  font-size: 1.35rem;
  background: linear-gradient(90deg, #60a5fa, #67e8f9, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link,
.dropdown-button {
  border: 0;
  background: transparent;
  color: #dbeafe;
  cursor: pointer;
  font-weight: 650;
  padding: 10px 0;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  color: #cbd5e1;
  border-radius: 10px;
  transition: 0.2s ease;
}

.dropdown-menu a:hover {
  color: var(--cyan);
  background: rgba(30, 64, 175, 0.36);
}

.nav-search {
  position: relative;
  width: min(280px, 28vw);
}

.nav-search input,
.library-search input,
.toolbar select {
  width: 100%;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  padding: 11px 48px 11px 16px;
}

.nav-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.nav-search input:focus,
.library-search input:focus,
.toolbar select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.92);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  padding: 10px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #dbeafe;
  border-radius: 99px;
}

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

.hero-stage {
  position: relative;
  height: clamp(520px, 72vh, 680px);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: end;
  gap: 48px;
  padding: 96px max(32px, calc((100vw - 1240px) / 2)) 76px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, #020617 100%),
    radial-gradient(circle at 74% 34%, rgba(34, 211, 238, 0.18), transparent 26%);
}

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

.hero-content {
  max-width: 740px;
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: white;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.hero h1 {
  margin: 20px 0 16px;
  max-width: 780px;
  color: white;
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-tags,
.detail-kicker,
.stat-row,
.pill-row,
.tag-row,
.genre-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.detail-kicker span,
.detail-kicker a,
.genre-row span,
.genre-row a,
.pill-row span,
.pill-row a {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.86rem;
}

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

.primary-button,
.ghost-button,
.library-search button,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.library-search button {
  min-height: 46px;
  padding: 0 26px;
  color: white;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.ghost-button {
  min-height: 46px;
  padding: 0 24px;
  color: #dbeafe;
  border: 1px solid rgba(191, 219, 254, 0.24);
  background: rgba(15, 23, 42, 0.54);
}

.primary-button:hover,
.ghost-button:hover,
.library-search button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  align-self: center;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(125, 211, 252, 0.24);
  transform: perspective(900px) rotateY(-7deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 2.2rem;
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.52);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(14, 165, 233, 0.65);
  transform: translateY(-50%) scale(1.05);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 36px;
  background: var(--cyan);
}

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

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

.section-heading h2,
.toolbar h2 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
}

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

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

.category-tile {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  color: white;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.category-tile.cyan {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.category-tile.blue {
  background: linear-gradient(135deg, #1d4ed8, #4f46e5);
}

.category-tile.pink {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

.category-tile.amber {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.category-icon {
  font-size: 2.45rem;
}

.category-tile strong {
  font-size: 1.1rem;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  font-size: 0.9rem;
}

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

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

.all-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.76), rgba(15, 23, 42, 0.92));
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.34);
}

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

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.9));
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  color: white;
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.82);
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.34);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-card h3 a {
  transition: color 0.2s ease;
}

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

.movie-card p {
  min-height: 50px;
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.genre-row span,
.genre-row a {
  padding: 5px 9px;
  font-size: 0.76rem;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  color: #a5b4fc;
  font-size: 0.78rem;
}

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

.movie-card.compact p {
  display: none;
}

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

.ranking-panel,
.side-card,
.player-card,
.detail-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.76), rgba(15, 23, 42, 0.94));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.ranking-panel {
  padding: 22px;
}

.compact-heading {
  margin-bottom: 18px;
}

.compact-heading h2 {
  font-size: 1.65rem;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 42px 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.42);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
  background: rgba(30, 64, 175, 0.26);
  transform: translateX(4px);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.ranking-row:nth-child(n+4) .rank-number {
  background: #334155;
  color: #cbd5e1;
}

.ranking-row img {
  width: 78px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

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

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

.rank-copy strong {
  overflow: hidden;
  color: white;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.rank-action {
  min-height: 34px;
  padding: 0 14px;
  color: white;
  background: rgba(14, 165, 233, 0.22);
  border: 1px solid rgba(125, 211, 252, 0.26);
  font-size: 0.82rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.slim-hero,
.category-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(8, 47, 73, 0.62)),
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.18), transparent 30%);
}

.page-hero-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.page-hero h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 1.1rem;
  line-height: 1.8;
}

.library-search {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin-top: 28px;
}

.library-search input {
  min-height: 50px;
  padding: 0 18px;
}

.genre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.genre-links a {
  color: #e0f2fe;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  padding: 8px 13px;
  transition: 0.2s ease;
}

.genre-links a:hover {
  color: white;
  background: rgba(14, 165, 233, 0.38);
}

.toolbar {
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.64);
}

.toolbar h2 {
  font-size: 1.8rem;
}

.toolbar select {
  width: 170px;
  min-height: 44px;
  padding: 0 14px;
}

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

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

.wide-list .ranking-row {
  grid-template-columns: 52px 108px minmax(0, 1fr) auto;
}

.wide-list .ranking-row img {
  width: 108px;
  height: 70px;
}

.detail-page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 70px;
}

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

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

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
  background: black;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 22px 48px rgba(14, 165, 233, 0.36);
  font-size: 2.6rem;
  text-indent: 5px;
}

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

.detail-copy {
  padding: 28px;
}

.detail-kicker {
  margin-bottom: 16px;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.lead-text {
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 1.08rem;
  line-height: 1.85;
}

.stat-row {
  padding: 16px 0;
  color: var(--muted);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.pill-row {
  margin-top: 20px;
}

.story-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.story-block h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.story-block p {
  margin: 0;
  color: var(--soft);
  line-height: 1.95;
}

.review-block p {
  padding: 20px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.66);
}

.detail-tags span {
  color: #bfdbfe;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  padding: 6px 11px;
}

.side-card {
  padding: 22px;
}

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

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

.related-mini {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.44);
  transition: 0.2s ease;
}

.related-mini:hover {
  background: rgba(30, 64, 175, 0.28);
}

.related-mini img {
  width: 112px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.related-mini strong,
.related-mini em {
  display: block;
}

.related-mini strong {
  overflow: hidden;
  color: white;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-mini em {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.detail-related {
  width: 100%;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.74), #020617);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: white;
  font-weight: 900;
  font-size: 1.3rem;
}

.footer-inner p {
  max-width: 620px;
  margin: 0;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #bfdbfe;
}

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

.is-hidden {
  display: none !important;
}

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

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

  .sticky-side {
    position: static;
  }

  .hero-slide {
    grid-template-columns: 1fr 280px;
  }
}

@media (max-width: 820px) {
  .navbar {
    height: 64px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-search {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: 8px;
  }

  .hero-stage {
    height: 680px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-items: end;
    gap: 24px;
    padding: 76px 22px 68px;
  }

  .hero-poster {
    display: none;
  }

  .hero-control {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .hero-control:hover {
    transform: scale(1.05);
  }

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

  .section-heading,
  .toolbar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .library-search button {
    min-height: 48px;
  }

  .ranking-row,
  .wide-list .ranking-row {
    grid-template-columns: 42px 76px minmax(0, 1fr);
  }

  .ranking-row .rank-action {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 1.05rem;
  }

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.03em;
  }

  .content-section,
  .detail-page,
  .page-hero-inner,
  .footer-inner {
    width: min(100% - 24px, 1240px);
  }

  .category-grid,
  .movie-grid,
  .latest-grid,
  .all-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-copy {
    padding: 22px;
  }

  .stat-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .related-mini {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .related-mini img {
    width: 96px;
    height: 64px;
  }
}
