:root {
  --bg: #080713;
  --panel: rgba(17, 24, 39, 0.88);
  --panel-strong: #111827;
  --text: #f8fafc;
  --muted: #a5b4fc;
  --soft: #cbd5e1;
  --gold: #facc15;
  --gold-deep: #ca8a04;
  --pink: #db2777;
  --purple: #7c3aed;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(124, 58, 237, 0.38), transparent 28rem),
    radial-gradient(circle at 90% 5%, rgba(219, 39, 119, 0.28), transparent 28rem),
    linear-gradient(180deg, #0f1026 0%, #080713 45%, #03040a 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(49, 46, 129, 0.96), rgba(88, 28, 135, 0.96), rgba(131, 24, 67, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #fde047, #f9a8d4);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(250, 204, 21, 0.25);
}

.brand-text,
.footer-brand {
  background: linear-gradient(90deg, #fde047, #f9a8d4, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.nav-menu-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-menu:hover .nav-menu-button {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.nav-menu {
  position: relative;
}

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

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

.nav-dropdown a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--soft);
}

.nav-dropdown a:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(340px, 28vw);
  margin-left: 8px;
}

.header-search input,
.mobile-panel input,
.filter-search input,
.filter-selects select {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px 0 0 999px;
}

.header-search input:focus,
.mobile-panel input:focus,
.filter-search input:focus,
.filter-selects select:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(250, 204, 21, 0.55);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.12);
}

.header-search button,
.mobile-panel button {
  height: 42px;
  padding: 0 16px;
  color: #111827;
  font-weight: 800;
  background: linear-gradient(135deg, #facc15, #f472b6);
  border: 0;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
}

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

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

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-panel form {
  display: flex;
}

.mobile-panel input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px 0 0 999px;
}

main {
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: 690px;
  isolation: isolate;
  background: #050612;
}

.hero-track {
  position: relative;
  min-height: 690px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(90deg, rgba(8, 7, 19, 0.96), rgba(8, 7, 19, 0.72), rgba(8, 7, 19, 0.48)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.15);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.22), transparent 22rem),
    radial-gradient(circle at 78% 18%, rgba(219, 39, 119, 0.26), transparent 28rem),
    linear-gradient(180deg, transparent 0%, rgba(8, 7, 19, 0.88) 100%);
}

.hero-content {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  padding: 92px 0 132px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: #fef3c7;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.12);
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.35;
}

.hero-summary {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: #f8fafc;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
}

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

.primary-button,
.ghost-button,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 900;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.rank-action {
  color: #111827;
  background: linear-gradient(135deg, #fde047, #f472b6);
  box-shadow: 0 16px 30px rgba(250, 204, 21, 0.22);
}

.primary-button:hover,
.rank-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(244, 114, 182, 0.26);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #312e81, #831843);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

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

.hero-poster::after,
.poster-shade {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.82));
}

.hero-poster span,
.poster-play,
.detail-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #111827;
  background: linear-gradient(135deg, #fef08a, #f472b6);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 72px;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls > button {
  width: 46px;
  height: 46px;
  color: #ffffff;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: #facc15;
}

.hero-category-strip {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 0;
  scrollbar-width: none;
}

.hero-category-strip::-webkit-scrollbar {
  display: none;
}

.hero-category-strip a {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

.featured-panel {
  position: relative;
}

.featured-panel::before {
  content: "";
  position: absolute;
  inset: 28px -24px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.38), rgba(131, 24, 67, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
}

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

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading > a {
  color: #fef3c7;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.12);
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(250, 204, 21, 0.35);
  box-shadow: 0 26px 52px rgba(124, 58, 237, 0.26);
}

.poster-link,
.rank-cover,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #312e81, #831843);
}

.poster-link {
  aspect-ratio: 2 / 3;
}

.poster-link img,
.rank-cover img,
.detail-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.poster-year {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
  border-radius: 999px;
  background: #facc15;
}

