:root {
  color-scheme: dark;
  --bg-deep: #020617;
  --bg-main: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.86);
  --bg-soft: rgba(30, 41, 59, 0.82);
  --line: rgba(148, 163, 184, 0.18);
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --accent: #22d3ee;
  --accent-strong: #3b82f6;
  --gold: #facc15;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-card: 0 22px 70px rgba(2, 6, 23, 0.42);
  --shadow-glow: 0 0 48px rgba(34, 211, 238, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: var(--shadow-glow);
}

.brand-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.nav-link {
  color: var(--text-muted);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-menu {
  position: relative;
}

.nav-menu-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow-card);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s ease;
}

.nav-menu:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-muted);
}

.nav-dropdown a:hover {
  color: #fff;
  background: rgba(51, 65, 85, 0.8);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
}

.top-search input,
.mobile-search input {
  width: 180px;
  border: 0;
  outline: none;
  color: #fff;
  background: transparent;
}

.top-search input::placeholder,
.mobile-search input::placeholder,
.filter-panel input::placeholder {
  color: #64748b;
}

.top-search button {
  border: 0;
  padding: 8px 15px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  cursor: pointer;
}

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

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #fff;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-link,
.mobile-search {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.84);
  color: var(--text-muted);
}

.mobile-link.is-active {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.45);
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.82) 43%, rgba(15, 23, 42, 0.25) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1280px;
}

.hero-kicker,
.page-hero span,
.detail-kicker,
.section-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
}

.hero-meta span,
.detail-meta span,
.meta-row span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
}

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

.primary-action,
.secondary-action,
.category-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: var(--shadow-glow);
}

.secondary-action,
.category-more {
  border: 1px solid var(--line);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.72);
}

.primary-action:hover,
.secondary-action:hover,
.category-more:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.62);
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.hero-search-card {
  position: absolute;
  z-index: 5;
  right: max(32px, calc((100% - 1280px) / 2));
  bottom: 82px;
  width: min(420px, calc(100% - 48px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.hero-search-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
}

.hero-search-card form {
  display: flex;
  gap: 10px;
}

.hero-search-card input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
  outline: none;
  color: #fff;
  background: rgba(2, 6, 23, 0.62);
}

.hero-search-card button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  cursor: pointer;
}

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

.compact-section {
  padding: 0;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading a {
  color: var(--accent);
  font-weight: 800;
}

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

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

.movie-card {
  display: block;
  min-width: 0;
}

.movie-card article {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover article {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: var(--shadow-card);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 60%);
  transition: opacity 0.22s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.play-float,
.big-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(34, 211, 238, 0.92);
  box-shadow: var(--shadow-glow);
  transform: translate(-50%, -50%);
}

.play-float {
  width: 56px;
  height: 56px;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rank-badge {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-info {
  padding: 16px;
}

.card-info h2 {
  min-height: 48px;
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  gap: 7px;
  font-size: 12px;
}

.meta-row span {
  padding: 4px 8px;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
}

.card-summary {
  margin: 12px 0 0;
  color: var(--text-dim);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card .card-info h2 {
  min-height: 0;
  font-size: 15px;
}

.category-section {
  padding: 72px 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.5));
  border-block: 1px solid var(--line);
}

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

.category-tile,
.category-overview-head {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  mix-blend-mode: screen;
  transition: transform 0.5s ease;
}

.category-tile::after,
.category-overview-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.48));
}

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

.tile-icon,
.category-overview-head span {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 34px;
}

.category-tile strong,
.category-overview-head h2 {
  display: block;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.ranking-block {
  padding-top: 36px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 48px 68px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.ranking-row span {
  color: var(--gold);
  font-weight: 900;
}

.ranking-row img {
  width: 68px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-row strong {
  font-size: 16px;
}

.ranking-row em {
  font-style: normal;
  color: var(--accent);
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.74));
}

.page-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
  font-size: 19px;
  line-height: 1.8;
}

.category-hero {
  background-size: cover;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.78);
}

.filter-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-weight: 800;
}

.filter-search input,
.filter-selects select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  padding: 12px 14px;
  color: #fff;
  background: rgba(2, 6, 23, 0.62);
}

.filter-selects {
  display: flex;
  gap: 12px;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.72);
}

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

.category-overview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.28);
}

.category-overview-head {
  min-height: 150px;
  display: block;
  border-radius: 0;
}

.category-overview-card p {
  margin: 0;
  padding: 18px 18px 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.category-samples a {
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.52);
}

.category-samples a:hover {
  color: #fff;
  background: rgba(51, 65, 85, 0.8);
}

.category-more {
  margin: 0 18px 18px;
}

.ranking-feature {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.ranking-feature img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.16));
}

.ranking-feature span {
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.ranking-feature h2 {
  margin: 16px 0 8px;
  font-size: 28px;
  font-weight: 900;
}

.ranking-feature p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 42px 0 80px;
}

.detail-bg,
.detail-bg-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg {
  object-fit: cover;
  filter: blur(16px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.36;
}

.detail-bg-shade {
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.72), #020617 96%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), transparent);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--text-dim);
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 30px;
  align-items: center;
}

.player-card,
.detail-info,
.text-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.player-card {
  padding: 14px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #000;
}

.player-box video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-box video {
  z-index: 1;
  object-fit: contain;
  background: #000;
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
}

.player-cover img {
  object-fit: cover;
  filter: brightness(0.58);
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.big-play {
  width: 88px;
  height: 88px;
  font-size: 28px;
}

.detail-info {
  padding: 28px;
}

.detail-info h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-line {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 0;
}

.text-panel {
  padding: 28px;
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 900;
}

.text-panel p {
  margin: 0;
  color: var(--text-muted);
  line-height: 2;
}

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

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 32px;
}

.footer-brand p,
.footer-block a,
.footer-bottom {
  color: var(--text-dim);
}

.footer-brand p {
  max-width: 520px;
  line-height: 1.8;
}

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

.footer-block h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

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

.footer-links a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.66);
}

.footer-links a:hover {
  color: #fff;
  background: rgba(34, 211, 238, 0.18);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
}

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

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

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

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

@media (max-width: 820px) {
  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-search-card {
    left: 16px;
    right: 16px;
    bottom: 72px;
    width: auto;
  }

  .hero-arrow {
    display: none;
  }

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

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-feature-grid,
  .ranking-list,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .filter-selects {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    min-height: 64px;
  }

  .brand-text {
    font-size: 20px;
  }

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

  .hero-actions,
  .hero-search-card form {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .hero-search-card button {
    width: 100%;
  }

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

  .ranking-row {
    grid-template-columns: 42px 56px 1fr;
  }

  .ranking-row em {
    grid-column: 3;
  }

  .detail-hero {
    min-height: auto;
    padding-bottom: 48px;
  }

  .detail-info,
  .text-panel {
    padding: 22px;
  }
}
