:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.82);
  --bg-card-strong: rgba(15, 23, 42, 0.95);
  --line: rgba(168, 85, 247, 0.22);
  --line-strong: rgba(236, 72, 153, 0.34);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --purple: #a855f7;
  --purple-soft: rgba(168, 85, 247, 0.18);
  --pink: #ec4899;
  --blue: #38bdf8;
  --yellow: #facc15;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 24px 80px rgba(168, 85, 247, 0.26);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.16), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #030712 100%);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.nav-shell {
  width: min(1440px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  box-shadow: 0 18px 40px rgba(168, 85, 247, 0.42);
}

.brand-text {
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, #c084fc, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.nav-link,
.mobile-nav-link {
  border-radius: 12px;
  color: #cbd5e1;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link {
  padding: 10px 13px;
  white-space: nowrap;
  font-size: 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link:hover,
.movie-card:hover,
.category-card:hover,
.horizontal-card:hover,
.ranking-row:hover {
  transform: translateY(-2px);
}

.nav-link-soft {
  color: #aebbd1;
}

.header-search,
.mobile-search,
.large-search,
.inline-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.large-search input,
.inline-filter input,
.inline-filter select {
  border: 1px solid var(--line);
  outline: none;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: border 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-search input {
  width: 240px;
  padding: 11px 14px;
}

.header-search button,
.mobile-search button,
.large-search button,
.inline-filter button {
  border: 0;
  color: white;
  border-radius: 14px;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(168, 85, 247, 0.26);
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.inline-filter input:focus,
.inline-filter select:focus {
  border-color: rgba(216, 180, 254, 0.82);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: white;
  border-radius: 99px;
}

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

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 12px 14px;
}

.mobile-search {
  margin-top: 8px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
}

.hero {
  position: relative;
  height: min(680px, calc(100vh - 72px));
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 38%, rgba(2, 6, 23, 0.22) 72%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 46%, rgba(2, 6, 23, 0.38) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: center;
  padding: 48px 0 72px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #d8b4fe;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  color: white;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy p,
.page-hero p,
.home-search-panel p {
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.hero-copy p {
  max-width: 680px;
  margin: 24px 0;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 999px;
  padding: 7px 11px;
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.17);
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.small-button,
.panel-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border 180ms ease;
}

.primary-button,
.small-button {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 20px 50px rgba(168, 85, 247, 0.34);
}

.primary-button {
  padding: 14px 24px;
}

.ghost-button,
.section-more,
.panel-link {
  border: 1px solid var(--line);
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button {
  padding: 13px 20px;
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover,
.panel-link:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  box-shadow: var(--shadow-glow);
  aspect-ratio: 2 / 3;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 22px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 36px;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.home-search-panel,
.content-section,
.page-shell,
.detail-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 30px;
  align-items: center;
  margin-top: -48px;
  position: relative;
  z-index: 20;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.home-search-panel h2,
.section-heading h2,
.rank-title h2,
.footer-block h2,
.detail-content h1,
.detail-content h2,
.info-panel h2,
.side-rank h2 {
  margin: 0;
  color: white;
}

.home-search-panel h2,
.section-heading h2,
.rank-title h2 {
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.05em;
}

.large-search input {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
}

.large-search button {
  padding: 16px 22px;
}

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

.content-section.no-pad-top {
  padding-top: 0;
}

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

.section-more,
.panel-link {
  padding: 10px 16px;
  color: #e9d5ff;
}

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

.movie-card,
.horizontal-card,
.category-card,
.ranking-row,
.info-panel,
.side-rank,
.detail-content,
.player-card,
.rank-panel {
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  transition: transform 180ms ease, border 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover,
.horizontal-card:hover,
.category-card:hover,
.ranking-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-glow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #111827;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
  opacity: 0.88;
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  transform: scale(0.92);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 800;
}

.movie-card h2,
.horizontal-card h2,
.ranking-row h2 {
  margin: 10px 0 8px;
  color: white;
  line-height: 1.25;
}

.movie-card h2 {
  font-size: 18px;
}

.movie-card p,
.horizontal-card p,
.ranking-row p,
.detail-content p,
.info-panel dd,
.footer-brand p,
.footer-block p,
.category-info p {
  color: var(--muted-strong);
  line-height: 1.72;
}

.movie-card p {
  min-height: 72px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

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

.compact-card p {
  min-height: 52px;
}

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

.stack-list {
  display: grid;
  gap: 14px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  transition: transform 180ms ease, border 180ms ease, box-shadow 180ms ease;
}

.horizontal-cover {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 2 / 3;
}

.horizontal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.rank-item span {
  color: var(--yellow);
  font-weight: 900;
}

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

.rank-item em {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.panel-link {
  width: 100%;
  margin-top: 18px;
}

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

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

.category-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 180ms ease, border 180ms ease, box-shadow 180ms ease;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 130px;
  background: #0f172a;
}

.category-covers img {
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
}

.category-info {
  padding: 18px;
}

.category-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.page-shell,
.detail-shell {
  padding: 34px 0 80px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.26), rgba(236, 72, 153, 0.14)),
    rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  margin-bottom: 18px;
}

.compact-hero h1,
.category-hero h1,
.search-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.inline-filter {
  flex-wrap: wrap;
  margin-top: 24px;
}

.inline-filter input,
.inline-filter select {
  min-height: 48px;
  padding: 0 16px;
}

.inline-filter input {
  min-width: min(100%, 320px);
}

.inline-filter select {
  min-width: 150px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 72px 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  transition: transform 180ms ease, border 180ms ease, box-shadow 180ms ease;
}

.rank-number {
  display: grid;
  place-items: center;
  height: 64px;
  border-radius: 18px;
  color: #fde68a;
  background: rgba(250, 204, 21, 0.12);
  font-size: 20px;
  font-weight: 900;
}

.ranking-cover {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 2 / 3;
}

.ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.small-button {
  border: 0;
  min-width: 82px;
  padding: 10px 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
}

.breadcrumb a {
  color: #d8b4fe;
}

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

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  object-fit: contain;
  background: #000;
}

.player-cover {
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
  transition: opacity 220ms ease, visibility 220ms ease;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.player-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(168, 85, 247, 0.22), transparent 24rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.08));
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  font-size: 30px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.12), var(--shadow-glow);
}

.detail-content,
.info-panel,
.side-rank {
  border-radius: 24px;
  padding: 24px;
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.detail-content h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.detail-content h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 24px;
}

.detail-content p {
  margin: 0;
  font-size: 17px;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #111827;
  box-shadow: var(--shadow-soft);
}

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

.info-panel dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.info-panel dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.info-panel dt {
  color: var(--muted);
}

.info-panel dd {
  margin: 0;
}

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

.side-rank a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.055);
}

