:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --paper: rgba(255, 255, 255, 0.88);
  --paper-solid: #ffffff;
  --text: #1c1917;
  --muted: #786f67;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fbbf24;
  --accent: #ea580c;
  --line: rgba(146, 64, 14, 0.16);
  --shadow: 0 22px 55px rgba(120, 53, 15, 0.16);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.34), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #fffbeb 42%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.96), rgba(180, 83, 9, 0.96));
  color: #fff7ed;
  box-shadow: 0 18px 40px rgba(92, 38, 8, 0.24);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #f97316);
  box-shadow: 0 10px 20px rgba(251, 191, 36, 0.28);
}

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

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 247, 237, 0.86);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-search input {
  width: 240px;
  border: 1px solid rgba(253, 230, 138, 0.34);
  border-radius: 999px;
  padding: 10px 76px 10px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(254, 243, 199, 0.74);
}

.header-search button,
.mobile-search button {
  position: absolute;
  right: 5px;
  border: 0;
  border-radius: 999px;
  padding: 7px 13px;
  color: #78350f;
  font-weight: 800;
  background: #fde68a;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #fff7ed;
}

.mobile-nav {
  padding: 0 22px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav nav {
  display: grid;
  gap: 8px;
  padding: 14px 0;
}

.mobile-search input {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: #ffffff;
  background: #1c1917;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-image:
    linear-gradient(90deg, rgba(28, 25, 23, 0.9), rgba(28, 25, 23, 0.5), rgba(28, 25, 23, 0.72)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 25, 23, 0.94) 0%, rgba(28, 25, 23, 0.55) 48%, rgba(28, 25, 23, 0.86) 100%),
    radial-gradient(circle at 24% 30%, rgba(251, 191, 36, 0.22), transparent 30rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  min-height: 70vh;
  margin: 0 auto;
  padding: 120px 420px 92px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-content h1 {
  max-width: 820px;
  margin: 20px 0 14px;
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.08em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 247, 237, 0.88);
  font-size: clamp(1rem, 2vw, 1.32rem);
}

.hero-tags,
.detail-labels,
.genre-chips,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.detail-labels span,
.genre-chips span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-tags span {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(253, 230, 138, 0.22);
}

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

.primary-button,
.secondary-button,
.large-search button,
.filter-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.large-search button {
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  box-shadow: 0 18px 36px rgba(217, 119, 6, 0.34);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.secondary-button:hover,
.large-search button:hover {
  transform: translateY(-2px) scale(1.01);
}

.primary-button.small {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.hero-rank-panel {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: calc((100vw - min(100vw, var(--max))) / 2 + 24px);
  width: 350px;
  transform: translateY(-50%);
  border: 1px solid rgba(253, 230, 138, 0.2);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(28, 25, 23, 0.48);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.panel-title {
  margin-bottom: 12px;
  color: #fde68a;
  font-weight: 950;
}

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

.hero-rank-item,
.detail-rank-link {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-rank-item:hover,
.detail-rank-link:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(3px);
}

.hero-rank-item span,
.detail-rank-link span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #78350f;
  background: #fde68a;
  font-weight: 950;
}

.hero-rank-item strong,
.detail-rank-link strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-rank-item em,
.detail-rank-link em {
  color: rgba(255, 247, 237, 0.72);
  font-style: normal;
  font-size: 0.82rem;
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  font-size: 2rem;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 34px;
  background: #fbbf24;
}

.section-wrap,
.detail-wrap {
  width: min(100% - 44px, var(--max));
  margin: 0 auto;
  padding: 58px 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 34px 0 18px;
}

.stat-card,
.category-card,
.overview-category-card,
.detail-info-card,
.cover-card,
.side-card,
.filter-panel,
.player-card,
.podium-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stat-card {
  padding: 24px;
}

.stat-card strong {
  display: block;
  color: var(--brand-dark);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 950;
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

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

.section-heading h2,
.page-hero h1,
.detail-info-card h1 {
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading.mini h2 {
  font-size: 1.7rem;
}

.text-link {
  color: var(--brand-dark);
  font-weight: 900;
}

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

.category-card,
.overview-category-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 210px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::before,
.overview-category-card::before {
  content: "";
  position: absolute;
  inset: auto -30px -60px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.42), transparent 70%);
}

.category-card:hover,
.overview-category-card:hover,
.movie-card:hover,
.podium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px rgba(120, 53, 15, 0.2);
}

.category-count {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 900;
}

.category-card h3,
.overview-category-card h2 {
  margin: 18px 0 10px;
  font-size: 1.35rem;
  font-weight: 950;
}

.category-card p,
.overview-category-card p,
.stat-card p,
.site-footer p {
  color: var(--muted);
}

.category-card em {
  display: block;
  margin-top: 16px;
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 800;
}

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

.rank-sidebar {
  position: sticky;
  top: 94px;
  border-radius: var(--radius);
  padding: 22px;
  color: #fff7ed;
  background: linear-gradient(160deg, #78350f, #1c1917);
  box-shadow: var(--shadow);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-solid);
  box-shadow: 0 16px 42px rgba(120, 53, 15, 0.11);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(circle at 25% 15%, rgba(251, 191, 36, 0.55), transparent 26%),
    linear-gradient(145deg, #451a03, #92400e 48%, #f59e0b);
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.64));
}

.year-badge,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.year-badge {
  top: 10px;
  left: 10px;
  color: #78350f;
  background: #fde68a;
}

.rank-badge {
  top: 10px;
  right: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
}

.play-chip {
  left: 12px;
  bottom: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

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

.movie-meta-line {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0;
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 950;
}

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

.movie-one-line {
  display: -webkit-box;
  min-height: 3.2em;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span,
.detail-tags span,
.genre-chips span {
  color: #92400e;
  background: #ffedd5;
}

.movie-card-compact .movie-card-body {
  padding: 13px;
}

.movie-card-compact .movie-one-line,
.movie-card-compact .tag-row {
  display: none;
}

.page-hero {
  width: min(100% - 44px, var(--max));
  margin: 34px auto 0;
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(40px, 7vw, 78px);
  color: #fff7ed;
  background:
    radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.38), transparent 28rem),
    linear-gradient(135deg, #78350f, #1c1917 72%);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  color: #ffffff;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 247, 237, 0.78);
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 247, 237, 0.78);
  font-weight: 800;
}

.detail-wrap .breadcrumb {
  color: var(--muted);
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 240px auto;
  gap: 16px;
  align-items: end;
  padding: 20px;
  margin-bottom: 26px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 900;
}

.filter-panel input,
.filter-panel select,
.large-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus,
.large-search input:focus {
  border-color: rgba(217, 119, 6, 0.64);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

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

.overview-category-head span {
  color: var(--brand-dark);
  font-weight: 950;
}

.sample-links {
  display: grid;
  gap: 7px;
  margin: 18px 0;
}

.sample-links a {
  color: var(--brand-dark);
  font-weight: 800;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.podium-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  text-align: center;
  transition: transform 0.25s ease;
}

.podium-card .poster-frame {
  max-width: 230px;
  margin: 0 auto 16px;
  border-radius: 22px;
}

.podium-rank {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  font-weight: 950;
}

.podium-card strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 950;
}

.podium-card em {
  color: var(--muted);
  font-style: normal;
}

.large-search {
  display: flex;
  gap: 12px;
  max-width: 800px;
  margin-top: 24px;
}

.large-search input {
  min-height: 56px;
  border-radius: 999px;
}

.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.popular-tags a {
  border: 1px solid rgba(253, 230, 138, 0.2);
  border-radius: 999px;
  padding: 6px 11px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  overflow: hidden;
  padding: 14px;
  background: #1c1917;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 40%, rgba(251, 191, 36, 0.22), transparent 22rem),
    #0c0a09;
}

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

.player-start {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

.player-start span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #92400e;
  background: #fef3c7;
}

.player-shell.is-playing .player-start {
  display: none;
}

.player-source-line,
.player-message {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  color: rgba(255, 247, 237, 0.78);
  font-weight: 800;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.player-source-line {
  bottom: 18px;
}

.player-message {
  bottom: 48px;
}

.detail-info-card,
.cover-card,
.side-card {
  padding: 24px;
}

.detail-labels span {
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
}

.detail-one-line {
  color: var(--brand-dark);
  font-size: 1.2rem;
  font-weight: 800;
}

.text-block {
  margin-top: 28px;
}

.text-block h2,
.side-card h2,
.cover-card h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 950;
}

.text-block p {
  margin: 0;
  color: #3f342b;
  line-height: 1.9;
  white-space: pre-wrap;
}

.detail-aside {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 18px;
}

.cover-card .poster-frame {
  border-radius: 22px;
  margin-bottom: 16px;
}

.cover-card p {
  color: var(--muted);
}

.side-card .detail-rank-link {
  grid-template-columns: 42px 1fr auto;
  color: var(--text);
  background: #fff7ed;
}

.side-card .detail-rank-link em {
  color: var(--muted);
}

.related-section {
  padding-top: 0;
}

.site-footer {
  margin-top: 36px;
  color: #ffedd5;
  background: linear-gradient(180deg, #78350f, #1c1917);
}

.footer-grid {
  width: min(100% - 44px, var(--max));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 32px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1.1rem;
}

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

.footer-links a {
  border-radius: 999px;
  padding: 7px 10px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 22px;
  text-align: center;
  color: rgba(255, 247, 237, 0.68);
}

.image-fallback {
  visibility: hidden;
}

@media (max-width: 1180px) {
  .hero-content {
    padding-right: 24px;
  }

  .hero-rank-panel {
    display: none;
  }

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

  .rank-sidebar,
  .detail-aside {
    position: static;
  }

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

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .intro-strip,
  .category-grid,
  .overview-grid,
  .podium-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 640px) {
  .site-header-inner {
    min-height: 64px;
    padding: 0 16px;
  }

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

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

  .hero-content {
    padding: 96px 18px 84px;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 15vw, 4rem);
  }

  .hero-control {
    display: none;
  }

  .section-wrap,
  .detail-wrap,
  .page-hero {
    width: min(100% - 28px, var(--max));
  }

  .intro-strip,
  .category-grid,
  .overview-grid,
  .podium-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-one-line,
  .tag-row {
    display: none;
  }

  .large-search {
    flex-direction: column;
  }

  .player-start {
    padding: 12px 16px;
  }

  .player-source-line,
  .player-message {
    font-size: 0.78rem;
  }
}
