:root {
  --site-bg: #f8fafc;
  --site-surface: #ffffff;
  --site-soft: #f1f5f9;
  --site-line: #e2e8f0;
  --site-text: #0f172a;
  --site-muted: #64748b;
  --site-accent: #d97706;
  --site-accent-dark: #92400e;
  --site-dark: #020617;
  --site-radius: 1.25rem;
  --site-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--site-text);
  white-space: nowrap;
}

.site-logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.3);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #475569;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--site-accent-dark);
  background: #fef3c7;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  width: min(330px, 34vw);
  padding: 6px;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input,
.hero-search input,
.filter-panel input,
.filter-panel select,
.mobile-nav input {
  width: 100%;
  outline: none;
  color: var(--site-text);
  background: transparent;
}

.header-search input {
  padding: 6px 10px;
}

.header-search button,
.hero-search button {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  background: var(--site-accent);
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  background: var(--site-accent-dark);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--site-line);
  background: #ffffff;
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--site-text);
}

.mobile-nav {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--site-line);
  background: #ffffff;
}

.mobile-nav a,
.mobile-nav form {
  display: block;
  padding: 12px 0;
  color: #334155;
  font-weight: 700;
}

.mobile-nav input {
  padding: 12px 14px;
  border: 1px solid var(--site-line);
  border-radius: 14px;
  background: var(--site-soft);
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.hero-track,
.hero-slide {
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-image,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-image.image-missing,
.poster-image.image-missing,
.detail-cover-image.image-missing {
  opacity: 0;
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(245, 158, 11, 0.3), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.68) 52%, rgba(2, 6, 23, 0.38)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 56px;
  min-height: 560px;
  padding-top: 52px;
}

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

.hero-eyebrow,
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.16);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 900px;
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-movie-title {
  color: #fde68a;
}

.hero-copy p {
  max-width: 720px;
  margin-bottom: 22px;
  color: #e2e8f0;
  font-size: 1.12rem;
  line-height: 1.8;
}

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

.hero-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-tags span {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.12);
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--site-accent);
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.28);
}

.primary-button.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.ghost-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(15, 23, 42, 0.88)),
    #1e293b;
  box-shadow: 0 35px 90px rgba(2, 6, 23, 0.55);
}

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

.hero-poster-card span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-control-row {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: -118px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

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

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-search input {
  padding: 8px 12px;
  color: #ffffff;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.hero-category-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  padding-bottom: 34px;
}

.hero-category-strip a {
  display: block;
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-category-strip a:hover {
  transform: translateY(-3px);
  background: rgba(146, 64, 14, 0.72);
}

.hero-category-strip span {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.hero-category-strip small {
  color: #cbd5e1;
  line-height: 1.5;
}

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

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

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

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin-top: 8px;
  color: var(--site-muted);
}

.section-more {
  min-height: 40px;
  border: 1px solid var(--site-line);
  color: var(--site-accent-dark);
  background: #ffffff;
}

.section-more:hover {
  transform: translateY(-1px);
  border-color: #f59e0b;
  color: #ffffff;
  background: var(--site-accent);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fbbf24;
  box-shadow: var(--site-shadow);
}

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(15, 23, 42, 0.85)),
    #1e293b;
}

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

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

.movie-year {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
}

.movie-play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 2.3rem;
  opacity: 0;
  background: rgba(2, 6, 23, 0.28);
  transition: opacity 0.2s ease;
}

.movie-card:hover .movie-play-icon {
  opacity: 1;
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--site-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.movie-card h3 {
  min-height: 3.1em;
  margin-bottom: 10px;
  color: var(--site-text);
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 900;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 4.6em;
  margin-bottom: 14px;
  overflow: hidden;
  color: #475569;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.category-card,
.category-overview-card,
.ranking-panel,
.detail-side-card,
.filter-panel {
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.category-card-main {
  display: block;
  padding: 24px;
}

.category-card-main span,
.category-overview-copy span {
  color: var(--site-accent-dark);
  font-weight: 900;
}

.category-card-main strong,
.category-overview-copy h2 {
  display: block;
  margin: 8px 0;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 900;
}

.category-card-main p,
.category-overview-copy p {
  color: var(--site-muted);
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 24px;
}

.category-samples a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #475569;
  background: var(--site-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.split-section {
  background: #ffffff;
}

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

.ranking-panel {
  padding: 22px;
}

.sticky-panel {
  position: sticky;
  top: 96px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--site-soft);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #fef3c7;
}

.rank-number {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--site-accent);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  color: var(--site-text);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--site-muted);
  font-size: 0.82rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 68px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.36), transparent 30%),
    linear-gradient(135deg, #020617, #1e293b 55%, #78350f);
}

