:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f1f5f9;
  --brand: #14b8a6;
  --brand-dark: #0f766e;
  --gold: #f59e0b;
  --nav-1: #0f172a;
  --nav-2: #1e293b;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, var(--nav-1), var(--nav-2), var(--nav-1));
  box-shadow: 0 16px 35px rgba(2, 6, 23, 0.2);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #14b8a6, #22d3ee);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.nav-links a {
  color: #e2e8f0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #5eead4;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
}

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

.header-search input::placeholder {
  color: #94a3b8;
}

.header-search button,
.mobile-toggle {
  border: 0;
  color: #ffffff;
  background: var(--brand);
  cursor: pointer;
}

.header-search button {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #e2e8f0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
  background: radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.28), transparent 34%), #020617;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.62) 44%, rgba(2, 6, 23, 0.14) 100%);
}

.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 70px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #ccfbf1;
  background: rgba(15, 118, 110, 0.34);
  border: 1px solid rgba(94, 234, 212, 0.35);
  backdrop-filter: blur(10px);
}

.hero-title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.hero-summary {
  max-width: 760px;
  margin: 20px 0 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
  color: #e2e8f0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pill.brand-pill {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  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(135deg, #14b8a6, #0891b2);
  box-shadow: 0 14px 30px rgba(20, 184, 166, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 20px 38px rgba(20, 184, 166, 0.42);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.btn-light {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.hero-controls {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 72px;
  display: flex;
  gap: 10px;
}

.hero-control {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-dots {
  position: absolute;
  left: max(16px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #5eead4;
}

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

.section {
  margin-top: 46px;
}

.section:first-child {
  margin-top: 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-desc {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.card,
.movie-card,
.category-card,
.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: radial-gradient(circle at 25% 20%, rgba(20, 184, 166, 0.25), transparent 30%), linear-gradient(135deg, #0f172a, #334155);
}

.poster.wide {
  aspect-ratio: 16 / 9;
}

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

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

.poster-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.rating-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #111827;
  background: #fbbf24;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 14px;
}

.movie-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
}

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

.movie-one {
  display: -webkit-box;
  min-height: 46px;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #475569;
  font-size: 13px;
}

.movie-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft);
}

.category-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.14);
}

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

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  margin: 10px 0 0;
  color: var(--muted);
}

.category-card .category-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 750;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px 170px auto;
  gap: 12px;
  margin: 22px 0 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.filter-panel button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.empty-result {
  display: none;
  padding: 28px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 80% 10%, rgba(20, 184, 166, 0.38), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #5eead4;
}

.page-title {
  max-width: 900px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-desc {
  max-width: 780px;
  margin: 16px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

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

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

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

.player-frame video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.24), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

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

.play-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 16px 42px rgba(20, 184, 166, 0.38);
  cursor: pointer;
}

.play-button span {
  margin-left: 4px;
  font-size: 36px;
}

.player-status {
  padding: 12px 18px 16px;
  color: #cbd5e1;
  font-size: 14px;
}

.detail-info {
  padding: 24px;
}

.detail-info h2,
.info-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.detail-info p,
.info-panel p {
  margin: 0 0 14px;
  color: #334155;
}

.info-panel {
  padding: 20px;
}

.side-poster {
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a, #334155);
  box-shadow: var(--shadow);
}

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

.side-meta {
  margin-top: 18px;
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.side-meta dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

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

.side-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tags span,
.tags a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 750;
}

.rank-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  align-items: center;
}

.rank-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  font-size: 20px;
  font-weight: 950;
}

.rank-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.rank-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .site-header.is-open .mobile-panel {
    display: block;
  }

  .hero-content {
    padding-bottom: 88px;
  }

  .hero-controls {
    left: 16px;
    right: auto;
    bottom: 34px;
  }

  .hero-dots {
    display: none;
  }

  .section-head {
    display: block;
  }

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

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

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .filter-panel button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .header-inner {
    height: 62px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    min-height: 78vh;
  }

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

  .card-body {
    padding: 12px;
  }

  .movie-title {
    font-size: 15px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-side {
    display: block;
  }

  .side-meta {
    margin-bottom: 18px;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 12px;
  }
}
