/* Violet Cinema — 差异化深色主题覆盖层 */
:root {
  --vlt-bg: #0c0a12;
  --vlt-bg2: #14101c;
  --vlt-surface: #1c1628;
  --vlt-surface2: #241e34;
  --vlt-line: rgba(255, 255, 255, 0.08);
  --vlt-line2: rgba(255, 255, 255, 0.14);
  --vlt-text: #f3eef9;
  --vlt-muted: #9b92b8;
  --vlt-coral: #ff6b4a;
  --vlt-coral-dim: rgba(255, 107, 74, 0.16);
  --vlt-violet: #a78bfa;
  --vlt-violet-dim: rgba(167, 139, 250, 0.18);
  --vlt-mint: #34d399;
  --vlt-mint-dim: rgba(52, 211, 153, 0.14);
  --vlt-amber: #fbbf24;
  --vlt-radius: 18px;
  --vlt-radius-sm: 12px;
  --vlt-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --vlt-glow: 0 0 0 1px rgba(167, 139, 250, 0.25), 0 16px 40px rgba(255, 107, 74, 0.12);
}

html {
  scroll-behavior: smooth;
}

body.body-tpl-vlt {
  --bg: var(--vlt-bg);
  --bg2: var(--vlt-bg2);
  --card: var(--vlt-surface);
  --text: var(--vlt-text);
  --muted: var(--vlt-muted);
  --line: var(--vlt-line);
  --gold: var(--vlt-coral);
  --gold-dim: var(--vlt-coral-dim);
  --radius: var(--vlt-radius);
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, #2a1a4a 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 107, 74, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--vlt-bg) 0%, #0a0810 100%);
  color: var(--vlt-text);
}

body.nav-open {
  overflow: hidden;
}

#root,
.site-outlet {
  min-height: 100%;
}

.app-shell.tpl-vlt {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.site-outlet {
  flex: 1;
}

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

@media (max-width: 480px) {
  .container {
    width: calc(100% - 20px);
  }
}

/* ── Header ── */
.vlt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 10, 18, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--vlt-line);
}

.vlt-header__accent {
  height: 3px;
  background: linear-gradient(90deg, var(--vlt-coral), var(--vlt-violet) 45%, var(--vlt-mint));
}

.vlt-header__bar {
  position: relative;
  z-index: 3;
}

.vlt-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.vlt-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.vlt-header__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--vlt-violet-dim), var(--vlt-coral-dim));
  border: 1px solid var(--vlt-line2);
  color: var(--vlt-violet);
  flex-shrink: 0;
}

.vlt-header__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vlt-header__brand-text strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vlt-header__brand-text span {
  font-size: 0.72rem;
  color: var(--vlt-muted);
}

.vlt-header__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.vlt-header__nav-link {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--vlt-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.vlt-header__nav-link:hover {
  color: var(--vlt-text);
  background: rgba(255, 255, 255, 0.04);
}

.vlt-header__nav-link.is-active {
  color: var(--vlt-text);
  background: var(--vlt-violet-dim);
  border-color: rgba(167, 139, 250, 0.35);
}

.vlt-header__search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--vlt-surface);
  border: 1px solid var(--vlt-line);
  border-radius: 999px;
  overflow: hidden;
  min-width: 180px;
}

.vlt-header__search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--vlt-text);
  padding: 9px 14px;
  font-size: 0.86rem;
  min-width: 0;
}

.vlt-header__search input::placeholder {
  color: var(--vlt-muted);
}

.vlt-header__search input:focus {
  outline: none;
}

