:root {
  --page: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(59, 130, 246, 0.16);
  --line-strong: rgba(96, 165, 250, 0.34);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --blue-soft: rgba(59, 130, 246, 0.18);
  --cyan-soft: rgba(34, 211, 238, 0.14);
  --shadow: 0 26px 80px rgba(15, 23, 42, 0.52);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.2), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(34, 211, 238, 0.14), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.72);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 70vh;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.9));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(20px);
}

.nav-inner {
  width: min(1200px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.35);
}

.brand-text {
  font-size: clamp(21px, 2vw, 28px);
  background: linear-gradient(90deg, #60a5fa, #67e8f9, #38bdf8);
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: var(--muted);
  border-radius: 14px;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.nav-link {
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.18);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22), 0 10px 28px rgba(37, 99, 235, 0.18);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #e2e8f0;
}

.mobile-menu {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-menu.is-open {
  display: grid;
  gap: 6px;
}

.mobile-link {
  padding: 12px 14px;
  font-weight: 700;
}

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

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.04);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.78) 34%, rgba(2, 6, 23, 0.32) 70%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 42%, rgba(2, 6, 23, 0.76) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 170px;
}

.hero-copy {
  width: min(760px, 100%);
}

.hero-badges,
.hero-meta,
.hero-actions,
.hero-category-strip,
.tag-row,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.hero-badges span:first-child {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #06b6d4);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.22);
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.07em;
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.58);
}

.hero-desc {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hero-meta {
  margin-bottom: 28px;
  color: #e2e8f0;
}

.hero-meta span {
  padding-left: 14px;
  position: relative;
}

.hero-meta span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateY(-50%);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 15px;
  border: 1px solid transparent;
  font-weight: 850;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #06b6d4);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.button-primary:hover {
  box-shadow: 0 22px 46px rgba(37, 99, 235, 0.42);
}

.button-ghost {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.64);
  border-color: rgba(96, 165, 250, 0.24);
}

.button-ghost:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(125, 211, 252, 0.4);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 44px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(96, 165, 250, 0.18);
  font-size: 38px;
  transform: translateY(-50%);
  user-select: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-control:hover {
  background: rgba(37, 99, 235, 0.45);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(226, 232, 240, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 30px;
  background: #60a5fa;
}

.hero-search {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 46px;
  width: min(720px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  color: #ffffff;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 15px;
  background: rgba(2, 6, 23, 0.62);
  outline: none;
}

.hero-search input {
  padding: 0 16px;
}

.hero-search button {
  min-width: 104px;
  border: 0;
  border-radius: 15px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), #06b6d4);
}

.hero-category-strip {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 8px;
  justify-content: center;
  width: min(900px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-category-strip a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(96, 165, 250, 0.14);
  font-size: 13px;
}

.home-stack {
  padding-top: 64px;
  padding-bottom: 72px;
}

.section {
  margin: 0 0 72px;
}

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

.eyebrow {
  margin: 0 0 8px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2,
.page-hero h1,
.detail-copy h1,
.player-section h2,
.detail-text h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-head p:last-child,
.page-hero p,
.footer-brand p,
.detail-one-line {
  color: var(--muted);
  line-height: 1.75;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.6));
  box-shadow: 0 16px 50px rgba(2, 6, 23, 0.3);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.56);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #0f172a;
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.85), transparent);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.play-chip {
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  background: rgba(37, 99, 235, 0.82);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.26);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #93c5fd;
}

.card-meta,
.card-desc {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
}

.card-desc {
  min-height: 42px;
  margin-top: 8px;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  min-height: auto;
  padding: 4px 8px;
  font-size: 12px;
}

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

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 52px rgba(2, 6, 23, 0.34);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card.wide {
  min-height: 260px;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(125, 211, 252, 0.46);
}

.category-card img,
.category-glow {
  position: absolute;
  inset: 0;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.12);
  transition: transform 0.45s ease;
}

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

.category-glow {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.32));
}

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

.category-card strong {
  font-size: 24px;
}

.category-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 46px 72px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.rank-row:hover {
  transform: translateX(6px);
  border-color: rgba(125, 211, 252, 0.38);
  background: rgba(30, 41, 59, 0.86);
}

