:root {
  --bg: #0f172a;
  --bg-soft: rgba(15, 23, 42, 0.74);
  --panel: rgba(30, 41, 59, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(250, 204, 21, 0.18);
  --line-soft: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --weak: #94a3b8;
  --accent: #facc15;
  --accent-dark: #111827;
  --blue: #1d4ed8;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.35);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(250, 204, 21, 0.12),
      transparent 32rem
    ),
    radial-gradient(
      circle at 88% 10%,
      rgba(59, 130, 246, 0.26),
      transparent 28rem
    ),
    linear-gradient(135deg, #0f172a 0%, #172554 48%, #0f172a 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 82%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(22px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #0f172a;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  box-shadow: 0 12px 32px rgba(250, 204, 21, 0.28);
}

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

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--accent);
  background: rgba(250, 204, 21, 0.1);
}

.nav-link.mini {
  font-size: 13px;
  color: var(--weak);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(30, 41, 59, 0.75);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
}

.hero-carousel {
  position: relative;
  height: min(72vh, 640px);
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: #020617;
}

.hero-slides,
.hero-slide,
.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

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

.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-image::before,
.art-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 24% 20%,
      rgba(250, 204, 21, 0.24),
      transparent 18rem
    ),
    radial-gradient(
      circle at 78% 22%,
      rgba(59, 130, 246, 0.25),
      transparent 22rem
    ),
    linear-gradient(135deg, rgba(30, 41, 59, 1), rgba(15, 23, 42, 1));
}

.art-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #1e293b;
}

.art-bg::after {
  content: attr(data-title);
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 0;
  color: rgba(248, 250, 252, 0.84);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-overlay {
  z-index: 2;
  background:
    linear-gradient(
      to right,
      rgba(2, 6, 23, 0.92),
      rgba(15, 23, 42, 0.64) 42%,
      rgba(15, 23, 42, 0.18)
    ),
    linear-gradient(
      to top,
      #0f172a 0%,
      rgba(15, 23, 42, 0.82) 24%,
      transparent 72%
    );
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.eyebrow span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid rgba(250, 204, 21, 0.24);
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.08);
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  width: min(720px, 100%);
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  width: min(660px, 100%);
  margin: 22px 0 0;
  color: #e2e8f0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.85;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.42);
  color: #e2e8f0;
}

.hero-tags span,
.detail-meta span,
.detail-tags span {
  padding: 7px 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

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

.btn.primary {
  color: #0f172a;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  box-shadow: 0 16px 36px rgba(250, 204, 21, 0.22);
}

.btn.ghost {
  color: var(--text);
  border-color: rgba(250, 204, 21, 0.28);
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
}

.hero-panel {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.hero-dot {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
}

.hero-dot.is-active,
.hero-dot:hover {
  color: #0f172a;
  background: var(--accent);
}

.quick-search {
  transform: translateY(-30px);
  position: relative;
  z-index: 5;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.72);
}

.search-box span {
  padding-left: 10px;
  color: var(--accent);
  font-size: 24px;
}

.search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.78);
  outline: none;
}

.search-box input {
  border: 0;
  background: transparent;
}

.search-box button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  color: #0f172a;
  font-weight: 900;
  background: var(--accent);
}

.quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.quick-links a,
.text-link,
.section-more {
  color: var(--accent);
  font-weight: 800;
}

.quick-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.08);
}

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

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

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-title > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: var(--accent);
  background: rgba(250, 204, 21, 0.1);
}

.section-title h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  letter-spacing: -0.035em;
}

.section-title h2 {
  font-size: clamp(24px, 3vw, 34px);
}

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

.category-card,
.category-overview-card,
.movie-card,
.ranking-item,
.player-card,
.detail-hero-card,
.filter-panel,
.detail-content article {
  border: 1px solid var(--line-soft);
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(2, 6, 23, 0.16);
  backdrop-filter: blur(16px);
}

.category-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.ranking-item:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.38);
}

.category-cover {
  height: 128px;
}

.category-cover img,
.overview-poster img,
.poster-shell img,
.ranking-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.category-card > div:last-child {
  padding: 18px;
}

.category-card h3,
.movie-card h3,
.category-overview-card h2,
.ranking-info h2 {
  margin: 0;
  color: var(--text);
}

.category-card p,
.movie-card p,
.category-overview-card p,
.ranking-info p,
.page-hero p,
.lead-text,
.detail-content p {
  color: var(--muted);
  line-height: 1.75;
}

.category-card p,
.movie-card p,
.ranking-info p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card span {
  color: var(--accent);
  font-weight: 800;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 70px rgba(250, 204, 21, 0.1);
}

.card-poster-wrap {
  position: relative;
  height: 270px;
  overflow: hidden;
}

