:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --paper-soft: #f1f5f9;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --sky: #0ea5e9;
  --sky-dark: #0284c7;
  --emerald: #10b981;
  --amber: #f59e0b;
  --dark: #0f172a;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand {
  font-size: clamp(20px, 2.5vw, 28px);
  background: linear-gradient(120deg, var(--sky), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--emerald));
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.3);
  font-size: 14px;
}

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

.main-nav > a,
.nav-more > button {
  border: 0;
  background: transparent;
  color: #334155;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 650;
  cursor: pointer;
}

.main-nav > a:hover,
.main-nav > a.is-active,
.nav-more:hover > button {
  color: var(--sky-dark);
  background: #e0f2fe;
}

.nav-more {
  position: relative;
}

.nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 220px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-more:hover .nav-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
}

.nav-panel a:hover {
  color: var(--sky-dark);
  background: #f0f9ff;
}

.top-search,
.mobile-search,
.hero-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.search-tools select {
  border: 1px solid transparent;
  background: #f1f5f9;
  color: var(--text);
  border-radius: 14px;
  padding: 11px 14px;
  outline: 0;
  min-width: 0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.top-search input {
  width: 230px;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.search-page-form input:focus,
.search-tools select:focus {
  border-color: rgba(14, 165, 233, 0.5);
  background: white;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.top-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  border-radius: 14px;
  background: var(--sky);
  color: white;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.search-page-form button:hover {
  background: var(--sky-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #334155;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
  background: white;
}

.mobile-panel.is-open {
  display: block;
  animation: fadeIn 0.25s ease;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.mobile-panel nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: white;
  background: #020617;
}

.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,
.detail-bg,
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-overlay,
.detail-mask,
.page-hero-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 35%, rgba(16, 185, 129, 0.28), transparent 32%), linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.36) 100%), linear-gradient(0deg, #020617 0%, transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 420px;
  align-items: center;
  gap: 54px;
  padding: 70px 0 96px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero .eyebrow,
.detail-hero .eyebrow,
.page-hero .eyebrow {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.24);
  backdrop-filter: blur(10px);
}

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

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.65vw, 21px);
  margin: 0 0 22px;
}

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

.hero-tags span,
.detail-tags span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--emerald));
  box-shadow: 0 18px 35px rgba(14, 165, 233, 0.28);
}

.btn-secondary {
  color: var(--sky-dark);
  background: #e0f2fe;
}

.btn-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--sky-dark);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-controls {
  position: relative;
  z-index: 3;
  min-height: 620px;
  pointer-events: none;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 14px;
  padding-bottom: 34px;
}

.hero-controls button {
  pointer-events: auto;
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-controls > button {
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  opacity: 0.55;
}

.hero-dots button.is-active {
  width: 28px;
  opacity: 1;
  background: linear-gradient(135deg, var(--sky), var(--emerald));
}

.quick-filter {
  margin-top: -44px;
  position: relative;
  z-index: 5;
}

.quick-inner {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.hero-search {
  width: 100%;
}

.hero-search input,
.search-page-form input {
  flex: 1;
  background: #f8fafc;
  padding: 14px 16px;
}

.quick-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 14px;
}

.quick-chips a {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: 76px 0;
}

.soft-section {
  background: linear-gradient(180deg, #f8fafc, #eef6ff);
}

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

.section-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.section-head > a {
  color: var(--sky-dark);
  font-weight: 800;
  background: #e0f2fe;
  padding: 11px 14px;
  border-radius: 14px;
  flex: 0 0 auto;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
  border-color: rgba(14, 165, 233, 0.26);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #075985);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 58%);
  opacity: 0.78;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--sky-dark);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transition: all 0.25s ease;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

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

.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: white;
  backdrop-filter: blur(10px);
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
  left: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber), #ef4444);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.25);
}

.movie-info {
  padding: 16px;
}

.movie-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f1f5f9;
}

