:root {
  --bg: #ffffff;
  --bg-soft: #f8fbff;
  --text: #101827;
  --muted: #667085;
  --line: #e6edf7;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --indigo: #4f46e5;
  --cyan: #06b6d4;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 42%, #ffffff 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(230, 237, 247, 0.92);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
  position: relative;
}

.brand-mark span {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #ffffff;
  margin-left: 3px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-link {
  border: 0;
  background: transparent;
  color: #5f6b7a;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: #eef5ff;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 46px;
  right: 0;
  min-width: 150px;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--soft-shadow);
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: grid;
  gap: 4px;
}

.nav-dropdown-menu a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #475467;
}

.nav-dropdown-menu a:hover {
  color: var(--blue);
  background: #f2f7ff;
}

.header-search {
  width: 260px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 7px 6px 7px 12px;
  background: transparent;
}

.header-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  border: 0;
  border-radius: 12px;
  background: #eef5ff;
  cursor: pointer;
}

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

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #0b1220;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(37, 99, 235, 0.52), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.62) 44%, rgba(2, 6, 23, 0.15) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.85) 0%, transparent 48%);
  backdrop-filter: blur(1.5px);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1220px) / 2));
  bottom: 112px;
  width: min(720px, calc(100% - 64px));
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.24);
  border: 1px solid rgba(191, 219, 254, 0.28);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow.dark {
  color: var(--blue);
  background: #eef5ff;
  border-color: #dbeafe;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero p,
.page-hero p {
  max-width: 820px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-tags a {
  padding: 7px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.single-row {
  margin-top: 28px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

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

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.primary-btn.light {
  color: var(--blue);
  background: #ffffff;
}

.ghost-btn.light {
  color: #ffffff;
}

.hero-control {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

.hero-control button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 24px;
}

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

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

.hero-dot.active {
  width: 28px;
  background: #ffffff;
}

.hero-quick {
  position: absolute;
  right: max(32px, calc((100vw - 1220px) / 2));
  bottom: 36px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-quick a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #eff6ff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.section-block.alt-soft {
  border-top: 1px solid var(--line);
}

.gradient-panel {
  width: 100%;
  max-width: none;
  padding: 72px max(16px, calc((100vw - 1220px) / 2));
  background: linear-gradient(135deg, #f8fbff, #eef6ff 48%, #f8fdff);
}

.ranking-panel {
  padding-top: 42px;
}

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

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
}

.text-link {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(230, 237, 247, 0.88);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, 0.22);
}

.poster-wrap {
  position: relative;
  display: block;
  height: 205px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.55) 0%, transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.9);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.34);
  opacity: 0;
  transition: 0.25s ease;
}

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

.duration-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
}

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

.card-meta span:first-child {
  color: var(--blue);
  font-weight: 800;
}

