:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --orange: #f97316;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.section-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.brand-name {
  font-size: 1.2rem;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: #334155;
  font-weight: 650;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: #eff6ff;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input {
  width: 180px;
  border: 0;
  outline: 0;
  padding: 8px 10px;
  background: transparent;
}

.header-search button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
}

.header-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

.header-search button {
  padding: 8px 14px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  transition: 0.2s ease;
}

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

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

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

.mobile-nav-row,
.mobile-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-category-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
}

.hero-carousel {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
}

.hero-slide.active {
  display: block;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(6, 182, 212, 0.34), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.25) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 42%);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--cyan);
}

.hero-content h1 {
  max-width: 780px;
  margin: 12px 0 18px;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 650px;
  margin: 0 0 24px;
  font-size: 1.16rem;
  color: rgba(255, 255, 255, 0.88);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: #dffbff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.tag-row span {
  color: #0369a1;
  background: #e0f2fe;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

.floating-picks {
  position: relative;
  z-index: 4;
  margin-top: -64px;
  margin-bottom: 38px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.section-wrap {
  padding: 54px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-text h2,
.player-column h1 {
  margin: 0;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.section-head a,
.text-link {
  color: var(--blue);
  font-weight: 750;
}

.compact-head {
  margin-bottom: 18px;
}

.section-search input,
.filter-panel input {
  width: min(360px, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  outline: 0;
  background: #ffffff;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-cover,
.horizontal-cover,
.category-tile,
.category-overview-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.movie-cover {
  aspect-ratio: 2 / 3;
}

.movie-cover img,
.horizontal-cover img,
.category-tile img,
.category-overview-cover img,
.detail-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover img,
.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.06);
}

.cover-gradient,
.category-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), transparent 55%);
}

.card-play,
.play-badge {
  position: absolute;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.34);
}

.card-play {
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: 0.2s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.duration-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.78rem;
  background: rgba(2, 6, 23, 0.78);
}

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

.movie-title {
  display: inline-block;
  color: #111827;
  font-weight: 800;
  line-height: 1.35;
}

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

.movie-card-body p,
.horizontal-body p,
.category-overview-card p,
.detail-one-line {
  color: var(--muted);
}

.movie-card-body p {
  min-height: 46px;
  margin: 8px 0 12px;
  font-size: 0.94rem;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #64748b;
  font-size: 0.86rem;
}

.movie-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

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

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

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 138px;
}

.horizontal-cover {
  height: 100%;
}

.play-badge {
  left: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.category-band,
.score-band {
  background: linear-gradient(135deg, #f0f9ff, #eef2ff);
}

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

.category-tile {
  min-height: 190px;
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.category-tile strong,
.category-tile small {
  position: absolute;
  left: 18px;
  right: 18px;
  color: #ffffff;
}

.category-tile strong {
  bottom: 52px;
  font-size: 1.2rem;
}

.category-tile small {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.45), transparent 32%),
    linear-gradient(135deg, #1d4ed8 0%, #0891b2 55%, #0f172a 100%);
}

.page-hero-inner {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.small-page-hero .page-hero-inner,
.ranking-hero .page-hero-inner,
.category-hero .page-hero-inner {
  padding: 68px 0;
}

.page-hero h1 {
  margin-top: 10px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.page-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.page-actions {
  margin-top: 22px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.07);
}

.category-overview-cover {
  min-height: 160px;
  border-radius: 20px;
}

.category-overview-card h2 {
  margin: 3px 0 8px;
}

.category-samples {
  margin: 10px 0 14px;
  color: #0369a1;
  font-size: 0.95rem;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #475569;
  background: #f1f5f9;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.ranking-table-wrap {
  padding-top: 0;
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-table th,
.ranking-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.ranking-table th {
  color: #334155;
  background: #f8fafc;
}

.ranking-table td a {
  color: #0f172a;
  font-weight: 750;
}

.ranking-table td a:hover {
  color: var(--blue);
}

.rank-number {
  color: var(--orange);
  font-weight: 900;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: #64748b;
  font-size: 0.94rem;
}

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

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

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.main-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #020617;
}

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

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

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.25));
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.42);
  transform: translate(-50%, -50%);
}

.player-column h1 {
  margin-top: 22px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.detail-one-line {
  max-width: 850px;
  margin: 10px 0 18px;
  font-size: 1.06rem;
}

.detail-side {
  display: grid;
  gap: 18px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.info-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
}

.info-card h2 {
  margin: 0 0 14px;
}

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

.info-card dt {
  color: #64748b;
}

.info-card dd {
  margin: 0;
  font-weight: 700;
}

.info-card a {
  color: var(--blue);
}

.detail-text {
  padding-top: 24px;
}

.detail-text h2 {
  margin: 22px 0 10px;
  font-size: 1.7rem;
}

.detail-text p {
  margin: 0;
  color: #334155;
  font-size: 1.06rem;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 36px;
  padding: 46px 0 30px;
}

.brand-footer .brand-name {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 440px;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 7px 11px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.45);
}

.footer-bottom {
  padding: 18px 16px 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  color: #94a3b8;
}

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

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

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

  .detail-side {
    grid-template-columns: 220px 1fr;
  }
}

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

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

  .hero-carousel {
    min-height: 560px;
  }

  .hero-content h1 {
    font-size: clamp(2.4rem, 13vw, 4.4rem);
  }

  .floating-picks {
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

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

  .movie-grid,
  .movie-grid.three-col,
  .movie-grid.all-grid,
  .horizontal-grid,
  .horizontal-grid.two-col,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .movie-card-horizontal,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .horizontal-cover,
  .category-overview-cover {
    aspect-ratio: 16 / 9;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .footer-inner,
  .section-wrap,
  .detail-shell,
  .hero-content,
  .page-hero-inner {
    width: min(100% - 24px, 1180px);
  }

  .movie-grid,
  .movie-grid.three-col,
  .movie-grid.all-grid,
  .horizontal-grid,
  .horizontal-grid.two-col,
  .category-grid,
  .category-overview-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 640px;
  }

  .hero-actions {
    width: 100%;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
