:root {
  --page-bg: #f7fbff;
  --card-bg: rgba(255, 255, 255, 0.92);
  --text: #0f172a;
  --muted: #64748b;
  --soft: #e0f2fe;
  --line: rgba(59, 130, 246, 0.16);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --cyan: #06b6d4;
  --purple: #7c3aed;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 15%, rgba(124, 58, 237, 0.14), transparent 30rem),
    var(--page-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}

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

.brand-text strong,
.footer-brand {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.wide-search input,
.page-search input,
.toolbar-controls input,
.toolbar-controls select {
  border: 1px solid var(--line);
  background: rgba(239, 246, 255, 0.84);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input:focus,
.wide-search input:focus,
.page-search input:focus,
.toolbar-controls input:focus,
.toolbar-controls select:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.nav-search button,
.wide-search button,
.page-search button,
.btn,
.menu-toggle {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.wide-search button:hover,
.page-search button:hover,
.btn:hover,
.menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.30);
}

.menu-toggle {
  display: none;
  padding: 10px 13px;
}

.mobile-nav {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-nav a {
  padding: 10px 4px;
  color: #334155;
  font-weight: 700;
}

.mobile-nav form {
  display: flex;
  gap: 8px;
}

.mobile-nav input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}

.mobile-nav button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--primary);
}

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

.hero-slides {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.75s ease;
}

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

.hero-slide::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(59, 130, 246, 0.38), transparent 25rem),
    linear-gradient(0deg, rgba(7, 18, 40, 0.82), rgba(7, 18, 40, 0.04) 42%);
  pointer-events: none;
}

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

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-kicker span,
.eyebrow,
.poster-badge,
.tag {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.75;
}

.hero-meta,
.detail-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 30px;
}

.hero-meta span,
.detail-meta-pills span {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 13px;
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  isolation: isolate;
  border-radius: 34px;
  transform: rotate(2deg);
  box-shadow: 0 42px 80px rgba(0, 0, 0, 0.38);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.58), rgba(6, 182, 212, 0.30));
  filter: blur(4px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 34px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

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

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.section-block {
  padding: 64px 0;
}

.quick-search-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 24px;
  margin-top: -56px;
  position: relative;
  z-index: 5;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-panel h2,
.section-heading h2,
.rank-panel h2,
.toolbar-copy h2,
.detail-article h2,
.detail-side-card h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 30px;
  letter-spacing: -0.02em;
}

.quick-search-panel p,
.section-heading p,
.rank-panel p,
.toolbar-copy p,
.search-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.wide-search,
.page-search {
  display: flex;
  gap: 12px;
}

.wide-search input,
.page-search input {
  min-width: 0;
  flex: 1;
}

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

.section-heading a {
  color: var(--primary);
  font-weight: 900;
}

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