.vlt-header__search-btn {
  border: 0;
  background: var(--vlt-coral-dim);
  color: var(--vlt-coral);
  padding: 9px 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.vlt-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.vlt-header__ghost,
.vlt-header__cta {
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.vlt-header__ghost {
  color: var(--vlt-muted);
}

.vlt-header__ghost:hover {
  color: var(--vlt-text);
}

.vlt-header__cta {
  background: linear-gradient(135deg, var(--vlt-coral), #e84d2f);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 107, 74, 0.25);
}

.vlt-header__menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--vlt-line);
  border-radius: 10px;
  background: var(--vlt-surface);
  cursor: pointer;
  padding: 0 10px;
}

.vlt-header__menu span {
  display: block;
  height: 2px;
  background: var(--vlt-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.vlt-header__menu.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.vlt-header__menu.is-open span:nth-child(2) {
  opacity: 0;
}

.vlt-header__menu.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.vlt-header__chips {
  border-top: 1px solid var(--vlt-line);
  padding: 10px 0;
  background: rgba(20, 16, 28, 0.6);
}

.vlt-header__chips-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.vlt-header__chips-track::-webkit-scrollbar {
  display: none;
}

.vlt-header__chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--vlt-text);
  border: 1px solid var(--vlt-line);
  background: var(--vlt-surface);
  transition: transform 0.15s, box-shadow 0.15s;
}

.vlt-header__chip:hover {
  transform: translateY(-1px);
}

.vlt-header__chip--1 { border-color: rgba(255, 107, 74, 0.35); background: var(--vlt-coral-dim); }
.vlt-header__chip--2 { border-color: rgba(167, 139, 250, 0.35); background: var(--vlt-violet-dim); }
.vlt-header__chip--3 { border-color: rgba(52, 211, 153, 0.35); background: var(--vlt-mint-dim); }
.vlt-header__chip--4 { border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.12); }
.vlt-header__chip--5 { border-color: rgba(244, 114, 182, 0.35); background: rgba(244, 114, 182, 0.12); }

.vlt-header__drawer {
  display: none;
  pointer-events: none;
}

/* ── Hero ── */
.vlt-hero {
  padding: 36px 0 28px;
}

.vlt-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.vlt-hero__badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--vlt-violet);
  background: var(--vlt-violet-dim);
  border: 1px solid rgba(167, 139, 250, 0.3);
  margin-bottom: 14px;
}

.vlt-hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(135deg, #fff 0%, var(--vlt-violet) 55%, var(--vlt-coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vlt-hero__lead {
  margin: 0 0 20px;
  color: var(--vlt-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.vlt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.vlt-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}

.vlt-hero__btn:hover {
  transform: translateY(-1px);
}

.vlt-hero__btn--primary {
  background: linear-gradient(135deg, var(--vlt-coral), #e84d2f);
  color: #fff;
  box-shadow: var(--vlt-glow);
}

.vlt-hero__btn--ghost {
  background: transparent;
  border-color: var(--vlt-line2);
  color: var(--vlt-text);
}

.vlt-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.vlt-hero__stats > div {
  padding: 12px 14px;
  border-radius: var(--vlt-radius-sm);
  background: var(--vlt-surface);
  border: 1px solid var(--vlt-line);
}

.vlt-hero__stats dt {
  margin: 0 0 4px;
  font-size: 0.72rem;
  color: var(--vlt-muted);
}

.vlt-hero__stats dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--vlt-text);
}

.vlt-spotlight {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  text-decoration: none;
  color: inherit;
  background: var(--vlt-surface);
  border: 1px solid var(--vlt-line);
  border-radius: var(--vlt-radius);
  overflow: hidden;
  box-shadow: var(--vlt-shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 280px;
}

.vlt-spotlight:hover {
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: var(--vlt-glow);
}

.vlt-spotlight__poster {
  position: relative;
  overflow: hidden;
}

.vlt-spotlight__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vlt-spotlight__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(12, 10, 18, 0.85));
  pointer-events: none;
}

.vlt-spotlight__info {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vlt-spotlight__eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--vlt-coral);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.vlt-spotlight__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
}

.vlt-spotlight__desc {
  margin: 0 0 14px;
  color: var(--vlt-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.vlt-spotlight__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--vlt-muted);
}

.vlt-spotlight__meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--vlt-surface2);
  border: 1px solid var(--vlt-line);
}

/* ── Panels ── */
.vlt-home__body {
  padding-bottom: 24px;
}

.vlt-panel {
  padding: 28px 0;
}

.vlt-panel--hot .vlt-panel__titles h2::before {
  background: linear-gradient(180deg, var(--vlt-coral), #e84d2f);
}

.vlt-panel--latest .vlt-panel__titles h2::before {
  background: linear-gradient(180deg, var(--vlt-mint), #10b981);
}

.vlt-panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.vlt-panel__head--center {
  justify-content: center;
  text-align: center;
}

.vlt-panel__head--center .vlt-panel__titles {
  align-items: center;
}

.vlt-panel__titles h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vlt-panel__titles h2::before {
  content: '';
  width: 4px;
  height: 1.1em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--vlt-violet), var(--vlt-coral));
}

.vlt-panel__sub {
  margin: 6px 0 0;
  color: var(--vlt-muted);
  font-size: 0.88rem;
}

.vlt-panel__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--vlt-coral);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.vlt-panel__more:hover {
  color: var(--vlt-violet);
}

