:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --indigo: #818cf8;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(96, 165, 250, 0.18), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.36);
  color: var(--cyan);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.18);
}

.brand-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--soft);
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

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

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.hero {
  width: min(1280px, calc(100% - 32px));
  margin: 26px auto 0;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

.hero-carousel,
.hero-panel,
.page-hero,
.category-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-carousel {
  min-height: 680px;
  border-radius: 34px;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(1.018);
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.1) contrast(1.08);
}

.hero-shade,
.detail-overlay,
.category-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 44%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, transparent 52%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 42px;
  padding: 62px;
}

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

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

.hero h1,
.page-hero h1,
.category-hero h1,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero p,
.page-hero p,
.category-hero p,
.detail-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.inline-search button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  color: #06111f;
  font-weight: 900;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 42px rgba(34, 211, 238, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover,
.hero-search button:hover,
.inline-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 58px rgba(34, 211, 238, 0.28);
}

.ghost-btn {
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: none;
}

.hero-poster {
  align-self: center;
  display: block;
  padding: 12px;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(96, 165, 250, 0.12));
}

.hero-poster span {
  display: block;
  padding: 12px 4px 2px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: 62px;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  cursor: pointer;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 999px;
  padding: 0;
  background: rgba(148, 163, 184, 0.45);
}

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

.hero-panel {
  min-height: 680px;
  border-radius: 30px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(18px);
}

.hero-search label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

.hero-search div,
.inline-search,
.search-box {
  display: flex;
  gap: 10px;
}

.hero-search input,
.inline-search input,
.search-box input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  outline: none;
  color: var(--text);
  background: rgba(2, 6, 23, 0.62);
}

.hero-search input:focus,
.inline-search input:focus,
.search-box input:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.quick-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.quick-cats a {
  padding: 12px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.quick-cats a:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.44);
  transform: translateY(-2px);
}

.mini-ranking h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.34);
}

.rank-num {
  color: var(--cyan);
  font-weight: 900;
}

.rank-item img {
  width: 44px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(96, 165, 250, 0.12);
}

.rank-title {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--muted);
  font-size: 12px;
}

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

.alt-section,
.ranking-section {
  background: rgba(15, 23, 42, 0.45);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

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

.section-heading span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.section-heading p {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  flex: none;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
}

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

.movie-card {
  min-width: 0;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card a {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(96, 165, 250, 0.12)),
    #0f172a;
  overflow: hidden;
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.06);
}

.poster-frame figcaption {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card-content {
  padding: 14px;
}

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

.movie-card h3 {
  min-height: 46px;
  margin: 9px 0 8px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.035em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.compact h3 {
  font-size: 16px;
}

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

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

.category-tile,
.category-card-large a {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.2);
}

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

.category-tile::after,
.category-card-large a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.92) 88%);
}

.category-tile:hover img {
  transform: scale(1.06);
  opacity: 0.48;
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.category-tile p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.7;
}

.page-hero,
.category-hero,
.detail-hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.98));
}

.compact-hero {
  min-height: 360px;
  padding-top: 20px;
}

.inline-search {
  width: min(620px, 100%);
  margin-top: 28px;
}

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

.category-card-large a {
  min-height: 310px;
  padding: 0;
}

.category-covers {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  opacity: 0.48;
}

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

.category-info {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.category-info span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.category-info h2 {
  margin: 8px 0;
  font-size: 26px;
  letter-spacing: -0.05em;
}

.category-info p {
  margin: 0;
  color: var(--soft);
  line-height: 1.7;
}

.category-hero,
.detail-hero {
  min-height: 540px;
}

.category-hero > img,
.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.category-hero-content,
.detail-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.62);
}

.sticky-toolbar {
  position: sticky;
  top: 88px;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--soft);
  background: rgba(30, 41, 59, 0.72);
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: #06111f;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-color: transparent;
}

.empty-state {
  margin: 36px 0 0;
  padding: 24px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--soft);
  text-align: center;
}

.ranking-grid {
  display: grid;
  gap: 16px;
}

.ranking-card a {
  display: grid;
  grid-template-columns: 68px 126px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.68);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-card a:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.42);
}

.ranking-badge {
  font-size: 28px;
  font-weight: 950;
  color: var(--cyan);
}

.ranking-card img {
  width: 126px;
  height: 168px;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(96, 165, 250, 0.12);
}

.ranking-card span:not(.ranking-badge) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ranking-card h2 {
  margin: 8px 0;
  font-size: 26px;
  letter-spacing: -0.05em;
}

.ranking-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.75;
}

.detail-layout-section {
  padding: 34px 0 72px;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-card,
.detail-panel,
.side-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 0 20px 70px rgba(2, 6, 23, 0.2);
}

.player-card {
  overflow: hidden;
}

.movie-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.movie-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  z-index: 1;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--text);
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.2), transparent 26rem),
    rgba(2, 6, 23, 0.55);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 999px;
  color: #06111f;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 54px rgba(34, 211, 238, 0.42);
  font-size: 26px;
}

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

.detail-panel,
.side-card {
  padding: 24px;
}

.detail-panel h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.045em;
}

.detail-panel p {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.9;
}

.movie-info {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.movie-info div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.movie-info dt {
  color: var(--muted);
  font-weight: 800;
}

.movie-info dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.large-tags {
  margin-top: 4px;
}

.side-poster {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.75);
}

.side-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: rgba(96, 165, 250, 0.12);
}

.side-card a {
  display: block;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--soft);
  background: rgba(30, 41, 59, 0.58);
  font-weight: 800;
}

.side-card a:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.34);
}

.related-section {
  padding-top: 0;
}

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

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 36px;
}

.footer-brand p {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-grid h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

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

.footer-grid a {
  color: var(--muted);
  font-size: 14px;
}

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

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-panel {
    min-height: 0;
  }

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

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

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

  .detail-side {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .container,
  .header-inner,
  .mobile-nav,
  .hero,
  .footer-inner {
    width: min(100% - 24px, 1220px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 19px;
  }

  .hero {
    margin-top: 14px;
    min-height: 0;
  }

  .hero-carousel {
    min-height: 620px;
    border-radius: 26px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 28px;
    align-content: center;
  }

  .hero-poster {
    display: none;
  }

  .hero h1,
  .page-hero h1,
  .category-hero h1,
  .detail-hero h1 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .hero p,
  .page-hero p,
  .category-hero p,
  .detail-hero p {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-controls {
    left: 28px;
    bottom: 28px;
  }

  .quick-cats,
  .footer-grid,
  .footer-inner,
  .detail-side,
  .toolbar {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .ranking-card img {
    width: 82px;
    height: 112px;
    border-radius: 14px;
  }

  .ranking-card h2 {
    font-size: 18px;
  }

  .ranking-card p {
    display: none;
  }

  .inline-search,
  .hero-search div {
    flex-direction: column;
  }

  .page-hero,
  .category-hero,
  .detail-hero {
    min-height: 380px;
  }

  .movie-info div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .search-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-meta {
    display: none;
  }
}
