:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --card: rgba(15, 23, 42, 0.72);
  --card-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(30, 64, 175, 0.36);
  --line-soft: rgba(125, 211, 252, 0.16);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #2563eb;
  --yellow: #facc15;
  --shadow: 0 24px 80px rgba(8, 47, 73, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.16), transparent 34rem),
    radial-gradient(circle at 90% 8%, rgba(37, 99, 235, 0.18), transparent 36rem),
    linear-gradient(135deg, #020617 0%, #0b1b3f 48%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

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

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 58, 138, 0.9), rgba(15, 23, 42, 0.94));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(2, 6, 23, 0.46);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

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

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(37, 99, 235, 0.2));
  border: 1px solid rgba(34, 211, 238, 0.36);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.24);
}

.brand-mark::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--cyan);
  margin-left: 3px;
}

.brand-name {
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.nav-links a {
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--cyan);
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 250px;
}

.nav-search input,
.filter-input,
.hero-search input {
  width: 100%;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.72);
  outline: none;
  padding: 10px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input:focus,
.filter-input:focus,
.hero-search input:focus {
  border-color: rgba(34, 211, 238, 0.76);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.92);
}

.nav-search button,
.hero-search button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #052a36;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-search button:hover,
.hero-search button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 36px rgba(34, 211, 238, 0.28);
}

.secondary-button {
  color: #dffaff;
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: relative;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 4px;
}

.main-content {
  flex: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: var(--shadow);
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(15, 23, 42, 0.68) 42%, rgba(15, 23, 42, 0.16) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, transparent 42%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 5vw, 68px);
  right: clamp(24px, 5vw, 68px);
  bottom: clamp(34px, 7vw, 70px);
  max-width: 720px;
}

.hero-eyebrow,
.chip,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-eyebrow span:last-child {
  color: var(--yellow);
}

.hero-title {
  margin: 18px 0 12px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

.hero-summary {
  max-width: 660px;
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: clamp(16px, 1.7vw, 20px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

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

.hero-controls {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.34);
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.56);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
  pointer-events: auto;
}

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

.hero-dot.is-active {
  width: 34px;
  background: var(--cyan);
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 650px;
  margin: 22px 0 0;
}

.section {
  margin-top: 56px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.2;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(12px);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.58);
  transform: translateY(-5px);
  box-shadow: 0 24px 46px rgba(6, 182, 212, 0.18);
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.18), rgba(37, 99, 235, 0.16)),
    #0f172a;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  right: 10px;
  top: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #2b1b00;
  background: rgba(250, 204, 21, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: 10px;
  right: auto;
  color: #ecfeff;
  background: rgba(8, 145, 178, 0.92);
}

.poster-hover {
  position: absolute;
  z-index: 3;
  left: 12px;
  right: 12px;
  bottom: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-hover {
  opacity: 1;
  transform: translateY(0);
}

.poster-hover span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.78);
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid rgba(125, 211, 252, 0.2);
}

.movie-info {
  padding: 14px 14px 16px;
}

.movie-title {
  margin: 0 0 6px;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-desc {
  margin: 0 0 10px;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.movie-meta strong {
  color: #67e8f9;
  font-weight: 900;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(30, 58, 138, 0.24));
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  border-color: rgba(34, 211, 238, 0.58);
  transform: translateY(-4px);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 18px;
  color: #aab7c8;
  font-size: 14px;
}

.category-card span {
  color: #67e8f9;
  font-weight: 900;
}

.feature-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.ranking-panel,
.glass-panel,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 16px 44px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(14px);
}

.ranking-panel {
  padding: 18px;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-row {
  display: grid;
  grid-template-columns: auto 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(125, 211, 252, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  border-color: rgba(34, 211, 238, 0.44);
  background: rgba(15, 23, 42, 0.86);
}

.rank-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #052a36;
  background: linear-gradient(135deg, #22d3ee, #facc15);
  font-weight: 900;
}

.rank-thumb {
  width: 56px;
  height: 78px;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  margin: 0 0 4px;
  color: #f8fafc;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-score {
  color: var(--yellow);
  font-weight: 900;
  white-space: nowrap;
}

.page-hero {
  margin-bottom: 28px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.16), transparent 50%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 58, 138, 0.26));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 12px 0 12px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 22px 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.62);
  padding: 8px 12px;
  cursor: pointer;
}

.filter-chip:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.5);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #93c5fd;
  font-size: 14px;
}

.breadcrumb a {
  color: #67e8f9;
}

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

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  background: #020617;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ecfeff;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 36%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.18));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #052a36;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  box-shadow: 0 20px 48px rgba(34, 211, 238, 0.32);
  font-size: 34px;
  font-weight: 900;
}

.detail-panel {
  padding: 24px;
}

.detail-title {
  margin: 18px 0 12px;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.14;
}

.detail-summary {
  color: #cbd5e1;
  font-size: 17px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  background: #0f172a;
}

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

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: #cbd5e1;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
}

.info-list span {
  color: #94a3b8;
}

.article-block {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
}

.article-block h2 {
  margin: 0 0 12px;
  color: #e0f2fe;
  font-size: 24px;
}

.article-block p {
  margin: 0;
  color: #cbd5e1;
}

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

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #94a3b8;
  font-size: 14px;
}

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

.footer-links a {
  color: #cbd5e1;
}

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

.empty-state {
  display: none;
  padding: 24px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 20px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.54);
}

.empty-state.is-visible {
  display: block;
}

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

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

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

@media (max-width: 860px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    justify-self: end;
  }

  .nav-links,
  .nav-search {
    display: none;
  }

  .nav-shell.is-open .nav-links,
  .nav-shell.is-open .nav-search {
    grid-column: 1 / -1;
    display: flex;
  }

  .nav-shell.is-open .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .nav-shell.is-open .nav-search {
    min-width: 0;
  }

  .hero-carousel {
    min-height: 620px;
  }

  .hero-content {
    left: 22px;
    right: 22px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search,
  .filter-bar {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-row {
    grid-template-columns: auto 48px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }
}

@media (max-width: 520px) {
  .main-content {
    width: min(100% - 22px, 1240px);
    padding-top: 18px;
  }

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

  .hero-carousel {
    min-height: 560px;
    border-radius: 22px;
  }

  .hero-title {
    font-size: 34px;
  }

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

  .primary-button,
  .secondary-button {
    text-align: center;
  }

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

  .movie-info {
    padding: 12px;
  }

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

  .movie-desc {
    font-size: 12px;
  }

  .detail-panel,
  .article-block {
    padding: 18px;
  }
}
