:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.22);
  --text: #e5f3ff;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #6366f1;
  --gold: #fbbf24;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
}

* {
  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(34, 211, 238, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #07111f 44%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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: 80;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1420px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8, #22d3ee 48%, #2563eb);
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.25);
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong,
.footer-brand {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #bfdbfe, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 4px;
  color: #93c5fd;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: #cbd5e1;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: #67e8f9;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-search,
.mobile-search,
.large-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search input,
.mobile-search input,
.large-search input,
.toolbar-search,
.year-filter {
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.26);
  outline: 0;
  background: rgba(15, 23, 42, 0.76);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  width: 230px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
}

.nav-search button,
.mobile-search button,
.large-search button,
.primary-btn,
.ghost-btn {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: 750;
  border-radius: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button,
.large-search button,
.primary-btn {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 15px 38px rgba(37, 99, 235, 0.28);
}

.nav-search button {
  height: 40px;
  padding: 0 15px;
}

.nav-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.toolbar-search:focus,
.year-filter:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.13);
  background: rgba(15, 23, 42, 0.95);
}

.nav-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #cbd5e1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.96);
  padding: 18px;
}

.mobile-search input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
}

.mobile-search button {
  height: 44px;
  padding: 0 18px;
}

.mobile-links {
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.mobile-links a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.hero-carousel {
  position: relative;
  min-height: clamp(660px, 78vh, 840px);
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

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

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

.hero-backdrop,
.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.1);
}

.hero-backdrop::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 36%, rgba(34, 211, 238, 0.16), transparent 24rem),
    linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.98) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1420px, calc(100% - 32px));
  margin: 0 auto;
  min-height: clamp(660px, 78vh, 840px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding: 96px 0 92px;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.34);
  color: #67e8f9;
  background: rgba(8, 47, 73, 0.32);
  box-shadow: inset 0 0 30px rgba(34, 211, 238, 0.05);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 24px 0 10px;
  max-width: 860px;
  font-size: clamp(42px, 6.2vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  background: linear-gradient(90deg, #ecfeff, #67e8f9 44%, #93c5fd 72%, #e0e7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  color: #f8fafc;
}

.hero-copy p {
  max-width: 780px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 21px);
}

.hero-tags,
.detail-meta,
.detail-tags,
.tag-row,
.card-meta,
.chip-row,
.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.detail-tags span,
.tag-row span,
.tag-row a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.58);
  font-size: 12px;
}

.hero-actions {
  margin-top: 32px;
}

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

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 520px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: perspective(1000px) rotateY(-7deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: perspective(1000px) rotateY(-2deg) translateY(-8px);
}

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

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: transparent;
}

.hero-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.38);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 28px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

.panel-section {
  margin-top: -38px;
  position: relative;
  z-index: 20;
}

.quick-search {
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.large-search input {
  flex: 1;
  height: 56px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 16px;
}

.large-search button {
  height: 56px;
  padding: 0 24px;
}

.chip-row {
  margin-top: 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.24);
  transition: transform 0.2s ease, background 0.2s ease;
}

.filter-chip:hover {
  transform: translateY(-2px);
  background: rgba(14, 165, 233, 0.22);
}

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

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

.section-heading h2 {
  margin: 10px 0 0;
  color: #f8fafc;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #94a3b8;
}

.movie-grid {
  display: grid;
  gap: 20px;
}

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 14px 42px rgba(2, 6, 23, 0.28);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 22px 60px rgba(8, 47, 73, 0.3);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #0f172a;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.88) 100%);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.06);
  filter: saturate(1.12);
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.play-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 12px;
  color: #082f49;
  font-weight: 900;
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  box-shadow: 0 12px 26px rgba(251, 191, 36, 0.28);
}

.card-body {
  padding: 16px;
}

.card-meta {
  gap: 8px;
  color: #7dd3fc;
  font-size: 12px;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: rgba(148, 163, 184, 0.62);
}

.card-body h3 {
  margin: 8px 0 8px;
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #67e8f9;
}

.card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 4.8em;
  margin: 0 0 12px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 13px;
}

.tag-row {
  gap: 6px;
}

