:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --orange: #f97316;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 0%, rgba(249, 115, 22, 0.14), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(2, 6, 23, 0.9);
  border-color: var(--line);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-light), var(--orange));
  color: #ffffff;
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.34);
}

.logo-text,
.footer-logo span:last-child {
  font-size: 24px;
  background: linear-gradient(90deg, var(--amber-light), var(--orange), var(--amber-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-weight: 700;
  border-radius: 14px;
  transition: color 0.24s ease, background 0.24s ease, transform 0.24s ease;
}

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  color: white;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  display: grid;
  gap: 8px;
  padding: 0 24px;
  background: rgba(2, 6, 23, 0.94);
  border-bottom: 1px solid transparent;
  transition: max-height 0.28s ease, padding 0.28s ease, border-color 0.28s ease;
}

.site-header.menu-open .mobile-nav {
  max-height: 420px;
  padding: 14px 24px 22px;
  border-color: var(--line);
}

.mobile-link {
  display: block;
  padding: 14px 16px;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: #020617;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 44px;
  padding: 130px max(24px, calc((100vw - 1280px) / 2 + 24px)) 160px;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.08);
  transform: scale(1.04);
  z-index: -3;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 70% 40%, rgba(245, 158, 11, 0.22), transparent 22rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.42) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 32%, rgba(2, 6, 23, 0.42) 100%);
}

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

.hero-badges,
.detail-tags,
.tag-row,
.card-meta,
.quick-links,
.detail-actions,
.hero-actions,
.detail-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span,
.detail-tags span,
.tag-row span,
.region-pill,
.rank-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-badges span,
.detail-tags span,
.tag-row span {
  padding: 7px 11px;
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.hero-badges span:first-child,
.section-kicker {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  border-color: transparent;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero p,
.page-hero p,
.section-heading p,
.detail-copy .lead-text {
  color: var(--muted-strong);
  line-height: 1.78;
}

.hero p {
  max-width: 680px;
  margin: 0 0 30px;
  font-size: clamp(16px, 2vw, 21px);
}

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

.primary-button,
.hero-search button {
  border: 0;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.26);
  cursor: pointer;
}

.ghost-button {
  border: 1px solid var(--line);
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transform: translateY(12px);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.26));
}

.hero-control-wrap {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 36px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.38);
  cursor: pointer;
  transition: width 0.28s ease, background 0.28s ease;
}

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

.hero-rail {
  display: flex;
  gap: 12px;
  max-width: 58%;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hero-rail-card {
  min-width: 168px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-rail-card.active,
.hero-rail-card:hover {
  border-color: rgba(245, 158, 11, 0.58);
  background: rgba(245, 158, 11, 0.16);
}

.hero-rail-card img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-rail-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.quick-search-panel {
  max-width: 1280px;
  margin: -54px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.78);
  outline: none;
}

.hero-search input,
.filter-bar input {
  padding: 0 16px;
}

.filter-bar select {
  padding: 0 14px;
}

.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.quick-links {
  margin-top: 14px;
  justify-content: center;
}

.quick-links a,
.detail-nav-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.64);
}

.quick-links a:hover,
.detail-nav-links a:hover {
  color: var(--amber-light);
  border-color: rgba(245, 158, 11, 0.55);
}

.content-section,
.filter-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px;
}

.soft-section {
  max-width: none;
  background: rgba(15, 23, 42, 0.42);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.soft-section > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 28px;
  max-width: 780px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 56px);
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.compact-heading {
  margin-bottom: 20px;
}

.section-kicker {
  padding: 7px 12px;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.wide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

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

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

.movie-card {
  min-width: 0;
}

.card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 54px rgba(0, 0, 0, 0.18);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.card-link:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(245, 158, 11, 0.44);
  box-shadow: 0 24px 80px rgba(245, 158, 11, 0.12);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.75);
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.72) 100%);
}

.region-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 7px 10px;
  color: white;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.region-pill {
  top: 12px;
  left: 12px;
}

.rank-badge {
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.96), rgba(249, 115, 22, 0.96));
}

.card-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-meta {
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: rgba(148, 163, 184, 0.58);
}

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row {
  margin-top: auto;
  gap: 6px;
}

.tag-row span {
  padding: 5px 8px;
  font-size: 11px;
}

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

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

.movie-card.wide .card-link,
.movie-card.rank .card-link {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.movie-card.wide .poster-frame img,
.movie-card.rank .poster-frame img {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card.featured .poster-frame img {
  aspect-ratio: 16 / 10;
}

.movie-card.featured h3 {
  font-size: 22px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 210px));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.2);
}

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

.empty-state.show {
  display: block;
}

.page-hero {
  min-height: 430px;
  padding: 130px max(24px, calc((100vw - 1280px) / 2 + 24px)) 70px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 16% 18%, rgba(245, 158, 11, 0.2), transparent 30rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.98));
  border-bottom: 1px solid var(--line);
}

.slim-hero {
  min-height: 360px;
}

.category-hero {
  min-height: 360px;
}

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

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

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

.category-card {
  display: grid;
  gap: 16px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.46);
}

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

.category-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

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

.category-card span {
  color: var(--amber-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.category-card h3 {
  margin: 8px 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.detail-top {
  position: relative;
  min-height: 680px;
  padding: 130px max(24px, calc((100vw - 1280px) / 2 + 24px)) 70px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.36;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.76)), linear-gradient(0deg, #020617, transparent 38%);
}

.detail-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(230px, 330px) minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  max-width: 920px;
  font-size: clamp(38px, 6vw, 78px);
}

.lead-text {
  max-width: 880px;
  font-size: 18px;
}

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

.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 20px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22), rgba(2, 6, 23, 0.72));
  color: white;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  font-size: 34px;
  box-shadow: 0 24px 64px rgba(245, 158, 11, 0.32);
}

.player-overlay strong {
  font-size: clamp(20px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.detail-info-section {
  padding-top: 42px;
}

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

.detail-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.74);
}

.detail-panel h2 {
  margin: 14px 0 12px;
  font-size: 28px;
}

.detail-panel p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.9;
}

.detail-nav-links {
  justify-content: space-between;
  margin-top: 28px;
}

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

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 38px;
}

.footer-grid h3 {
  margin: 0 0 16px;
}

.footer-grid p {
  color: var(--muted);
  line-height: 1.75;
}

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

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

.footer-links a:hover {
  color: var(--amber-light);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

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

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

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding-top: 118px;
    padding-bottom: 150px;
  }

  .hero-poster {
    display: none;
  }

  .hero-rail {
    display: none;
  }

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

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

  .feature-grid,
  .wide-grid,
  .ranking-list,
  .large-ranking {
    grid-template-columns: 1fr;
  }

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

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

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

  .logo-mark {
    width: 36px;
    height: 36px;
  }

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

  .hero {
    min-height: 680px;
  }

  .hero-slide {
    padding: 104px 18px 130px;
  }

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

  .hero-control-wrap {
    left: 18px;
    right: 18px;
  }

  .quick-search-panel,
  .content-section,
  .filter-section,
  .player-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-search,
  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .movie-card.wide .card-link,
  .movie-card.rank .card-link {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .movie-card h3 {
    font-size: 15px;
  }

  .movie-card p,
  .tag-row {
    display: none;
  }

  .card-body {
    padding: 12px;
  }

  .page-hero,
  .detail-top {
    padding-left: 18px;
    padding-right: 18px;
  }

  .play-icon {
    width: 66px;
    height: 66px;
    font-size: 26px;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 420px) {
  .library-grid,
  .compact-grid,
  .major-grid,
  .region-grid {
    grid-template-columns: 1fr;
  }
}
