:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-soft: rgba(30, 41, 59, 0.72);
  --panel-strong: #1e293b;
  --line: #334155;
  --line-soft: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.16);
  --amber-line: rgba(251, 191, 36, 0.32);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.08), transparent 34rem), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(30, 41, 59, 0.92);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  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;
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--amber);
  color: #111827;
  box-shadow: 0 8px 28px rgba(251, 191, 36, 0.3);
}

.brand-name {
  white-space: nowrap;
  font-size: 20px;
}

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

.nav-link,
.mobile-link {
  color: var(--muted-strong);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--text);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 230px;
}

.nav-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  height: 40px;
  padding: 0 42px 0 14px;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12);
}

.nav-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  border-top: 1px solid var(--line-soft);
  padding: 16px;
  background: #0f172a;
}

.mobile-link {
  display: block;
  padding: 10px 0;
}

.mobile-search {
  display: flex;
  gap: 10px;
  padding-top: 12px;
}

.mobile-search input {
  height: 42px;
  padding: 0 12px;
}

.mobile-search button {
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  background: var(--amber);
  color: #111827;
  font-weight: 700;
}

.main-content {
  min-height: 70vh;
  padding-top: 64px;
}

.page-pad {
  padding: 112px 0 48px;
}

.hero-carousel {
  position: relative;
  height: clamp(520px, 72vh, 680px);
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6s ease;
}

.hero-slide.is-active .hero-image {
  transform: scale(1.08);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.28) 100%), linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.02) 46%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 74px;
}

.hero-copy {
  max-width: 780px;
}

.hero-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid var(--amber-line);
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--muted-strong);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
  background: var(--amber);
  color: #111827;
  box-shadow: 0 12px 32px rgba(251, 191, 36, 0.24);
}

.btn.primary:hover {
  background: #fcd34d;
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(15, 23, 42, 0.64);
  color: var(--text);
}

.btn.subtle {
  border-color: var(--amber-line);
  background: rgba(251, 191, 36, 0.08);
  color: var(--amber);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: white;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(30, 41, 59, 0.86);
  transform: translateY(-50%) scale(1.05);
}

.hero-control.prev {
  left: 20px;
}

.hero-control.next {
  right: 20px;
}

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

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

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

.page-flow,
.detail-flow {
  padding: 52px 0;
}

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

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

.section-heading h2,
.page-title h1,
.detail-content h2,
.player-section h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-heading p,
.page-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-heading > a,
.related-section .section-heading > a {
  flex: 0 0 auto;
  color: var(--amber);
  font-weight: 800;
}

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

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

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

.poster-card,
.landscape-card,
.movie-card-wide,
.rank-card,
.ranking-row {
  min-width: 0;
}

.poster-card a,
.landscape-card a,
.movie-card-wide a {
  display: block;
  color: var(--text);
}

.poster-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: var(--panel-strong);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.poster-cover img,
.landscape-cover img,
.wide-cover img,
.rank-card img,
.ranking-row img,
.category-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.poster-card:hover .poster-cover img,
.landscape-card:hover .landscape-cover img,
.movie-card-wide:hover .wide-cover img,
.category-card:hover .category-mosaic img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.08) 72%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.poster-shade p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.year-chip,
.score-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.72);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.year-chip {
  top: 10px;
  right: 10px;
}

.score-chip {
  left: 10px;
  bottom: 10px;
  color: var(--amber);
}

.poster-card h3,
.landscape-card h3,
.movie-card-wide h3 {
  margin: 12px 0 5px;
  font-size: 16px;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.poster-card:hover h3,
.landscape-card:hover h3,
.movie-card-wide:hover h3 {
  color: var(--amber);
}

.poster-card p,
.landscape-card p,
.movie-card-wide p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-width: thin;
}

.landscape-card {
  flex: 0 0 280px;
}

.landscape-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--panel-strong);
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.92);
  color: #111827;
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.landscape-card:hover .play-dot {
  opacity: 1;
}

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

.movie-card-wide {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--panel-soft);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.movie-card-wide:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.94);
  border-color: rgba(251, 191, 36, 0.24);
}

.wide-link {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 226px;
}

.wide-cover {
  position: relative;
  overflow: hidden;
}

.wide-body {
  padding: 22px;
}

.wide-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted-strong);
  font-size: 12px;
}

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

.rank-card a {
  display: grid;
  grid-template-columns: 46px 94px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 122px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.58);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rank-card a:hover {
  transform: translateY(-1px);
  border-color: var(--amber-line);
  background: rgba(30, 41, 59, 0.86);
}

.rank-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--amber);
  color: #111827;
  font-weight: 900;
}

.rank-card img {
  width: 94px;
  height: 94px;
  border-radius: 14px;
}