.vlt-page-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.vlt-panel--page {
  padding-top: 32px;
  padding-bottom: 40px;
}

/* ── Category rail ── */
.vlt-cat-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.vlt-cat-rail__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 16px;
  border-radius: var(--vlt-radius-sm);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--vlt-line);
  background: var(--vlt-surface);
  transition: transform 0.15s, border-color 0.15s;
}

.vlt-cat-rail__item:hover {
  transform: translateY(-3px);
  border-color: var(--vlt-line2);
}

.vlt-cat-rail__item--1 { border-left: 4px solid var(--vlt-coral); }
.vlt-cat-rail__item--2 { border-left: 4px solid var(--vlt-violet); }
.vlt-cat-rail__item--3 { border-left: 4px solid var(--vlt-mint); }
.vlt-cat-rail__item--4 { border-left: 4px solid var(--vlt-amber); }
.vlt-cat-rail__item--5 { border-left: 4px solid #f472b6; }

.vlt-cat-rail__icon {
  font-size: 1.4rem;
}

.vlt-cat-rail__name {
  font-weight: 800;
  font-size: 1rem;
}

.vlt-cat-rail__count {
  font-size: 0.78rem;
  color: var(--vlt-muted);
}

/* ── Cards ── */
.vlt-grid {
  display: grid;
  gap: 16px;
}

.vlt-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.vlt-grid--latest {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.vlt-dense-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.vlt-scroll-row {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--vlt-violet) transparent;
  padding-bottom: 6px;
}

.vlt-scroll-row__track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-right: 8px;
}

.vlt-scroll-row .vlt-card {
  width: 168px;
  flex-shrink: 0;
}

.vlt-card {
  position: relative;
}

.vlt-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.vlt-card__frame {
  position: relative;
  border-radius: var(--vlt-radius-sm);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--vlt-surface2);
  border: 1px solid var(--vlt-line);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.vlt-card:hover .vlt-card__frame {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: var(--vlt-glow);
}

.vlt-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vlt-card__shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(12, 10, 18, 0.88));
  pointer-events: none;
}

.vlt-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(12, 10, 18, 0.75);
  color: var(--vlt-violet);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.vlt-card--hot .vlt-card__tag {
  color: var(--vlt-coral);
  border-color: rgba(255, 107, 74, 0.35);
}

.vlt-card--latest .vlt-card__tag {
  color: var(--vlt-mint);
  border-color: rgba(52, 211, 153, 0.35);
}

.vlt-card__rank {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--vlt-coral), #e84d2f);
  color: #fff;
}

.vlt-card__dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}

.vlt-card__score {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--vlt-amber);
}

.vlt-card__body {
  padding: 10px 2px 0;
}

.vlt-card__title {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vlt-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font-size: 0.76rem;
  color: var(--vlt-muted);
}

.vlt-card__genre {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Features & tags ── */
.vlt-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vlt-features__item {
  padding: 20px 18px;
  border-radius: var(--vlt-radius-sm);
  background: var(--vlt-surface);
  border: 1px solid var(--vlt-line);
}

.vlt-features__item--1 { border-top: 3px solid var(--vlt-coral); }
.vlt-features__item--2 { border-top: 3px solid var(--vlt-violet); }
.vlt-features__item--3 { border-top: 3px solid var(--vlt-mint); }

.vlt-features__num {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--vlt-muted);
  margin-bottom: 8px;
}

.vlt-features__item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.vlt-features__item p {
  margin: 0;
  color: var(--vlt-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.vlt-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.vlt-tags__item {
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--vlt-muted);
  background: var(--vlt-surface);
  border: 1px solid var(--vlt-line);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.vlt-tags__item:hover {
  color: var(--vlt-violet);
  border-color: rgba(167, 139, 250, 0.4);
  background: var(--vlt-violet-dim);
}

/* ── Category page ── */
.vlt-cat-hero {
  padding: 28px 0 20px;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--vlt-surface) 0%, transparent 100%);
  border-bottom: 1px solid var(--vlt-line);
}

.vlt-cat-hero__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--vlt-muted);
  margin-bottom: 12px;
}

.vlt-cat-hero__crumb a {
  color: var(--vlt-muted);
  text-decoration: none;
}

.vlt-cat-hero__crumb a:hover {
  color: var(--vlt-violet);
}

.vlt-cat-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.vlt-cat-hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
}

.vlt-cat-hero__lead {
  margin: 0;
  color: var(--vlt-muted);
  font-size: 0.92rem;
}

