:root {
  color-scheme: dark;
  --bg: #030712;
  --panel: #0b1120;
  --panel-soft: #111827;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #9ca3af;
  --muted-strong: #d1d5db;
  --brand: #dc2626;
  --brand-light: #f97316;
  --brand-soft: rgba(220, 38, 38, 0.18);
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.16), transparent 30rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 28rem),
    var(--bg);
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.38);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, #ffffff, #fb923c);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

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

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #ffffff;
  background: var(--brand-soft);
}

.header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--panel-soft);
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.95);
}

.mobile-link {
  display: block;
  padding: 13px 14px;
  font-size: 15px;
}

.page-main {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  overflow: hidden;
  background: #05070d;
}

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

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.45fr);
  align-items: center;
  gap: 56px;
  padding: 82px max(24px, calc((100vw - 1180px) / 2)) 80px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 0.55s ease, visibility 0.55s ease, transform 0.75s ease;
}

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

.hero-backdrop {
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.96), rgba(3, 7, 18, 0.78), rgba(3, 7, 18, 0.36)),
    linear-gradient(0deg, rgba(3, 7, 18, 0.98), rgba(3, 7, 18, 0.18) 45%, rgba(3, 7, 18, 0.98)),
    var(--hero-image) center / cover no-repeat;
  filter: saturate(1.08);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 45%, rgba(249, 115, 22, 0.34), transparent 18rem);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(248, 113, 113, 0.34);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(127, 29, 29, 0.28);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--muted-strong);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.9;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fecaca;
  background: rgba(220, 38, 38, 0.18);
  font-size: 12px;
}

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

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 16px 35px rgba(220, 38, 38, 0.34);
}

.secondary-button {
  color: #ffffff;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.72);
}

.text-button {
  color: #fed7aa;
}

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

.hero-poster {
  display: block;
  width: min(340px, 100%);
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.9);
  font-weight: 800;
  font-size: 13px;
}

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

.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}

.quick-search-panel,
.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-search-panel {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: -42px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(11, 17, 32, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted-strong);
  font-size: 14px;
}

.home-search div,
.search-tools {
  display: flex;
  gap: 12px;
}

.home-search input,
.search-tools input,
.search-tools select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(3, 7, 18, 0.72);
  padding: 0 16px;
  outline: 0;
}

.home-search button {
  min-width: 112px;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.quick-links a,
.filter-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(17, 24, 39, 0.65);
}

.quick-links a:hover,
.filter-strip a:hover,
.filter-strip a.active {
  color: #ffffff;
  border-color: rgba(248, 113, 113, 0.6);
  background: var(--brand-soft);
}

.content-section {
  padding: 72px 0 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  flex: 0 0 auto;
  color: #fca5a5;
  font-weight: 800;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.72);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.16);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(248, 113, 113, 0.58);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 56%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.92);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.9);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 12px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.65;
}

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
}

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

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-soft);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.category-card img,
.category-overlay {
  position: absolute;
  inset: 0;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.category-card:hover img {
  opacity: 0.58;
  transform: scale(1.06);
}

.category-overlay {
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.2));
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 2;
  display: block;
}

.category-card strong {
  margin-top: 72px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.category-card em {
  margin-top: 10px;
  color: var(--muted-strong);
  font-style: normal;
  line-height: 1.65;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 34px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-row:hover,
.compact-card:hover,
.rank-card:hover {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(127, 29, 29, 0.24);
}

.rank-row span {
  color: #fb923c;
  font-size: 22px;
  font-weight: 900;
}

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

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

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

.compact-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.72);
}

.compact-card img {
  width: 68px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card em {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.sub-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.25), transparent 22rem),
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(3, 7, 18, 0.98));
}

.sub-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
  padding: 80px max(24px, calc((100vw - 1180px) / 2));
}

.sub-hero p {
  margin: 0 0 12px;
  color: #fb923c;
  font-weight: 900;
}

.sub-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.sub-hero span {
  display: block;
  max-width: 720px;
  margin-top: 20px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

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

.search-panel {
  padding-top: 42px;
}

.search-tools {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(11, 17, 32, 0.8);
}

.search-tools select {
  max-width: 180px;
}

.search-status {
  margin: 18px 0;
  color: var(--muted);
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: 50px 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 142px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  font-size: 20px;
  font-weight: 900;
}

.rank-card img {
  width: 86px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info strong,
.rank-info em,
.rank-info small {
  display: block;
}

.rank-info strong {
  font-size: 17px;
}

.rank-info em {
  margin: 7px 0;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-info small {
  color: var(--muted-strong);
  line-height: 1.55;
}

.detail-hero {
  min-height: 620px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.98), rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.96)),
    var(--detail-image) center / cover no-repeat;
  filter: blur(2px) saturate(1.08);
  transform: scale(1.02);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: center;
  gap: 46px;
  padding: 64px 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 700;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 860px;
  margin: 0 0 22px;
  color: var(--muted-strong);
  font-size: 19px;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(17, 24, 39, 0.62);
}

.detail-info .primary-button {
  margin-top: 30px;
}

.player-section {
  padding-top: 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.24));
  cursor: pointer;
}

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

.play-pulse {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 0 0 16px rgba(220, 38, 38, 0.18);
  font-size: 34px;
}

.player-cover strong {
  font-size: clamp(20px, 4vw, 36px);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

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

.story-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.72);
}

.story-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.story-card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.95;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.78);
}

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

.footer-brand p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 28px 0;
}

.footer-links a {
  color: var(--muted-strong);
}

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

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

  .hero-slide {
    grid-template-columns: 1fr 260px;
  }

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero {
    min-height: 760px;
  }

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

  .hero-poster {
    width: 210px;
    justify-self: start;
  }

  .quick-search-panel,
  .split-layout,
  .detail-inner,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .quick-links {
    justify-content: flex-start;
  }

  .search-tools,
  .home-search div {
    flex-direction: column;
  }

  .search-tools select {
    max-width: none;
  }

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

  .rank-card-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .detail-inner {
    gap: 28px;
  }

  .detail-poster {
    width: min(260px, 70vw);
  }
}

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

  .brand-text em {
    display: none;
  }

  .brand-text strong {
    font-size: 19px;
  }

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

  .hero {
    min-height: 720px;
  }

  .hero-slide {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1,
  .detail-info h1,
  .sub-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .quick-search-panel,
  .content-section,
  .detail-inner,
  .footer-inner {
    width: calc(100% - 24px);
  }

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

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

  .movie-card p {
    min-height: auto;
  }

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

  .rank-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .rank-row em {
    grid-column: 2;
  }

  .rank-card {
    grid-template-columns: 40px 72px minmax(0, 1fr);
  }

  .rank-card img {
    width: 72px;
  }

  .sub-hero {
    min-height: 260px;
    padding-left: 16px;
    padding-right: 16px;
  }

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