:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #0f766e;
  --accent-bright: #14b8a6;
  --accent-deep: #134e4a;
  --cyan: #0891b2;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

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

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-bright), var(--cyan));
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.32);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: rgba(20, 184, 166, 0.12);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 270px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 8px 10px;
  background: transparent;
  color: var(--text);
}

.header-search button,
.search-box button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-search button:hover,
.search-box button:hover {
  background: var(--accent-deep);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 26px;
  margin-left: auto;
  cursor: pointer;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #083344);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.82)), var(--cover);
  background-size: cover;
  background-position: center;
  transition: opacity 0.55s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(20, 184, 166, 0.35), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
}

.hero-content h1,
.detail-hero h1,
.page-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.hero-content p,
.detail-hero p,
.page-hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: rgba(20, 184, 166, 0.9);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow {
  color: var(--accent);
  background: rgba(20, 184, 166, 0.12);
  padding: 6px 12px;
  font-size: 13px;
  text-transform: uppercase;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  color: #e2e8f0;
}

.hero-meta span {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

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

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

.button.primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 18px 30px rgba(15, 118, 110, 0.35);
}

.button.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: linear-gradient(135deg, #f8fafc, #eef7f6);
}

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

.section-head.compact {
  align-items: center;
}

.section-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.section-more {
  color: var(--accent);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(15, 118, 110, 0.86), rgba(8, 145, 178, 0.42)), var(--cover);
  background-size: cover;
  background-position: center;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(15, 23, 42, 0.72));
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 0.42;
}

.badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.badge-dark {
  left: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.badge-accent {
  right: 12px;
  background: rgba(15, 118, 110, 0.9);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(20, 184, 166, 0.92);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 16px;
}

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

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

.card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

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

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

.category-tile {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.category-tile > a {
  display: block;
}

.category-tile h2,
.category-tile h3 {
  margin: 12px 0 8px;
}

.category-tile p {
  margin: 0 0 18px;
  color: var(--muted);
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-bright), var(--cyan));
  box-shadow: 0 14px 26px rgba(20, 184, 166, 0.24);
}

.tile-samples {
  display: grid;
  gap: 8px;
}

.compact-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
  color: var(--accent);
  background: rgba(20, 184, 166, 0.12);
}

.compact-card small {
  flex: 0 0 auto;
  color: var(--muted);
}

.rank-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.rank-panel.wide {
  max-width: 980px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: rgba(20, 184, 166, 0.12);
  transform: translateX(4px);
}

.rank-row strong {
  color: var(--accent);
  font-size: 18px;
}

.rank-row span {
  font-weight: 800;
}

.rank-row small {
  color: var(--muted);
}

.page-hero {
  background: linear-gradient(135deg, var(--accent-deep), #083344);
  color: #ffffff;
}

.page-hero.slim {
  padding: 86px 0;
}

.page-hero h1 {
  margin-bottom: 12px;
}

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

.crumb a:hover {
  color: #ffffff;
}

.detail-hero {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4)), var(--cover);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 40%, rgba(20, 184, 166, 0.35), transparent 35%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  align-items: start;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.28), rgba(2, 6, 23, 0.68));
  cursor: pointer;
}

.player-cover.hidden {
  display: none;
}

.player-play-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 28px;
  box-shadow: 0 18px 38px rgba(15, 118, 110, 0.42);
}

.content-panel,
.side-panel {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.content-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-panel p {
  margin: 0 0 24px;
  color: #334155;
  font-size: 17px;
}

.side-panel dl {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

.side-panel dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}

.side-panel dt {
  color: var(--muted);
}

.side-panel dd {
  margin: 0;
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(20, 184, 166, 0.12);
  font-weight: 700;
  font-size: 13px;
}

.search-box {
  display: flex;
  gap: 10px;
  max-width: 620px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
}

.search-empty {
  grid-column: 1 / -1;
  padding: 50px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 540px;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-links a:hover {
  color: var(--accent-bright);
}

.footer-bottom {
  margin: 34px auto 0;
  width: min(1180px, calc(100% - 32px));
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  color: #64748b;
  text-align: center;
}

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

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

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    order: 3;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  .nav.open {
    display: flex;
  }

  .header-search {
    order: 4;
    width: 100%;
  }

  .hero {
    height: 560px;
  }

  .section-head,
  .footer-grid {
    display: grid;
  }

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

  .rank-row {
    grid-template-columns: 46px 1fr;
  }

  .rank-row small {
    grid-column: 2;
  }
}

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

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

  .hero-content h1,
  .detail-hero h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .hero-meta,
  .hero-actions,
  .search-box {
    display: grid;
  }

  .section {
    padding: 54px 0;
  }

  .rank-panel,
  .content-panel,
  .side-panel {
    padding: 22px;
  }
}
