:root {
  --cream-50: #fefdfb;
  --cream-100: #fdf9f3;
  --cream-200: #faf3e6;
  --cream-300: #f5e8d0;
  --coffee-100: #f5f0e8;
  --coffee-200: #e8dcc8;
  --coffee-300: #d4c0a0;
  --coffee-500: #8f6d44;
  --coffee-600: #6f5536;
  --coffee-700: #54402a;
  --coffee-800: #3d2e1f;
  --coffee-900: #241a12;
  --ink: #241a12;
  --muted: #765f48;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(61, 46, 31, 0.12);
  --shadow-soft: 0 10px 30px rgba(61, 46, 31, 0.10);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.container.narrow {
  width: min(920px, calc(100% - 32px));
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(245, 232, 208, 0.92);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(61, 46, 31, 0.10);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 12px;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--cream-50);
  background: linear-gradient(135deg, var(--coffee-600), var(--coffee-800));
  border-radius: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.logo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  color: var(--coffee-800);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-tagline {
  margin-top: 4px;
  color: var(--coffee-600);
  font-size: 12px;
}

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

.nav-link {
  color: var(--coffee-600);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--coffee-800);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(300px, 24vw);
  overflow: hidden;
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: 999px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search input {
  width: 100%;
  padding: 11px 16px;
  color: var(--ink);
}

.header-search button {
  width: 44px;
  height: 44px;
  color: var(--coffee-700);
  cursor: pointer;
  background: transparent;
  border: 0;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--coffee-700);
  cursor: pointer;
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: 12px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--cream-200);
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
  animation: slide-down 0.24s ease-out;
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  color: var(--coffee-700);
  background: var(--cream-100);
  border-radius: 12px;
  font-weight: 700;
}

.mobile-nav-link.active {
  color: var(--white);
  background: var(--coffee-700);
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border: 1px solid var(--cream-300);
  border-radius: 14px;
}

.mobile-search input {
  padding: 12px 14px;
}

.mobile-search button {
  padding: 0 16px;
  color: var(--white);
  cursor: pointer;
  background: var(--coffee-600);
  border: 0;
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  padding: 116px 0 54px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--cream-100), var(--coffee-100));
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.62;
  background:
    radial-gradient(circle at 18% 10%, rgba(143, 109, 68, 0.28), transparent 34%),
    radial-gradient(circle at 88% 2%, rgba(212, 192, 160, 0.34), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(245, 232, 208, 0.7));
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--coffee-800);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 0;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.45s ease, transform 0.65s ease;
}

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

.hero-image {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.hero-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(36, 26, 18, 0.06), rgba(36, 26, 18, 0.82));
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  color: var(--cream-50);
  background:
    radial-gradient(circle at 92% 18%, rgba(245, 232, 208, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(61, 46, 31, 0.88), rgba(36, 26, 18, 0.96));
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--coffee-600);
  background: var(--coffee-100);
  border: 1px solid var(--cream-300);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  color: var(--cream-100);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(254, 253, 251, 0.86);
  font-size: 17px;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: var(--coffee-700);
  background: var(--cream-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--cream-50);
  background: rgba(255, 255, 255, 0.14);
}

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

.btn-primary,
.btn-ghost,
.section-action,
.ranking-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--coffee-600);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.ranking-watch:hover {
  background: var(--coffee-800);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--cream-50);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.hero-controls {
  position: absolute;
  right: 48px;
  bottom: 32px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 7px;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.34);
  border: 0;
  border-radius: 999px;
}

.hero-dot.active {
  background: var(--cream-50);
}

