:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #06b6d4;
  --cyan-2: #22d3ee;
  --blue: #3b82f6;
  --red: #ef4444;
  --yellow: #eab308;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(135deg, #111827, #0f172a 55%, #164e63);
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.35);
  font-size: 15px;
}

.logo-text {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--cyan-2), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #dbeafe;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--cyan-2);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

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

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.65s ease, transform 1.1s ease;
  transform: scale(1.03);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.86) 42%, rgba(2, 6, 23, 0.35) 75%, rgba(2, 6, 23, 0.12) 100%), linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 36%, rgba(2, 6, 23, 0.05) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
  padding-bottom: 74px;
}

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

.hero-tags span,
.detail-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(34, 211, 238, 0.22);
  color: #cffafe;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-tags span:first-child,
.detail-tags span:first-child {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(37, 99, 235, 0.92));
  color: #ffffff;
  border-color: transparent;
}

.hero-copy h1 {
  margin: 24px 0 20px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.07em;
  font-weight: 950;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.hero-copy p {
  max-width: 620px;
  margin: 0;
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.8;
}

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

.primary-button,
.ghost-button,
.hero-search button,
.library-search button,
.rank-more,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.primary-button,
.hero-search button,
.library-search button,
.rank-more {
  min-height: 48px;
  padding: 0 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 36px rgba(6, 182, 212, 0.25);
}

.ghost-button {
  min-height: 48px;
  padding: 0 24px;
  color: #e0f2fe;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.52);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 42px;
  line-height: 1;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 108px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 38px;
  background: var(--cyan);
}

.hero-search-layer {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 9;
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: 18px;
  align-items: center;
  transform: translateX(-50%);
}

.hero-search,
.library-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search input,
.library-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 0 14px;
}

.hero-feature-links {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hero-feature-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 220px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(34, 211, 238, 0.16);
  font-size: 13px;
  font-weight: 800;
}

.hero-feature-links span {
  color: var(--cyan-2);
}

.movie-section,
.category-strip {
  padding: 72px 0;
  background: linear-gradient(180deg, #020617, #0f172a);
}

.movie-section:nth-of-type(even) {
  background: #0f172a;
}

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

.compact-heading {
  align-items: center;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--cyan-2);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.rank-title h2,
.content-card h2,
.side-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-more {
  flex: 0 0 auto;
  color: var(--cyan-2);
  font-size: 15px;
}

.section-more:hover {
  color: #ffffff;
}

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

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

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

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.78);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-link:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.42);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #020617;
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.06) 52%, transparent);
  opacity: 0.82;
  transition: opacity 0.25s ease;
}

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

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

.card-type,
.play-badge {
  position: absolute;
  z-index: 2;
}

.card-type {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.9);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.34);
}

.card-link:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card-body h2 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

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

.card-meta {
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
}

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 2px 22px;
  scroll-snap-type: x mandatory;
}

.rail-item {
  scroll-snap-align: start;
}

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

.rank-panel,
.side-card,
.content-card,
.filter-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(30, 41, 59, 0.78);
  box-shadow: var(--shadow);
}

.rank-panel {
  position: sticky;
  top: 100px;
  padding: 24px;
}

.rank-title p {
  margin: 0 0 4px;
  color: var(--yellow);
  font-weight: 950;
  letter-spacing: 0.18em;
}

.rank-panel ol {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 0;
}

.rank-panel li a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.54);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-panel li a:hover {
  transform: translateX(4px);
  background: rgba(6, 182, 212, 0.12);
}

.rank-panel li span,
.rank-number {
  color: var(--cyan-2);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.rank-panel li strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-panel li em {
  color: var(--muted-2);
  font-style: normal;
  font-size: 12px;
}

.rank-more {
  width: 100%;
}

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

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

.category-card {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 24px;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.18), transparent 32%), linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
}

