:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #ccfbf1;
  --blue: #2563eb;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --bg: #f8fafc;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 34rem), var(--bg);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(120deg, rgba(15, 118, 110, 0.96), rgba(37, 99, 235, 0.94));
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(16px);
}

.nav-shell {
  min-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;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.header-search input {
  width: 210px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 5px 8px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.header-search button,
.inline-filter button,
.library-search button {
  border: 0;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #ffffff;
  font-weight: 800;
  padding: 7px 14px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.93), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.28)),
    radial-gradient(circle at 70% 25%, rgba(45, 212, 191, 0.32), transparent 28rem);
}

.hero-content {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 58px;
  color: #ffffff;
  padding: 90px 0 86px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.26);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero .eyebrow,
.detail-hero .eyebrow,
.inner-hero .eyebrow {
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.16);
  border-color: rgba(153, 246, 228, 0.32);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.hero-tags,
.card-tags,
.detail-meta,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 24px 0 30px;
}

.hero-tags span,
.card-tags span,
.detail-meta span,
.tag-cloud a {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f766e;
  background: #ccfbf1;
}

.hero-tags span,
.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 20px;
  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(120deg, #0f766e, #2563eb);
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.32);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn.ghost.dark {
  color: var(--brand-dark);
  background: #ecfeff;
  box-shadow: inset 0 0 0 1px #a7f3d0;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.1);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 12px !important;
  height: 12px !important;
  background: rgba(255, 255, 255, 0.38) !important;
}

.hero-dot.is-active {
  width: 32px !important;
  background: #5eead4 !important;
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: -46px;
  position: relative;
  z-index: 10;
}

.quick-card,
.category-tile,
.category-panel,
.story-card,
.info-card,
.spotlight-card,
.movie-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.quick-card {
  border-radius: 22px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-card:hover,
.category-tile:hover,
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.14);
}

.quick-card span,
.category-tile span,
.category-panel-head span {
  display: block;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.quick-card strong {
  display: block;
  font-size: 1.12rem;
}

.section-block {
  padding: 76px 0 0;
}

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

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--brand);
  font-weight: 900;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.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.05);
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.72));
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(120deg, #f97316, #ef4444);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 1.08rem;
  line-height: 1.28;
}

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

.card-body p {
  min-height: 50px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-tags span {
  padding: 4px 9px;
  font-size: 0.76rem;
}

.movie-card.compact .card-body p {
  display: none;
}

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

.category-tile {
  border-radius: 24px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile strong {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.ranking-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 24px;
}

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

.rank-list.small {
  gap: 8px;
}

.rank-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 13px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: #5eead4;
}

.rank-index {
  color: var(--brand);
  font-weight: 900;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 900;
}

.rank-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  border-radius: 28px;
  padding: 20px;
}

.spotlight-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  object-fit: cover;
}

.spotlight-card span {
  color: var(--brand);
  font-weight: 900;
}

.spotlight-card h3 {
  margin: 8px 0 10px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.spotlight-card p {
  color: var(--muted);
}

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

.inner-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 72% 20%, rgba(45, 212, 191, 0.3), transparent 28rem),
    linear-gradient(120deg, #0f766e, #1d4ed8 72%, #111827);
  padding: 76px 0 68px;
}

.inner-hero h1 {
  margin: 16px 0 14px;
  max-width: 900px;
  font-size: clamp(2.1rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.inner-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #99f6e4;
}

.inline-filter,
.library-search {
  display: flex;
  gap: 10px;
  max-width: 620px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.inline-filter input,
.library-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 10px 14px;
}

.inline-filter input::placeholder,
.library-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-chips button {
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.filter-chips button.active {
  color: var(--brand-dark);
  background: #ffffff;
}

.category-panel {
  border-radius: 26px;
  padding: 24px;
}

.category-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.category-panel h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.category-panel p {
  margin: 0;
  color: var(--muted);
}

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

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

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(18px) saturate(1.2);
  transform: scale(1.06);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
}

.detail-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  min-height: 560px;
  padding: 76px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.08em;
}

.detail-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.detail-meta {
  margin: 24px 0 28px;
}

.player-section {
  padding-top: 64px;
}

.compact-heading {
  margin-bottom: 18px;
}

.cinema-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.66));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(120deg, #0f766e, #2563eb);
  box-shadow: 0 20px 44px rgba(15, 118, 110, 0.42);
  font-size: 2rem;
}

.play-overlay strong {
  font-size: 1.2rem;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding-top: 40px;
}

.story-card,
.info-card {
  border-radius: 26px;
  padding: 28px;
}

.story-card h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.story-card p {
  margin: 0;
  color: #334155;
  font-size: 1.02rem;
}

.info-card {
  grid-row: span 2;
}

.info-card dl {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

.info-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.info-card dt {
  color: var(--muted);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.empty-state {
  display: none;
  border: 1px dashed #94a3b8;
  color: var(--muted);
  text-align: center;
  border-radius: 24px;
  padding: 34px;
  background: #ffffff;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 42px 0;
}

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

.site-footer p {
  max-width: 620px;
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-links a:hover {
  color: #5eead4;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  padding: 18px;
  color: #94a3b8;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

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

  .hero-content,
  .detail-shell,
  .detail-content,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 360px;
  }
}

@media (max-width: 820px) {
  .nav-shell {
    min-height: 66px;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 22px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 58px;
    gap: 30px;
  }

  .quick-panel,
  .category-grid,
  .category-overview,
  .movie-grid,
  .ranking-page-grid,
  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .category-panel-head,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  }

  .spotlight-card {
    grid-template-columns: 1fr;
  }

  .detail-shell {
    min-height: 0;
  }
}

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

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

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

  .hero,
  .hero-content {
    min-height: 640px;
  }

  .hero-poster {
    display: none;
  }

  .quick-panel,
  .movie-grid,
  .ranking-page-grid,
  .category-grid,
  .category-overview,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

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

  .inline-filter,
  .library-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .inline-filter button,
  .library-search button {
    width: 100%;
  }

  .detail-poster {
    max-width: 260px;
  }

  .story-card,
  .info-card {
    padding: 22px;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