.vlt-cat-hero__badge {
  flex-shrink: 0;
  text-align: center;
  padding: 14px 20px;
  border-radius: var(--vlt-radius-sm);
  background: var(--vlt-coral-dim);
  border: 1px solid rgba(255, 107, 74, 0.35);
}

.vlt-cat-hero__badge strong {
  display: block;
  font-size: 1.5rem;
  color: var(--vlt-coral);
  line-height: 1;
}

.vlt-cat-hero__badge span {
  font-size: 0.78rem;
  color: var(--vlt-muted);
}

.vlt-cat-tabs-wrap {
  position: sticky;
  top: var(--vlt-header-h, 118px);
  z-index: 50;
  background: rgba(12, 10, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--vlt-line);
  padding: 12px 0;
}

.vlt-cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.vlt-cat-tabs::-webkit-scrollbar {
  display: none;
}

.vlt-cat-tabs__item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--vlt-muted);
  background: var(--vlt-surface);
  border: 1px solid var(--vlt-line);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.vlt-cat-tabs__item.is-active {
  color: var(--vlt-text);
  background: var(--vlt-violet-dim);
  border-color: rgba(167, 139, 250, 0.4);
}

.vlt-cat-tabs__icon {
  font-size: 1rem;
}

.vlt-cat-main {
  padding: 24px 0 40px;
}

.vlt-cat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.vlt-cat-sort {
  display: flex;
  gap: 8px;
}

.vlt-cat-sort__btn {
  border: 1px solid var(--vlt-line);
  background: var(--vlt-surface);
  color: var(--vlt-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.vlt-cat-sort__btn.is-active {
  color: var(--vlt-coral);
  background: var(--vlt-coral-dim);
  border-color: rgba(255, 107, 74, 0.4);
}

.vlt-cat-toolbar__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--vlt-muted);
  flex: 1;
  min-width: 200px;
}

.vlt-cat-empty,
.vlt-cat-more {
  text-align: center;
  color: var(--vlt-muted);
}

.vlt-cat-more {
  margin: 28px 0 0;
}

.vlt-cat-more button {
  border: 1px solid var(--vlt-line2);
  background: var(--vlt-violet-dim);
  color: var(--vlt-violet);
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.vlt-cat-empty a {
  color: var(--vlt-coral);
}

/* ── Detail page ── */
.vlt-detail-page {
  padding-bottom: 40px;
}

.vlt-detail-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--vlt-line);
  margin-bottom: 8px;
}

.vlt-detail-hero__poster {
  border-radius: var(--vlt-radius);
  overflow: hidden;
  border: 1px solid var(--vlt-line);
  box-shadow: var(--vlt-shadow);
  aspect-ratio: 2 / 3;
}

.vlt-detail-hero__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vlt-detail-hero__title {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 800;
}

.vlt-detail-hero__kw {
  color: var(--vlt-muted);
  margin: 0 0 14px;
}

.vlt-detail-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.vlt-detail-hero__stats span {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: var(--vlt-surface);
  border: 1px solid var(--vlt-line);
}

.vlt-detail-hero__desc {
  color: var(--vlt-muted);
  line-height: 1.75;
  margin: 0 0 18px;
}

.vlt-detail-hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.vlt-detail-hero__meta {
  margin: 0;
  font-size: 0.84rem;
  color: var(--vlt-muted);
}

/* ── Search form ── */
.vlt-search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.vlt-search-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--vlt-radius-sm);
  border: 1px solid var(--vlt-line);
  background: var(--vlt-surface);
  color: var(--vlt-text);
  font-size: 0.92rem;
}

.vlt-search-form button {
  padding: 12px 22px;
  border: 0;
  border-radius: var(--vlt-radius-sm);
  background: linear-gradient(135deg, var(--vlt-coral), #e84d2f);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.vlt-info-body h2 {
  margin: 20px 0 8px;
  font-size: 1.05rem;
}

.vlt-info-body p,
.vlt-info-body li {
  color: var(--vlt-muted);
  line-height: 1.7;
}

.vlt-info-body a {
  color: var(--vlt-coral);
}

.vlt-empty-links {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.vlt-empty-links a {
  color: var(--vlt-coral);
  font-weight: 700;
  text-decoration: none;
}

/* ── Auth pages ── */
.vlt-auth-page {
  padding: 32px 0 48px;
}

.vlt-auth-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 24px;
  border-radius: var(--vlt-radius);
  background: var(--vlt-surface);
  border: 1px solid var(--vlt-line);
  box-shadow: var(--vlt-shadow);
}

.vlt-auth-card__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
}