.tag-row span,
.tag-row a {
  min-height: 26px;
  padding: 4px 8px;
  color: #bae6fd;
  font-size: 11px;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.toolbar-search {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
}

.year-filter {
  width: 160px;
  height: 46px;
  padding: 0 12px;
  border-radius: 14px;
}

.page-shell {
  padding-top: 36px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: grid;
  align-content: center;
  padding: 54px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(8, 47, 73, 0.7)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 28rem);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.slim-hero {
  min-height: 260px;
}

.page-hero h1 {
  margin: 18px 0 12px;
  max-width: 850px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

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

.category-card {
  min-height: 260px;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 13rem),
    rgba(15, 23, 42, 0.76);
  box-shadow: 0 18px 44px 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.44);
}

.category-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
}

.category-card h2 {
  margin: 18px 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: #94a3b8;
}

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

.category-samples a {
  color: #bae6fd;
  font-size: 14px;
}

.category-samples a:hover {
  color: #ffffff;
}

.detail-shell {
  padding-top: 26px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  color: #94a3b8;
  font-size: 14px;
}

.crumbs a {
  color: #bae6fd;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: clamp(28px, 5vw, 58px);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  margin: 18px 0 14px;
  max-width: 900px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.detail-one-line {
  max-width: 860px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

.detail-meta {
  margin-bottom: 16px;
}

.detail-tags {
  gap: 8px;
}

.player-section {
  margin-top: 28px;
}

.video-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 26px 72px rgba(2, 6, 23, 0.44);
}

.video-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 20rem),
    rgba(2, 6, 23, 0.36);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-section.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.big-play {
  width: clamp(78px, 9vw, 112px);
  height: clamp(78px, 9vw, 112px);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 22px 60px rgba(37, 99, 235, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.big-play span {
  margin-left: 6px;
  font-size: clamp(30px, 4vw, 46px);
}

.big-play:hover {
  transform: scale(1.08);
  box-shadow: 0 28px 72px rgba(34, 211, 238, 0.36);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  margin-top: 28px;
}

.story-panel,
.side-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.24);
}

.story-panel {
  padding: clamp(24px, 4vw, 42px);
}

.story-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.story-panel p {
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: 17px;
}

.story-panel p:last-child {
  margin-bottom: 0;
}

.side-panel {
  height: fit-content;
  padding: 24px;
}

.side-panel dl,
.side-panel dt,
.side-panel dd {
  margin: 0;
}

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

.side-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.side-panel dt {
  color: #94a3b8;
}

.side-panel dd {
  color: #e0f2fe;
  text-align: right;
}

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

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  width: min(1420px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  color: #94a3b8;
}

.footer-brand {
  font-weight: 850;
}

.footer-links a:hover {
  color: #67e8f9;
}

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

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

  .menu-toggle {
    display: block;
  }

  .nav-search {
    margin-left: auto;
  }

  body.menu-open .mobile-panel {
    display: block;
  }

  .featured-grid,
  .all-grid,
  .rank-page-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 86px;
  }

  .hero-poster {
    min-height: auto;
    max-width: 360px;
    transform: none;
  }

  .hero-poster img {
    min-height: auto;
    aspect-ratio: 2 / 3;
  }

  .featured-grid,
  .all-grid,
  .rank-grid,
  .rank-page-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster {
    max-width: 300px;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .panel-section,
  .content-section,
  .page-shell,
  .detail-shell,
  .footer-inner {
    width: min(100% - 22px, 1420px);
  }

  .nav-shell {
    height: 64px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

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

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

  .hero-controls {
    bottom: 18px;
  }

  .large-search,
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .large-search button,
  .year-filter {
    width: 100%;
  }

  .featured-grid,
  .all-grid,
  .rank-grid,
  .rank-page-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 15px;
  }

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

  .page-hero {
    padding: 28px;
    border-radius: 24px;
  }

  .detail-layout {
    padding: 22px;
  }

  .detail-info h1 {
    font-size: 32px;
  }

  .detail-one-line {
    font-size: 16px;
  }

  .story-panel,
  .side-panel {
    padding: 20px;
  }

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