
:root {
  --bg: #f5f7fb;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --primary: #0f766e;
  --primary-2: #14b8a6;
  --primary-soft: #ccfbf1;
  --accent: #f59e0b;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", PingFang SC,
    "Hiragino Sans GB", Microsoft YaHei, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 20%),
    linear-gradient(180deg, #f8fafc 0%, #eef7f6 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.28);
}

.brand-name {
  font-size: 1.04rem;
}

.brand-sub {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 20px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-size: 0.95rem;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(20, 184, 166, 0.08);
  transform: translateY(-1px);
}

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

.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 320px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.searchbox input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}

.searchbox input::placeholder {
  color: #94a3b8;
}

.icon-btn,
.btn {
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
}

.icon-btn:hover,
.btn:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  display: none;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.mobile-nav.open {
  display: block;
}

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

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
  margin-bottom: 34px;
}

.hero-stage {
  position: relative;
  min-height: 72vh;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 15, 31, 0.92) 0%, rgba(4, 15, 31, 0.68) 45%, rgba(4, 15, 31, 0.25) 100%),
    linear-gradient(180deg, rgba(4, 15, 31, 0.1), rgba(4, 15, 31, 0.68));
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 76px 0 54px;
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.78fr);
  gap: 28px;
  align-items: end;
}

.hero-copy {
  padding-bottom: 18px;
  max-width: 740px;
  color: white;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.16);
  border: 1px solid rgba(45, 212, 191, 0.22);
  color: #d8fffb;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.hero h1,
.hero h2,
.section-title h2,
.page-title h1 {
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin-top: 20px;
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.85;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 28px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.94rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 14px;
  padding-bottom: 6px;
}

.hero-card,
.panel,
.card,
.detail-card,
.form-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-card {
  border-radius: 28px;
  overflow: hidden;
}

.hero-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #e2e8f0;
}

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

.hero-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(4, 15, 31, 0.16) 100%);
}

.hero-card-body {
  padding: 20px;
}

.hero-card-body h3 {
  margin: 0;
  font-size: 1.22rem;
}

.hero-card-body p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.hero-track button {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  opacity: 0.78;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-track button.active {
  opacity: 1;
  box-shadow: 0 12px 26px rgba(20, 184, 166, 0.22);
  transform: translateY(-2px);
}

.hero-track img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-track span {
  display: block;
  padding: 8px 10px 10px;
  font-size: 0.78rem;
  color: #e2e8f0;
  text-align: left;
}

.section {
  padding: 16px 0 34px;
}

.section + .section {
  margin-top: 4px;
}

.section-card {
  border-radius: 30px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-soft);
}

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

.section-title h2,
.page-title h1 {
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.15;
}

.section-title p,
.page-intro {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.section-link {
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

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

.movie-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

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

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.08));
}

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

.poster .poster-badges {
  position: absolute;
  inset: 12px 12px auto 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: white;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
}

.badge.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
}

.badge.accent {
  background: linear-gradient(135deg, #f59e0b 0%, #fb7185 100%);
}

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

.movie-body h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  min-height: 2.9em;
}

.movie-body p {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.08);
  color: var(--primary);
  font-weight: 700;
  border: 1px solid rgba(20, 184, 166, 0.14);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
  font-weight: 600;
}

.page-hero {
  padding: 34px 0 18px;
}

.page-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 700;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.poster-lg {
  border-radius: 30px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: var(--shadow);
}

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

.detail-card {
  border-radius: 30px;
  padding: 26px;
}

.detail-card h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.12;
  margin: 0;
}

.detail-lead {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.meta-box {
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.meta-box .k {
  color: var(--muted);
  font-size: 0.8rem;
}

.meta-box .v {
  margin-top: 4px;
  font-weight: 700;
}

.detail-sections {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.detail-block {
  border-radius: 26px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-soft);
}

.detail-block h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.detail-block p {
  margin: 0;
  line-height: 1.95;
  color: #334155;
}

.video-shell {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.video-shell video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(4, 15, 31, 0.12), rgba(4, 15, 31, 0.28));
  color: white;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-play {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: white;
  box-shadow: 0 16px 40px rgba(20, 184, 166, 0.38);
  cursor: pointer;
}

.video-note {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.sidebar .panel {
  border-radius: 26px;
  padding: 20px;
}

.panel h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

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

.reco-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.reco-item:hover {
  background: rgba(20, 184, 166, 0.06);
  transform: translateY(-1px);
}

.reco-item img {
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.reco-item h4 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.reco-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.tools {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
  margin: 20px 0 18px;
}

.tools input,
.tools select {
  width: 100%;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.95);
  outline: none;
}

.tools input:focus,
.tools select:focus,
.searchbox input:focus {
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.25);
}

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

.list-card {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-soft);
}

.list-card .movie-body h3 {
  min-height: auto;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.pagination .current {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: white;
  border-color: transparent;
}

.site-footer {
  margin-top: auto;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-top {
  padding: 42px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 22px;
}

.site-footer a {
  color: #e2e8f0;
}

.footer-col h4 {
  margin: 0 0 14px;
  color: white;
}

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

.footer-copy {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 18px 0;
  color: #94a3b8;
}

.search-results {
  display: grid;
  gap: 16px;
}

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

.floating-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.floating-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

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

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

  .sidebar {
    position: static;
  }

  .hero-panel {
    order: 2;
  }
}

@media (max-width: 860px) {
  .header-row {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .site-nav,
  .header-actions .searchbox {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .movie-grid,
  .list-grid,
  .footer-grid,
  .meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tools {
    grid-template-columns: 1fr;
  }

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

  .hero-inner {
    padding-top: 48px;
    padding-bottom: 28px;
  }

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

  .section-card,
  .detail-card,
  .panel {
    padding: 18px;
    border-radius: 22px;
  }
}

@media (max-width: 620px) {
  .movie-grid,
  .list-grid,
  .footer-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    line-height: 1.05;
  }

  .hero-lead {
    font-size: 1rem;
  }

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

  .searchbox {
    min-width: 0;
    width: 100%;
  }

  .hero-actions .btn,
  .section-link,
  .chip {
    width: 100%;
    justify-content: center;
  }
}
