:root {
  color-scheme: light;
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-dark: #1e3a8a;
  --accent: #38bdf8;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
  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;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 28rem),
    linear-gradient(135deg, #f8fafc 0%, #eff6ff 44%, #f8fafc 100%);
  min-height: 100vh;
}

body.menu-open {
  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: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0f172a);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}

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

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

.nav-link,
.mobile-link {
  color: #475569;
  font-weight: 700;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

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

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

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

.header-search input,
.mobile-search input,
.large-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-search input {
  width: 210px;
  padding: 10px 16px;
}

.header-search button,
.mobile-search button,
.large-search button,
.search-page-form button,
.primary-btn,
.rank-watch {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.header-search button,
.mobile-search button,
.search-page-form button {
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.primary-btn:hover,
.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.search-page-form button:hover,
.rank-watch:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.32);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #eff6ff;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #1e3a8a;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 22px 24px;
  background: #fff;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

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

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #020617;
}

.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-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.05);
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 22%, rgba(56, 189, 248, 0.22), transparent 22rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 680px;
  margin: 0 auto;
  padding: 96px 22px 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 380px;
  gap: 58px;
  align-items: center;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.34);
  border: 1px solid rgba(147, 197, 253, 0.32);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-title-block h1 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

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

.hero-copy h2 {
  margin: 22px 0 12px;
  font-size: clamp(26px, 3.2vw, 44px);
  letter-spacing: -0.035em;
}

.hero-copy p,
.page-hero p,
.detail-title-block p {
  max-width: 740px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.detail-facts span,
.movie-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  color: #eff6ff;
  border: 1px solid rgba(191, 219, 254, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
}

.ghost-btn {
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.ghost-btn.light {
  color: #fff;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  aspect-ratio: 3 / 4.18;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 16px;
  border-radius: 18px;
  color: #fff;
  text-align: center;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(12px);
}

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

.hero-dots button {
  width: 42px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fff;
}

.quick-links {
  position: relative;
  z-index: 8;
  margin-top: -34px;
  padding: 0 22px;
}

.quick-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.quick-inner span {
  color: #0f172a;
  font-weight: 900;
  margin-right: 8px;
}

.quick-inner a,
.mini-links a,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 800;
}

.quick-inner a {
  padding: 9px 14px;
}

.content-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 22px 0;
}

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

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

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

.section-more,
.mini-links a {
  padding: 10px 16px;
  flex: none;
}

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

.home-grid .movie-card:nth-child(1),
.home-grid .movie-card:nth-child(2) {
  grid-column: span 2;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.26);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-card:hover .poster-link img,
.category-card:hover img,
.compact-card:hover img,
.rank-row:hover img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

.poster-year {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  font-weight: 900;
  font-size: 12px;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(37, 99, 235, 0.88);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.38);
}

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

.movie-meta span {
  color: #475569;
  background: #f1f5f9;
}

.movie-card h3 {
  margin: 14px 0 8px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.movie-card h3 a:hover,
.rank-info h2 a:hover,
.side-card a:hover {
  color: var(--brand);
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  min-height: 3.3em;
}

.tag-row span {
  color: #1e40af;
  background: #dbeafe;
}

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

.rank-list,
.rank-page-list,
.side-links {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.compact-card img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 220ms ease;
}

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

.compact-card strong {
  color: #0f172a;
  line-height: 1.35;
}

.compact-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.search-panel,
.side-card,
.prose-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.09);
}

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

.search-panel h2,
.side-card h2,
.prose-card h2 {
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.search-panel p,
.prose-card p {
  color: var(--muted);
  line-height: 1.85;
}

.large-search {
  margin-top: 20px;
}

.large-search input,
.search-page-form input {
  min-height: 52px;
  flex: 1;
  padding: 0 18px;
}

.large-search button,
.search-page-form button {
  min-height: 52px;
  padding: 0 20px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius);
  color: #fff;
  background: #0f172a;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.category-card img,
.category-overview-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 260ms ease, opacity 260ms ease;
}