.rank-number {
  color: #67e8f9;
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.rank-row img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-info {
  display: grid;
  gap: 6px;
}

.rank-info strong {
  font-size: 18px;
}

.rank-info em,
.rank-action {
  color: var(--soft);
  font-style: normal;
}

.rank-action {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
}

.section-more {
  margin-top: 24px;
  text-align: center;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 62px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 20%, rgba(59, 130, 246, 0.26), transparent 28rem),
    radial-gradient(circle at 84% 4%, rgba(34, 211, 238, 0.18), transparent 26rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.7));
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 6vw, 72px);
}

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

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--soft);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #93c5fd;
}

.filter-panel {
  margin: 30px 0;
  padding: 18px;
  border: 1px solid rgba(96, 165, 250, 0.17);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 20px 54px rgba(2, 6, 23, 0.25);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 190px)) auto;
  gap: 12px;
  align-items: end;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  padding: 0 13px;
}

.empty-state {
  display: none;
  margin: 36px 0 72px;
  padding: 28px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.68);
}

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

.ranking-grid {
  display: grid;
  gap: 12px;
  padding-bottom: 72px;
}

.ranking-card a {
  display: grid;
  grid-template-columns: 58px 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.ranking-card a:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.38);
}

.ranking-index {
  color: #67e8f9;
  font-size: 25px;
  font-weight: 950;
  text-align: center;
}

.ranking-card img {
  width: 76px;
  height: 102px;
  object-fit: cover;
  border-radius: 15px;
}

.ranking-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ranking-info strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-info em,
.ranking-info small {
  color: var(--soft);
  font-style: normal;
}

.ranking-info small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.6;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 132px 0 70px;
  background: #020617;
}

.detail-hero > img,
.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.16);
  opacity: 0.36;
  transform: scale(1.08);
}

.detail-backdrop {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.28) 54%, rgba(2, 6, 23, 0.84) 100%);
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.poster-large-wrap {
  padding: 10px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: var(--shadow);
}

.poster-large {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.detail-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.02;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: 20px;
}

.detail-meta {
  margin-bottom: 14px;
}

.detail-tags {
  margin-bottom: 28px;
}

.detail-main {
  padding-bottom: 80px;
}

.player-section {
  margin-top: -48px;
  position: relative;
  z-index: 3;
}

.player-section h2,
.detail-text h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 3vw, 38px);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.3), rgba(2, 6, 23, 0.76));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-start {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #06b6d4);
  box-shadow: 0 24px 56px rgba(37, 99, 235, 0.46);
  font-size: 34px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.player-start:hover {
  transform: scale(1.08);
  box-shadow: 0 28px 70px rgba(37, 99, 235, 0.6);
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(20px, 4vw, 34px);
  text-align: center;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.detail-text {
  margin: 48px 0;
  padding: 30px;
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
}

.detail-text p {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 17px;
}

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

.related-section {
  margin-bottom: 0;
}

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

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  gap: 26px;
}

.footer-brand {
  max-width: 720px;
}

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

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(96, 165, 250, 0.13);
}

.footer-links a:hover {
  color: #ffffff;
  border-color: rgba(125, 211, 252, 0.36);
}

.copyright {
  margin: 0;
  color: var(--soft);
}

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

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    padding: 120px 0 205px;
    align-items: flex-end;
  }

  .hero-control {
    display: none;
  }

  .hero-search {
    grid-template-columns: 1fr;
    bottom: 60px;
  }

  .hero-dots {
    bottom: 160px;
  }

  .hero-category-strip {
    bottom: 10px;
    max-height: 42px;
    overflow: hidden;
  }

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

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

  .section {
    margin-bottom: 52px;
  }

  .rank-row {
    grid-template-columns: 34px 58px 1fr;
  }

  .rank-row img {
    width: 58px;
    height: 78px;
  }

  .rank-action {
    display: none;
  }

  .page-hero {
    padding-top: 124px;
  }

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

  .detail-hero {
    min-height: auto;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .poster-large-wrap {
    width: min(260px, 72vw);
  }

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

  .ranking-card img {
    width: 62px;
    height: 84px;
  }
}

@media (max-width: 460px) {
  .container,
  .nav-inner,
  .footer-inner,
  .mobile-menu {
    width: min(100% - 22px, 1200px);
  }

  .hero h1,
  .detail-copy h1 {
    letter-spacing: -0.05em;
  }

  .movie-grid {
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-desc,
  .tag-row {
    display: none;
  }
}
