:root {
  --bg: #f6fbfb;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #e0f2f1;
  --line: rgba(15, 23, 42, 0.09);
  --brand: #0f766e;
  --brand-2: #0891b2;
  --brand-3: #22d3ee;
  --dark: #0f172a;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(15, 118, 110, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.20), transparent 32rem),
    linear-gradient(180deg, #f8ffff 0%, var(--bg) 42%, #ffffff 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1220px, calc(100% - 32px));
  height: 68px;
  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: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 34px rgba(8, 145, 178, 0.28);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.site-nav a:hover {
  color: var(--brand);
  background: rgba(15, 118, 110, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand);
}

.hero-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 34px auto 0;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, #0f172a, #134e4a 48%, #0e7490);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-slider {
  position: relative;
  min-height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: center;
  gap: 44px;
  padding: 70px;
  color: #ffffff;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.17;
  filter: blur(2px) saturate(1.2);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(34, 211, 238, 0.34), transparent 22rem),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(19, 78, 74, 0.82));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--brand-2);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-summary,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(224, 242, 241, 0.92);
  font-size: 13px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.primary-button,
.home-search button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 42px rgba(8, 145, 178, 0.30);
}

.ghost-button {
  color: #e0f2fe;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.10);
}

.hero-poster,
.detail-cover,
.poster {
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.28), transparent 12rem),
    linear-gradient(135deg, #134e4a, #0f172a);
}

.hero-poster {
  min-height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

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

.hero-poster span,
.detail-cover span,
.poster-title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 10px 12px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.image-empty {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
}

.image-empty span,
.image-empty .poster-title {
  position: static;
  margin: 18px;
}

.hero-dots {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 0 70px 28px;
}

.hero-dots button {
  height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-dots button.is-active,
.hero-dots button:hover {
  color: #ffffff;
  border-color: rgba(103, 232, 249, 0.6);
  background: rgba(20, 184, 166, 0.28);
}

.hero-category-strip {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 70px 54px;
}

.hero-category-strip a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #ccfbf1;
  background: rgba(255, 255, 255, 0.10);
}

.section-wrap {
  width: min(1220px, calc(100% - 32px));
  margin: 56px auto 0;
}

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

.section-heading h2,
.intro-search h2,
.detail-section h2,
.detail-side h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
}

.home-search,
.filter-panel {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.home-search input,
.filter-field input,
.filter-field select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 15px;
  padding: 0 14px;
  outline: none;
  background: #ffffff;
  color: var(--ink);
}

.home-search input:focus,
.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

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

.category-tile,
.category-panel {
  min-height: 138px;
  padding: 22px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 12rem),
    #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
  transition: 0.22s ease;
}

.category-tile:hover,
.category-panel:hover,
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 118, 110, 0.16);
}

.category-tile strong,
.category-panel strong {
  display: block;
  margin-bottom: 9px;
  font-size: 21px;
}

.category-tile span,
.category-panel p,
.movie-card p,
.card-meta,
.detail-side dd,
.detail-section p {
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  transition: 0.22s ease;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.1;
}

.poster::after,
.detail-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.74), transparent);
}

.card-body {
  padding: 16px;
}

.card-meta {
  gap: 8px;
  font-size: 13px;
}

.card-body h3 {
  margin: 9px 0 8px;
  font-size: 19px;
  line-height: 1.28;
}

.card-body p {
  min-height: 52px;
  margin: 0 0 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.heat {
  display: inline-flex;
  margin-top: 12px;
  color: #be123c;
  font-size: 14px;
}

.page-hero {
  width: min(1220px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 68px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 20%, rgba(34, 211, 238, 0.34), transparent 22rem),
    linear-gradient(135deg, #0f172a, #134e4a 56%, #0e7490);
  box-shadow: var(--shadow);
}

.page-hero .section-kicker {
  color: #67e8f9;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.3fr 220px 260px;
  margin-bottom: 26px;
}

.filter-field label {
  display: block;
  margin: 0 0 7px 4px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.rank-list {
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 24px;
  background: #ffffff;
}

.rank-row {
  display: grid;
  grid-template-columns: 62px 1fr minmax(180px, 0.5fr) 110px;
  gap: 14px;
  align-items: center;
  min-height: 64px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.rank-row:hover {
  background: rgba(15, 118, 110, 0.05);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  color: var(--brand-2);
  font-size: 22px;
  font-weight: 900;
}

.rank-row em {
  color: var(--muted);
  font-style: normal;
}

.rank-row b {
  color: #be123c;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #ffffff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.19;
  filter: blur(2px) saturate(1.15);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 24%, rgba(34, 211, 238, 0.32), transparent 22rem),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(19, 78, 74, 0.82));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 560px;
  display: grid;
  grid-template-columns: 330px 1fr;
  align-items: center;
  gap: 48px;
  padding: 58px 0;
}

.detail-cover {
  position: relative;
  min-height: 450px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

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

.detail-main,
.detail-side {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.26);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(15, 118, 110, 0.38), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.player-start span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.player-shell.is-playing .player-start {
  display: none;
}

.player-message {
  min-height: 28px;
  margin: 0;
  padding: 9px 16px 14px;
  color: #bae6fd;
  background: #020617;
}

.detail-section,
.detail-side {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.detail-section p {
  margin: 14px 0 0;
  font-size: 17px;
}

.detail-side {
  position: sticky;
  top: 88px;
  margin-top: 0;
}

.detail-side dl {
  margin: 18px 0 0;
}

.detail-side dt {
  margin-top: 14px;
  color: var(--ink);
  font-weight: 900;
}

.detail-side dd {
  margin: 4px 0 0;
}

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

.site-footer {
  margin-top: 72px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #134e4a 60%, #164e63);
}

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

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 560px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

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

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

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

@media (max-width: 1060px) {
  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 700px;
    padding: 44px;
  }

  .hero-poster {
    max-width: 340px;
    min-height: 420px;
  }

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

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

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 10px;
  }

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

  .hero-shell,
  .page-hero {
    border-radius: 24px;
  }

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

  .hero-slide {
    padding: 28px;
  }

  .hero-dots {
    grid-template-columns: 1fr;
    padding: 0 24px 24px;
  }

  .hero-category-strip {
    padding: 0 24px 32px;
  }

  .section-heading,
  .intro-search,
  .home-search {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .category-panel-grid,
  .filter-panel,
  .footer-grid,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 36px 26px;
  }

  .detail-hero-inner {
    min-height: auto;
  }
}