.category-card span {
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.page-hero {
  padding: 92px 0 64px;
  background: radial-gradient(circle at 18% 0%, rgba(6, 182, 212, 0.2), transparent 36%), linear-gradient(135deg, #020617, #0f172a 58%, #111827);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.small-hero h1,
.category-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.small-hero p,
.category-hero p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.page-block {
  background: #020617;
}

.filter-panel {
  padding: 20px;
  margin-bottom: 28px;
}

.library-search {
  margin-bottom: 16px;
  box-shadow: none;
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.filter-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
  font-weight: 800;
}

.filter-button.is-active,
.filter-button:hover {
  border-color: rgba(34, 211, 238, 0.44);
  color: #ffffff;
  background: rgba(6, 182, 212, 0.22);
}

.movie-filter-item.is-hidden {
  display: none;
}

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

.rank-row a {
  display: grid;
  grid-template-columns: 54px 96px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row a:hover {
  transform: translateX(6px);
  border-color: rgba(34, 211, 238, 0.36);
}

.rank-row img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-row h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.rank-row p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-wrap {
  padding: 34px 0 78px;
  background: radial-gradient(circle at 82% 12%, rgba(6, 182, 212, 0.12), transparent 30%), #020617;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--cyan-2);
}

.breadcrumb strong {
  color: #e2e8f0;
  font-weight: 800;
}

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

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

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: #020617;
  cursor: pointer;
  overflow: hidden;
  z-index: 3;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.player-cover-bg,
.player-cover-shade {
  position: absolute;
  inset: 0;
}

.player-cover-bg {
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  transform: scale(1.02);
}

.player-cover-shade {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.3));
}

.player-play {
  position: relative;
  z-index: 4;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 22px 54px rgba(6, 182, 212, 0.42);
  font-size: 34px;
  text-indent: 4px;
}

.player-message {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 5;
  padding: 12px 16px;
  border-radius: 14px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.72);
  text-align: center;
}

.detail-title {
  padding: 30px 0 10px;
}

.detail-title h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.content-card {
  padding: 28px;
  margin-top: 22px;
}

.content-card h2 {
  margin-bottom: 16px;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.9;
}

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

.side-card {
  padding: 24px;
}

.side-card h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.info-list {
  display: grid;
  gap: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.info-list span {
  color: var(--muted);
}

.info-list strong {
  color: #ffffff;
  font-weight: 850;
  text-align: right;
}

.tag-list {
  margin-top: 18px;
}

.related-section {
  padding-bottom: 0;
  background: transparent;
}

.site-footer {
  background: linear-gradient(180deg, #0f172a, #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 58px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 38px;
}

.footer-logo .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.footer-logo .logo-text {
  font-size: 22px;
}

.footer-brand p,
.site-footer li,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

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

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

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted-2);
}

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

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

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

  .menu-toggle {
    display: flex;
  }

  .hero-carousel {
    height: auto;
    min-height: 660px;
  }

  .hero-search-layer {
    grid-template-columns: 1fr;
    bottom: 18px;
  }

  .hero-feature-links {
    display: none;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    bottom: 118px;
  }

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

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

  .rank-panel,
  .detail-side {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-container {
    width: min(100% - 24px, 1180px);
  }

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

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

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

  .hero-carousel {
    min-height: 720px;
  }

  .hero-copy {
    padding: 74px 0 156px;
  }

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

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

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

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

  .hero-search button,
  .library-search button {
    width: 100%;
  }

  .movie-section,
  .category-strip {
    padding: 48px 0;
  }

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

  .movie-grid,
  .dense-grid,
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 14px;
  }

  .card-body h2 {
    font-size: 16px;
  }

  .card-body p {
    font-size: 13px;
  }

  .card-meta {
    gap: 6px;
    justify-content: flex-start;
  }

  .movie-rail {
    grid-auto-columns: 214px;
  }

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

  .page-hero {
    padding: 66px 0 42px;
  }

  .rank-row a {
    grid-template-columns: 42px 74px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-row img {
    width: 74px;
    height: 98px;
    border-radius: 12px;
  }

  .rank-row h2 {
    font-size: 18px;
  }

  .rank-row p {
    display: none;
  }

  .detail-wrap {
    padding-top: 22px;
  }

  .player-shell {
    border-radius: 18px;
  }

  .player-play {
    width: 70px;
    height: 70px;
  }

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

  .content-card p {
    font-size: 16px;
  }
}