.rank-card h3,
.ranking-row h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.rank-card p,
.ranking-row p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(150px, 1fr));
  gap: 14px;
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  height: 44px;
  padding: 0 12px;
}

.movie-card.is-hidden {
  display: none;
}

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

.crumbs a {
  color: var(--muted-strong);
}

.crumbs a:hover {
  color: var(--amber);
}

.crumbs a::after {
  content: "/";
  margin-left: 9px;
  color: var(--line);
}

.page-title {
  max-width: 860px;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-title h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.64);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--amber-line);
  background: rgba(30, 41, 59, 0.88);
}

.category-card a {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 220px;
}

.category-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  overflow: hidden;
  background: var(--panel-strong);
}

.category-body {
  padding: 24px;
}

.category-body h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-mini-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.category-mini-links a {
  color: var(--muted-strong);
  font-size: 14px;
}

.category-mini-links a:hover {
  color: var(--amber);
}

.category-hero-small,
.ranking-title {
  position: relative;
  max-width: none;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 24rem), rgba(30, 41, 59, 0.62);
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

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

.ranking-row a {
  display: grid;
  grid-template-columns: 54px 84px minmax(0, 1fr) 68px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.56);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ranking-row a:hover {
  transform: translateY(-1px);
  border-color: var(--amber-line);
  background: rgba(30, 41, 59, 0.84);
}

.ranking-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  font-weight: 900;
}

.ranking-row img {
  width: 84px;
  height: 112px;
  border-radius: 14px;
}

.ranking-row strong {
  color: var(--amber);
  font-size: 24px;
  text-align: right;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 34px;
}

.search-page-form input {
  height: 50px;
  padding: 0 16px;
}

.detail-page {
  padding-top: 64px;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.52;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.78) 48%, rgba(15, 23, 42, 0.56) 100%), linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.04) 50%);
}

.detail-hero-inner {
  position: relative;
  padding: 54px 0 64px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  margin: 18px 0 18px;
  max-width: 900px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.detail-one-line {
  max-width: 900px;
  margin: 0 0 20px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.detail-score {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}

.detail-score strong {
  color: var(--amber);
  font-size: 42px;
  line-height: 1;
}

.detail-score span {
  color: var(--muted);
}

.player-section,
.detail-content {
  margin-bottom: 44px;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.74);
}

.player-section h2,
.detail-content h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  color: #111827;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 18px 46px rgba(251, 191, 36, 0.3);
  font-size: 32px;
  font-weight: 900;
}

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

.detail-content p {
  margin: 0 0 22px;
  color: var(--muted-strong);
  line-height: 2;
  font-size: 16px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.detail-meta-grid div {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.56);
}

.detail-meta-grid strong,
.detail-meta-grid span {
  display: block;
}

.detail-meta-grid strong {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #0b1120;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0;
}

.footer-grid p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

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

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

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

.footer-bottom {
  padding: 22px 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 14px;
  }

  .nav-search {
    min-width: 190px;
  }

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-control {
    display: none;
  }

  .hero-content {
    padding-bottom: 64px;
  }

  .section-heading,
  .wide-link,
  .category-card a,
  .detail-layout {
    display: block;
  }

  .section-heading > a {
    display: inline-flex;
    margin-top: 14px;
  }

  .poster-grid,
  .featured-grid,
  .compact-grid,
  .category-grid,
  .rank-grid,
  .wide-grid,
  .footer-grid,
  .detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster {
    width: min(280px, 75vw);
    margin-bottom: 24px;
  }

  .ranking-row a {
    grid-template-columns: 42px 70px minmax(0, 1fr);
  }

  .ranking-row strong {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .container,
  .nav-shell {
    width: min(100% - 24px, 1280px);
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-carousel {
    height: 620px;
  }

  .hero-layer {
    background: linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.48) 100%);
  }

  .hero-actions,
  .page-actions,
  .search-page-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .poster-grid,
  .featured-grid,
  .compact-grid,
  .category-grid,
  .rank-grid,
  .wide-grid,
  .footer-grid,
  .detail-meta-grid,
  .filter-panel,
  .hero-strip {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .wide-grid,
  .category-grid,
  .rank-grid,
  .footer-grid,
  .detail-meta-grid,
  .filter-panel,
  .hero-strip {
    grid-template-columns: 1fr;
  }

  .rank-card a {
    grid-template-columns: 38px 82px 1fr;
  }

  .ranking-row a {
    grid-template-columns: 38px 64px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-row img {
    width: 64px;
    height: 86px;
  }

  .player-section,
  .detail-content,
  .category-hero-small,
  .ranking-title {
    padding: 18px;
    border-radius: 22px;
  }

  .detail-hero-inner {
    padding: 34px 0 48px;
  }
}