.soft-hero,
.category-hero,
.ranking-hero {
  color: var(--site-text);
  background:
    radial-gradient(circle at 76% 18%, rgba(245, 158, 11, 0.2), transparent 28%),
    linear-gradient(135deg, #fff7ed, #f8fafc 62%, #e0f2fe);
}

.page-hero h1 {
  max-width: 860px;
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 700;
}

.soft-hero .breadcrumb,
.category-hero .breadcrumb,
.ranking-hero .breadcrumb {
  color: #64748b;
}

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

.category-overview-list {
  display: grid;
  gap: 24px;
}

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

.category-overview-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.category-preview-grid .movie-card {
  min-width: 0;
}

.category-preview-grid .movie-card:nth-child(n + 4) {
  display: none;
}

.mini-card .movie-card-body p,
.related-card .movie-card-body p {
  -webkit-line-clamp: 2;
  min-height: 3.1em;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--site-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--site-line);
  border-radius: 14px;
  background: var(--site-soft);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: var(--site-dark);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(15, 23, 42, 0.9)),
    #1e293b;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.48);
}

.detail-copy h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 780px;
  margin-bottom: 20px;
  color: #e2e8f0;
  font-size: 1.12rem;
  line-height: 1.8;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.detail-tags span {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.12);
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 40%, rgba(245, 158, 11, 0.28), transparent 34%),
    #020617;
  box-shadow: var(--site-shadow);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.62));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--site-accent);
  font-size: 2rem;
  box-shadow: 0 20px 48px rgba(217, 119, 6, 0.42);
}

.play-layer strong {
  font-size: 1.12rem;
  letter-spacing: 0.04em;
}

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

.detail-article,
.detail-side-card {
  padding: 28px;
}

.detail-article {
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.detail-article h2,
.detail-side-card h2 {
  margin-bottom: 16px;
  font-size: 1.45rem;
  line-height: 1.3;
  font-weight: 900;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  margin-bottom: 14px;
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.9;
}

.detail-side-card dl {
  display: grid;
  gap: 14px;
}

.detail-side-card div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--site-line);
}

.detail-side-card div:last-child {
  border-bottom: 0;
}

.detail-side-card dt {
  color: var(--site-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.detail-side-card dd {
  color: var(--site-text);
  font-weight: 800;
}

.detail-side-card a {
  color: var(--site-accent-dark);
}

.site-footer {
  padding: 40px 0;
  color: #cbd5e1;
  background: #020617;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 1.08rem;
}

.footer-inner p {
  color: #94a3b8;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-inner a:hover {
  color: #f59e0b;
}

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

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

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

  .sticky-panel {
    position: static;
  }
}

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

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

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

  .hero-slider,
  .hero-track,
  .hero-slide {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 620px;
    padding-top: 34px;
  }

  .hero-poster-card {
    width: min(260px, 100%);
    min-height: 340px;
  }

  .hero-poster-card img {
    height: 340px;
  }

  .hero-control-row {
    flex-direction: column;
    align-items: stretch;
    margin-top: -84px;
  }

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

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

  .detail-cover {
    width: min(280px, 100%);
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    min-height: 64px;
  }

  .site-logo {
    font-size: 1rem;
  }

  .hero-slider,
  .hero-track,
  .hero-slide {
    min-height: 820px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.03em;
  }

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

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

  .hero-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .hero-category-strip,
  .movie-grid,
  .compact-grid,
  .related-grid,
  .category-preview-grid {
    grid-template-columns: 1fr;
  }

  .category-preview-grid .movie-card:nth-child(n + 3) {
    display: none;
  }

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

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

  .detail-hero-inner {
    padding-top: 36px;
  }

  .detail-article,
  .detail-side-card,
  .ranking-panel {
    padding: 22px;
  }
}