.movie-card strong {
  min-height: 30px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card em {
  min-height: 44px;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 12px;
}

.small-card .poster-wrap {
  height: 180px;
}

.small-card strong {
  font-size: 16px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 28px;
  color: #ffffff;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.category-card.from-amber::before {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.category-card.from-rose::before {
  background: linear-gradient(135deg, #f43f5e, #7c3aed);
}

.category-card.from-pink::before {
  background: linear-gradient(135deg, #ec4899, #f97316);
}

.category-card.from-violet::before {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.category-card.from-emerald::before {
  background: linear-gradient(135deg, #10b981, #06b6d4);
}

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

.category-card.from-indigo::before {
  background: linear-gradient(135deg, #4f46e5, #0f172a);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 40%);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.category-copy strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 26px;
}

.category-copy em {
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.page-hero {
  width: min(1220px, calc(100% - 32px));
  margin: 36px auto 0;
  border-radius: 34px;
  padding: 70px;
  overflow: hidden;
}

.soft-hero {
  color: #111827;
  background:
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.18), transparent 36%),
    linear-gradient(135deg, #ffffff, #edf6ff);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.soft-hero p {
  color: var(--muted);
}

.color-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: var(--shadow);
}

.color-hero.from-amber {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.color-hero.from-rose {
  background: linear-gradient(135deg, #f43f5e, #7c3aed);
}

.color-hero.from-pink {
  background: linear-gradient(135deg, #ec4899, #f97316);
}

.color-hero.from-violet {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.color-hero.from-emerald {
  background: linear-gradient(135deg, #10b981, #06b6d4);
}

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

.color-hero.from-indigo {
  background: linear-gradient(135deg, #4f46e5, #0f172a);
}

.filter-panel {
  position: sticky;
  top: 86px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 180px 160px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--soft-shadow);
}

.filter-panel.wide {
  grid-template-columns: 1fr 180px 160px 160px;
}

.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 1px solid #dbe7f7;
  outline: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

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

.empty-state.show {
  display: block;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 116px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: var(--soft-shadow);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  font-weight: 900;
}

.rank-item img {
  width: 116px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
}

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

.rank-copy strong {
  margin-bottom: 4px;
}

.rank-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-copy span {
  margin-top: 6px;
  color: #7a8699;
  font-size: 13px;
}

.detail-wrap {
  width: min(1220px, calc(100% - 32px));
  margin: 28px auto 72px;
}

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

.breadcrumb a {
  color: var(--blue);
  font-weight: 700;
}

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

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

.player-card,
.detail-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.player-card {
  padding: 12px;
  background: linear-gradient(135deg, #0b1220, #111827);
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #000000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.25), transparent 34%),
    rgba(2, 6, 23, 0.34);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 24px 52px rgba(37, 99, 235, 0.38);
  cursor: pointer;
  transition: 0.22s ease;
}

.player-start:hover {
  transform: scale(1.08);
}

.player-start span {
  margin-left: 6px;
  font-size: 40px;
}

.detail-card {
  padding: 32px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 700;
  font-size: 13px;
}

.lead-text {
  color: #344054;
  font-size: 18px;
  font-weight: 650;
}

.detail-card h2,
.side-card h2 {
  margin: 28px 0 12px;
  font-size: 22px;
}

.detail-card p {
  color: #475467;
  margin: 0 0 14px;
  text-align: justify;
}

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 94px;
}

.side-card {
  padding: 22px;
}

.side-card h2 {
  margin-top: 0;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 11px 12px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  font-weight: 700;
}

.info-card a {
  color: var(--blue);
}

.tag-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-card a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 700;
}

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

.side-link {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.side-link img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.side-link strong,
.side-link em {
  display: block;
}

.side-link strong {
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-link em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}

.footer-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-brand p {
  max-width: 330px;
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

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

.site-footer a {
  color: #536071;
}

.site-footer a:hover {
  color: var(--blue);
}

.footer-bottom {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid #dbe7f7;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: none;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.32);
  cursor: pointer;
  z-index: 60;
}

.back-top.show {
  display: block;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

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

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

  .detail-side {
    position: static;
  }

  .rank-list.two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header-shell {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    justify-content: start;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-dropdown-menu {
    position: static;
    display: grid;
    margin-top: 4px;
    box-shadow: none;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    left: 20px;
    bottom: 118px;
    width: calc(100% - 40px);
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-quick {
    display: none;
  }

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

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

  .filter-panel,
  .filter-panel.wide {
    position: static;
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 46px 24px;
    border-radius: 26px;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .hero {
    min-height: 600px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

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

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

  .poster-wrap,
  .small-card .poster-wrap {
    height: 230px;
  }

  .rank-item {
    grid-template-columns: 42px 92px 1fr;
    gap: 10px;
  }

  .rank-item img {
    width: 92px;
    height: 64px;
  }

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

  .player-start {
    width: 78px;
    height: 78px;
  }

  .footer-shell,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 18px;
  }
}
