:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --amber-500: #f59e0b;
  --blue-500: #3b82f6;
  --green-500: #22c55e;
  --purple-500: #a855f7;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 22px 50px rgba(15, 23, 42, 0.18);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-800);
  background: var(--stone-50);
  min-width: 320px;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red-600), #fb7185);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.32);
}

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

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--stone-800);
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--stone-500);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--stone-600);
  font-size: 15px;
  white-space: nowrap;
}

.site-nav a,
.mobile-panel a {
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: var(--red-600);
}

.header-search,
.mobile-search,
.filter-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input {
  width: 240px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  background: var(--stone-50);
  padding: 10px 14px;
  color: var(--stone-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.header-search button,
.mobile-search button,
.filter-panel button,
.filter-tags button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--red-600);
  color: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.filter-panel button:hover,
.filter-tags button:hover,
.filter-tags button.active {
  background: var(--red-700);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--stone-100);
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--stone-700);
  margin: 5px 0;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--stone-200);
  padding: 16px 24px 20px;
  background: #ffffff;
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--stone-700);
}

.home-page,
.listing-page,
.detail-page {
  min-height: 70vh;
}

.hero {
  position: relative;
  height: 76vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--stone-900);
}

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

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.8s ease;
  pointer-events: none;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(239, 68, 68, 0.35), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.42) 52%, rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.06) 46%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 96px;
  width: min(680px, calc(100% - 48px));
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.95);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-kicker {
  margin-bottom: 8px;
  background: var(--red-100);
  color: var(--red-700);
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.hero p {
  max-width: 620px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

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

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.tag-list span {
  background: var(--stone-100);
  color: var(--stone-600);
}

.tag-list.large span {
  padding: 8px 12px;
  background: var(--red-50);
  color: var(--red-700);
}

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

.primary-button,
.ghost-button,
.small-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  background: var(--red-600);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(220, 38, 38, 0.32);
}

.primary-button:hover,
.small-play:hover {
  background: var(--red-700);
  transform: translateY(-2px);
}

.primary-button.full {
  width: 100%;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.76);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 30px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  padding: 0;
}

.hero-dot.is-active {
  background: #ffffff;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

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

.section-title-row h2 {
  margin: 0;
  color: var(--stone-800);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-title-row > a {
  color: var(--red-600);
  font-weight: 700;
}

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

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

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

.movie-card {
  border-radius: 20px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--stone-200);
}

.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent 55%);
}

.poster-badge,
.poster-type {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  left: 12px;
  background: var(--red-600);
  color: #ffffff;
}

.poster-type {
  right: 12px;
  background: rgba(0, 0, 0, 0.66);
  color: #ffffff;
}

.play-circle {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-body h3 {
  margin: 0 0 9px;
  color: var(--stone-800);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--red-600);
}

.movie-card-body p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-bottom: 12px;
  color: var(--stone-500);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: auto 128px 1fr auto;
  align-items: center;
  gap: 18px;
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.rank-list.compact-rank .rank-row {
  grid-template-columns: auto 116px 1fr;
}

.rank-list.compact-rank .small-play {
  display: none;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--red-700);
  font-weight: 900;
}

.rank-cover {
  display: block;
  width: 128px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: var(--stone-200);
}

