:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --card: #ffffff;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --dark-text: #0f172a;
  --cyan: #06b6d4;
  --cyan-strong: #0891b2;
  --blue: #2563eb;
  --orange: #f97316;
  --red: #ef4444;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 45%, #f8fafc 100%);
  color: var(--dark-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.32);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.site-logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #22d3ee 0%, #2563eb 100%);
  box-shadow: 0 12px 25px rgba(6, 182, 212, 0.28);
}

.site-logo-text {
  font-size: 22px;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  transform: translateY(-1px);
}

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

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #0f172a 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(6, 182, 212, 0.18), transparent 32%), linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.64), rgba(2, 6, 23, 0.34));
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(24px, calc((100vw - 1180px) / 2));
  width: min(760px, calc(100% - 48px));
  transform: translateY(-50%);
}

.hero-pill,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 20px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(103, 232, 249, 0.18);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.75;
}

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

.primary-button,
.ghost-button,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 15px 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 30px rgba(6, 182, 212, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.ghost-button {
  padding: 14px 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  color: #e2e8f0;
}

.hero-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 94px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.72);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-search {
  position: absolute;
  z-index: 5;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 78px;
  display: flex;
  width: min(420px, calc(100% - 48px));
  padding: 8px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 0;
  outline: 0;
  border-radius: 12px;
  font: inherit;
}

.hero-search input {
  flex: 1;
  padding: 12px 14px;
  color: #ffffff;
  background: transparent;
}

.hero-search button {
  border: 0;
  padding: 0 18px;
  border-radius: 12px;
  color: #ffffff;
  background: #06b6d4;
  font-weight: 800;
}

.hero-category-links {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hero-category-links a {
  flex: 0 0 auto;
  padding: 9px 14px;
  color: #e0f2fe;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 14px;
  font-weight: 800;
}

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

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

.section-heading h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  font-weight: 900;
}

.section-heading p {
  max-width: 680px;
  margin: 0;
  color: #64748b;
  line-height: 1.8;
}

.section-more,
.text-link {
  color: #0891b2;
  font-weight: 900;
}

.movie-grid,
.compact-grid,
.category-grid,
.category-overview-grid,
.feature-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

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

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 58%);
}

.poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 42px;
  opacity: 0;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s ease;
}

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

.poster-meta,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.poster-meta {
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.78);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 22px rgba(239, 68, 68, 0.28);
}

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

.movie-card-body h3 {
  margin: 0 0 9px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 47px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.movie-card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 12px;
  font-weight: 800;
}

.dark-panel {
  width: min(1220px, calc(100% - 32px));
  margin-top: 20px;
  padding: 46px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #0f172a);
  box-shadow: var(--shadow);
}

.dark-panel .section-heading h2,
.dark-panel .section-heading p {
  color: #ffffff;
}

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

.category-card {
  min-height: 168px;
  padding: 24px;
  border-radius: 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.16);
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.75;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  background: #ffffff;
}

.ranking-number {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  font-weight: 900;
}

.ranking-title {
  font-weight: 900;
}

.ranking-info {
  color: #64748b;
  font-size: 14px;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 54%, #0f172a 100%);
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.8;
}

.small-hero > div {
  padding: 64px 0;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 13px;
  background: #0f172a;
}

.category-overview-card h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 26px;
  font-weight: 900;
}

.category-overview-card p {
  margin: 0 0 18px;
  color: #64748b;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 14px 14px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.filter-bar select:last-child:nth-child(2) {
  grid-column: auto;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #0891b2;
  font-weight: 800;
}

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

.detail-main,
.detail-side .side-card,
.player-card,
.detail-copy {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
}

.detail-main {
  overflow: hidden;
}

.player-card {
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  background: #000000;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.16), rgba(0, 0, 0, 0.42));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.32);
  font-size: 38px;
}

.player-frame.is-started .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-copy {
  border-radius: 0 0 24px 24px;
  padding: 30px;
  box-shadow: none;
}

.detail-copy h1 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 900;
}

.detail-copy h2,
.side-card h2 {
  margin: 28px 0 12px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.detail-copy p {
  margin: 0 0 18px;
  color: #334155;
  line-height: 1.95;
  font-size: 16px;
}

.detail-one-line {
  color: #0e7490 !important;
  font-weight: 800;
}

.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.detail-meta span,
.tag-list span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 13px;
  font-weight: 900;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.side-card {
  margin-top: 18px;
  padding: 24px;
}

.side-card h2 {
  margin-top: 0;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
}

.side-card dt {
  color: #64748b;
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

.related-section {
  padding-top: 46px;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 36px;
}

.footer-brand p,
.footer-column a,
.footer-bottom {
  color: #94a3b8;
}

.footer-brand p {
  max-width: 430px;
  margin: 16px 0 0;
  line-height: 1.8;
}

.footer-column h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

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

.footer-column a:hover {
  color: #22d3ee;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid #1e293b;
  font-size: 14px;
}

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

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

  .split-section,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    width: min(100% - 24px, 1180px);
  }

  .mobile-menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    display: none;
    padding: 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .hero-carousel {
    height: 680px;
  }

  .hero-content {
    top: 44%;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 42px;
  }

  .hero-search {
    left: 16px;
    right: 16px;
    bottom: 82px;
    width: auto;
  }

  .hero-dots {
    bottom: 154px;
  }

  .movie-grid,
  .large-grid,
  .compact-grid,
  .feature-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 14px;
  }

  .dark-panel {
    padding: 28px 18px;
  }

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

  .category-overview-card,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 42px 1fr;
  }

  .ranking-info {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .site-logo-text {
    font-size: 18px;
  }

  .movie-grid,
  .large-grid,
  .compact-grid,
  .feature-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .content-section,
  .page-hero > div,
  .detail-shell {
    width: min(100% - 24px, 1180px);
  }

  .hero-actions {
    display: grid;
  }
}
