:root {
  --bg-main: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-strong: rgba(30, 41, 59, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #ffffff;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-soft: rgba(245, 158, 11, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 28rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.34);
}

.brand-text {
  font-size: 1.35rem;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.site-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted-strong);
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.62);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.9);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #ffffff;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--bg-main);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.82) 34%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.12) 100%);
}

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

.hero-meta,
.detail-meta-line,
.card-tags,
.card-meta,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta span,
.detail-meta-line span,
.card-tags span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.62);
  color: var(--muted-strong);
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-meta span:first-child,
.detail-meta-line span:first-child {
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.88);
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 0;
  max-width: 760px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
  text-wrap: balance;
}

.hero-content h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.hero-content p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.8;
}

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

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

.primary-action {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.32);
}

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

.primary-action:hover {
  box-shadow: 0 20px 54px rgba(245, 158, 11, 0.46);
}

.ghost-action {
  color: var(--muted-strong);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(14px);
}

.ghost-action:hover {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.82);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  font-size: 2.3rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(10px);
}

.hero-control:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.content-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
}

.home-search {
  padding-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.section-heading i {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.36), transparent);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.64);
  border: 1px solid var(--line);
}

.search-box span {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

.filter-selects {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-selects select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: #ffffff;
  background: #0f172a;
  outline: 0;
}

.movie-grid,
.compact-grid,
.wide-grid,
.category-grid,
.overview-grid,
.featured-rank-grid {
  display: grid;
  gap: 22px;
}

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

.full-grid {
  margin-top: 24px;
}

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

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.9));
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(245, 158, 11, 0.12);
}

.card-link {
  display: block;
  height: 100%;
}

.card-poster {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #0f172a;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 58%);
  opacity: 0.82;
}

.card-badge,
.card-score,
.card-play {
  position: absolute;
  z-index: 2;
}

.card-badge {
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  font-size: 0.74rem;
  font-weight: 800;
}

.card-score {
  top: 12px;
  right: 12px;
  border-radius: 10px;
  padding: 5px 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.56);
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-play {
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.36);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 14px;
  color: #64748b;
  font-size: 0.76rem;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #475569;
}

.card-tags span {
  padding: 3px 7px;
  font-size: 0.7rem;
}

.movie-card-horizontal .card-link {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
}

.movie-card-horizontal .card-poster {
  height: 100%;
  min-height: 210px;
  aspect-ratio: auto;
}

.movie-card-horizontal .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.movie-card-minimal .card-poster {
  aspect-ratio: 4 / 3;
}

.movie-card-minimal .card-tags,
.movie-card-minimal .card-meta,
.movie-card-minimal .card-body p {
  display: none;
}

.movie-card-large {
  grid-column: span 2;
}

.category-tile,
.category-overview-card a,
.ranking-copy,
.rank-list,
.story-card,
.player-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.category-tile {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 22px;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.18));
}

.category-tile:hover img {
  opacity: 0.52;
  transform: scale(1.08);
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.ranking-copy {
  padding: 32px;
}

.ranking-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

.ranking-copy p {
  margin: 18px 0 0;
  color: var(--muted-strong);
  line-height: 1.8;
}

.rank-list {
  padding: 16px;
}

.rank-row,
.ranking-table-row {
  display: grid;
  align-items: center;
  gap: 14px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.rank-row:hover,
.ranking-table-row:hover {
  background: rgba(51, 65, 85, 0.62);
  transform: translateX(4px);
}

.rank-row span,
.ranking-table-row span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  font-weight: 900;
}

.rank-row strong,
.ranking-table-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em,
.ranking-table-row em,
.ranking-table-row b {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.24), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
}

.small-hero {
  padding: 88px 16px 64px;
  border-bottom: 1px solid var(--line);
}

.small-hero > div {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.small-hero span {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.small-hero h1 {
  margin: 12px 0;
  max-width: 820px;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.small-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.08rem;
  line-height: 1.8;
}

.category-overview-card a {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 210px;
  overflow: hidden;
}

.overview-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: #0f172a;
}

.overview-images img {
  width: 100%;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
}

.overview-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overview-body h2 {
  margin: 0;
  font-size: 1.55rem;
}

.overview-body p {
  margin: 12px 0 18px;
  color: var(--muted-strong);
  line-height: 1.75;
}

.overview-body span {
  color: var(--accent);
  font-weight: 900;
}

.ranking-table {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.56);
  padding: 14px;
}

.ranking-table-row {
  grid-template-columns: 44px minmax(0, 1fr) 160px 90px;
  padding: 12px 14px;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 36px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(2.2rem, 6vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.08rem;
  line-height: 1.85;
}

.player-shell {
  padding-top: 22px;
}

.player-card {
  padding: 18px;
}

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

.movie-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.7));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.38);
  font-size: 2.1rem;
  text-indent: 5px;
}

.player-start strong {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  letter-spacing: 0.04em;
}

.movie-player.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.story-card {
  padding: 28px;
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.story-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.9;
}

.tag-cloud {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.42);
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer-brand {
  color: #ffffff;
  font-weight: 900;
  font-size: 1.1rem;
}

.footer-inner p {
  margin: 0;
  text-align: right;
}

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

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

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

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

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-content {
    padding-top: 96px;
  }

  .hero-control {
    top: auto;
    bottom: 24px;
    width: 44px;
    height: 44px;
    font-size: 1.9rem;
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

  .movie-grid,
  .compact-grid,
  .wide-grid,
  .category-grid,
  .overview-grid,
  .featured-rank-grid,
  .detail-content,
  .ranking-layout {
    grid-template-columns: 1fr 1fr;
  }

  .movie-card-horizontal .card-link,
  .category-overview-card a,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .card-poster {
    min-height: 220px;
  }

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

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

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

  .ranking-table-row em {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner p {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .content-shell,
  .detail-hero,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .hero-carousel {
    min-height: 78vh;
  }

  .hero-meta span,
  .detail-meta-line span {
    padding: 5px 9px;
    font-size: 0.76rem;
  }

  .hero-actions,
  .detail-actions,
  .filter-selects {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .ghost-action,
  .filter-selects select {
    width: 100%;
  }

  .movie-grid,
  .compact-grid,
  .wide-grid,
  .category-grid,
  .overview-grid,
  .featured-rank-grid,
  .detail-content,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .movie-card-large {
    grid-column: auto;
  }

  .small-hero {
    padding-top: 70px;
  }

  .overview-images {
    min-height: 220px;
  }

  .player-card {
    padding: 8px;
    border-radius: 18px;
  }

  .movie-player {
    border-radius: 14px;
  }

  .story-card {
    padding: 22px;
  }
}