.rank-list.compact-rank .rank-cover {
  width: 116px;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rank-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-copy h3 a:hover {
  color: var(--red-600);
}

.rank-copy p {
  margin: 0 0 8px;
  color: var(--stone-600);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta {
  color: var(--stone-500);
  font-size: 13px;
}

.small-play {
  background: var(--red-600);
  color: #ffffff;
  padding: 10px 16px;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.compact-card {
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.compact-card a {
  display: block;
}

.compact-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.compact-card span {
  display: block;
  padding: 14px;
  font-weight: 800;
  color: var(--stone-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.category-tile,
.category-panel {
  position: relative;
  border-radius: 22px;
  padding: 22px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover,
.category-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-tile::before,
.category-panel::before,
.page-hero::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -50px;
  top: -60px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.18);
}

.category-tile > a,
.category-panel-main {
  position: relative;
  display: block;
}

.category-panel-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.category-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--red-600);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  flex-shrink: 0;
}

.category-tile span,
.category-panel h2 {
  display: block;
  margin: 0 0 10px;
  color: var(--stone-800);
  font-size: 20px;
  font-weight: 900;
}

.category-tile p,
.category-panel p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.65;
}

.category-samples {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  border-radius: 999px;
  background: var(--stone-100);
  color: var(--stone-600);
  padding: 7px 10px;
  font-size: 13px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-samples a:hover {
  background: var(--red-50);
  color: var(--red-700);
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #b91c1c, #ef4444 58%, #fb7185);
  color: #ffffff;
  padding: 72px 24px;
}

.page-hero > div {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero .section-kicker {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

.page-hero.amber,
.category-tile.amber::before,
.category-panel.amber::before {
  background: linear-gradient(135deg, #b45309, #f59e0b);
}

.page-hero.blue,
.category-tile.blue::before,
.category-panel.blue::before {
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
}

.page-hero.green,
.category-tile.green::before,
.category-panel.green::before {
  background: linear-gradient(135deg, #15803d, #4ade80);
}

.page-hero.purple,
.category-tile.purple::before,
.category-panel.purple::before {
  background: linear-gradient(135deg, #6d28d9, #c084fc);
}

.page-hero.cyan,
.category-tile.cyan::before,
.category-panel.cyan::before {
  background: linear-gradient(135deg, #0e7490, #67e8f9);
}

.page-hero.teal,
.category-tile.teal::before,
.category-panel.teal::before {
  background: linear-gradient(135deg, #0f766e, #5eead4);
}

.page-hero.rose,
.category-tile.rose::before,
.category-panel.rose::before {
  background: linear-gradient(135deg, #be123c, #fb7185);
}

.page-hero.orange,
.category-tile.orange::before,
.category-panel.orange::before {
  background: linear-gradient(135deg, #c2410c, #fb923c);
}

.page-hero.indigo,
.category-tile.indigo::before,
.category-panel.indigo::before {
  background: linear-gradient(135deg, #4338ca, #818cf8);
}

.page-hero.slate,
.category-tile.slate::before,
.category-panel.slate::before,
.page-hero.stone,
.category-tile.stone::before,
.category-panel.stone::before {
  background: linear-gradient(135deg, #334155, #94a3b8);
}

.filter-panel {
  margin-bottom: 18px;
}

.filter-panel.expanded input {
  width: min(560px, 100%);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-tags button {
  background: #ffffff;
  color: var(--stone-700);
  border: 1px solid var(--stone-200);
}

.no-results {
  border-radius: 18px;
  background: #ffffff;
  padding: 36px;
  text-align: center;
  color: var(--stone-600);
  box-shadow: var(--shadow-sm);
}

.player-section {
  background: #000000;
}

.player-container {
  max-width: 1280px;
  margin: 0 auto;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.05));
}

.play-button {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.94);
  color: #ffffff;
  padding: 16px 26px;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  transition: transform 0.22s ease, background 0.22s ease;
}

.play-button:hover,
.player-overlay:hover .play-button {
  background: var(--red-700);
  transform: scale(1.04);
}

.play-button span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.detail-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

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

.detail-main,
.side-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.detail-main {
  padding: 32px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-500);
  font-size: 14px;
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  color: var(--red-600);
}

.detail-main h1 {
  margin: 0 0 18px;
  color: var(--stone-800);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--stone-200);
  margin-bottom: 26px;
}

.detail-meta span {
  border-radius: 999px;
  background: var(--stone-100);
  color: var(--stone-600);
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
}

.content-block {
  margin-bottom: 30px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--stone-800);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.content-block p {
  margin: 0 0 14px;
  color: var(--stone-600);
  font-size: 16px;
  line-height: 1.85;
}

.content-block .lead-text {
  color: var(--stone-800);
  font-weight: 700;
}

.detail-side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 22px;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
  background: var(--stone-200);
}

.cover-card p {
  color: var(--stone-600);
  line-height: 1.7;
}

.info-list {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}

.info-list dt {
  color: var(--stone-500);
}

.info-list dd {
  margin: 0;
  color: var(--stone-800);
  font-weight: 700;
}

.side-links {
  display: grid;
  gap: 10px;
}

.side-links a {
  border-radius: 12px;
  background: var(--stone-50);
  padding: 12px;
  color: var(--stone-700);
  font-weight: 700;
}

.side-links a:hover {
  background: var(--red-50);
  color: var(--red-700);
}

.site-footer {
  background: var(--stone-900);
  color: var(--stone-300);
  margin-top: 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 14px;
}

.footer-about p {
  max-width: 430px;
  margin: 0;
  color: var(--stone-400);
  line-height: 1.75;
}

.footer-links h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 17px;
}

.footer-links div {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--red-500);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px;
  color: var(--stone-500);
  font-size: 14px;
}

.is-hidden-card {
  display: none !important;
}

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

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

  .nav-toggle {
    display: block;
  }

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

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

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

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

  .hero {
    height: 72vh;
    min-height: 520px;
  }

  .hero-content {
    bottom: 76px;
  }

  .hero-control {
    display: none;
  }

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

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

  .rank-list.compact-rank {
    grid-template-columns: 1fr;
  }

  .rank-row,
  .rank-list.compact-rank .rank-row {
    grid-template-columns: auto 96px 1fr;
  }

  .small-play {
    display: none;
  }

  .rank-cover,
  .rank-list.compact-rank .rank-cover {
    width: 96px;
  }

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

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

  .detail-side {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand-subtitle {
    display: none;
  }

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

  .hero {
    height: 78vh;
    min-height: 540px;
  }

  .hero-content {
    left: 18px;
    width: calc(100% - 36px);
    bottom: 70px;
  }

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

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

  .content-section {
    padding: 40px 16px;
  }

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

  .rank-row,
  .rank-list.compact-rank .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-number {
    position: absolute;
    margin: 8px;
    z-index: 2;
  }

  .rank-row {
    position: relative;
  }

  .rank-cover,
  .rank-list.compact-rank .rank-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .page-hero {
    padding: 54px 16px;
  }

  .filter-panel,
  .filter-panel.expanded {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-panel input,
  .filter-panel.expanded input {
    width: 100%;
  }

  .detail-container {
    padding: 32px 16px 48px;
  }

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

  .play-button {
    padding: 12px 18px;
    font-size: 16px;
  }
}
