:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --dark: #020617;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --violet: #7c3aed;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --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;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #eef7ff 100%);
  color: var(--ink);
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #0891b2 52%, #1d4ed8);
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.35);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav,
.mobile-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(226, 232, 240, 0.86);
  padding: 9px 14px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(51, 65, 85, 0.78);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 24px 16px;
  flex-wrap: wrap;
}

.nav-chips {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.nav-chip {
  flex: 0 0 auto;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
}

.nav-chip:hover {
  color: #fff;
  border-color: rgba(103, 232, 249, 0.55);
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
  color: #fff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.68) 44%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: flex;
  align-items: center;
}

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

.hero-badges,
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(6, 182, 212, 0.94);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.badge.subtle {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  margin: 0 0 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 640px;
  color: rgba(241, 245, 249, 0.9);
  font-size: clamp(16px, 2vw, 20px);
  margin: 0 0 28px;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.35);
}

.btn.light {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  width: min(1280px, 100%);
  transform: translateX(-50%);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 30px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

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

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px 72px;
}

.content-section {
  margin: 56px 0;
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.section-head h1,
.section-head h2,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.section-link {
  color: var(--blue);
  font-weight: 800;
}

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

.movie-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(6, 182, 212, 0.28);
}

.poster {
  display: block;
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0e7490 48%, #1d4ed8);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent);
}

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

.poster-badge {
  top: 10px;
  left: 10px;
  background: rgba(6, 182, 212, 0.92);
}

.poster-heat {
  right: 10px;
  bottom: 10px;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-body {
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.card-title:hover {
  color: var(--blue);
}

.meta-line {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.card-body p {
  min-height: 44px;
  margin: 9px 0 12px;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  font-size: 12px;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  padding: 3px 8px;
}

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

.category-card {
  min-height: 190px;
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  background: radial-gradient(circle at top right, rgba(103, 232, 249, 0.4), transparent 34%), linear-gradient(135deg, #0f172a, #1e40af);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(241, 245, 249, 0.86);
}

.category-card span {
  margin-top: 18px;
  font-weight: 900;
  color: #67e8f9;
}

.rank-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 24px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 60px 84px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.rank-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--blue);
  text-align: center;
}

.rank-thumb {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
}

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

.rank-info h2,
.rank-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
}

.rank-score {
  font-weight: 900;
  color: #ea580c;
}

.search-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin: 24px 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px;
  gap: 12px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px 14px;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.detail-hero {
  color: #fff;
  background: radial-gradient(circle at 76% 12%, rgba(34, 211, 238, 0.28), transparent 30%), linear-gradient(135deg, #020617 0%, #0f172a 54%, #1e3a8a 100%);
}

.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #0f172a, #0891b2, #1d4ed8);
}

.detail-poster img {
  width: 100%;
  height: 100%;
}

.detail-copy h1 {
  color: #fff;
  font-size: clamp(36px, 6vw, 68px);
}

.detail-copy p {
  color: rgba(241, 245, 249, 0.9);
  font-size: 18px;
}

.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.player-panel,
.article-panel,
.side-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-panel {
  margin-bottom: 24px;
}

.video-frame {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(210px, 58%);
  height: 58px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 20px 55px rgba(6, 182, 212, 0.28);
}

.video-frame.is-playing .play-cover {
  opacity: 0;
  pointer-events: none;
}

.article-panel {
  padding: 28px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-panel p {
  color: #334155;
  margin: 0 0 18px;
}

.info-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  color: #334155;
}

.info-list strong {
  color: var(--ink);
}

.side-panel {
  padding: 22px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 8px;
  background: #f8fafc;
}

.side-link img {
  width: 64px;
  height: 90px;
  border-radius: 12px;
}

.side-link strong {
  display: block;
  line-height: 1.35;
}

.side-link span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb {
  color: rgba(241, 245, 249, 0.75);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: #fff;
}

.site-footer {
  background: #020617;
  color: #cbd5e1;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  gap: 18px;
}

.footer-inner strong {
  color: #fff;
  font-size: 20px;
}

.footer-inner p {
  margin: 8px 0 0;
}

.footer-links,
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a,
.footer-cats a {
  color: #93c5fd;
}

.copyright {
  color: #94a3b8;
}

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

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

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

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

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

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

  .hero,
  .hero-content {
    min-height: 76vh;
  }

  .hero-controls {
    align-items: flex-end;
  }

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

  .rank-panel,
  .detail-wrap,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

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

  .rank-score {
    grid-column: 3;
  }

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

@media (max-width: 560px) {
  .nav-wrap,
  .page-main,
  .detail-main,
  .detail-wrap,
  .hero-content,
  .hero-controls {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-chips {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid {
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body p,
  .tag-row {
    display: none;
  }

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

  .hero-arrows {
    display: none;
  }
}

.spacer {
  height: 24px;
}