.vlt-auth-card__lead {
  margin: 0 0 22px;
  text-align: center;
  color: var(--vlt-muted);
  font-size: 0.9rem;
}

.vlt-auth-form {
  display: grid;
  gap: 14px;
}

.vlt-auth-form__field {
  display: grid;
  gap: 6px;
}

.vlt-auth-form__field span {
  font-size: 0.84rem;
  color: var(--vlt-muted);
  font-weight: 600;
}

.vlt-auth-form__field input {
  padding: 12px 14px;
  border-radius: var(--vlt-radius-sm);
  border: 1px solid var(--vlt-line);
  background: var(--vlt-surface2);
  color: var(--vlt-text);
  font-size: 0.92rem;
}

.vlt-auth-form__msg {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--vlt-radius-sm);
  background: var(--vlt-violet-dim);
  color: var(--vlt-violet);
  font-size: 0.86rem;
  text-align: center;
}

.vlt-auth-form__submit {
  margin-top: 4px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--vlt-coral), #e84d2f);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}

.vlt-auth-card__switch,
.vlt-auth-card__back {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.86rem;
}

.vlt-auth-card__switch a,
.vlt-auth-card__back a {
  color: var(--vlt-coral);
  text-decoration: none;
  font-weight: 700;
}

/* ── Footer ── */
.vlt-footer {
  position: relative;
  margin-top: auto;
  background: var(--vlt-bg2);
  border-top: 1px solid var(--vlt-line);
  overflow: hidden;
}

.vlt-footer__glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--vlt-coral), var(--vlt-violet), var(--vlt-mint), transparent);
}

.vlt-footer__promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--vlt-line);
}

.vlt-footer__promo-tag {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--vlt-violet);
  letter-spacing: 0.06em;
}

.vlt-footer__promo-title {
  margin: 0 0 8px;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.35;
}

.vlt-footer__promo-desc {
  margin: 0;
  color: var(--vlt-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 52ch;
}

.vlt-footer__promo-btn {
  flex-shrink: 0;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--vlt-violet), #7c3aed);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.3);
}

.vlt-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 32px 0;
}

.vlt-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  color: inherit;
  text-decoration: none;
  margin-bottom: 10px;
}

.vlt-footer__logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--vlt-violet-dim);
  color: var(--vlt-violet);
}

.vlt-footer__intro {
  margin: 0 0 14px;
  color: var(--vlt-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.vlt-footer__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vlt-footer__highlights li {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: var(--vlt-surface);
  border: 1px solid var(--vlt-line);
  color: var(--vlt-muted);
}

.vlt-footer__col h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 800;
}

.vlt-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.vlt-footer__links a {
  color: var(--vlt-muted);
  text-decoration: none;
  font-size: 0.86rem;
}

.vlt-footer__links a:hover {
  color: var(--vlt-coral);
}

.vlt-footer__biz {
  margin: 0;
  color: var(--vlt-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.vlt-footer__biz strong {
  color: var(--vlt-coral);
}

.vlt-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--vlt-line);
  font-size: 0.8rem;
  color: var(--vlt-muted);
}

/* ── Play page ── */
.vlt-play-page {
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

.vlt-play-wrap {
  padding-top: 20px;
}

.vlt-play-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--vlt-muted);
  margin-bottom: 14px;
}

.vlt-play-crumb a {
  color: var(--vlt-muted);
  text-decoration: none;
}

.vlt-play-crumb a:hover {
  color: var(--vlt-violet);
}

.vlt-play-head {
  margin-bottom: 16px;
}

.vlt-play-head__title {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
}

.vlt-play-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--vlt-muted);
}

.vlt-play-head__score {
  color: var(--vlt-amber);
  font-weight: 800;
}

.vlt-play-player {
  margin-bottom: 22px;
}

.vlt-play-player__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--vlt-radius-sm);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--vlt-line);
  box-shadow: var(--vlt-shadow);
}

.vlt-play-player__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.vlt-play-block,
.vlt-play-section {
  margin-bottom: 28px;
  padding: 20px;
  border-radius: var(--vlt-radius-sm);
  background: var(--vlt-surface);
  border: 1px solid var(--vlt-line);
}

.vlt-play-block__h,
.vlt-play-section__h {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
}

.vlt-play-block__p {
  margin: 0 0 14px;
  color: var(--vlt-muted);
  line-height: 1.75;
}