.side-rank span {
  color: var(--yellow);
  font-weight: 900;
}

.related-section {
  width: 100%;
}

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

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

.footer-logo {
  margin-bottom: 16px;
}

.footer-block,
.footer-brand {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-block h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

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

.footer-block a:hover {
  color: #d8b4fe;
}

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

.footer-cats h2 {
  grid-column: 1 / -1;
}

.footer-bottom {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(168, 85, 247, 0.16);
  color: var(--muted);
  text-align: center;
}

[hidden],
.is-filtered-out {
  display: none !important;
}

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

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

  .desktop-nav .nav-link-soft {
    display: none;
  }
}

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

  .menu-button {
    display: flex;
    margin-left: auto;
  }

  .hero-content,
  .home-search-panel,
  .split-section,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 28px;
    align-content: center;
  }

  .hero-poster {
    display: none;
  }

  .rank-panel,
  .detail-side {
    position: static;
  }

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

@media (max-width: 760px) {
  .nav-shell,
  .mobile-nav,
  .home-search-panel,
  .content-section,
  .page-shell,
  .detail-shell,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1440px);
  }

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

  .hero {
    height: 640px;
    min-height: 640px;
  }

  .hero-content {
    padding: 38px 0 74px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .hero-copy p,
  .page-hero p,
  .home-search-panel p {
    font-size: 16px;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .home-search-panel,
  .page-hero,
  .detail-content,
  .info-panel,
  .side-rank {
    padding: 22px;
    border-radius: 22px;
  }

  .large-search,
  .inline-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .large-search input,
  .inline-filter input,
  .inline-filter select,
  .large-search button,
  .inline-filter button {
    width: 100%;
  }

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

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

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

  .movie-card h2 {
    font-size: 16px;
  }

  .movie-card p {
    min-height: auto;
    font-size: 13px;
  }

  .horizontal-card {
    grid-template-columns: 90px minmax(0, 1fr);
  }

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

  .ranking-row .small-button {
    grid-column: 2 / -1;
  }

  .detail-title-row {
    flex-direction: column;
  }

  .player-button {
    width: 66px;
    height: 66px;
    font-size: 24px;
  }

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

@media (max-width: 440px) {
  .movie-grid,
  .category-grid,
  .large-category-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-actions a {
    width: 100%;
  }
}
