:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(17, 24, 39, 0.82);
  --panel-solid: #111827;
  --card: #10141f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f8fafc;
  --muted: #a1a8b5;
  --soft: #d1d5db;
  --red: #dc2626;
  --red-dark: #991b1b;
  --orange: #f97316;
  --amber: #fbbf24;
  --green: #22c55e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.22), transparent 30rem),
    radial-gradient(circle at 80% 12rem, rgba(249, 115, 22, 0.14), transparent 26rem),
    linear-gradient(180deg, #05070d 0%, #0b1020 45%, #05070d 100%);
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 13, 0.96);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.38);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 36px rgba(220, 38, 38, 0.42);
}

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

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

.nav-link,
.mobile-link {
  color: var(--soft);
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fff;
  background: rgba(220, 38, 38, 0.18);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #fff;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  display: block;
  background: rgba(255, 255, 255, 0.04);
}

main {
  min-height: 70vh;
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  padding-top: 76px;
  overflow: hidden;
  background: #05070d;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(5, 7, 13, 0.98) 0%, rgba(5, 7, 13, 0.8) 38%, rgba(5, 7, 13, 0.36) 72%, rgba(5, 7, 13, 0.82) 100%),
    var(--slide-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: opacity 0.65s ease, transform 1s ease;
}

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

.hero-shadow {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(0deg, #05070d, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: clamp(120px, 20vw, 190px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 999px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.26);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(2.6rem, 7vw, 5.9rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

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

.hero-tags span,
.pill-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 46px rgba(220, 38, 38, 0.35);
}

.ghost-button {
  border: 1px solid var(--line-strong);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

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

.primary-button:hover {
  box-shadow: 0 26px 64px rgba(220, 38, 38, 0.46);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.hero-thumbs {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 70px;
  width: min(420px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-thumb {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111827;
  cursor: pointer;
}

.hero-thumb img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero-thumb span {
  position: absolute;
  inset: auto 8px 8px 8px;
  z-index: 2;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: left;
  text-shadow: 0 2px 12px #000;
}

.hero-thumb.is-active {
  border-color: rgba(248, 113, 113, 0.76);
  box-shadow: 0 14px 34px rgba(220, 38, 38, 0.26);
}

.hero-thumb.is-active img,
.hero-thumb:hover img {
  opacity: 1;
  transform: scale(1.08);
}

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  color: #fecaca;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 113, 113, 0.48);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #111827, #1f2937);
}

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

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

.score-badge,
.rank-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
}

.score-badge {
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  background: rgba(220, 38, 38, 0.92);
  font-size: 0.78rem;
}

.rank-badge {
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  background: rgba(245, 158, 11, 0.92);
  font-size: 0.74rem;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(220, 38, 38, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.movie-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h3 a:hover {
  color: #fca5a5;
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.movie-desc {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pill-row {
  margin-top: 12px;
}

.search-panel {
  width: min(1240px, calc(100% - 32px));
  margin: -38px auto 22px;
  position: relative;
  z-index: 5;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.search-box span {
  color: #fca5a5;
  font-size: 1.5rem;
}

.search-box input {
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
}

.search-box input::placeholder {
  color: #8b95a6;
}

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

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #fff;
  border-color: rgba(248, 113, 113, 0.48);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.72), rgba(249, 115, 22, 0.62));
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 7, 13, 0.94), rgba(5, 7, 13, 0.14));
}

.category-info {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 2;
}

.category-info strong {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 950;
}

.category-info em {
  display: block;
  margin-top: 4px;
  color: #d1d5db;
  font-style: normal;
  font-size: 0.86rem;
}

.page-hero {
  position: relative;
  min-height: 440px;
  padding: 150px 0 90px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(5, 7, 13, 0.96), rgba(5, 7, 13, 0.62), rgba(5, 7, 13, 0.9)),
    var(--hero-bg);
  background-position: center;
  background-size: cover;
}

.page-hero.compact {
  min-height: 330px;
  padding-bottom: 70px;
}

.page-hero-layer {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, #05070d, transparent);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.1rem, 5.4vw, 4.8rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #d1d5db;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.feature-row {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 22px;
}

.glass-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px 72px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  border-color: rgba(248, 113, 113, 0.45);
}

.ranking-num {
  color: #fed7aa;
  font-size: 1.2rem;
  font-weight: 950;
}

.ranking-item img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
}

.ranking-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 900;
}

.ranking-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.ranking-score {
  min-width: 52px;
  text-align: center;
  color: #fff;
  font-weight: 950;
}

.detail-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #fca5a5;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.98), rgba(5, 7, 13, 0.62)),
    var(--detail-bg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 32px;
  padding: clamp(20px, 4vw, 42px);
  backdrop-filter: blur(4px);
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
  background: #111827;
}

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

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-lead {
  max-width: 850px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 1.15rem;
}

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

.meta-box {
  min-height: 80px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.meta-box span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.meta-box strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 900;
}

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

.player-section {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.player-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 950;
}

.player-head span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(220, 38, 38, 0.22), transparent 20rem),
    rgba(0, 0, 0, 0.44);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-overlay span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 24px 70px rgba(220, 38, 38, 0.45);
  font-size: 2.4rem;
}

.player-overlay strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.text-panel {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 950;
}

.text-panel p {
  margin: 0;
  color: #d1d5db;
  white-space: pre-line;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.8);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;
}

.footer-brand p {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--muted);
}

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

.footer-grid h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-grid a,
.footer-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: #fca5a5;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: #7d8796;
  text-align: center;
  font-size: 0.88rem;
}

.empty-state {
  display: none;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.68);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

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

@media (max-width: 1120px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .feature-row,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-thumbs {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 650px;
  }

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

  .hero-arrow {
    display: none;
  }

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

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

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

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

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

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

  .ranking-item {
    grid-template-columns: 42px 60px 1fr;
  }

  .ranking-score {
    display: none;
  }

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

@media (max-width: 560px) {
  .header-inner {
    height: 68px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

  .hero-carousel {
    min-height: 610px;
    padding-top: 68px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

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

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

  .movie-desc,
  .pill-row {
    display: none;
  }

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

  .page-hero {
    padding-top: 130px;
  }

  .search-panel {
    margin-top: -26px;
    padding: 14px;
  }

  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .detail-wrap {
    padding-top: 92px;
  }

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

  .player-head {
    align-items: start;
    flex-direction: column;
  }
}