.hero-side-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(245, 232, 208, 0.9);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.hero-side-card h2 {
  margin: 22px 0 14px;
  color: var(--coffee-800);
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.hero-side-card p {
  margin: 0;
  color: var(--muted);
}

.hero-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-category-list a {
  display: inline-flex;
  padding: 9px 12px;
  color: var(--coffee-700);
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-category-list a:hover {
  color: var(--white);
  background: var(--coffee-600);
  transform: translateY(-2px);
}

.section {
  padding: 72px 0;
}

.tinted {
  background: var(--cream-100);
}

.coffee-section {
  color: var(--cream-50);
  background: linear-gradient(135deg, var(--coffee-800), var(--coffee-900));
}

.coffee-section .section-heading p,
.coffee-section .section-heading h2 {
  color: var(--cream-50);
}

.coffee-section .section-action {
  color: var(--coffee-800);
  background: var(--cream-50);
}

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

.section-heading h2 {
  margin: 14px 0 10px;
  color: var(--coffee-800);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.section-action {
  color: var(--white);
  background: var(--coffee-600);
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(245, 232, 208, 0.92);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  height: 310px;
  overflow: hidden;
  background: var(--coffee-200);
}

.movie-card.compact .poster-link {
  height: 240px;
}

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

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

.poster-shadow {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7));
  transition: opacity 0.24s ease;
}

.movie-card:hover .poster-shadow {
  opacity: 1;
}

.poster-play {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--coffee-800);
  background: var(--cream-50);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  color: var(--coffee-800);
  background: var(--cream-50);
  border-radius: 12px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--coffee-600);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.movie-card h2 {
  margin: 9px 0 8px;
  color: var(--coffee-800);
  font-size: 19px;
  line-height: 1.3;
}

.movie-card h2 a:hover,
.ranking-info h2 a:hover,
.detail-aside a:hover,
.category-sample-links a:hover {
  color: var(--coffee-600);
}

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

.tag-row {
  min-height: 28px;
}

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

.category-tile {
  min-height: 196px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.category-tile:hover {
  color: var(--cream-50);
  background: var(--coffee-700);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.category-tile span {
  display: block;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  margin: 14px 0 10px;
  font-size: 36px;
  line-height: 1;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.category-tile:hover p {
  color: rgba(254, 253, 251, 0.78);
}

.page-main {
  padding-top: 76px;
}

.page-hero {
  padding: 72px 0;
  text-align: center;
  background:
    radial-gradient(circle at 12% 12%, rgba(143, 109, 68, 0.18), transparent 36%),
    linear-gradient(135deg, var(--cream-100), var(--coffee-100));
}

.page-hero h1 {
  margin: 18px 0 14px;
  color: var(--coffee-800);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  margin: 0 auto;
  max-width: 820px;
  color: var(--muted);
  font-size: 17px;
}

.page-category-list {
  justify-content: center;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.category-cover {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 18px;
}

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

.category-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 26%, rgba(36, 26, 18, 0.78));
}

.category-cover span {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  color: var(--cream-50);
  font-size: 22px;
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  color: var(--coffee-800);
}

.category-overview-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

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

.category-sample-links a {
  padding: 6px 10px;
  color: var(--coffee-700);
  background: var(--cream-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--coffee-800);
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: 12px;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: 16px;
}

.empty-state.is-visible {
  display: block;
}

.ranking-hero {
  padding: 130px 0 62px;
  color: var(--cream-50);
  background:
    radial-gradient(circle at 84% 16%, rgba(245, 232, 208, 0.16), transparent 30%),
    linear-gradient(135deg, var(--coffee-900), var(--coffee-700));
}

.ranking-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 28px;
  align-items: center;
}

.ranking-hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.ranking-hero-copy p {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(254, 253, 251, 0.8);
}

.ranking-hero-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  backdrop-filter: blur(18px);
}

.ranking-hero-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
}

