:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f3f4f6;
  --text: #111827;
  --muted: #6b7280;
  --light: #f9fafb;
  --line: rgba(17, 24, 39, 0.08);
  --line-strong: rgba(17, 24, 39, 0.14);
  --dark: #111827;
  --dark-soft: #1f2937;
  --brand: #374151;
  --brand-soft: #e5e7eb;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 46%, #f3f4f6 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #6b7280);
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.18);
}

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

.brand-text strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover {
  color: #111827;
  background: #f3f4f6;
}

.top-search {
  margin-left: auto;
  width: min(360px, 28vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background: rgba(243, 244, 246, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.top-search input,
.mobile-search input,
.wide-search input,
.catalog-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.top-search input {
  padding: 8px 10px 8px 16px;
  font-size: 14px;
}

.top-search button,
.mobile-search button,
.wide-search button,
.catalog-search button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #111827;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.catalog-search button:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

.top-search button {
  padding: 8px 15px;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

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

.mobile-panel a {
  padding: 11px 12px;
  border-radius: 12px;
  background: #f9fafb;
  color: #374151;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.mobile-search input {
  padding: 8px 12px;
}

.mobile-search button {
  padding: 8px 16px;
}

.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #111827;
}

.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-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide::before,
.detail-backdrop::before {
  content: attr(data-poster-title);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: rgba(255, 255, 255, 0.14);
  font-size: clamp(42px, 9vw, 120px);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(135deg, #111827, #374151 52%, #030712);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(17, 24, 39, 0.74) 44%, rgba(17, 24, 39, 0.36)),
    linear-gradient(180deg, rgba(3, 7, 18, 0.1), rgba(3, 7, 18, 0.52));
}

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

.hero-content > * {
  max-width: 660px;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 14px;
}

.hero h2 {
  margin: 22px 0 16px;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.75;
}

.hero-tags,
.term-row,
.detail-chips,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.term-row span,
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-tags span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.panel-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.primary-btn {
  min-height: 46px;
  padding: 0 24px;
  color: #111827;
  background: #ffffff;
}

.ghost-btn {
  min-height: 46px;
  padding: 0 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

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

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

.hero-dot.is-active {
  background: #ffffff;
}

.quick-search-panel,
.content-section,
.footer-shell {
  width: min(1200px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-search-panel {
  position: relative;
  z-index: 8;
  margin-top: -44px;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-copy span,
.section-head p,
.rank-panel-head p,
.page-hero p {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-search-copy h2,
.section-head h2,
.rank-panel-head h2,
.page-hero h2 {
  margin: 0;
  color: #111827;
}

.quick-search-copy h2 {
  font-size: 28px;
}

.wide-search,
.catalog-search {
  display: flex;
  gap: 10px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #f9fafb;
}

.wide-search input,
.catalog-search input {
  padding: 12px 14px 12px 18px;
}

.wide-search button,
.catalog-search button {
  padding: 12px 22px;
}

.content-section {
  margin-top: 72px;
}

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

.section-head h2,
.rank-panel-head h2,
.page-hero h2 {
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.section-more,
.panel-more {
  padding: 10px 18px;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid var(--line);
}

.section-more:hover,
.panel-more:hover {
  color: #111827;
  background: #e5e7eb;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.card-link {
  height: 100%;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-link:hover {
  transform: translateY(-5px);
  border-color: rgba(17, 24, 39, 0.18);
  box-shadow: var(--shadow);
}

.poster-wrap,
.rank-thumb,
.detail-backdrop,
.player-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #111827, #4b5563);
}

.poster-wrap {
  aspect-ratio: 3 / 4.1;
}

.poster-wrap::before,
.rank-thumb::before {
  content: attr(data-poster-title);
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.16);
  font-size: 28px;
  line-height: 1.18;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.04em;
}

.poster-wrap img,
.rank-thumb img,
.detail-backdrop img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.card-link:hover .poster-wrap img {
  transform: scale(1.06);
}

.card-body {
  padding: 16px;
}

.card-meta,
.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #6b7280;
  font-size: 12px;
}

.card-meta span,
.card-stats span {
  display: inline-flex;
  align-items: center;
}

.card-meta span:not(:last-child)::after,
.card-stats span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 7px;
  border-radius: 999px;
  background: #d1d5db;
}

.movie-card h2 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.term-row {
  margin-bottom: 12px;
}

.term-row span,
.chip {
  padding: 5px 9px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 12px;
}

.movie-card.small .card-body {
  padding: 14px;
}

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

.movie-card.small p {
  min-height: 44px;
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  box-shadow: var(--shadow-soft);
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #ffffff;
  border-color: var(--line);
  transform: translateX(2px);
}

.rank-num {
  width: 28px;
  color: #9ca3af;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rank-thumb {
  width: 56px;
  height: 42px;
  border-radius: 12px;
}

.rank-thumb::before {
  font-size: 12px;
  padding: 6px;
}

.rank-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.rank-copy em {
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: #111827;
  font-weight: 800;
}

.panel-more {
  width: 100%;
  margin-top: 18px;
}

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

.category-tile {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 10%, rgba(17, 24, 39, 0.12), transparent 34%),
    linear-gradient(135deg, #ffffff, #f3f4f6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.category-tile span {
  font-size: 18px;
  font-weight: 800;
}

.category-tile em {
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 38px auto 0;
  padding: 50px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #111827, #374151 60%, #030712);
  box-shadow: var(--shadow);
}

.page-hero h2,
.page-hero span,
.page-hero p {
  color: #ffffff;
}

.page-hero span {
  display: block;
  max-width: 720px;
  margin-top: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.catalog-toolbar {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto 0;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.catalog-search {
  max-width: 640px;
}

.filter-row button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4b5563;
  background: #ffffff;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-row button:hover,
.filter-row button.is-active {
  color: #ffffff;
  background: #111827;
  border-color: #111827;
}

.empty-state {
  display: none;
  padding: 48px;
  text-align: center;
  color: #6b7280;
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  background: #ffffff;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.94), rgba(17, 24, 39, 0.78) 50%, rgba(17, 24, 39, 0.48)),
    linear-gradient(180deg, rgba(3, 7, 18, 0.18), rgba(3, 7, 18, 0.86));
  backdrop-filter: blur(4px);
}

.detail-backdrop img {
  position: absolute;
  inset: 0;
  opacity: 0.56;
}

.detail-shell {
  position: relative;
  z-index: 4;
  width: min(1200px, calc(100% - 32px));
  min-height: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 50px 0;
}

.detail-poster .poster-wrap {
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.detail-copy h2 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.78;
}

.detail-chips {
  margin-top: 22px;
}

.detail-chips .chip {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0;
}

.detail-stats span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
}

.detail-stats strong {
  color: #ffffff;
}

.player-section {
  margin-top: 48px;
}

.player-panel {
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #030712;
  box-shadow: var(--shadow);
}

.player-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.18), rgba(3, 7, 18, 0.78)),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.16), transparent 28%);
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border-radius: 50%;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  font-size: 30px;
}

.play-cover strong {
  max-width: min(680px, calc(100% - 48px));
  text-align: center;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.2;
}

.play-cover em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

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

.article-main,
.detail-aside {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.article-main h2,
.detail-aside h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.article-main p {
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.article-main p:last-child {
  margin-bottom: 0;
}

.detail-aside dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.detail-aside div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.detail-aside div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-aside dt {
  color: #6b7280;
}

.detail-aside dd {
  margin: 0;
  color: #111827;
  font-weight: 700;
}

.next-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.next-section a {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: #374151;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-section a:hover {
  background: #f9fafb;
}

.rank-page-list {
  display: grid;
  gap: 8px;
  max-width: 960px;
}

.rank-page-list .rank-item {
  grid-template-columns: 48px 82px minmax(0, 1fr) 56px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.rank-page-list .rank-thumb {
  width: 82px;
  height: 58px;
}

.rank-page-list .rank-copy strong {
  font-size: 16px;
}

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

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: start;
  padding: 42px 0;
}

.footer-brand p {
  max-width: 520px;
  margin: 16px 0 0;
  color: #6b7280;
  line-height: 1.8;
}

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

.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #4b5563;
  background: #ffffff;
  border: 1px solid var(--line);
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 20px;
  color: #9ca3af;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.is-hidden-by-filter {
  display: none;
}

@media (max-width: 1100px) {
  .featured-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .split-section,
  .article-section {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

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

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

  .nav-shell {
    height: 64px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 88px;
  }

  .hero p {
    font-size: 17px;
  }

  .quick-search-panel {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

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

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

  .detail-poster {
    max-width: 240px;
  }

  .page-hero {
    padding: 34px 24px;
  }
}

@media (max-width: 580px) {
  .quick-search-panel,
  .content-section,
  .footer-shell,
  .nav-shell,
  .mobile-panel,
  .page-hero,
  .catalog-toolbar,
  .detail-shell {
    width: min(100% - 22px, 1200px);
  }

  .hero {
    height: 580px;
  }

  .hero-content {
    width: min(100% - 28px, 1200px);
  }

  .hero h2,
  .detail-copy h2 {
    font-size: 34px;
  }

  .hero-actions,
  .wide-search,
  .catalog-search,
  .mobile-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
  }

  .wide-search button,
  .catalog-search button,
  .mobile-search button {
    width: 100%;
  }

  .featured-grid,
  .compact-grid,
  .catalog-grid,
  .category-grid,
  .next-section {
    grid-template-columns: 1fr;
  }

  .movie-card p {
    min-height: 0;
  }

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

  .article-main,
  .detail-aside {
    padding: 22px;
  }

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

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