:root {
  --bg: #111827;
  --bg-deep: #090d16;
  --panel: rgba(31, 41, 55, 0.72);
  --panel-strong: rgba(31, 41, 55, 0.92);
  --line: rgba(251, 146, 60, 0.24);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --muted-light: #d1d5db;
  --sunset: #f59e0b;
  --sunset-strong: #d97706;
  --twilight: #f97316;
  --radius: 18px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.15), transparent 34rem),
    linear-gradient(180deg, #111827 0%, #0b0f19 48%, #090d16 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(154, 52, 18, 0.35);
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sunset), var(--twilight));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.brand-name {
  display: block;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #f59e0b, #fb923c, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted-light);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--sunset);
}

.header-search {
  position: relative;
  width: min(310px, 32vw);
}

.header-search input,
.hero-search input,
.page-search input,
.select-box {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(31, 41, 55, 0.9);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  padding: 11px 16px 11px 42px;
}

.header-search input:focus,
.hero-search input:focus,
.page-search input:focus,
.select-box:focus {
  border-color: var(--sunset-strong);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.18);
  background: rgba(17, 24, 39, 0.95);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.mobile-toggle {
  display: none;
  border: 0;
  color: var(--text);
  background: rgba(31, 41, 55, 0.9);
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(31, 41, 55, 0.95);
  padding: 14px 0 18px;
}

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

.mobile-panel .nav-links {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #111827;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.35) 100%),
    linear-gradient(0deg, #111827 0%, rgba(17, 24, 39, 0.2) 45%, rgba(17, 24, 39, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding: 90px 0 72px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sunset);
  font-weight: 800;
  margin-bottom: 16px;
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 0;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero h1 {
  max-width: 760px;
}

.hero p {
  color: var(--muted-light);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  max-width: 680px;
  margin: 20px 0 0;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(217, 119, 6, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--sunset-strong), var(--twilight));
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.24);
}

.btn-ghost {
  background: rgba(17, 24, 39, 0.72);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.hero-search {
  display: flex;
  width: min(590px, 100%);
  gap: 10px;
  margin-top: 28px;
}

.hero-search input {
  padding: 14px 18px;
  border-radius: 16px;
}

.hero-nav {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 0.55;
}

.hero-dot.is-active {
  width: 28px;
  opacity: 1;
  background: linear-gradient(90deg, var(--sunset), var(--twilight));
}

.section {
  padding: 54px 0 0;
}

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

.section h2,
.page-hero h1,
.block-title {
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0;
}

.section-desc,
.page-hero p,
.detail-lead,
.text-muted {
  color: var(--muted);
  line-height: 1.75;
}

.more-link {
  color: var(--sunset);
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.015);
  background: var(--panel-strong);
  border-color: var(--line);
}

.movie-card.is-hidden {
  display: none;
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #1f2937;
  overflow: hidden;
}

.poster.wide {
  aspect-ratio: 16 / 9;
}

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

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

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

.play-mark {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 34px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
}

.card-body {
  padding: 14px;
}

.card-kicker,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.card-title {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
  color: #fff;
}

.card-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  min-height: 170px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  background:
    linear-gradient(135deg, rgba(217, 119, 6, 0.18), rgba(249, 115, 22, 0.08)),
    rgba(31, 41, 55, 0.68);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
}

.category-card h3 {
  margin: 0;
  font-size: 22px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 140px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.58);
  border: 1px solid var(--line-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: var(--line);
}

.rank-number {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--sunset), var(--twilight));
  color: #111827;
  font-weight: 950;
}

.rank-thumb {
  width: 140px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #1f2937;
}

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

.page-hero {
  padding: 60px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 25% 20%, rgba(245, 158, 11, 0.18), transparent 22rem),
    radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.12), transparent 26rem);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 60px);
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 12px;
  margin: 28px 0 0;
}

.page-search {
  position: relative;
}

.page-search input,
.select-box {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
}

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

.breadcrumb a {
  color: var(--sunset);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.22s ease;
}

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

.player-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--sunset-strong), var(--twilight));
  box-shadow: 0 22px 46px rgba(249, 115, 22, 0.38);
}

.detail-title {
  font-size: clamp(34px, 5vw, 56px);
  margin-top: 24px;
}

.detail-lead {
  font-size: 18px;
  margin-top: 16px;
}

.info-panel,
.content-panel {
  border-radius: 22px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  background: rgba(31, 41, 55, 0.58);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
}

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

.info-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.info-list strong {
  color: #fff;
}

.content-panel {
  margin-top: 24px;
}

.content-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-panel p {
  color: var(--muted-light);
  line-height: 1.9;
  margin: 0;
}

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

.empty-message {
  display: none;
  padding: 22px;
  border-radius: 16px;
  background: rgba(31, 41, 55, 0.72);
  color: var(--muted-light);
}

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

.site-footer {
  margin-top: 70px;
  padding: 46px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 13, 22, 0.72);
}

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

.footer-grid h3 {
  margin: 0 0 14px;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  line-height: 1.8;
}

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

.copyright {
  color: var(--muted);
  text-align: center;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

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

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

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

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

  .mobile-panel .header-search {
    display: block;
    width: 100%;
  }

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

  .hero-content {
    padding: 92px 0 96px;
  }

  .hero-search,
  .section-head,
  .toolbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .rank-item {
    grid-template-columns: 48px 96px 1fr;
  }

  .rank-score {
    display: none;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 22px, var(--max));
  }

  .brand-subtitle {
    display: none;
  }

  .hero h1,
  .detail-title,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .movie-grid,
  .movie-grid.compact,
  .related-grid {
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .rank-item {
    grid-template-columns: 44px 1fr;
  }

  .rank-thumb {
    display: none;
  }
}