.poster-play {
  z-index: 2;
  width: 48px;
  height: 48px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card-body h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h3 a:hover,
.rank-content h3 a:hover,
.side-rank a:hover {
  color: var(--gold);
}

.movie-card-body p,
.rank-content p,
.text-card p,
.category-overview-card p,
.page-hero p,
.site-footer p {
  color: var(--soft);
  line-height: 1.75;
}

.movie-card-body p {
  min-height: 72px;
  margin: 0 0 14px;
  font-size: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.tag-row span {
  min-height: 26px;
  color: #dbeafe;
  font-size: 12px;
  background: rgba(99, 102, 241, 0.18);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 78px 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.rank-cover {
  height: 108px;
  border-radius: 16px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, #fde047, #f472b6);
}

.rank-content h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.rank-content p {
  margin: 0;
}

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

.rank-action {
  min-width: 76px;
}

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

.category-card,
.category-overview-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(49, 46, 129, 0.56), rgba(131, 24, 67, 0.28)),
    rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(250, 204, 21, 0.32);
}

.category-card span,
.category-icon {
  color: #fef08a;
  font-weight: 900;
}

.category-card h3,
.category-overview-card h2 {
  margin: 12px 0;
}

.category-card div,
.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-card div a,
.category-samples span {
  padding: 6px 9px;
  color: var(--soft);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.page-hero,
.detail-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.96), rgba(88, 28, 135, 0.92), rgba(131, 24, 67, 0.88));
}

.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 32px auto 0;
  padding: 70px;
  border: 1px solid var(--border);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -40%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.26), transparent 65%);
}

.page-hero h1 {
  margin-bottom: 18px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.74);
}

.filter-search,
.filter-selects,
.filter-selects label {
  display: grid;
  gap: 8px;
}

.filter-search label,
.filter-selects label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-search input,
.filter-selects select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
}

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

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 24px;
  text-align: center;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: 20px;
}

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

.detail-hero {
  isolation: isolate;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(90deg, rgba(8, 7, 19, 0.96), rgba(8, 7, 19, 0.72)),
    var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(8px) saturate(1.1);
  transform: scale(1.04);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.18), transparent 24rem);
}

.detail-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  padding: 64px 0;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-info h1 {
  max-width: 900px;
}

.detail-one-line {
  margin: 0;
  max-width: 860px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.large-tags span {
  min-height: 32px;
  font-size: 13px;
}

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

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

.player-card,
.text-card,
.side-card {
  padding: 24px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.player-card h2,
.text-card h2,
.side-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 20%, rgba(250, 204, 21, 0.18), transparent 26rem),
    linear-gradient(135deg, #111827, #020617);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  cursor: pointer;
}

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

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: #111827;
  font-size: 34px;
  background: linear-gradient(135deg, #fef08a, #f472b6);
  border: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player-shell.is-playing .player-button {
  opacity: 0;
  pointer-events: none;
}

.text-card p {
  margin: 0;
  font-size: 17px;
}

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

.side-rank a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.side-rank span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #111827;
  font-weight: 900;
  border-radius: 10px;
  background: #facc15;
}

.site-footer {
  margin-top: 34px;
  padding: 44px 0;
  color: var(--soft);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), #020617);
  border-top: 1px solid var(--border);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1fr;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  font-size: 24px;
}

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

.footer-links a {
  padding: 8px 12px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

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

[data-cover-image].is-empty {
  opacity: 0;
}

.poster-link:has([data-cover-image].is-empty)::before,
.rank-cover:has([data-cover-image].is-empty)::before,
.detail-poster:has([data-cover-image].is-empty)::before,
.hero-poster:has([data-cover-image].is-empty)::before {
  content: attr(aria-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #312e81, #831843);
}

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

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-content,
  .detail-inner,
  .detail-layout,
  .footer-inner,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 34px;
    padding-top: 70px;
  }

  .hero-poster,
  .detail-poster {
    width: min(300px, 78vw);
    margin: 0 auto;
  }

  .detail-sidebar {
    order: -1;
  }

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

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

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

  .rank-number {
    position: absolute;
    margin-left: 42px;
    margin-top: -56px;
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .rank-action {
    grid-column: 2;
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .content-section,
  .footer-inner,
  .hero-content,
  .hero-controls,
  .hero-category-strip,
  .detail-inner,
  .page-hero {
    width: min(100% - 24px, 1280px);
  }

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

  .hero-slider,
  .hero-track {
    min-height: 780px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 42px;
  }

  .page-hero {
    padding: 40px 22px;
    border-radius: 26px;
  }

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

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .filter-selects {
    grid-template-columns: 1fr;
  }

  .movie-card.compact {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .movie-card.compact .poster-link {
    height: 100%;
    min-height: 178px;
  }

  .section-heading,
  .footer-inner {
    align-items: start;
  }

  .section-heading,
  .footer-links {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .detail-inner {
    padding: 40px 0;
  }

  .player-card,
  .text-card,
  .side-card {
    padding: 18px;
    border-radius: 22px;
  }
}