.category-tile,
.movie-card,
.rank-panel,
.detail-side-card,
.detail-article,
.player-shell,
.category-overview-block,
.filter-toolbar,
.search-tools {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.category-tile {
  padding: 22px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.feature-large:hover,
.mini-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-cover-stack {
  display: flex;
  margin-bottom: 18px;
}

.category-cover-stack img {
  width: 54px;
  height: 74px;
  object-fit: cover;
  border: 3px solid #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
}

.category-cover-stack img + img {
  margin-left: -18px;
}

.category-tile h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-tile p {
  min-height: 64px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.category-tile span {
  color: var(--primary);
  font-weight: 900;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
  aspect-ratio: 16 / 10;
}

.movie-card-compact .poster-frame {
  aspect-ratio: 4 / 3;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.68);
  color: #ffffff;
}

.poster-badge-left {
  left: 12px;
}

.poster-badge-right {
  right: 12px;
}

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

.movie-card-meta,
.movie-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card h3 {
  margin: 10px 0 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 20px;
}

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

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

.tag {
  border-color: rgba(37, 99, 235, 0.16);
  background: #eff6ff;
  color: var(--primary);
  padding: 5px 10px;
}

.movie-stats {
  margin-top: 16px;
  font-weight: 800;
}

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

.feature-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.feature-large {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  background: #071228;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-large img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.feature-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 18, 40, 0.88), transparent 62%);
}

.feature-large div {
  position: relative;
  z-index: 1;
  padding: 28px;
  color: #ffffff;
}

.feature-large span {
  color: #bae6fd;
  font-weight: 900;
}

.feature-large h3 {
  margin: 8px 0;
  font-size: 30px;
}

.feature-large p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.feature-side,
.mini-list {
  display: grid;
  gap: 14px;
}

.mini-link {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mini-link img {
  width: 84px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
}

.mini-link strong,
.mini-link small {
  display: block;
}

.mini-link strong {
  margin-bottom: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-link small {
  color: var(--muted);
  line-height: 1.45;
}

.rank-panel {
  padding: 24px;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fbff;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: #eff6ff;
}

.rank-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-hot {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  padding: 92px 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -140px;
  top: -180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.blue-hero,
.category-hero {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.rank-hero {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.search-hero {
  background: linear-gradient(135deg, #0f172a, #0284c7);
}

.category-overview-block {
  padding: 26px;
  margin-bottom: 28px;
}

.filter-toolbar,
.search-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-controls select {
  border-radius: 18px;
}

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

.full-rank-row {
  display: grid;
  grid-template-columns: 64px 72px minmax(0, 1fr) 140px 120px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.90);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.full-rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.full-rank-row img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
}

.full-rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  font-weight: 900;
}

.full-rank-main strong,
.full-rank-main small {
  display: block;
}

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

.full-rank-main small {
  color: var(--muted);
  margin-top: 4px;
}

.detail-hero {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 68px 0;
}

.detail-poster img {
  width: 280px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 36px 78px rgba(0, 0, 0, 0.34);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

.detail-intro h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-intro p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

.detail-tags {
  margin-bottom: 26px;
}

.player-section {
  padding-bottom: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 32px 78px rgba(2, 6, 23, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), rgba(2, 6, 23, 0.55));
  cursor: pointer;
}

.player-overlay.hidden {
  display: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: 34px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.26);
}

.player-overlay strong {
  font-size: 23px;
}

.player-overlay small {
  color: rgba(255, 255, 255, 0.78);
}

.player-note {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 4px 0;
  color: var(--muted);
}

.player-note strong {
  color: var(--text);
}

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

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

.detail-article p {
  margin: 0 0 22px;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.detail-side-card dl {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px 16px;
  margin: 20px 0 0;
}

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

.detail-side-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.search-tools {
  margin-top: -30px;
  position: relative;
  z-index: 3;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.78), #ffffff);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.65fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.site-footer p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #475569;
  font-weight: 700;
}

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

.footer-link-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 16px;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.hidden-by-filter {
  display: none !important;
}

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

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

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

  .hero-poster {
    display: none;
  }

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

  .quick-search-panel,
  .filter-toolbar,
  .search-tools,
  .footer-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .detail-hero-inner {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 28px;
  }

  .detail-poster img {
    width: 200px;
  }

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

  .full-rank-row > span:nth-last-child(-n + 2) {
    display: none;
  }
}

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

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

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

  .hero-copy p,
  .detail-intro p {
    font-size: 16px;
  }

  .hero-controls {
    bottom: 18px;
  }

  .quick-search-panel {
    margin-top: -28px;
    padding: 22px;
  }

  .wide-search,
  .page-search,
  .player-note,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .category-grid,
  .movie-grid,
  .category-movie-grid,
  .four-grid,
  .dense-grid,
  .feature-mosaic,
  .detail-hero-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    display: none;
  }

  .page-hero,
  .detail-hero {
    min-height: auto;
    padding: 70px 0;
  }

  .filter-toolbar,
  .search-tools {
    padding: 18px;
  }

  .toolbar-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .full-rank-row img {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}
