:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #152033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;
  --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 42px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 24px 72px rgba(15, 23, 42, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 48%, var(--slate-100) 100%);
}

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: 100;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900) 0%, var(--slate-800) 50%, var(--slate-900) 100%);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.12);
}

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

.brand-text strong {
  font-size: 1.22rem;
  letter-spacing: 0.01em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--slate-300);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
  color: var(--teal-400);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

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

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-track {
  position: relative;
  min-height: 72vh;
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(20, 184, 166, 0.34), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.82) 48%, rgba(15, 23, 42, 0.22) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.62), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 72vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 760px;
  margin-left: max(16px, calc((100vw - 1280px) / 2));
  padding: 88px 0 72px;
  color: var(--white);
}

.hero-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: var(--teal-400);
  background: rgba(20, 184, 166, 0.16);
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 0 0 16px;
  color: var(--teal-100);
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1.08;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--slate-200);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 18px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  color: var(--slate-100);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
}

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

.hero-tags {
  margin-bottom: 30px;
}

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  color: var(--teal-700);
  background: var(--teal-50);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--teal-500);
  box-shadow: 0 18px 34px rgba(20, 184, 166, 0.26);
}

.btn-primary:hover {
  background: var(--teal-600);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

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

.hero-dot.is-active {
  width: 58px;
  background: var(--teal-400);
}

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

.search-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  padding: 32px;
  margin-top: -34px;
  position: relative;
  z-index: 8;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
}

.search-strip h2,
.section-title-row h2,
.filter-title h2,
.movie-detail-card h1,
.movie-detail-card h2,
.side-card h2,
.category-body h2 {
  margin: 0;
  color: var(--slate-900);
}

.search-strip p,
.section-title-row p,
.filter-title p,
.category-body p {
  margin: 8px 0 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.home-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.home-search input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--slate-900);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  outline: none;
  transition: border 180ms ease, box-shadow 180ms ease;
}

.home-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.16);
}

.home-search button {
  min-height: 48px;
  padding: 0 22px;
  color: var(--white);
  background: var(--slate-900);
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
}

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

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

.section-title-row h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  letter-spacing: -0.03em;
}

.text-link {
  color: var(--teal-700);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

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

.movie-card a {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.movie-card a:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: var(--shadow-md);
}

.poster-wrap,
.wide-cover {
  position: relative;
  overflow: hidden;
  background: var(--slate-200);
}

.poster-wrap {
  aspect-ratio: 2 / 3;
}

.poster-wrap img,
.wide-cover img,
.side-poster img,
.category-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

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

.play-mark {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--teal-500);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(20, 184, 166, 0.38);
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-info h2,
.wide-content h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 1.05rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p,
.wide-content p {
  margin: 0 0 14px;
  color: var(--slate-600);
  font-size: 0.9rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  color: var(--slate-500);
  font-size: 0.82rem;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: var(--slate-300);
}

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

.tag-row span {
  font-size: 0.76rem;
}

.rank-section {
  width: min(1280px, calc(100% - 32px));
  margin: 76px auto 0;
  padding: 44px;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 10%, rgba(20, 184, 166, 0.32), transparent 30%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.dark-row h2,
.dark-row p {
  color: var(--white);
}

.dark-row p {
  color: var(--slate-300);
}

.light-link {
  color: var(--teal-400);
}

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

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

.movie-card-wide a {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 140px;
}

.wide-cover {
  aspect-ratio: 16 / 10;
  min-height: 100%;
}

.wide-content {
  padding: 20px;
}

.page-hero {
  min-height: 320px;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 28%, rgba(20, 184, 166, 0.34), transparent 32%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.small-hero {
  display: flex;
  align-items: center;
  padding: 64px 0;
}

.page-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--slate-200);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.category-card a {
  display: block;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.category-preview {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 4px;
  height: 190px;
  overflow: hidden;
  background: var(--slate-200);
}

.category-preview img:first-child {
  grid-row: span 2;
}

.category-body {
  padding: 22px;
}

.category-body span {
  display: inline-flex;
  margin-top: 16px;
  color: var(--teal-700);
  font-weight: 800;
}

.filter-panel {
  margin-top: 34px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.7fr);
  gap: 24px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

.filter-controls label {
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-size: 0.86rem;
  font-weight: 700;
}

.empty-state {
  display: none;
  margin: 36px 0 0;
  padding: 28px;
  text-align: center;
  color: var(--slate-600);
  background: var(--white);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-md);
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--slate-500);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--teal-700);
}

