:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --accent: #d97706;
  --accent-dark: #b45309;
  --accent-soft: #fff7ed;
  --dark: #111827;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0, #f8fafc 340px, #f8fafc 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  color: var(--dark);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.32);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  color: #334155;
}

.desktop-nav a {
  padding: 8px 0;
  transition: color 0.18s ease;
}

.desktop-nav a:hover {
  color: var(--accent);
}

.header-search {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 290px;
}

.header-search input,
.local-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 11px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.local-search input:focus {
  border-color: rgba(217, 119, 6, 0.62);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.header-search button,
.local-tools button,
.primary-button,
.ghost-button,
.text-button,
.small-play {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.header-search button,
.primary-button,
.small-play {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.25);
}

.header-search button {
  padding: 11px 16px;
}

.primary-button,
.ghost-button,
.text-button,
.small-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-button.light {
  color: var(--ink);
  border-color: rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.82);
}

.text-button {
  color: #fed7aa;
  background: transparent;
  padding-inline: 8px;
}

.primary-button:hover,
.ghost-button:hover,
.header-search button:hover,
.small-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(217, 119, 6, 0.28);
}

.search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(520px, 92vw);
  max-height: 470px;
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.95);
  display: none;
  padding: 10px;
}

.search-panel.is-open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  align-items: center;
}

.search-result-item:hover {
  background: var(--accent-soft);
}

.search-result-item img {
  height: 78px;
  border-radius: 12px;
  background: #f1f5f9;
}

.search-result-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 3px;
}

.search-result-item span {
  color: var(--muted);
  font-size: 13px;
}

.search-empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #fff7ed;
  color: var(--accent-dark);
  border-radius: 14px;
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 24px 18px;
  background: #fff;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 12px 4px;
  font-weight: 800;
  color: #334155;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--dark);
}

.hero-track,
.hero-slide {
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 46px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 24px 92px;
  opacity: 0;
  transform: translateX(22px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.42), transparent 28%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.12), #111827 100%);
  pointer-events: none;
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.detail-hero .eyebrow {
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero h1,
.hero h2 {
  margin: 20px 0 16px;
  max-width: 780px;
  color: #fff;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero h2 {
  font-size: clamp(34px, 4.7vw, 58px);
}

.hero p {
  max-width: 720px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
  margin: 0 0 26px;
}

.hero-actions,
.page-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

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

.hero-tags {
  margin-top: 26px;
  max-width: 820px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  color: #92400e;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-poster {
  aspect-ratio: 2 / 3;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 34px 72px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
  font-size: 30px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 38px;
  background: #f59e0b;
}

.section,
.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px;
}

.page-shell {
  padding-top: 32px;
}

.section-heading,
.section-title-row {
  margin-bottom: 28px;
}

.section-heading h2,
.section-title-row h2,
.detail-content h2,
.player-section h2 {
  margin: 12px 0 10px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-heading p,
.spotlight-panel p,
.page-hero p,
.category-overview-card p,
.detail-content p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-title-row > a {
  color: var(--accent-dark);
  font-weight: 900;
}

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

.category-card,
.category-overview-card,
.ranking-panel,
.spotlight-panel,
.movie-card,
.detail-content article,
.detail-content aside {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.category-card {
  display: block;
  padding: 22px;
  min-height: 178px;
  background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card span,
.category-overview-head span {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
}

.ranking-panel,
.spotlight-panel {
  padding: 28px;
}

.spotlight-panel {
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(251, 191, 36, 0.36), transparent 36%),
    linear-gradient(135deg, #111827, #78350f);
}

.spotlight-panel h2,
.spotlight-panel p {
  color: #fff;
}

.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.ranking-list a:hover {
  background: #fff7ed;
}

.ranking-list span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
}

.ranking-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

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

.movie-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.poster-link {
  position: relative;
  display: block;
  height: 318px;
  overflow: hidden;
  background: #e2e8f0;
}

.compact-card .poster-link {
  height: 238px;
}

.poster-link img {
  transition: transform 0.35s ease;
}

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.type-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  left: 12px;
  background: rgba(217, 119, 6, 0.95);
}

.year-badge {
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  left: 12px;
  top: 48px;
  background: rgba(220, 38, 38, 0.9);
}

.poster-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(217, 119, 6, 0.94);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

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

.movie-card h3 a:hover {
  color: var(--accent-dark);
}

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

.card-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.local-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

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

.local-tools button {
  padding: 10px 14px;
  background: #f8fafc;
  color: #334155;
}

.local-tools button.is-active,
.local-tools button:hover {
  color: #fff;
  background: var(--accent);
}

.local-search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.42), transparent 32%),
    linear-gradient(135deg, #111827, #78350f);
  box-shadow: var(--shadow);
}

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

.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  color: #e2e8f0;
  max-width: 780px;
  margin: 0;
}

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

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

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

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.category-overview-head strong {
  color: var(--accent-dark);
  font-size: 14px;
}

.category-overview-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
}

.category-overview-card li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
}

.category-overview-card li a:hover {
  background: #fff7ed;
  color: var(--accent-dark);
}

.category-overview-card li span {
  color: var(--muted);
  font-size: 13px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.28);
}

.detail-copy h1 {
  margin: 18px 0 18px;
  color: #fff;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.detail-lead {
  max-width: 820px;
  color: #e2e8f0;
  font-size: 19px;
  line-height: 1.8;
}

.detail-tags span {
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.player-section {
  padding: 52px 0 24px;
}

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

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  cursor: pointer;
  color: #fff;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-large {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 119, 6, 0.95);
  color: #fff;
  font-size: 34px;
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
  font-size: 22px;
}

.player-message {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 3;
  margin: 0;
  color: #fff;
  font-weight: 800;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 22px;
  margin: 46px 0 0;
}

.detail-content article,
.detail-content aside {
  padding: 28px;
}

.detail-content article:first-child {
  grid-column: span 2;
}

.detail-content h2 {
  font-size: 28px;
}

.detail-content p {
  margin: 0;
}

.detail-content dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
}

.detail-content dt {
  color: var(--muted);
  font-weight: 900;
}

.detail-content dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-soft);
}

.ranking-cover {
  position: relative;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  background: #e2e8f0;
}

.ranking-cover span {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(217, 119, 6, 0.94);
  font-weight: 900;
  font-size: 12px;
}

.ranking-row h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-row p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  margin-top: 50px;
  background: #111827;
  color: #cbd5e1;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 24px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner strong {
  color: #fff;
  font-size: 22px;
}

.footer-inner p {
  max-width: 720px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-weight: 800;
}

.footer-links a:hover {
  color: #fbbf24;
}

[data-card].is-hidden {
  display: none;
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

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

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .header-search {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .hero,
  .hero-track,
  .hero-slide {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 64px;
  }

  .hero-poster {
    width: min(260px, 72vw);
    justify-self: center;
  }

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .split-section,
  .detail-hero,
  .detail-content,
  .local-tools,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .detail-content article:first-child {
    grid-column: auto;
  }

  .detail-cover {
    max-width: 320px;
  }

  .section,
  .page-shell {
    padding-inline: 18px;
  }

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

  .section-title-row,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .hero h1,
  .hero h2,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.045em;
  }

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

  .poster-link,
  .compact-card .poster-link {
    height: 360px;
  }

  .ranking-list a {
    grid-template-columns: 42px 1fr;
  }

  .ranking-list em {
    grid-column: 2;
  }
}
