:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --brand: #06b6d4;
  --brand-strong: #2563eb;
  --hot: #f97316;
  --radius: 24px;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.14);
}

* {
  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: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #eef7ff 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.95), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.35);
}

.brand-text {
  font-size: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 700;
}

.nav-link {
  position: relative;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #67e8f9;
}

.nav-link.is-active::after,
.nav-link:hover::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  content: "";
  border-radius: 99px;
  background: #67e8f9;
}

.menu-toggle {
  display: none;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
}

.top-visual {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #ffffff;
  background: #07111f;
}

.top-visual-backdrop,
.detail-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.top-visual-backdrop img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.52;
}

.top-visual-layer,
.detail-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(34, 211, 238, 0.35), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.75) 42%, rgba(37, 99, 235, 0.42));
}

.top-visual-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 590px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 70px 0 110px;
}

.top-copy h1,
.page-visual h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.top-copy h2 {
  margin: 24px 0 12px;
  font-size: clamp(26px, 4vw, 44px);
}

.top-copy p,
.page-visual p,
.detail-one-line {
  max-width: 760px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-actions,
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.section-more,
.quick-search button,
.inline-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.quick-search button {
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
}

.ghost-button,
.inline-filter button,
.section-more {
  color: #0f172a;
  background: #ffffff;
}

.top-visual .ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.quick-search button:hover,
.inline-filter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.hero-tags,
.detail-tags,
.movie-meta,
.year-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.movie-meta span,
.year-filter button {
  border-radius: 999px;
  padding: 6px 10px;
  color: #334155;
  background: rgba(241, 245, 249, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.top-visual .hero-tags span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
}

.top-poster-panel {
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.top-poster-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.top-poster-panel div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.top-poster-panel strong {
  font-size: 42px;
  color: #67e8f9;
}

.spotlight-strip {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  width: min(1120px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  transform: translateX(-50%);
}

.spot-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 10px;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.spot-card img {
  width: 70px;
  height: 66px;
  border-radius: 14px;
  object-fit: cover;
}

.search-band,
.content-section,
.category-overview,
.watch-section,
.wide-rank-list {
  width: min(1240px, calc(100% - 32px));
  margin: 54px auto;
}

.search-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}

.search-band h2,
.section-head h2,
.feature-card h2,
.watch-copy h2,
.category-tile h2,
.wide-rank-info h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

.quick-search,
.inline-filter {
  display: flex;
  gap: 10px;
}

.quick-search input,
.inline-filter input,
.card-filter-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: #ffffff;
}

.quick-search input:focus,
.inline-filter input:focus,
.card-filter-input:focus {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

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

.section-more {
  min-height: 40px;
  color: var(--brand-strong);
  background: #eff6ff;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.score,
.play-dot {
  position: absolute;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
}

.score {
  top: 10px;
  right: 10px;
  min-width: 42px;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
}

.play-dot {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.88);
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  padding: 14px;
}

.movie-title {
  display: block;
  min-height: 44px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-title:hover,
.wide-rank-info h2 a:hover,
.category-tile h2 a:hover {
  color: var(--brand-strong);
}

.movie-info p {
  margin: 8px 0 12px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
}

.feature-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: stretch;
}

.feature-card {
  padding: 32px;
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.45), transparent 40%),
    linear-gradient(135deg, #0f172a, #1d4ed8);
  box-shadow: var(--shadow);
}

.feature-card p {
  color: rgba(255, 255, 255, 0.78);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.rank-row img {
  width: 66px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

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

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.rank-score {
  color: var(--hot);
  font-weight: 900;
}

.page-visual,
.detail-visual {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.page-visual {
  width: min(1240px, calc(100% - 32px));
  margin: 36px auto 0;
  padding: 52px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 20%, rgba(34, 211, 238, 0.42), transparent 35%),
    linear-gradient(135deg, #0f172a, #1e3a8a);
  box-shadow: var(--shadow);
}

.slim-visual {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 480px);
  gap: 24px;
  align-items: end;
}

.page-visual .inline-filter {
  align-self: end;
}

.year-filter {
  margin-top: 24px;
}

.year-filter button {
  border: 0;
  cursor: pointer;
}

.category-overview {
  display: grid;
  gap: 22px;
}

.category-tile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.category-cover img {
  width: 220px;
  height: 160px;
  border-radius: 22px;
  object-fit: cover;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.category-links a {
  border-radius: 999px;
  padding: 7px 12px;
  color: #1e3a8a;
  background: #eff6ff;
  font-weight: 800;
  font-size: 13px;
}

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

.wide-rank-card {
  display: grid;
  grid-template-columns: 72px 110px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.09);
}

.wide-rank-number {
  font-size: 28px;
  font-weight: 1000;
  color: var(--brand-strong);
}

.wide-rank-poster img {
  width: 110px;
  height: 138px;
  border-radius: 18px;
  object-fit: cover;
}

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

.rank-stat {
  text-align: right;
}

.rank-stat strong {
  display: block;
  color: var(--hot);
  font-size: 30px;
}

.rank-stat span {
  color: var(--muted);
  font-size: 13px;
}

.detail-visual {
  min-height: 560px;
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster img {
  width: 320px;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  max-width: 900px;
}

.detail-stats span {
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.14);
  color: #e0f2fe;
  font-weight: 800;
}

.detail-stats strong {
  color: #fbbf24;
}

.watch-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.player-card {
  position: relative;
  overflow: hidden;
  grid-row: span 2;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.16), rgba(2, 6, 23, 0.5));
}

.player-mask span {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.4);
  font-size: 34px;
}

.player-mask.is-hidden {
  display: none;
}

.watch-copy {
  padding: 26px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.watch-copy p {
  color: #475569;
}

.site-footer {
  margin-top: 80px;
  padding: 48px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 34px;
}

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

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 7px 0;
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: #67e8f9;
}

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

@media (max-width: 1120px) {
  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
  }

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

  .nav-link {
    padding: 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .top-visual-inner,
  .detail-grid,
  .feature-split,
  .watch-section,
  .slim-visual,
  .search-band {
    grid-template-columns: 1fr;
  }

  .top-poster-panel {
    max-width: 360px;
  }

  .spotlight-strip {
    position: relative;
    left: auto;
    bottom: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: -84px auto 28px;
    transform: none;
  }

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

  .wide-rank-card {
    grid-template-columns: 56px 88px 1fr;
  }

  .rank-stat {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .brand-text {
    font-size: 18px;
  }

  .top-visual-inner,
  .detail-inner {
    padding: 44px 0 80px;
  }

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

  .top-poster-panel {
    display: none;
  }

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

  .spotlight-strip {
    margin-top: -54px;
  }

  .search-band,
  .content-section,
  .category-overview,
  .watch-section,
  .wide-rank-list,
  .page-visual {
    width: min(100% - 24px, 1240px);
  }

  .page-visual {
    padding: 34px 22px;
    border-radius: 24px;
  }

  .section-head,
  .quick-search,
  .inline-filter {
    align-items: stretch;
    flex-direction: column;
  }

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

  .category-cover img,
  .detail-poster img {
    width: 100%;
  }

  .wide-rank-card {
    grid-template-columns: 42px 78px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .wide-rank-poster img {
    width: 78px;
    height: 104px;
  }

  .wide-rank-number {
    font-size: 22px;
  }

  .rank-row {
    grid-template-columns: 58px 1fr;
  }

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