:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-panel: rgba(15, 23, 42, 0.72);
  --bg-card: rgba(30, 41, 59, 0.62);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.16);
  --teal: #14b8a6;
  --rose: #fb7185;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 8%, rgba(16, 185, 129, 0.16), transparent 28rem),
    linear-gradient(135deg, #020617 0%, #0f172a 44%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.97));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #34d399, #14b8a6);
  display: inline-grid;
  place-items: center;
  box-shadow: 0 14px 34px rgba(20, 184, 166, 0.24);
  transition: transform 0.25s ease;
}

.brand-mark::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid white;
  margin-left: 3px;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-2deg);
}

.brand-text {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #a7f3d0, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav a,
.mobile-nav a {
  color: #cbd5e1;
  padding: 10px 14px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: white;
  background: rgba(51, 65, 85, 0.72);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.62);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: white;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 0 18px;
}

.mobile-nav nav {
  display: grid;
  gap: 8px;
}

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

.hero-slider {
  position: relative;
  height: min(72vh, 720px);
  min-height: 480px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 7s ease;
  background: linear-gradient(135deg, #1e293b, #020617);
}

.hero-slide.active img {
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.2)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.98), transparent 50%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  padding-top: 28px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-kicker span,
.poster-meta span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  padding: 5px 11px;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.07em;
  font-weight: 900;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
  max-width: 640px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: clamp(16px, 1.5vw, 20px);
}

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

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

.btn-primary {
  background: linear-gradient(135deg, #10b981, #14b8a6);
  color: white;
  box-shadow: 0 20px 42px rgba(16, 185, 129, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.search-strip,
.page-search {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-strip {
  margin-top: -32px;
  position: relative;
  z-index: 5;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  color: #cbd5e1;
}

.search-box span {
  font-weight: 800;
  color: #5eead4;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}

.search-count,
.result-line {
  color: #94a3b8;
  font-size: 14px;
}

.search-count span,
.result-line span {
  color: #5eead4;
  font-weight: 800;
}

.content-section {
  padding: 64px 0;
}

.content-band {
  margin: 42px 0;
  padding: 48px 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.52), rgba(30, 41, 59, 0.52));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

.section-icon {
  color: #34d399;
  margin-right: 10px;
}

.card-grid {
  display: grid;
  gap: 24px;
}

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

.movie-card {
  display: block;
  min-width: 0;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #1e293b, #020617);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.poster-wrap img,
.list-poster img,
.category-tile img,
.ranking-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #020617);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), transparent 58%);
}

.play-float {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.play-float::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid white;
  margin-left: 4px;
}

.movie-card:hover img,
.category-tile:hover img {
  transform: scale(1.08);
  filter: saturate(1.05) contrast(1.04);
}

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

.poster-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 8px;
}

.poster-meta small {
  color: rgba(255, 255, 255, 0.82);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 38px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #fb7185);
  font-weight: 900;
  color: white;
  box-shadow: 0 12px 30px rgba(251, 113, 133, 0.28);
}

.movie-card h3 {
  margin: 12px 0 4px;
  color: white;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: #34d399;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span {
  background: rgba(51, 65, 85, 0.64);
  color: #cbd5e1;
  font-size: 12px;
  padding: 4px 8px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.54;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.36));
}

.category-tile div {
  position: absolute;
  inset: auto 20px 20px 20px;
  z-index: 2;
}

.category-tile h3,
.category-tile h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.category-tile p {
  margin: 0 0 12px;
  color: #cbd5e1;
}

.category-tile span {
  color: #5eead4;
  font-weight: 800;
}

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

.category-tile-large {
  min-height: 280px;
}

.split-section {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.list-stack {
  display: grid;
  gap: 14px;
}

.movie-card-list {
  display: grid;
  grid-template-columns: 164px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid transparent;
  transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.movie-card-list:hover {
  background: rgba(30, 41, 59, 0.62);
  border-color: var(--line);
  transform: translateY(-1px);
}

.list-poster {
  position: relative;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

.list-info h3 {
  margin-top: 0;
}

.card-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #94a3b8;
  font-size: 14px;
}

.card-meta span + span::before,
.detail-meta span + span::before {
  content: "•";
  margin-right: 10px;
  color: #475569;
}

.ranking-panel,
.side-card,
.prose-panel,
.info-box {
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.ranking-panel {
  padding: 22px;
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ranking-head h2 {
  margin: 0;
}

.ranking-head a {
  color: #5eead4;
  font-weight: 800;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 44px 62px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 9px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.38);
  border: 1px solid transparent;
  transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  background: rgba(51, 65, 85, 0.56);
  border-color: var(--line);
  transform: translateX(2px);
}

.ranking-number {
  color: #5eead4;
  font-weight: 900;
  font-size: 18px;
  text-align: center;
}

.ranking-item img {
  width: 62px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-title {
  color: white;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-meta {
  grid-column: 3;
  color: var(--muted);
  font-size: 13px;
  margin-top: -16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.page-main {
  min-height: 60vh;
}

.page-hero {
  padding: 58px 0 28px;
}

.small-hero {
  display: grid;
  gap: 24px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 8px;
  color: #5eead4;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #cbd5e1;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-filters button {
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.62);
  color: #dbeafe;
  border-radius: 999px;
  padding: 9px 13px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.quick-filters button:hover {
  background: rgba(16, 185, 129, 0.24);
  transform: translateY(-1px);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  padding: 36px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.player-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: black;
}

.player-wrap {
  position: relative;
  background: black;
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1));
  transition: opacity 0.2s ease;
}

.player-start span {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
}

.player-start span::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 26px solid white;
  margin-left: 6px;
}

.player-wrap.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.player-wrap.is-ready .player-status {
  display: none;
}

.detail-article {
  padding-top: 26px;
}

.detail-article h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.info-box {
  margin-top: 22px;
  padding: 24px;
}

.info-box-gradient {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.72));
}

.info-box h2,
.tag-panel h2,
.side-card h2,
.prose-panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.info-box p,
.prose-panel p {
  margin: 0;
  color: #cbd5e1;
}

.tag-panel {
  margin-top: 24px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tags a {
  background: rgba(51, 65, 85, 0.74);
  color: #dbeafe;
}

.detail-tags a:hover {
  background: rgba(16, 185, 129, 0.2);
  color: white;
}

.detail-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.side-card {
  padding: 20px;
}

.sticky-card {
  position: sticky;
  top: 100px;
}

.side-link {
  display: block;
  padding: 12px 14px;
  margin-top: 10px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.62);
  color: #cbd5e1;
}

.side-link:hover {
  color: white;
  background: rgba(16, 185, 129, 0.2);
}

.prose-panel {
  padding: 28px;
  max-width: 880px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.96));
  padding: 46px 0 22px;
}

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
}

.site-footer p,
.site-footer a,
.footer-small {
  color: var(--muted);
}

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

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #64748b;
  font-size: 14px;
}

[hidden],
.is-hidden {
  display: none !important;
}

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

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

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

  .sticky-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .header-inner {
    height: 66px;
  }

  .hero-slider {
    min-height: 560px;
    height: 72vh;
  }

  .hero-copy {
    padding-top: 0;
  }

  .search-strip,
  .page-search {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .movie-card-list {
    grid-template-columns: 116px 1fr;
    gap: 12px;
    padding: 10px;
  }

  .list-poster {
    height: 82px;
  }

  .ranking-list-wide {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .brand-text {
    font-size: 19px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-card h3 {
    font-size: 15px;
  }
}
