:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --blue-500: #3b82f6;
  --rose-500: #f43f5e;
  --amber-500: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.11);
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, var(--sky-50) 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1280px;
  height: 76px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-400), var(--blue-500));
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-text strong,
.footer-brand {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--sky-400), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}

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

.nav-link,
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 9px 13px;
  color: #374151;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--sky-500);
  background: var(--sky-50);
}

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

.top-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.top-search input,
.mobile-search input,
.hero-search input {
  width: 240px;
  padding: 11px 14px;
  outline: none;
  border: 0;
  color: var(--text);
  background: transparent;
}

.top-search button,
.mobile-search button,
.hero-search button {
  margin-right: 4px;
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-400), var(--blue-500));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: var(--sky-50);
}

.mobile-panel {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.mobile-panel .mobile-search {
  margin: 14px 0;
}

.mobile-panel .mobile-search input {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  margin-bottom: 4px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 46px 20px 64px;
  background: linear-gradient(135deg, var(--sky-100) 0%, #ffffff 45%, #eff6ff 100%);
}

.sky-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.45;
  pointer-events: none;
}

.orb-one {
  top: 36px;
  left: 8%;
  width: 260px;
  height: 260px;
  background: var(--sky-300, #7dd3fc);
}

.orb-two {
  right: 4%;
  bottom: 26px;
  width: 360px;
  height: 360px;
  background: #bfdbfe;
}

.hero-stage {
  position: relative;
  max-width: 1280px;
  min-height: 520px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) 360px;
  gap: 40px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-image {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  overflow: hidden;
  opacity: 0.13;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 24px 0 24px 8px;
}

.hero-super-title {
  display: block;
  margin-bottom: 10px;
  color: #0ea5e9;
  font-size: clamp(19px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 13px;
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--sky-500);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p {
  max-width: 660px;
  margin-top: 22px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

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

.primary-button,
.ghost-button,
.section-more,
.filter-bar a,
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.22s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-400), var(--blue-500));
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.32);
}

.ghost-button,
.section-more,
.filter-bar a,
.pill-link {
  color: var(--sky-500);
  background: #ffffff;
  border: 1px solid var(--sky-200);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.filter-bar a:hover,
.pill-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.18);
}

.hero-poster {
  position: relative;
  z-index: 2;
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 8px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 30px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.22);
}

.hero-dots button.is-active {
  background: var(--sky-500);
}

.hero-feature-grid {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 20px;
}

.tinted-section {
  max-width: none;
  padding-left: max(20px, calc((100vw - 1280px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1280px) / 2 + 20px));
  background: linear-gradient(180deg, var(--sky-50), #ffffff);
}

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

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: all 0.28s ease;
}

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

.movie-card-large {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
}

.movie-poster,
.rank-poster,
.side-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  text-decoration: none;
}

.movie-card-large .movie-poster {
  aspect-ratio: auto;
  min-height: 245px;
}

.poster-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover .poster-img,
.rank-card:hover .poster-img,
.hero-poster:hover .poster-img {
  transform: scale(1.08);
}

.poster-art {
  background:
    radial-gradient(circle at 24% 18%, rgba(56, 189, 248, 0.34), transparent 30%),
    linear-gradient(135deg, #dff4ff 0%, #ffffff 48%, #dbeafe 100%);
}

.poster-letter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(14, 165, 233, 0.28);
  font-size: clamp(28px, 7vw, 66px);
  font-weight: 900;
  letter-spacing: -0.12em;
}

.poster-badge {
  position: absolute;
  z-index: 3;
  left: 10px;
  top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.88);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card-meta,
