@charset "UTF-8";

:root {
  --bg: #020617;
  --bg-soft: #07111f;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5edf8;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --emerald: #34d399;
  --emerald-deep: #10b981;
  --cyan: #22d3ee;
  --orange: #f59e0b;
  --danger: #fb7185;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.18), transparent 34rem),
    radial-gradient(circle at 84% 10%, rgba(34, 211, 238, 0.14), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #07111f 44%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #062019;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 14px 38px rgba(34, 211, 238, 0.26);
}

.brand-text,
.footer-brand {
  font-size: 1.4rem;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  color: var(--muted-strong);
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  transform: translateY(-1px);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
}

.quick-nav {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.quick-nav-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 9px 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.quick-nav-inner a {
  white-space: nowrap;
  transition: color 0.2s ease;
}

.quick-nav-inner a:hover {
  color: var(--cyan);
}

.hero-shell {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 660px;
  margin: 24px auto 0;
  border: 1px solid var(--line);
  border-radius: 36px;
  overflow: hidden;
  background: #020617;
  box-shadow: var(--shadow);
}

.hero-slider {
  min-height: 660px;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 42px;
  padding: 70px 72px 112px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, transparent 52%),
    radial-gradient(circle at 20% 55%, rgba(16, 185, 129, 0.24), transparent 30rem);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--emerald);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-content h1 {
  margin: 16px 0 18px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  max-width: 760px;
}

.hero-content p {
  max-width: 690px;
  color: var(--muted-strong);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  margin: 0 0 24px;
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span {
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(16, 185, 129, 0.1);
  color: #c7fff0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
}

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

.btn,
.filter-panel button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary,
.filter-panel button,
.hero-search button {
  color: #052019;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.25);
}

.btn.ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(15, 23, 42, 0.58);
}

.btn:hover,
.filter-panel button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.btn.wide {
  width: 100%;
}

.hero-poster {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 72px;
  bottom: 54px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 40px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.28);
  cursor: pointer;
}

.hero-dot.active {
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
}

.hero-search {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 40px));
  display: flex;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.66);
  padding: 8px;
  backdrop-filter: blur(18px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(15, 23, 42, 0.82);
  outline: none;
}

.hero-search input {
  border: 0;
  background: transparent;
  padding: 0 16px;
}

.section {
  padding: 64px 0 0;
}

.compact-section {
  padding-top: 32px;
}

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

.section-head h2,
.category-block-head h2,
.ranking-head h2,
.page-hero h1,
.detail-copy h1,
.detail-copy h2 {
  margin: 8px 0 0;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head h2,
.category-block-head h2,
.ranking-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.section-head p,
.category-block-head p,
.page-hero p,
.site-footer p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--cyan);
  font-weight: 800;
  white-space: nowrap;
}

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

.category-tile,
.category-block,
.ranking-panel,
.player-card,
.detail-copy,
.side-card,
.filter-panel,
.page-hero {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.55));
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.2);
}

.category-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 250px;
  padding: 22px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 211, 153, 0.4);
}

.category-tile span {
  color: var(--emerald);
  font-weight: 800;
}

.category-tile h3 {
  margin: 8px 0;
  font-size: 1.35rem;
}

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

.tile-posters {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.tile-posters img {
  width: 32%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.small-grid,
.mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.8);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.055);
  filter: brightness(1.08);
}

.play-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.play-pill {
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  color: #031d17;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.rank-badge {
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #271500;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
}

.movie-info {
  padding: 14px;
}

.movie-title {
  display: -webkit-box;
  min-height: 3.2em;
  color: #f8fafc;
  font-weight: 900;
  line-height: 1.35;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--emerald);
}

.movie-info p {
  min-height: 4.8em;
  margin: 8px 0 12px;
  display: -webkit-box;
  color: var(--muted);
  font-size: 0.92rem;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 0.78rem;
  margin-top: 10px;
}

.movie-card.compact .movie-info p {
  -webkit-line-clamp: 2;
  min-height: 3.1em;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 112px;
  border-radius: var(--radius-xl);
  padding: 24px;
}

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

.ranking-list a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--muted-strong);
  padding: 11px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.ranking-list b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #052019;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.ranking-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list em {
  color: #64748b;
  font-style: normal;
}

.page-main {
  padding-top: 34px;
}

.page-hero {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 6vw, 56px);
  overflow: hidden;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -55% auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  filter: blur(8px);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  max-width: 820px;
}

.page-hero p {
  max-width: 720px;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  margin-top: 18px;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 24px;
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  border-radius: 14px;
  padding: 0 12px;
}

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

.category-block {
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-top: 28px;
}

.empty-state {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

.empty-state.show {
  display: block;
}

.detail-breadcrumb {
  margin: 0 0 24px;
}

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

.player-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--text);
  background: radial-gradient(circle, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  color: #052019;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.28);
  font-size: 2rem;
}

.detail-copy {
  margin-top: 22px;
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 34px);
}

.detail-copy h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.lead-text {
  color: var(--muted-strong);
  font-size: 1.12rem;
}

.detail-tags {
  margin: 20px 0 28px;
}

.detail-copy h2 {
  margin-top: 30px;
  font-size: 1.6rem;
}

.detail-copy p {
  color: var(--muted-strong);
}

.detail-side {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.side-card {
  border-radius: var(--radius-xl);
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 16px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 14px;
  color: var(--muted-strong);
  margin: 0 0 22px;
}

.side-card dt {
  color: #64748b;
}

.side-card dd {
  margin: 0;
}

.related-section {
  padding-bottom: 64px;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.56);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
  color: var(--muted);
}

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

[data-card].hidden {
  display: none;
}

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 260px;
    padding: 58px 42px 112px;
  }

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

  .ranking-panel,
  .detail-side {
    position: static;
  }

  .detail-side {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header-inner {
    height: 66px;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-shell,
  .hero-slider {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 24px 128px;
  }

  .hero-poster {
    width: min(250px, 68vw);
    transform: none;
  }

  .hero-controls {
    left: 24px;
    bottom: 82px;
  }

  .hero-search {
    bottom: 20px;
  }

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

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

  .filter-panel label:first-child,
  .filter-panel button {
    grid-column: 1 / -1;
  }

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

  .detail-cover {
    max-width: 300px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container,
  .site-header-inner,
  .quick-nav-inner,
  .footer-inner,
  .hero-shell {
    width: min(100% - 22px, 1180px);
  }

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

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .quick-nav-inner {
    gap: 14px;
  }

  .hero-shell,
  .hero-slider {
    min-height: 690px;
    border-radius: 24px;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 14vw, 3.8rem);
  }

  .hero-search {
    flex-direction: column;
    border-radius: 20px;
  }

  .hero-search input,
  .hero-search button {
    min-height: 44px;
  }

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

  .section-head,
  .category-block-head,
  .ranking-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .filter-panel label:first-child,
  .filter-panel button {
    grid-column: auto;
  }

  .page-hero,
  .detail-copy,
  .side-card,
  .category-block,
  .ranking-panel {
    border-radius: 20px;
  }
}
