
:root {
  --site-bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eef9ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #0ea5e9;
  --primary-dark: #0369a1;
  --cyan: #06b6d4;
  --accent: #22d3ee;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.11);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, var(--site-bg) 38%, #eef6fb 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.container-custom {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

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

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.32);
}

.brand-text {
  font-size: 1.2rem;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #475569;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-dark);
  background: rgba(14, 165, 233, 0.1);
  transform: translateY(-1px);
}

.site-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
  padding: 6px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.site-search input,
.wide-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  padding: 9px 12px;
}

.site-search button {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  font-weight: 800;
}

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

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
}

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

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 18px 38px rgba(14, 165, 233, 0.28);
}

.btn-ghost {
  color: #075985;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1s ease;
  pointer-events: none;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.68), rgba(14, 165, 233, 0.25)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 56px;
  align-items: center;
  padding: 120px 0 90px;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: #0891b2;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #67e8f9;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

.hero-copy p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-tags span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  background: #0f172a;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(14, 165, 233, 0.38);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.page-main {
  padding: 42px 0 72px;
}

.section-block {
  margin-top: 54px;
}

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

.section-heading h2,
.page-hero h1,
.ranking-panel h2,
.content-card h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.section-heading h2,
.ranking-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.section-heading a {
  color: var(--primary-dark);
  font-weight: 900;
}

.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.32);
  box-shadow: var(--shadow);
}

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

.movie-card {
  overflow: hidden;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

.poster-wrap img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

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

.type-badge,
.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.type-badge {
  top: 10px;
  left: 10px;
  background: rgba(14, 165, 233, 0.88);
}

.score-badge {
  right: 10px;
  bottom: 10px;
  background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
  top: 10px;
  right: 10px;
  min-width: 32px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.movie-card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  margin: 10px 0 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.1);
}

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

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

.category-tile {
  position: relative;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  overflow: hidden;
  padding: 22px;
  border-radius: 26px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--tile-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 0.35s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.86));
}

.category-tile:hover::before {
  transform: scale(1.12);
}

.category-tile span,
.category-tile strong {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.6;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
}

.spotlight-card,
.ranking-panel {
  border-radius: 30px;
  padding: clamp(24px, 4vw, 44px);
}

.spotlight-card {
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.4), transparent 18rem),
    linear-gradient(135deg, #0f172a, #075985 48%, #0891b2);
  box-shadow: var(--shadow);
}

.spotlight-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.06em;
}

.spotlight-card p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
}

.ranking-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.rank-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #e0f2fe;
}

.rank-item span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  font-weight: 900;
}

.rank-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item em {
  color: #f59e0b;
  font-style: normal;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 8vw, 86px);
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.42), transparent 18rem),
    linear-gradient(135deg, #0f172a, #075985 55%, #0891b2);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.85;
}

.compact-hero {
  min-height: 300px;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

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

.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #075985;
  background: rgba(14, 165, 233, 0.1);
  font-weight: 900;
}

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

.wide-search {
  display: flex;
  gap: 10px;
  width: min(720px, 100%);
  margin-top: 30px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

.wide-search input {
  padding-inline: 18px;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 28px;
  border-radius: 22px;
  color: #64748b;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
}

.empty-state.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 26px;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 800;
}

.breadcrumb a {
  color: #0369a1;
}

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

.detail-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

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

.detail-score {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.28);
}

.detail-info h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.detail-line {
  margin: 20px 0 0;
  color: #334155;
  font-size: 1.16rem;
  line-height: 1.8;
}

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

.detail-meta span {
  color: #075985;
  background: #e0f2fe;
}

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

.player-section {
  margin-top: 46px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.28);
}

.media-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.56));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 22px 50px rgba(14, 165, 233, 0.42);
}

.play-overlay span::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #ffffff;
}

.player-shell.is-started .play-overlay {
  opacity: 0;
  visibility: hidden;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 34px;
}

.content-card {
  padding: clamp(22px, 3vw, 34px);
}

.content-card h2 {
  font-size: 1.45rem;
}

.content-card p {
  margin: 16px 0 0;
  color: #475569;
  line-height: 2;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.25rem;
}

.site-footer p {
  max-width: 520px;
  margin: 14px 0 0;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-links a {
  color: #cbd5e1;
}

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

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

[hidden] {
  display: none !important;
}

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

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

  .hero-content {
    grid-template-columns: 1fr 240px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .site-search {
    order: 5;
    width: 100%;
    min-width: 0;
  }

  .hero-slider {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 82px;
  }

  .hero-poster {
    width: min(240px, 72vw);
  }

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

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

  .detail-cover {
    max-width: 320px;
  }

  .filter-panel {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container-custom {
    width: min(100% - 22px, 1180px);
  }

  .hero-slider {
    min-height: 700px;
  }

  .hero-copy h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.05em;
  }

  .category-grid,
  .category-grid.large,
  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .wide-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .page-hero {
    border-radius: 24px;
    padding: 30px 22px;
  }
}