.card-foot,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card h3,
.rank-card h2 {
  margin: 9px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h3 a,
.rank-card h2 a,
.mini-link-list a {
  color: inherit;
  text-decoration: none;
}

.movie-card p,
.rank-card p,
.category-panel p,
.text-card p,
.side-box p {
  color: var(--muted);
  line-height: 1.75;
}

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

.tag-row span,
.detail-meta span,
.rank-meta span,
.movie-card-meta span {
  border-radius: 999px;
  padding: 5px 8px;
  color: #0369a1;
  background: var(--sky-50);
  font-size: 12px;
}

.card-foot {
  justify-content: space-between;
  margin-top: 14px;
}

.card-foot strong,
.rank-meta strong,
.detail-meta strong {
  color: var(--amber-500);
}

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

.category-tile,
.category-panel {
  display: block;
  border: 1px solid rgba(186, 230, 253, 0.95);
  border-radius: 24px;
  padding: 22px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.08);
  transition: all 0.25s ease;
}

.category-tile:hover,
.category-panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-panel-head span {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.category-panel-head strong {
  flex-shrink: 0;
  color: var(--sky-500);
  font-size: 14px;
}

.mini-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-link-list a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #0369a1;
  background: var(--sky-50);
  font-size: 13px;
}

.page-hero {
  position: relative;
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 42px 20px;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--sky-100), #ffffff 48%, #eff6ff);
}

.compact-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.compact-hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 6vw, 58px);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-bar input {
  flex: 1 1 360px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 17px;
  outline: none;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 66px 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 22px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: all 0.25s ease;
}

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

.rank-num {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--amber-500));
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

.rank-poster {
  border-radius: 16px;
}

.search-status {
  margin-bottom: 18px;
  color: var(--muted);
}

.breadcrumb {
  max-width: 1280px;
  margin: 26px auto 16px;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--sky-500);
  text-decoration: none;
}

.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
}

.player-card,
.side-box,
.text-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.56));
}

.play-overlay span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky-400), var(--blue-500));
  box-shadow: 0 20px 38px rgba(14, 165, 233, 0.34);
  font-size: 30px;
}

.play-overlay.is-hidden {
  display: none;
}

.detail-content {
  padding: 26px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-title-row h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.16;
  font-weight: 900;
}

.detail-one-line {
  margin-top: 16px;
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin-top: 18px;
}

.detail-tags {
  margin-top: 18px;
}

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

.side-poster {
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.side-box,
.text-card {
  padding: 22px;
}

.side-box h2,
.text-card h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.detail-text-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, var(--sky-50));
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 20px 26px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.footer-grid p {
  max-width: 520px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
}

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

.footer-links a {
  color: #4b5563;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--sky-500);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px 28px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

[data-card].is-hidden {
  display: none;
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .top-search input {
    width: 190px;
  }

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

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

@media (max-width: 860px) {
  .nav-shell {
    height: 68px;
  }

  .top-search {
    display: none;
  }

  .hero-stage {
    min-height: 780px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    padding-top: 6px;
  }

  .hero-poster {
    width: min(320px, 86vw);
    margin: 0 auto;
  }

  .hero-feature-grid,
  .detail-shell,
  .detail-text-section,
  .footer-grid,
  .compact-hero {
    grid-template-columns: 1fr;
  }

  .hero-feature-grid,
  .compact-hero {
    display: grid;
  }

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

  .rank-card {
    grid-template-columns: 50px 82px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-num {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .brand-text em {
    display: none;
  }

  .hero-section {
    padding-top: 28px;
  }

  .hero-stage {
    min-height: 720px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1 {
    font-size: 34px;
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .movie-grid-six,
  .movie-grid-four,
  .category-grid,
  .category-panels,
  .hero-feature-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-large {
    grid-template-columns: 1fr;
  }

  .movie-card-large .movie-poster {
    aspect-ratio: 2 / 3;
  }

  .rank-card {
    grid-template-columns: 1fr;
  }

  .rank-num {
    position: absolute;
    margin: 12px;
    z-index: 4;
  }

  .rank-card {
    position: relative;
  }

  .rank-poster {
    width: 100%;
  }

  .footer-bottom,
  .detail-title-row,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