.poster-shell {
  width: 100%;
  height: 100%;
}

.poster-shell::after {
  font-size: 18px;
}

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

.poster-shell img {
  transition: transform 0.45s ease;
}

.card-poster-wrap::after,
.ranking-thumb::after,
.overview-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.12),
    transparent
  );
}

.card-badge,
.card-year,
.card-play {
  position: absolute;
  z-index: 3;
}

.card-badge,
.card-year {
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.card-badge {
  left: 12px;
  color: #0f172a;
  background: rgba(250, 204, 21, 0.92);
}

.card-year {
  right: 12px;
  background: rgba(15, 23, 42, 0.78);
}

.card-play {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0f172a;
  background: var(--accent);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  min-height: 48px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body p {
  min-height: 54px;
  margin: 10px 0 14px;
  font-size: 14px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--weak);
  font-size: 13px;
}

.tag-row span {
  padding: 4px 8px;
  color: var(--weak);
  font-size: 12px;
}

.wide-band {
  margin: 32px 0;
  padding: 42px 0;
  background: rgba(15, 23, 42, 0.34);
  border-block: 1px solid var(--line-soft);
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.55);
}

.rank-no {
  color: var(--accent);
  font-weight: 900;
  font-size: 20px;
}

.rank-name {
  font-weight: 900;
}

.rank-type {
  color: var(--weak);
  font-size: 13px;
}

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

.compact-card .card-poster-wrap {
  height: 190px;
}

.compact-card .card-body h3 {
  min-height: auto;
  font-size: 16px;
}

.compact-card .card-body p {
  min-height: 46px;
}

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

.page-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 18px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.overview-poster {
  min-height: 180px;
  border-radius: 18px;
}

.category-overview-card ul {
  margin: 14px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.category-overview-card li a {
  color: var(--muted);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius);
}

.filter-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  padding: 0 14px;
}

.filter-controls {
  display: flex;
  gap: 10px;
}

.filter-controls select {
  min-width: 136px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 64px 112px 1fr 32px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.ranking-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
  background: rgba(250, 204, 21, 0.1);
}

.ranking-item.hot .ranking-number {
  color: #0f172a;
  background: linear-gradient(135deg, #fde047, #f59e0b);
}

.ranking-thumb {
  height: 84px;
  border-radius: 16px;
}

.ranking-info h2 {
  font-size: 20px;
}

.ranking-info p {
  margin: 7px 0;
}

.ranking-info div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--weak);
  font-size: 13px;
}

.ranking-arrow {
  color: var(--accent);
  font-size: 30px;
}

.detail-wrap {
  padding: 34px 0 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--weak);
}

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

.detail-hero-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  padding: 22px;
  border-radius: 30px;
}

.detail-poster {
  min-height: 520px;
  border-radius: 24px;
}

.detail-info {
  align-self: center;
}

.detail-info h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
}

.lead-text {
  font-size: 19px;
  margin: 22px 0;
}

.detail-meta,
.detail-tags {
  margin-top: 14px;
}

.player-section {
  padding: 40px 0 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #0f172a;
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.62),
    rgba(15, 23, 42, 0.22)
  );
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 18px 48px rgba(250, 204, 21, 0.28);
  font-size: 32px;
  transform: translateX(3px);
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 36px 0 0;
}

.detail-content article {
  padding: 24px;
  border-radius: var(--radius);
}

.detail-content h2 {
  margin: 0 0 14px;
  color: var(--accent);
}

.detail-content p {
  margin: 0;
}

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

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

.footer-inner strong {
  color: var(--text);
  font-size: 20px;
}

.footer-inner p {
  margin: 6px 0 0;
}

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

.footer-links a {
  color: var(--accent);
  font-weight: 800;
}

.filter-card.is-hidden {
  display: none;
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hero-panel {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .detail-poster {
    min-height: 420px;
  }

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

@media (max-width: 760px) {
  .hero-carousel {
    min-height: 620px;
  }

  .hero-content {
    justify-content: flex-start;
    padding-top: 92px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-panel {
    bottom: 18px;
    grid-template-columns: 1fr;
  }

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

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

  .filter-controls {
    flex-direction: column;
  }

  .ranking-item {
    grid-template-columns: 48px 84px 1fr;
  }

  .ranking-arrow {
    display: none;
  }

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

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

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

@media (max-width: 520px) {
  .shell,
  .header-inner,
  .footer-inner,
  .mobile-nav,
  .hero-content,
  .hero-panel {
    width: min(100% - 22px, 1180px);
  }

  .card-poster-wrap {
    height: 240px;
  }

  .quick-search {
    transform: none;
    margin-top: 18px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .search-box span {
    display: none;
  }
}