.vlt-play-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.vlt-play-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: var(--vlt-surface2);
  border: 1px solid var(--vlt-line);
  color: var(--vlt-muted);
}

.vlt-play-cat {
  margin: 0;
  font-size: 0.86rem;
  color: var(--vlt-muted);
}

.vlt-play-cat a {
  color: var(--vlt-coral);
  text-decoration: none;
  font-weight: 700;
}

/* ── Telegram 浮动按钮 ── */
.ababseo-float {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 12px));
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  z-index: 180;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px 11px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2aabee, #1d8fd0);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(42, 171, 238, 0.38);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ababseo-float:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(42, 171, 238, 0.48);
}

.ababseo-float:focus-visible {
  outline: 2px solid var(--vlt-violet);
  outline-offset: 3px;
}

.ababseo-tg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

.ababseo-text {
  white-space: nowrap;
  line-height: 1;
}

body.body-tpl-vlt {
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}

/* ── Misc ── */
.player-error {
  margin: 0;
  padding: 14px 18px;
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-size: 14px;
  font-weight: 700;
}

.app-bootstrap {
  display: grid;
  place-items: center;
  min-height: 70dvh;
  padding: 24px;
  text-align: center;
  background: var(--vlt-bg);
  color: var(--vlt-text);
}

.app-bootstrap__spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--vlt-violet);
  animation: vltSpin 0.9s linear infinite;
  margin: 0 auto 14px;
}

.app-bootstrap__msg {
  margin: 0;
  font-size: 0.9rem;
  color: var(--vlt-muted);
}

@keyframes vltSpin {
  to { transform: rotate(360deg); }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--vlt-violet);
  outline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .vlt-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .vlt-header__nav {
    display: none;
  }

  .vlt-header__menu {
    display: flex;
  }

  .vlt-header__drawer {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-top: 1px solid var(--vlt-line);
    background: var(--vlt-bg2);
    pointer-events: none;
    visibility: hidden;
  }

  .vlt-header__drawer.is-open {
    max-height: 380px;
    pointer-events: auto;
    visibility: visible;
  }

  .vlt-header__drawer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px 0;
  }

  .vlt-header__drawer-search {
    display: flex;
    gap: 8px;
    padding: 14px 16px 16px;
  }

  .vlt-header__drawer-search input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--vlt-line);
    background: var(--vlt-surface);
    color: var(--vlt-text);
  }

  .vlt-header__drawer-search button {
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--vlt-coral);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
  }

  .vlt-hero__grid {
    grid-template-columns: 1fr;
  }

  .vlt-spotlight {
    grid-template-columns: 0.85fr 1.15fr;
    min-height: 220px;
  }

  .vlt-cat-rail {
    grid-template-columns: repeat(3, 1fr);
  }

  .vlt-features {
    grid-template-columns: 1fr;
  }

  .vlt-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .vlt-header__search {
    display: none;
  }

  .vlt-header__ghost {
    display: inline-flex;
  }

  .vlt-header__inner {
    grid-template-columns: 1fr auto;
  }

  .vlt-hero__stats {
    grid-template-columns: 1fr;
  }

  .vlt-spotlight {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .vlt-spotlight__poster {
    max-height: 200px;
  }

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

  .vlt-cat-hero__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .vlt-footer__promo {
    flex-direction: column;
    align-items: flex-start;
  }

  .vlt-footer__grid {
    grid-template-columns: 1fr;
  }

  .vlt-detail-hero {
    grid-template-columns: 140px 1fr;
    gap: 16px;
  }

  .vlt-detail-hero__title {
    font-size: 1.25rem;
  }

  .vlt-dense-grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 10px;
  }

  .vlt-grid--featured,
  .vlt-grid--latest {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }

  .vlt-scroll-row .vlt-card {
    width: 148px;
  }

  .vlt-panel__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .vlt-cat-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .vlt-cat-toolbar__meta {
    min-width: 0;
  }

  .vlt-cat-tabs-wrap {
    top: var(--vlt-header-h, 96px);
  }

  .vlt-play-block,
  .vlt-play-section {
    padding: 16px;
  }

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

  .vlt-detail-hero__poster {
    max-width: 200px;
    margin: 0 auto;
  }

  .ababseo-float {
    padding: 12px;
    border-radius: 50%;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
  }

  .ababseo-text {
    display: none;
  }
}

@media (max-width: 380px) {
  .vlt-header__brand-text span {
    display: none;
  }

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