.category-card::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.08));
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 10px 0 0;
  color: #dbeafe;
  line-height: 1.6;
}

.page-hero {
  min-height: 340px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(56, 189, 248, 0.22), transparent 28rem),
    linear-gradient(135deg, #1d4ed8, #0f172a);
  display: grid;
  place-items: center;
  padding: 78px 22px;
  text-align: center;
}

.page-hero > div {
  max-width: 860px;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.slim-hero,
.category-hero,
.rank-hero {
  min-height: 320px;
}

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

.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: var(--radius);
  color: #fff;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.category-overview-card > div {
  position: relative;
  z-index: 2;
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.category-overview-card p {
  max-width: 580px;
  color: #e0f2fe;
  line-height: 1.75;
}

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

.category-samples span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.filter-bar {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.07);
}

.filter-bar input {
  flex: 1;
  min-width: 260px;
  padding: 13px 16px;
}

.filter-bar select {
  min-width: 160px;
  padding: 13px 16px;
}

.empty-state {
  padding: 44px 22px;
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.rank-page-list {
  gap: 18px;
}

.rank-row {
  display: grid;
  grid-template-columns: 72px 160px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.08);
}

.rank-num {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0f172a);
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  display: block;
  border-radius: 18px;
}

.rank-cover img {
  width: 160px;
  height: 96px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.rank-watch {
  padding: 12px 18px;
}

.detail-hero {
  position: relative;
  color: #fff;
  background: #020617;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--poster-image);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.08);
  transform: scale(1.08);
  opacity: 0.62;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.74));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 22px 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #bfdbfe;
  font-weight: 700;
}

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

.detail-title-block {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  width: 240px;
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.detail-title-block h1 {
  font-size: clamp(36px, 5vw, 68px);
}

.detail-facts {
  margin-top: 20px;
}

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

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

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 86px rgba(15, 23, 42, 0.25);
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  color: #fff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.22), rgba(2, 6, 23, 0.7));
  cursor: pointer;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 30px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.45);
}

.player-start strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

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

.prose-card {
  padding: 28px;
}

.prose-card p {
  margin: 0;
  font-size: 17px;
}

.side-card {
  padding: 24px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

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

.side-card dd {
  margin: 0;
  line-height: 1.55;
}

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

.search-page-form {
  max-width: 840px;
  margin: 0 auto 28px;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: 86px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #1e3a8a 62%, #020617);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
}

.footer-inner p {
  max-width: 560px;
  margin: 12px 0 0;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.copyright {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 34px;
  color: #94a3b8;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

  .hero-poster,
  .search-panel {
    position: relative;
    top: auto;
  }

  .hero-poster {
    max-width: 320px;
    margin: 0 auto;
  }

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

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

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

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

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

  .hero-carousel,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 58px;
    gap: 34px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-title-block p {
    font-size: 16px;
  }

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

  .home-grid .movie-card:nth-child(1),
  .home-grid .movie-card:nth-child(2) {
    grid-column: span 1;
  }

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

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

  .filter-bar input,
  .filter-bar select {
    width: 100%;
    min-width: 0;
  }

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

  .rank-watch {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .rank-cover img {
    width: 104px;
    height: 72px;
  }

  .detail-title-block {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .header-inner {
    min-height: 68px;
    padding: 0 16px;
  }

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

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy h2 {
    font-size: 28px;
  }

  .hero-content,
  .content-section,
  .detail-hero-inner,
  .page-hero,
  .quick-links {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .quick-inner {
    border-radius: 20px;
  }

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

  .rank-cover {
    grid-column: 1 / -1;
  }

  .rank-cover img {
    width: 100%;
    height: 190px;
  }

  .rank-watch {
    grid-column: 1 / -1;
  }

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

  .compact-card img {
    width: 84px;
    height: 58px;
  }
}