.movie-info h3 {
  margin: 10px 0 7px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.movie-info h3 a:hover {
  color: var(--sky-dark);
}

.movie-info p {
  margin: 0 0 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
}

.tag-row span {
  color: #0369a1;
  background: #f0f9ff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

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

.ranking-panel,
.side-card,
.category-preview {
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.ranking-panel {
  position: sticky;
  top: 100px;
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 850;
}

.panel-head a {
  color: var(--sky-dark);
  font-size: 14px;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: auto 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  background: #e0f2fe;
  transform: translateX(3px);
}

.small-rank {
  color: var(--amber);
  font-weight: 900;
  min-width: 28px;
}

.rank-thumb {
  display: block;
  width: 72px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-text {
  min-width: 0;
}

.rank-text strong,
.rank-text em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-text strong {
  font-size: 15px;
}

.rank-text em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

.rank-score {
  color: var(--sky-dark);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  isolation: isolate;
  color: white;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.category-tile:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.24));
}

.tile-images {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  opacity: 0.8;
}

.tile-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile strong {
  font-size: 24px;
  line-height: 1.15;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-style: normal;
  font-size: 14px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: #020617;
}

.page-hero {
  min-height: 390px;
  display: flex;
  align-items: center;
}

.page-hero.small-hero {
  min-height: 340px;
  background: radial-gradient(circle at 78% 25%, rgba(16, 185, 129, 0.25), transparent 30%), linear-gradient(135deg, #020617, #0f172a 60%, #075985);
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding: 70px 0;
}

.page-hero h1 {
  max-width: 900px;
}

.category-hero .hero-search,
.search-page-form {
  max-width: 720px;
  margin-top: 24px;
}

.stack-list {
  display: grid;
  gap: 34px;
}

.category-preview {
  padding: 24px;
}

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

.category-preview-head span {
  color: var(--sky-dark);
  font-weight: 800;
}

.category-preview-head h2 {
  margin: 6px 0 6px;
  font-size: 30px;
  line-height: 1.1;
}

.category-preview-head p {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
}

.search-tools {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.search-tools > span {
  font-size: 20px;
  font-weight: 850;
}

.select-row {
  display: flex;
  gap: 10px;
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-radius: 20px;
  background: white;
  border: 1px dashed var(--line);
}

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

.detail-hero {
  min-height: 680px;
}

.detail-mask {
  background: radial-gradient(circle at 70% 30%, rgba(14, 165, 233, 0.25), transparent 35%), linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.88) 45%, rgba(2, 6, 23, 0.42) 100%), linear-gradient(0deg, #020617, transparent 45%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 86px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  margin-bottom: 58px;
}

.breadcrumb a:hover {
  color: white;
}

.detail-top {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.poster-card {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.detail-copy h1 {
  font-size: clamp(40px, 5vw, 72px);
}

.detail-section {
  padding-top: 42px;
}

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

.site-player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #020617;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
}

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

.player-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.2));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.player-trigger span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--sky-dark);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  font-size: 30px;
}

.site-player.is-ready .player-trigger {
  opacity: 0;
  pointer-events: none;
}

.detail-article,
.side-card {
  margin-top: 22px;
  padding: 24px;
}

.detail-article {
  border-radius: 24px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.detail-article h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.detail-article p {
  color: #334155;
  margin: 0 0 22px;
  font-size: 16px;
}

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

.light-tags span {
  color: #0369a1;
  background: #e0f2fe;
  border: 0;
}

.side-card {
  display: grid;
  gap: 8px;
}

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

.side-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.side-card li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-card li span,
.side-card a {
  color: var(--muted);
}

.side-card li strong {
  text-align: right;
}

.side-card a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.side-card a:hover {
  color: var(--sky-dark);
  background: #e0f2fe;
}

.site-footer {
  color: #cbd5e1;
  background: #020617;
  padding: 54px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 220px 260px;
  gap: 42px;
}

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

.footer-grid p {
  max-width: 580px;
  color: #94a3b8;
}

.footer-grid h2 {
  color: white;
  font-size: 16px;
  margin: 0 0 14px;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  color: #cbd5e1;
  padding: 4px 0;
}

.footer-grid a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #64748b;
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: 66px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero,
  .hero-content,
  .hero-controls {
    min-height: 720px;
  }

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

  .hero-poster {
    width: min(280px, 72vw);
    justify-self: start;
    transform: none;
  }

  .hero-controls {
    padding-bottom: 22px;
  }

  .section-head,
  .category-preview-head,
  .search-tools {
    align-items: start;
    flex-direction: column;
  }

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

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

  .poster-card {
    width: min(300px, 76vw);
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1280px);
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .hero,
  .hero-content,
  .hero-controls {
    min-height: 690px;
  }

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

  .hero-search,
  .mobile-search,
  .search-page-form,
  .select-row {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .movie-grid.two-col,
  .compact-grid,
  .category-grid,
  .wide-rank-list {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: auto 64px 1fr;
  }

  .rank-score {
    display: none;
  }

  .detail-hero {
    min-height: 620px;
  }

  .detail-hero-inner {
    padding-bottom: 54px;
  }

  .detail-tags span,
  .hero-tags span {
    font-size: 12px;
  }
}