.breadcrumb strong {
  color: var(--slate-800);
}

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

.detail-main,
.detail-side {
  min-width: 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--slate-950);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--slate-950);
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.72));
  border: 0;
  cursor: pointer;
  transition: opacity 180ms ease, visibility 180ms ease;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  color: var(--white);
  background: var(--teal-500);
  border-radius: 999px;
  box-shadow: 0 0 0 12px rgba(20, 184, 166, 0.16), 0 24px 48px rgba(2, 6, 23, 0.36);
  font-size: 2rem;
}

.play-text {
  font-size: 1.05rem;
  font-weight: 900;
}

.movie-detail-card,
.side-card {
  margin-top: 22px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.movie-detail-card h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.detail-meta {
  margin: 18px 0 22px;
}

.detail-meta span {
  color: var(--teal-700);
  background: var(--teal-50);
  border-color: var(--teal-100);
}

.one-line {
  margin: 0 0 26px;
  padding: 18px 20px;
  color: var(--slate-700);
  background: linear-gradient(135deg, var(--teal-50), var(--slate-50));
  border-left: 4px solid var(--teal-500);
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.75;
}

.movie-detail-card h2 {
  margin-top: 26px;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.movie-detail-card p {
  color: var(--slate-700);
  line-height: 1.9;
}

.detail-tags {
  margin-top: 0;
}

.detail-side {
  position: sticky;
  top: 94px;
}

.side-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.side-card div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--slate-100);
}

.side-card dt {
  color: var(--slate-500);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: var(--slate-800);
  line-height: 1.55;
}

.related-section {
  padding-bottom: 72px;
}

.site-footer {
  margin-top: 84px;
  color: var(--slate-300);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.5fr) minmax(180px, 0.7fr);
  gap: 42px;
}

.footer-logo {
  color: var(--white);
}

.footer-brand p {
  max-width: 600px;
  color: var(--slate-400);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 1.05rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-footer a:hover {
  color: var(--teal-400);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--slate-400);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

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

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

  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

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

  .nav-toggle {
    display: inline-block;
  }

  .hero,
  .hero-track,
  .hero-content {
    min-height: 68vh;
  }

  .hero-content {
    margin-left: auto;
    padding-top: 70px;
  }

  .search-strip,
  .filter-panel,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-side {
    position: static;
  }

  .side-poster {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    width: min(100% - 24px, 1280px);
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .brand-text small {
    font-size: 0.7rem;
  }

  .mobile-nav {
    width: min(100% - 24px, 1280px);
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-track,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content,
  .search-strip,
  .content-section,
  .filter-panel,
  .detail-shell,
  .rank-section,
  .page-hero > div {
    width: min(100% - 24px, 1280px);
  }

  .hero-actions,
  .home-search,
  .section-title-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-strip,
  .rank-section {
    padding: 22px;
    border-radius: 22px;
  }

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

  .filter-controls,
  .movie-grid,
  .list-grid,
  .compact-grid,
  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info,
  .wide-content {
    padding: 14px;
  }

  .movie-card-wide a {
    grid-template-columns: 130px minmax(0, 1fr);
    min-height: 120px;
  }

  .wide-content p,
  .tag-row {
    display: none;
  }

  .movie-detail-card,
  .side-card {
    padding: 20px;
  }

  .play-circle {
    width: 64px;
    height: 64px;
  }
}
