:root {
  color-scheme: light;
  --slate-950: #0f172a;
  --slate-900: #111827;
  --slate-800: #1f2937;
  --slate-700: #334155;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --white: #ffffff;
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.22);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--slate-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--stone-100);
  background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.28);
  border-bottom: 1px solid rgba(217, 119, 6, 0.24);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.35);
}

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

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--stone-300);
  font-size: 12px;
  font-weight: 500;
}

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

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--amber-500);
  transition: right 0.25s ease;
}

.nav-link:hover {
  color: var(--amber-500);
}

.nav-link:hover::after {
  right: 0;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px 18px;
}

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

.mobile-link {
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  height: min(640px, 86vh);
  min-height: 500px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.82) 48%, rgba(15, 23, 42, 0.15));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
}

.hero-content h1 {
  width: min(760px, 100%);
  margin: 16px 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content p {
  width: min(680px, 100%);
  margin: 0 0 26px;
  color: var(--stone-200);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.75;
}

.hero-kicker,
.section-heading span,
.page-hero span,
.panel-title span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(217, 119, 6, 0.92);
  font-size: 14px;
  font-weight: 750;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 999px;
  color: #92400e;
  background: var(--amber-50);
  font-size: 12px;
  font-weight: 700;
}

.hero .badge,
.detail-hero .badge {
  color: var(--amber-100);
  background: rgba(217, 119, 6, 0.18);
  border-color: rgba(245, 158, 11, 0.4);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.32);
}

.button-primary:hover {
  background: var(--amber-700);
}

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.34);
  font-size: 34px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 34px;
  background: var(--amber-500);
}

.section {
  padding: 72px 0;
}

.section-dark {
  color: var(--white);
  background: linear-gradient(180deg, var(--slate-800), var(--slate-700));
}

.section-light {
  background: var(--stone-50);
}

.section-soft {
  background: var(--amber-50);
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2,
.panel-title h2 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  max-width: 760px;
  color: var(--stone-500);
  line-height: 1.8;
}

.section-dark .section-heading p {
  color: var(--stone-300);
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 310px);
  gap: 24px;
  overflow-x: auto;
  padding: 6px 4px 22px;
  scroll-snap-type: x mandatory;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  scroll-snap-align: start;
}

.section-dark .movie-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--amber-700));
}

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

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

.poster-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(217, 119, 6, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.movie-info {
  padding: 18px;
}

.movie-meta {
  display: flex;
  gap: 8px;
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 800;
}

.movie-info h2 {
  margin: 8px 0;
  font-size: 19px;
  line-height: 1.25;
}

.movie-info h2 a:hover {
  color: var(--amber-700);
}

.movie-info p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--stone-500);
  font-size: 14px;
  line-height: 1.65;
}

.section-dark .movie-info p {
  color: var(--stone-300);
}

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

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: start;
}

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

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

.category-tile {
  min-height: 180px;
  padding: 24px;
  border-radius: 24px;
  color: var(--white);
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.42), transparent 38%), linear-gradient(135deg, var(--slate-800), var(--slate-700));
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-tile span {
  color: var(--amber-100);
  font-size: 13px;
  font-weight: 800;
}

.category-tile strong {
  display: block;
  margin: 12px 0;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: var(--stone-200);
  line-height: 1.7;
}

.ranking-panel,
.content-card {
  padding: 24px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

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

.ranking-list.full {
  gap: 14px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 48px 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(245, 158, 11, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  background: rgba(245, 158, 11, 0.18);
  transform: translateX(4px);
}

.ranking-num {
  color: var(--amber-700);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.ranking-item img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--slate-800);
}

.ranking-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ranking-text strong,
.ranking-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-text small {
  color: var(--stone-500);
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--amber-700);
  font-weight: 800;
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at right, rgba(245, 158, 11, 0.32), transparent 38%), linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

.page-hero.slim {
  padding: 76px 0;
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--stone-200);
  font-size: 18px;
  line-height: 1.8;
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.filter-box label {
  display: grid;
  gap: 8px;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 800;
}

.filter-box input,
.filter-box select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  color: var(--slate-900);
  background: var(--stone-50);
  outline: none;
}

.filter-box input:focus,
.filter-box select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.empty-state {
  display: none;
  margin-top: 18px;
  padding: 24px;
  border-radius: 20px;
  color: var(--stone-500);
  background: var(--white);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.empty-state.show {
  display: block;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

.detail-bg,
.detail-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg {
  object-fit: cover;
  filter: blur(2px) saturate(1.08);
  transform: scale(1.03);
}

.detail-overlay {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.24));
}

.detail-head {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  background: var(--slate-700);
}

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

.detail-intro p {
  max-width: 760px;
  color: var(--stone-200);
  font-size: 20px;
  line-height: 1.8;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(217, 119, 6, 0.2), rgba(2, 6, 23, 0.58));
  cursor: pointer;
}

.player-button span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber-600);
  font-size: 36px;
  box-shadow: 0 24px 70px rgba(217, 119, 6, 0.38);
}

.player-button strong {
  font-size: 20px;
}

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

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

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card h2:not(:first-child) {
  margin-top: 28px;
}

.content-card p {
  margin: 0;
  color: #44403c;
  font-size: 17px;
  line-height: 1.95;
}

.side-card dl {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

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

.side-card dd {
  margin: 0;
  line-height: 1.6;
}

.site-footer {
  color: var(--stone-300);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
  border-top: 1px solid rgba(217, 119, 6, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

.footer-grid p {
  max-width: 560px;
  color: var(--stone-300);
  line-height: 1.8;
}

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

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--stone-500);
  text-align: center;
}

.narrow {
  max-width: 920px;
}

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

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

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

  .menu-button {
    display: block;
  }

  .header-inner {
    height: 66px;
  }

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

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.94));
  }

  .hero-control {
    display: none;
  }

  .two-column,
  .detail-layout,
  .footer-grid,
  .detail-head {
    grid-template-columns: 1fr;
  }

  .detail-head {
    padding: 48px 0;
  }

  .detail-cover {
    width: min(260px, 72vw);
  }

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

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

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

  .hero-content h1,
  .detail-intro h1,
  .page-hero h1 {
    font-size: 38px;
  }

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

  .section {
    padding: 52px 0;
  }

  .horizontal-row {
    grid-auto-columns: minmax(210px, 78vw);
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-grid.wide {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 42px 52px minmax(0, 1fr);
  }
}
