:root {
  color-scheme: light;
  --page-bg: #fff7ed;
  --body-bg: #f8fafc;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: rgba(148, 163, 184, 0.28);
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: #ffedd5;
  --amber: #f59e0b;
  --dark: #111827;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(249, 115, 22, 0.16), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #f8fafc 28rem, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.96), rgba(245, 158, 11, 0.96));
  color: #fff;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.22);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  font-size: 14px;
}

.logo-text {
  font-size: 22px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 99px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-button.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  flex-direction: column;
  gap: 8px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 38px;
  color: #fff;
  background: linear-gradient(135deg, #7c2d12 0%, #111827 48%, #0f172a 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(251, 146, 60, 0.32), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(245, 158, 11, 0.22), transparent 24rem),
    linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.92));
}

.hero-shell {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  align-items: center;
  gap: 46px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  grid-area: 1 / 1;
  transition: opacity 0.48s ease, transform 0.48s ease, visibility 0.48s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: #fed7aa;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-title-block h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-desc,
.page-hero p,
.detail-title-block p {
  margin: 20px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.hero-tags {
  margin: 24px 0 0;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--amber));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.3);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.button.ghost.dark {
  color: var(--text);
  background: #fff;
  border-color: var(--line);
}

.hero-poster {
  position: relative;
  min-height: 410px;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(1deg);
}

.hero-poster::after,
.movie-poster::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-play,
.poster-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  color: #fff;
  z-index: 2;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.34);
}

.hero-play {
  left: 28px;
  bottom: 28px;
  width: 70px;
  height: 70px;
  font-size: 26px;
}

.hero-search-card {
  position: relative;
  z-index: 3;
  width: min(520px, 100%);
  margin-top: auto;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
}

.hero-search-form label {
  display: block;
  margin-bottom: 10px;
  color: #fed7aa;
  font-weight: 800;
}

.hero-search-form div,
.search-row {
  display: flex;
  gap: 10px;
}

.hero-search-form input,
.filter-input,
.filter-control {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.hero-search-form input,
.filter-input {
  flex: 1;
  padding: 0 16px;
}

.hero-search-form button {
  min-width: 92px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--amber));
  font-weight: 800;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-quick-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 54px;
  background: #fff;
}

.section {
  padding: 46px 0;
}

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

.section-head.slim {
  align-items: flex-start;
}

.section-head h2 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.02em;
}

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

.section-more,
.text-link {
  color: var(--brand-dark);
  font-weight: 800;
}

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

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

.movie-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

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

.movie-score {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  left: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  font-size: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

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

.movie-card h3 {
  margin: 0;
  color: var(--dark);
  font-size: 18px;
  line-height: 1.28;
  font-weight: 900;
}

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

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
}

.movie-meta-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f8fafc;
}

.card-tags span {
  padding: 5px 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

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

.compact-card {
  position: relative;
  min-height: 128px;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow-soft);
}

.compact-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.compact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82));
}

.compact-card span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  font-weight: 900;
  line-height: 1.3;
}

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

.ranking-panel,
.info-card,
.side-card,
.search-panel,
.category-overview-card {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.ranking-panel {
  padding: 24px;
}

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

.rank-row,
.rank-table-row {
  display: grid;
  align-items: center;
  gap: 12px;
  color: var(--text);
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row {
  grid-template-columns: 34px 58px minmax(0, 1fr) auto;
  padding: 8px;
}

.rank-row:hover,
.rank-table-row:hover {
  background: #fff7ed;
  transform: translateX(2px);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  font-weight: 900;
  font-style: normal;
}

.rank-row img,
.rank-table-row img {
  width: 58px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-info,
.rank-title {
  min-width: 0;
  display: grid;
}

.rank-info strong,
.rank-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em,
.rank-title em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 20px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

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

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.86));
}

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

.category-tile span {
  display: block;
  margin-top: 78px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero {
  position: relative;
  padding: 76px 0 62px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 16%, rgba(249, 115, 22, 0.32), transparent 26rem),
    linear-gradient(135deg, #111827, #7c2d12 70%, #9a3412);
}

.page-hero.compact {
  padding: 58px 0;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-cover-stack img {
  width: 100%;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 4px 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: #fed7aa;
}

.search-panel {
  margin-bottom: 24px;
  padding: 18px;
}

.filter-control {
  min-width: 150px;
  padding: 0 12px;
}

.rank-table {
  display: grid;
  gap: 10px;
}

.rank-table-row {
  grid-template-columns: 46px 72px minmax(0, 1fr) 110px 84px 64px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.rank-table-row img {
  width: 72px;
  height: 48px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  color: #fff;
  background: #111827;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
}

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.06);
  opacity: 0.48;
}

.detail-hero::after {
  background:
    radial-gradient(circle at 18% 10%, rgba(249, 115, 22, 0.26), transparent 25rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.58));
}

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

.detail-title-block {
  max-width: 820px;
}

.detail-tags {
  margin-top: 22px;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.video-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.video-play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.38);
  font-size: 30px;
  transition: transform 0.2s ease;
}

.video-play-overlay:hover span {
  transform: scale(1.08);
}

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

.info-card {
  padding: 26px;
}

.info-card h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--dark);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.info-card p {
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 16px;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.side-card {
  padding: 20px;
}

.poster-side-card {
  padding: 0;
  overflow: hidden;
}

.poster-side-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.side-meta {
  padding: 18px;
  display: grid;
  gap: 6px;
}

.side-meta strong {
  font-size: 20px;
  line-height: 1.25;
}

.side-meta span {
  color: var(--muted);
}

.meta-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.meta-list div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.meta-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.meta-list dt {
  color: var(--muted);
}

.meta-list dd {
  margin: 0;
  font-weight: 800;
}

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

.site-footer {
  margin-top: 36px;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  margin: 10px 0 0;
  color: #9ca3af;
}

.footer-logo .logo-mark {
  background: linear-gradient(135deg, var(--brand), var(--amber));
}

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

.footer-links a {
  color: #9ca3af;
}

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

.footer-bottom {
  padding: 16px;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

  .hero-slide,
  .split-section,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 330px;
  }

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

  .site-header-inner {
    height: 62px;
  }

  .logo-text {
    font-size: 20px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-poster {
    min-height: 260px;
    border-radius: 24px;
  }

  .hero-search-form div,
  .search-row,
  .section-head,
  .hero-actions,
  .page-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-controls {
    position: static;
    margin-top: 8px;
  }

  .section {
    padding: 34px 0;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .related-grid,
  .detail-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .rank-table-row {
    grid-template-columns: 40px 64px minmax(0, 1fr) 56px;
  }

  .rank-table-row span:nth-child(4),
  .rank-table-row span:nth-child(5) {
    display: none;
  }

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

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

  .info-card,
  .side-card,
  .ranking-panel {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .container,
  .site-header-inner,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-title-block h1 {
    font-size: 32px;
  }

  .hero-desc,
  .page-hero p,
  .detail-title-block p {
    font-size: 16px;
  }

  .category-tile span {
    margin-top: 54px;
  }

  .video-play-overlay span {
    width: 66px;
    height: 66px;
    font-size: 24px;
  }
}
