:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.72);
  --card: #1e293b;
  --card-hover: #263449;
  --line: rgba(148, 163, 184, 0.16);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --orange: #f97316;
  --green: #22c55e;
  --shadow: 0 25px 70px rgba(8, 145, 178, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(8, 145, 178, 0.22), transparent 34rem),
    radial-gradient(circle at 80% 18%, rgba(37, 99, 235, 0.16), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

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: 50;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell,
.footer-shell,
.page-shell,
.hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 36px rgba(6, 182, 212, 0.35);
  color: #ffffff;
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #cbd5e1;
  font-size: 15px;
}

.desktop-nav a,
.nav-more {
  position: relative;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-more:hover {
  color: #ffffff;
}

.nav-more {
  cursor: default;
  padding: 24px 0;
}

.nav-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: 180px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-more:hover .nav-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-panel a:hover {
  background: rgba(6, 182, 212, 0.14);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.85);
  color: #ffffff;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: #cbd5e1;
}

.mobile-nav a:hover {
  background: rgba(6, 182, 212, 0.12);
  color: #ffffff;
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--panel);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.12)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 46%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  display: grid;
  gap: 20px;
}

.hero-kicker,
.meta-line,
.badge-row,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-kicker span:first-child,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(6, 182, 212, 0.32);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.16);
  color: #67e8f9;
  font-size: 13px;
}

.hero-kicker {
  color: #67e8f9;
  font-size: 14px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.hero-copy p {
  margin: 0;
  max-width: 620px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 40px rgba(8, 145, 178, 0.28);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(15, 23, 42, 0.92);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.page-shell {
  padding: 64px 0;
}

.page-hero {
  margin-bottom: 42px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.74)),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 28rem);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.03em;
}

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

.section {
  margin-top: 68px;
}

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

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.section-head > span {
  width: 5px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-orange > span {
  background: linear-gradient(180deg, var(--orange), #ef4444);
}

.section-green > span {
  background: linear-gradient(180deg, var(--green), #10b981);
}

.section-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
}

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: var(--card);
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.18);
  transform: translateY(-6px) scale(1.01);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.34), transparent 58%);
}

.movie-type {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.hover-play {
  position: absolute;
  inset: 0;
  width: 62px;
  height: 62px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.88);
  color: #ffffff;
  font-size: 24px;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.poster-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.poster-info strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.32;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.poster-info em {
  color: #cbd5e1;
  font-size: 12px;
  font-style: normal;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.feature-panel {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.88));
  border: 1px solid var(--line);
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.62);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.34);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.category-tile span {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.category-tile strong {
  color: #ffffff;
  font-size: 22px;
}

.category-tile em,
.category-tile small {
  color: #cbd5e1;
  font-style: normal;
}

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

.mini-card {
  display: flex;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.55);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  background: rgba(30, 41, 59, 0.88);
  transform: translateY(-3px);
}

.mini-card img {
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
}

.mini-card span {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px;
}

.mini-card strong {
  color: #ffffff;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-card em,
.mini-card small {
  color: var(--muted);
  font-style: normal;
}

.filter-bar {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  outline: none;
  background: rgba(2, 6, 23, 0.55);
  color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 76px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.55);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: rgba(30, 41, 59, 0.86);
  transform: translateY(-2px);
}

.rank-no {
  color: #67e8f9;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 76px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-row strong {
  color: #ffffff;
  font-size: 18px;
}

.rank-row p {
  margin: 6px 0 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

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

.player-card,
.content-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42);
}

.play-button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.32);
}

.content-card {
  margin-top: 24px;
  padding: 26px;
}

.content-card h1,
.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #ffffff;
}

.content-card h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
}

.content-card p {
  color: #cbd5e1;
  line-height: 1.9;
}

.meta-line {
  color: var(--muted);
  margin-bottom: 18px;
}

.tag-list {
  margin: 16px 0;
}

.side-stack {
  display: grid;
  gap: 22px;
}

.side-card {
  padding: 20px;
}

.side-poster {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 16px;
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 9px;
}

.info-list span {
  color: var(--muted);
}

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

.breadcrumb a:hover {
  color: #67e8f9;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.88);
}

.footer-shell {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 44px 0;
}

.footer-brand p,
.site-footer li,
.footer-bottom {
  color: var(--muted);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

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

.site-footer a:hover {
  color: #67e8f9;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
  text-align: center;
}

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

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

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

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

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  body.menu-open .mobile-nav {
    display: grid;
    max-height: calc(100vh - 92px);
    overflow: auto;
  }

  .hero-slider {
    height: 540px;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

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

  .rank-row .btn {
    grid-column: 2 / -1;
  }

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

@media (max-width: 560px) {
  .nav-shell,
  .footer-shell,
  .page-shell,
  .hero-inner,
  .footer-bottom {
    width: min(100% - 24px, 1280px);
  }

  .brand {
    font-size: 18px;
  }

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

  .hero-slider {
    height: 520px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .page-hero,
  .feature-panel,
  .content-card {
    padding: 22px;
    border-radius: 20px;
  }

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

  .poster-info {
    padding: 13px;
  }

  .poster-info strong {
    font-size: 14px;
  }
}
