:root {
  color-scheme: light;
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --card: #ffffff;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --line: rgba(148, 163, 184, 0.24);
  --amber: #f59e0b;
  --amber-2: #fbbf24;
  --cyan: #06b6d4;
  --purple: #a855f7;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a, #1e293b 52%, #0f172a);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.18);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.38);
}

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

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

.brand-text small {
  color: #94a3b8;
  font-size: 12px;
  margin-top: 4px;
}

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

.nav-link,
.mobile-category-link {
  color: #cbd5e1;
  padding: 10px 16px;
  border-radius: 14px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-category-link:hover {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.95);
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.28);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: 0.25s ease;
}

.icon-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.nav-toggle {
  display: none;
}

.site-search,
.mobile-nav {
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.96);
}

.search-panel,
.mobile-nav-inner {
  padding: 16px 0;
}

.search-panel input,
.big-search input,
.page-search input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.32);
  outline: none;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.84);
  border-radius: 16px;
  padding: 14px 16px;
}

.search-panel input:focus,
.big-search input:focus,
.page-search input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.mobile-nav-inner {
  display: grid;
  gap: 10px;
}

.mobile-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.1) contrast(1.05);
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 30%, rgba(245, 158, 11, 0.32), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.76) 48%, rgba(15, 23, 42, 0.34) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: center;
  gap: 56px;
  min-height: 680px;
  padding: 76px 0 92px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-2);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-copy .lead {
  margin: 0;
  max-width: 720px;
  color: #cbd5e1;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.8;
}

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

.hero-tags {
  margin: 24px 0 30px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 16px;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-button {
  color: #111827;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  padding: 0 22px;
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(245, 158, 11, 0.34);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 20px;
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transition: 0.25s ease;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--amber);
}

.section-block {
  padding: 70px 0;
}

.section-overlap {
  margin-top: -70px;
  padding-top: 0;
  position: relative;
  z-index: 6;
}

.glass-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 28px;
}

.glass-search h2,
.section-heading h2,
.category-preview h2,
.detail-article h2,
.detail-side-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.glass-search p,
.section-heading p,
.category-preview p,
.detail-article p,
.detail-side-card dd {
  color: var(--muted);
  line-height: 1.75;
}

.big-search,
.page-search {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 700;
}

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

.text-link {
  color: var(--amber);
  padding: 0 4px;
}

.text-link:hover {
  color: #b45309;
}

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

.category-panel {
  display: grid;
  min-height: 220px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 42%),
    #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  padding: 22px;
  transition: 0.25s ease;
}

.category-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: var(--shadow);
}

.category-panel strong {
  font-size: 24px;
}

.category-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.category-panel div {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
}

.dark-section {
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 32%),
    linear-gradient(135deg, #020617, #0f172a 50%, #111827);
}

.dark-section .section-heading p {
  color: #cbd5e1;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4.1;
  background: #0f172a;
}

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

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

.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.duration {
  right: 10px;
  bottom: 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.76);
  padding: 5px 9px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 32px;
  justify-content: center;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  padding: 7px 9px;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.movie-card h2 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #64748b;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row span {
  color: #475569;
  border-color: rgba(148, 163, 184, 0.32);
  background: #f8fafc;
}

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

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

.movie-card-compact p {
  min-height: 44px;
  font-size: 14px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.24), transparent 30%),
    linear-gradient(135deg, #020617, #0f172a 58%, #1e293b);
}

.page-hero .container {
  padding: 86px 0;
}

.slim-hero .container {
  padding: 70px 0;
}

.page-search {
  max-width: 520px;
  margin-top: 28px;
}

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

.category-preview {
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.category-preview:last-child {
  border-bottom: 0;
}

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

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

.detail-hero {
  min-height: 620px;
}

.detail-bg,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) saturate(1.08);
  transform: scale(1.05);
  opacity: 0.45;
}

.detail-shade {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.7)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 58%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 40px 0 74px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: #cbd5e1;
  margin-bottom: 34px;
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--amber-2);
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
}

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

.detail-meta {
  margin: 22px 0 0;
}

.player-section {
  background: #020617;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
}

.movie-video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  background: #000000;
}

.player-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.76;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.12));
}

.player-play {
  position: relative;
  z-index: 3;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 22px 44px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  transition: 0.25s ease;
}

.player-play:hover {
  transform: scale(1.06);
}

.player-play span {
  margin-left: 5px;
  font-size: 30px;
}

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

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

.detail-article,
.detail-side-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  font-size: 17px;
}

.detail-side-card {
  position: sticky;
  top: 104px;
}

.detail-side-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.detail-side-card dl div {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.detail-side-card dt {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

.detail-side-card dd {
  margin: 0;
}

.detail-side-card a {
  color: var(--amber);
  font-weight: 800;
}

.empty-state {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: #ffffff;
  padding: 22px;
  text-align: center;
}

.site-footer {
  color: #94a3b8;
  background: #0f172a;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  padding: 52px 0 26px;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.site-footer h2 {
  color: #ffffff;
  font-size: 18px;
  margin: 0 0 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

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

.footer-bottom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .movie-grid,
  .rank-page-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

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

  .nav-toggle {
    display: grid;
  }

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

  .hero-content,
  .detail-layout,
  .glass-search,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 280px;
    transform: none;
  }

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

  .section-heading,
  .compact-heading {
    align-items: start;
    flex-direction: column;
  }

  .detail-side-card {
    position: static;
  }
}

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

  .brand-text small {
    display: none;
  }

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

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

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

  .hero-content {
    padding-top: 46px;
    gap: 28px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 42px;
  }

  .hero p,
  .page-hero p,
  .detail-copy .lead {
    font-size: 16px;
  }

  .hero-controls {
    bottom: 18px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
  }

  .section-block {
    padding: 48px 0;
  }

  .glass-search,
  .detail-article,
  .detail-side-card {
    border-radius: 22px;
    padding: 20px;
  }

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

  .movie-card {
    border-radius: 18px;
  }

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

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

  .movie-card p {
    min-height: 42px;
    font-size: 13px;
  }

  .tag-row span:nth-child(n + 3) {
    display: none;
  }

  .page-hero .container {
    padding: 54px 0;
  }

  .detail-hero-inner {
    padding: 28px 0 52px;
  }

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

  .player-shell {
    border-radius: 18px;
  }

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

  .mobile-category-grid {
    grid-template-columns: 1fr;
  }
}
