:root {
  --bg: #f7faf9;
  --surface: #ffffff;
  --surface-soft: #ecfdf5;
  --text: #0f172a;
  --muted: #64748b;
  --line: #d9e7df;
  --brand: #059669;
  --brand-dark: #047857;
  --brand-soft: rgba(16, 185, 129, 0.16);
  --slate: #0f172a;
  --slate-2: #1e293b;
  --gold: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, rgba(16, 185, 129, 0.18), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #eef7f2 100%);
  min-height: 100vh;
}

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

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

main {
  min-height: 60vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--slate);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #34d399);
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.34);
  font-size: 14px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--slate);
  font-size: 22px;
}

.hero {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  position: relative;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: 36px;
  background: linear-gradient(135deg, #08111f, #064e3b 55%, #111827);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 5vw, 74px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.7s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.26;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(1.1);
  transform: scale(1.08);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 16%, rgba(52, 211, 153, 0.28), transparent 26rem),
    linear-gradient(90deg, rgba(8, 17, 31, 0.94), rgba(8, 17, 31, 0.62), rgba(8, 17, 31, 0.82));
}

.hero-content {
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #6ee7b7;
}

.hero h1 {
  margin: 0 0 10px;
  max-width: 820px;
  font-size: clamp(34px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.08em;
}

.hero h2 {
  margin: 0 0 18px;
  color: #d1fae5;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.14;
}

.hero p {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.85;
}

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

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

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

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #34d399);
  box-shadow: 0 16px 30px rgba(5, 150, 105, 0.3);
}

.button.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--brand);
}

.page-hero,
.content-section,
.tools-panel {
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 0;
}

.page-hero {
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(16, 185, 129, 0.36), transparent 24rem),
    linear-gradient(135deg, var(--slate), #064e3b 58%, #111827);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.page-hero p {
  max-width: 860px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.8;
}

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

.section-header h2 {
  margin: 0;
  color: var(--slate);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.section-header p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-weight: 900;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #d1fae5);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 150, 105, 0.92);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

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

.card-meta,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-meta span,
.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.card-meta span:first-child,
.rank-badge {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.movie-card h3 a:hover {
  color: var(--brand-dark);
}

.movie-card p {
  min-height: 72px;
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.72;
}

.tools-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.tools-panel h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 12px;
}

.tools-grid label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.tools-grid input,
.tools-grid select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 13px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.tools-grid input:focus,
.tools-grid select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.result-count {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 8%, rgba(110, 231, 183, 0.32), transparent 16rem),
    linear-gradient(135deg, var(--slate), #065f46);
  box-shadow: var(--shadow);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.05em;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.category-card strong {
  font-size: 42px;
  line-height: 1;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 52px 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rank-num {
  color: var(--gold);
  font-size: 24px;
  font-weight: 1000;
  text-align: center;
}

.rank-item img {
  width: 70px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}

.rank-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

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

.breadcrumbs {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumbs a:hover {
  color: var(--brand-dark);
}

.player-section {
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

.static-player {
  position: relative;
  min-height: 420px;
  background: #020617;
}

.static-player video {
  width: 100%;
  min-height: 420px;
  max-height: 70vh;
  display: block;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(5, 150, 105, 0.26), transparent 18rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.62));
}

.play-layer span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #34d399);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(5, 150, 105, 0.34);
}

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

.detail-card {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin-top: 22px;
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.info-pills li {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-weight: 900;
  font-size: 13px;
}

.detail-card h2 {
  margin: 24px 0 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.detail-card p {
  color: #334155;
  line-height: 1.9;
}

.side-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
}

.side-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e2e8f0;
}

.side-poster div {
  padding: 18px;
}

.side-poster h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
}

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

.related-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.related-card img {
  width: 74px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}

.related-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
}

.related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: linear-gradient(135deg, #0f172a, #111827 56%, #064e3b);
}

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

.footer-logo {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: -0.05em;
}

.site-footer h2 {
  color: #6ee7b7;
  font-size: 18px;
}

.site-footer p,
.site-footer li {
  color: #cbd5e1;
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #6ee7b7;
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero-poster {
    max-width: 280px;
  }

  .tools-panel,
  .tools-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .result-count {
    grid-column: auto;
  }

  .detail-side {
    order: -1;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .hero,
  .page-hero,
  .content-section,
  .tools-panel,
  .detail-layout,
  .footer-grid {
    width: min(100% - 22px, 1280px);
  }

  .brand {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .movie-grid,
  .category-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .static-player,
  .static-player video {
    min-height: 260px;
  }
}