.ranking-hero-card span {
  color: var(--cream-300);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.ranking-hero-card h2 {
  margin: 10px 0;
  font-size: 34px;
  line-height: 1.12;
}

.ranking-hero-card p {
  color: rgba(254, 253, 251, 0.78);
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 64px 86px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.ranking-number {
  color: var(--coffee-600);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.ranking-poster {
  display: block;
  width: 86px;
  height: 116px;
  overflow: hidden;
  border-radius: 12px;
}

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

.ranking-info h2 {
  margin: 0 0 6px;
  color: var(--coffee-800);
  font-size: 20px;
}

.ranking-info p {
  margin: 0 0 8px;
  color: var(--muted);
}

.ranking-watch {
  color: var(--white);
  background: var(--coffee-600);
}

.detail-hero {
  padding: 120px 0 56px;
  background:
    radial-gradient(circle at 85% 16%, rgba(143, 109, 68, 0.18), transparent 36%),
    linear-gradient(135deg, var(--cream-100), var(--coffee-100));
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 8px solid var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--coffee-600);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--coffee-800);
}

.detail-copy h1 {
  margin: 0 0 16px;
  color: var(--coffee-800);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.07;
  letter-spacing: -0.055em;
}

.detail-one-line {
  max-width: 860px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 19px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.detail-meta-grid span {
  min-height: 74px;
  padding: 12px;
  color: var(--coffee-800);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--cream-300);
  border-radius: 16px;
  font-weight: 900;
}

.detail-meta-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--coffee-600);
  font-size: 12px;
}

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

.player-section {
  padding-bottom: 32px;
  background: var(--coffee-900);
}

.player-card {
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--cream-50);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
  border: 0;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-ring {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  color: var(--coffee-800);
  background: var(--cream-50);
  border-radius: 999px;
  font-size: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.player-overlay strong {
  max-width: min(680px, 80vw);
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.2;
  text-align: center;
}

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

.detail-article,
.detail-aside {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.detail-article h2,
.detail-aside h2 {
  margin: 0 0 16px;
  color: var(--coffee-800);
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
}

.detail-article p:last-child {
  margin-bottom: 0;
}

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

.detail-aside dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.detail-aside dt {
  color: var(--coffee-600);
  font-weight: 900;
}

.detail-aside dd {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  color: var(--cream-100);
  background: var(--coffee-800);
}

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

.footer-logo {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--cream-50);
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: var(--cream-300);
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--cream-300);
  font-size: 14px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  color: var(--cream-300);
  border-top: 1px solid rgba(245, 232, 208, 0.14);
  font-size: 14px;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 18px;
  }

  .hero-shell,
  .ranking-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-side-card {
    min-height: auto;
  }

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

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    padding-top: 104px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 300px 1fr;
  }

  .hero-image::after {
    background: linear-gradient(180deg, rgba(36, 26, 18, 0.04), rgba(36, 26, 18, 0.86));
  }

  .hero-copy {
    padding: 34px;
  }

  .hero-controls {
    right: 34px;
  }

  .category-overview-grid,
  .detail-hero-inner,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-aside {
    position: static;
  }

  .ranking-hero-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .container,
  .container.narrow {
    width: min(100% - 24px, 1280px);
  }

  .header-inner {
    height: 68px;
  }

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

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

  .logo-tagline {
    display: none;
  }

  .page-main {
    padding-top: 68px;
  }

  .hero-carousel {
    min-height: 680px;
    border-radius: 24px;
  }

  .hero-slide {
    grid-template-rows: 270px 1fr;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero-actions,
  .section-heading,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost,
  .section-action {
    width: 100%;
  }

  .section {
    padding: 52px 0;
  }

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

  .poster-link,
  .movie-card.compact .poster-link {
    height: 220px;
  }

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

  .movie-card h2 {
    font-size: 17px;
  }

  .category-overview-card,
  .ranking-hero-card {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .ranking-watch {
    grid-column: 2 / -1;
  }

  .ranking-poster {
    width: 70px;
    height: 96px;
  }

  .detail-hero {
    padding-top: 98px;
  }

  .play-ring {
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.dense,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .poster-link,
  .movie-card.compact .poster-link {
    height: 360px;
  }

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