/* HomeStream — dark glass cinema UI */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #2A5FD0;
  --primary-hover: #4D86FF;
  --background: #141414;
  --surface: #221F1F;
  --text-secondary: #B3B3B3;
  --border: #333333;
  --white: #ffffff;

  /* app tokens (mapped to the palette above and used across the UI) */
  --bg: #141414;
  --bg-2: #221F1F;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.10);
  --line: #333333;
  --text: #ffffff;
  --muted: #b3b3b3;
  --accent: #2f63d6;
  --accent-2: #4d86ff;
  --grad: linear-gradient(120deg, #2f63d6, #4d86ff);
  --danger: #e25563;
  --radius: 16px;
  --display: 'Manrope', sans-serif;
  --body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }
img { display: block; }
::selection { background: rgba(77, 134, 255, .55); }

/* ambient aurora behind everything */
.aurora {
  position: fixed; inset: -20%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(45% 40% at 16% 6%, rgba(30, 77, 183, .20), transparent 70%),
    radial-gradient(40% 34% at 85% 10%, rgba(42, 102, 232, .14), transparent 70%),
    radial-gradient(55% 45% at 50% 112%, rgba(30, 77, 183, .14), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  to { transform: translate3d(2%, -2%, 0) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none; }
  * { transition: none !important; }
}

#app { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 14px max(28px, env(safe-area-inset-right)) 14px max(28px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-decoration: none; white-space: nowrap;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px;
  padding: 7px 14px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--panel-strong); }
.nav .spacer { flex: 1; }
.search-box {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; min-width: 320px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.search-box:hover { background: rgba(255, 255, 255, .06); }
.search-box:focus-within {
  border-color: var(--accent-2); background: rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 3px rgba(77, 134, 255, .18);
}
.search-ic { width: 17px; height: 17px; flex-shrink: 0; fill: var(--muted); transition: fill .18s ease; }
.search-box:focus-within .search-ic { fill: var(--accent-2); }
.search-box input {
  background: none; border: none; outline: none; color: var(--text); width: 100%; font-size: 14px;
}
.search-box input::placeholder { color: var(--muted); }
/* hide the native “x” clear button for a cleaner field */
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* profile dropdown */
.user-menu { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); font-size: 13px; cursor: pointer;
}
.user-chip:hover { background: var(--panel-strong); }
.user-chip .uname { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .chev { color: var(--muted); font-size: 10px; }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px; z-index: 60;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  display: none; box-shadow: 0 18px 44px rgba(0, 0, 0, .6);
}
.user-menu.open .user-dropdown { display: block; }
.udi {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  padding: 10px 12px; border-radius: 8px; font-size: 14px; text-decoration: none; cursor: pointer;
}
.udi:hover:not([disabled]) { background: var(--panel-strong); }
.udi[disabled] { color: var(--muted); cursor: default; }
.udi.danger { color: var(--danger); }
.udi .soon { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; background: var(--panel-strong); color: var(--muted); padding: 2px 6px; border-radius: 5px; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; font-family: var(--display);
}
.link-btn { background: none; border: none; color: var(--muted); font-size: 13px; }
.link-btn:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: 12px; padding: 11px 20px;
  font-weight: 600; font-size: 14px; color: var(--text);
  background: var(--panel-strong); border: 1px solid var(--line);
  transition: transform .12s, filter .15s;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.btn.primary {
  background: var(--grad); color: var(--text); border: none;
  box-shadow: 0 6px 24px rgba(30, 77, 183, .45);
}
.btn.danger { color: var(--danger); }
.btn:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 2px;
}

/* ---------- auth screens ---------- */
.auth-wrap {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px;
  padding: 38px 34px;
  backdrop-filter: blur(20px);
}
.auth-card h1 {
  font-family: var(--display); font-size: 27px; letter-spacing: -.02em; margin-bottom: 6px;
}
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--text);
  font-size: 14.5px; outline: none; transition: border-color .15s;
}
.field input:focus { border-color: var(--accent); }
.form-error { color: var(--danger); font-size: 13px; min-height: 18px; margin: 6px 0 10px; }
.auth-card .btn { width: 100%; justify-content: center; padding: 13px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 480px;
  display: flex; align-items: flex-end;
  padding: 60px 44px 44px;
  isolation: isolate;
}
.hero .backdrop {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center 20%;
  opacity: 0; transition: opacity 1.1s ease;
}
.hero .backdrop.show { opacity: 1; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .25) 100%),
    linear-gradient(to right, rgba(0, 0, 0, .8), transparent 65%);
}
.hero-content { max-width: 620px; animation: rise .6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600; margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--display); font-size: clamp(30px, 4.5vw, 52px);
  letter-spacing: -.03em; line-height: 1.05; margin-bottom: 14px;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.meta-row .dot::before { content: '·'; margin-right: 10px; }
.pill {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--panel-strong); border: 1px solid var(--line); color: var(--text);
}
/* clickable genre chip — same affordance as the cast/director chips */
a.pill-link { text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
a.pill-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* quality badges (4K / HD / HDR / surround) */
.qbadges { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; z-index: 2; }
.qbadges.inline { position: static; display: inline-flex; }
.qb {
  font-size: 10px; font-weight: 700; letter-spacing: .03em; line-height: 1;
  padding: 4px 6px; border-radius: 5px; color: #fff;
  background: rgba(0, 0, 0, .68); border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.qbadges.inline .qb { font-size: 11px; }
.qb-4k { background: var(--primary); border-color: var(--primary); }
.qb-hdr { background: linear-gradient(90deg, #e8b94a, #f5d06f); border: none; color: #1a1300; }

/* admin health banners */
.banners { display: grid; gap: 10px; }
.banners:empty { display: none; }
.banner {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; border-radius: 12px; font-size: 13.5px; line-height: 1.45;
}
.banner .ic { font-weight: 700; flex-shrink: 0; }
.banner.error { background: rgba(226, 85, 99, .12); border: 1px solid rgba(226, 85, 99, .55); color: #ffd9de; }
.banner.warn { background: rgba(224, 162, 60, .12); border: 1px solid rgba(224, 162, 60, .5); color: #ffe6bf; }
.star { color: #ffc555; font-weight: 600; }
.hero p { color: var(--text-secondary); font-size: 15px; max-width: 56ch; margin-bottom: 22px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 12px; }

/* ---------- rows & cards ---------- */
.section { padding: 8px 44px 26px; }
.section h2 {
  font-family: var(--display); font-size: 19px; letter-spacing: -.01em;
  margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px;
}
.section h2 .count { font-size: 12.5px; color: var(--muted); font-family: var(--body); font-weight: 400; }
.row-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 152px;
  gap: 14px; overflow-x: auto; padding-bottom: 10px;
  position: relative; /* children's offsetLeft = position inside the row (drag-snap math) */
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
}
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll > * { scroll-snap-align: start; }
.row-scroll.dragging {
  scroll-snap-type: none; cursor: grabbing; user-select: none; scroll-behavior: auto;
}
.row-scroll.dragging * { pointer-events: none; }
.row-scroll.wide { grid-auto-columns: 290px; }
.row-scroll.sm { grid-auto-columns: 140px; }

/* row wrapper with scroll arrows */
.row-wrap { position: relative; }
.row-arrow {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 5;
  width: 34px; height: 62px; border-radius: 12px; padding: 0;
  background: rgba(0, 0, 0, .68); border: 1px solid var(--line); color: #fff;
  font-size: 26px; line-height: 1; display: grid; place-items: center;
  opacity: 0; transition: opacity .15s, background .15s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.row-wrap:hover .row-arrow { opacity: 1; }
.row-arrow:hover { background: rgba(42, 102, 232, .8); }
.row-arrow.left { left: -10px; }
.row-arrow.right { right: -10px; }
@media (hover: none) { .row-arrow { opacity: .75; } }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px 14px;
}

.card { cursor: pointer; border: none; background: none; text-align: left; color: var(--text); }
.poster {
  aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.card:hover .poster { transform: translateY(-4px) scale(1.025); box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
/* image fades in over the colour placeholder once decoded */
.poster-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .45s ease;
}
.poster-img.loaded { opacity: 1; }
.poster .fallback {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 12px;
  font-family: var(--display); font-size: 14px; text-align: center; color: var(--muted);
}
.card .t { font-size: 13.5px; font-weight: 500; margin-top: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .y { font-size: 12px; color: var(--muted); }

/* continue watching — Netflix style: poster + progress bar, rich hover pop-out */
.cw-card { width: auto; }
.cw-card .poster { aspect-ratio: 2 / 3; }
.cw-bar {
  height: 4px; border-radius: 999px; margin-top: 8px; overflow: hidden;
  background: rgba(229, 229, 229, .22);
}
.cw-bar i { display: block; height: 100%; background: var(--accent-2); border-radius: 999px; }
.cw-card .t {
  margin-top: 7px; font-size: 13px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* episode progress bars (detail page) keep the original overlay style */
.progress-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 3;
  background: rgba(0, 0, 0, .45);
}
.progress-bar i { display: block; height: 100%; background: var(--accent-2); }

/* hover pop-out */
.cw-pop {
  position: fixed; z-index: 120; width: 340px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .75); overflow: hidden;
  opacity: 0; transform: scale(.86); transform-origin: center;
  transition: opacity .18s ease, transform .18s ease;
}
.cw-pop.show { opacity: 1; transform: scale(1); }
.cw-pop-media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.cw-pop-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cw-pop .cw-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.cw-pop .cw-preview.show { opacity: 1; }
.cw-pop-info { padding: 14px 16px 16px; }
.cw-pop-actions { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.cw-pop .rb {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: rgba(229, 229, 229, .06); border: 1.5px solid rgba(229, 229, 229, .45); color: var(--white);
  transition: border-color .15s, background .15s, transform .12s;
}
.cw-pop .rb:hover { border-color: var(--white); transform: scale(1.1); }
.cw-pop .rb svg { width: 19px; height: 19px; fill: currentColor; }
.cw-pop .rb.primary { background: var(--white); border-color: var(--white); color: #000; }
.cw-pop .rb.primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.cw-pop-spacer { flex: 1; }
.cw-pop-title { font-family: var(--display); font-weight: 600; font-size: 15.5px; margin-bottom: 5px; }
.cw-pop-meta { font-size: 13px; color: var(--text); margin-bottom: 11px; }
.cw-pop-meta .cw-ep { color: var(--accent-2); font-weight: 700; }
.cw-pop-prog { display: flex; align-items: center; gap: 11px; }
.cw-pop-prog .cw-bar { flex: 1; margin: 0; }
.cw-pop-prog span { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cw-pop-ov {
  margin-top: 11px; font-size: 12.5px; line-height: 1.5; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- detail ---------- */
.detail-hero { min-height: 420px; }
.detail-body { padding: 0 44px 60px; max-width: 1100px; }
.overview-full { color: var(--text-secondary); max-width: 70ch; margin: 6px 0 26px; }
.season-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 16px; }
.season-tabs button {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
}
.season-tabs button.active { background: var(--grad); color: var(--text); border-color: transparent; font-weight: 600; }
.ep-list { display: flex; flex-direction: column; gap: 10px; }
.ep {
  display: grid; grid-template-columns: 168px 1fr auto; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px; cursor: pointer; transition: background .15s; text-align: left; color: var(--text);
}
.ep:hover { background: var(--panel-strong); }
.ep-thumb {
  aspect-ratio: 16/9; border-radius: 9px; background: var(--bg-2) center/cover; position: relative; overflow: hidden;
}
.ep .num { font-size: 12px; color: var(--accent-2); font-weight: 600; }
.ep .et { font-weight: 600; font-size: 14.5px; margin: 1px 0 3px; }
.ep .eo { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep .er { font-size: 12px; color: var(--muted); padding-right: 8px; white-space: nowrap; }
.watched-tick { color: var(--accent-2); font-size: 13px; }

/* ---------- player ---------- */
.player-wrap {
  position: fixed; inset: 0; z-index: 100; background: #000;
  display: flex; flex-direction: column;
}
.player-wrap video { flex: 1; width: 100%; min-height: 0; outline: none; background: #000; }
.player-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 18px max(24px, env(safe-area-inset-left));
  background: linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
  opacity: 1; transition: opacity .4s;
}
.player-top.hidden { opacity: 0; pointer-events: none; }
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: rgba(20, 23, 34, .92); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 999px; font-size: 13.5px; z-index: 200;
  backdrop-filter: blur(10px);
  animation: rise .3s ease both;
}

/* ---------- admin ---------- */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 30px 44px; max-width: 1100px; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.panel h3 { font-family: var(--display); font-size: 17px; margin-bottom: 14px; }
.panel .hint { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.user-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.user-row:last-child { border-bottom: none; }
.user-row .role { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--panel-strong); color: var(--accent-2); }
.user-row .spacer { flex: 1; }
.scan-status { font-size: 13.5px; color: var(--muted); margin-top: 12px; min-height: 20px; }

.empty {
  padding: 80px 44px; text-align: center; color: var(--muted);
}
.empty .big { font-family: var(--display); font-size: 22px; color: var(--text); margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .search-box { min-width: 140px; flex: 1; order: 3; }
  .hero, .section, .detail-body { padding-left: 18px; padding-right: 18px; }
  .hero { min-height: 380px; padding-bottom: 30px; }
  .admin-grid { grid-template-columns: 1fr; padding: 20px 16px; }
  .ep { grid-template-columns: 120px 1fr; }
  .ep .er { display: none; }
  .row-scroll { grid-auto-columns: 124px; }
  .row-scroll.wide { grid-auto-columns: 240px; }
}

/* ====================== v2 ====================== */

/* browse page header (Movies / TV shows) */
.browse-head { padding: 40px 44px 6px; }
.browse-head h1 { font-family: var(--display); font-size: 32px; letter-spacing: -.02em; }
.browse-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

/* rotating spotlight */
.hero .backdrop { will-change: opacity; }
.spot-dots {
  position: absolute; right: 28px; bottom: 22px; z-index: 1;
  display: flex; gap: 7px; flex-wrap: wrap; max-width: 40%;
  justify-content: flex-end;
}
.spot-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255, 255, 255, .28); transition: background .2s, transform .2s;
}
.spot-dots button:hover { background: rgba(255, 255, 255, .55); }
.spot-dots button.active { background: var(--accent-2); transform: scale(1.25); }

/* genre tabs (home rows + browse pages) */
.genre-tabs {
  flex-wrap: nowrap; overflow-x: auto; margin-bottom: 14px; padding-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.genre-tabs::-webkit-scrollbar { display: none; }
.genre-tabs button { white-space: nowrap; flex-shrink: 0; }

/* playback failure overlay */
.play-error {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  background: rgba(5, 6, 10, .82); backdrop-filter: blur(6px);
}
.play-error .pe-card {
  max-width: 440px; margin: 20px; padding: 28px;
  background: rgba(15, 17, 26, .96); border: 1px solid var(--line); border-radius: 18px;
  animation: rise .3s ease both;
}
.play-error .pe-title { font-family: var(--display); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.play-error p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* credits */
.credit-block { margin: 0 0 26px; }
.credit-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.people-row { display: flex; flex-wrap: wrap; gap: 8px; }
.person-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px 5px 5px; color: var(--text); font-size: 13px; cursor: pointer;
  transition: background .15s;
}
.person-chip:hover { background: var(--panel-strong); }
.person-chip img, .person-chip .ph {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  background: var(--panel-strong); display: grid; place-items: center; font-size: 12px; color: var(--muted);
}
.person-chip .role { color: var(--muted); font-size: 12px; }
.person-hero { padding: 50px 44px 10px; }
.person-hero h1 { font-family: var(--display); font-size: 34px; letter-spacing: -.02em; }
.person-hero .sub { color: var(--muted); margin-top: 4px; }

/* ---------- custom player (Netflix layout, HomeStream palette) ---------- */
.player-wrap { cursor: default; }
.player-wrap.idle { cursor: none; }
.player-wrap video { flex: 1; }
.pc-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 48px max(26px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(26px, env(safe-area-inset-left));
  background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.35) 60%, transparent);
  transition: opacity .35s;
}
.pc-bottom.hidden, .player-top.hidden { opacity: 0; pointer-events: none; }
.seek-row { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.seek {
  position: relative; flex: 1; height: 20px; display: flex; align-items: center; cursor: pointer;
}
.seek .track {
  width: 100%; height: 4px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden;
  transition: height .12s;
}
.seek:hover .track { height: 7px; }
.seek .fill { height: 100%; background: var(--grad); border-radius: 999px; }
.seek .knob {
  position: absolute; top: 50%; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff;
  transform: translate(-50%, -50%) scale(0); transition: transform .12s;
  box-shadow: 0 0 12px rgba(42,102,232,.9);
}
.seek:hover .knob { transform: translate(-50%, -50%) scale(1); }
.seek .preview {
  position: absolute; bottom: 24px; transform: translateX(-50%);
  background: rgba(15,17,26,.95); border: 1px solid var(--line); border-radius: 8px;
  padding: 3px 10px; font-size: 12.5px; font-variant-numeric: tabular-nums;
  pointer-events: none; display: none;
}
.seek:hover .preview { display: block; }
.t-remain {
  font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums;
  min-width: 56px; text-align: right; white-space: nowrap;
}

/* control row: clusters left/right, title dead centre — like Netflix */
.pc-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.pc-left { display: flex; align-items: center; gap: 6px; justify-self: start; }
.pc-right { display: flex; align-items: center; gap: 6px; justify-self: end; }
.pc-title { text-align: center; min-width: 0; max-width: 46vw; padding: 0 16px; }
.pc-title .pt {
  font-family: var(--display); font-weight: 600; font-size: 15.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-title .ps { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pc-btn {
  background: none; border: none; color: #fff;
  width: 48px; height: 48px; display: grid; place-items: center;
  transition: transform .12s ease; padding: 0;
}
.pc-btn:hover { transform: scale(1.2); }
.pc-btn:active { transform: scale(1.05); }
.pc-btn svg { width: 27px; height: 27px; fill: currentColor; }
.pc-btn.big svg { width: 30px; height: 30px; }
.pc-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -4px; border-radius: 10px; }

/* volume: vertical pop-up above the speaker icon */
.vol-wrap { position: relative; display: flex; }
.vol-pop {
  position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%);
  background: rgba(15,17,26,.96); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 12px; display: none; backdrop-filter: blur(12px);
}
.vol-wrap:hover .vol-pop, .vol-pop:hover { display: block; }
.vol-pop input[type=range] {
  -webkit-appearance: slider-vertical; appearance: slider-vertical;
  writing-mode: vertical-lr; direction: rtl;
  width: 18px; height: 110px; accent-color: var(--accent); cursor: pointer;
}

.speed-wrap { position: relative; }
.speed-menu {
  position: absolute; bottom: 54px; right: 0;
  background: rgba(15,17,26,.96); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; min-width: 110px; display: none; backdrop-filter: blur(12px);
}
.speed-menu.open { display: block; }
.speed-menu button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--text); padding: 8px 14px; border-radius: 8px; font-size: 13.5px;
}
.speed-menu button:hover { background: var(--panel-strong); }
.speed-menu button.active { color: var(--accent-2); font-weight: 600; }

/* skip intro — Netflix-style box, click to skip (never automatic) */
.skip-intro {
  position: absolute; right: 40px; bottom: 130px; z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 6px;
  background: rgba(0, 0, 0, .65); color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .8);
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s, transform .25s, background .15s, color .15s, border-color .15s;
}
.skip-intro.show { opacity: 1; pointer-events: auto; transform: none; }
.skip-intro:hover { background: var(--grad); color: var(--text); border-color: transparent; }

/* because you watched */
.byw { color: var(--text); }

.next-card {
  position: absolute; right: 26px; bottom: 110px; z-index: 3;
  width: 320px; background: rgba(15,17,26,.95); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px; backdrop-filter: blur(14px);
  animation: rise .35s ease both;
}
.next-card .nc-label { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
.next-card .nc-title { font-family: var(--display); font-weight: 600; font-size: 16px; margin: 4px 0 12px; }
.next-card .nc-row { display: flex; gap: 8px; }
.next-card .countdown-ring { font-variant-numeric: tabular-nums; }

/* ---------- admin v2 ---------- */
.admin-wrap { padding: 26px 44px 70px; max-width: 1240px; display: grid; gap: 20px; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat {
  background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 12px; padding: 14px;
}
.stat .v { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat .bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,.12); margin-top: 10px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: var(--grad); }
.stat.warn .v { color: var(--danger); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs button {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 500;
}
.tabs button.active { background: var(--grad); color: var(--text); border-color: transparent; font-weight: 600; }
.tabs button .n { opacity: .75; font-size: 11.5px; margin-left: 4px; }
.report-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.report-row:last-child { border: none; }
.report-row .rt { font-weight: 600; }
.report-row .rp { color: var(--muted); font-size: 12px; word-break: break-all; width: 100%; }
.report-row .spacer { flex: 1; }
.mono {
  font-family: Consolas, monospace; font-size: 12px; background: rgba(0,0,0,.35);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
  word-break: break-all; width: 100%; user-select: all;
}
.match-results { width: 100%; display: grid; gap: 8px; margin-top: 8px; }
.match-cand {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
}
.match-cand img, .match-cand .noimg { width: 44px; height: 66px; border-radius: 6px; object-fit: cover; background: var(--panel-strong); }
.match-cand .mc-o { font-size: 12px; color: var(--muted); }
.log-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.log-row:last-child { border: none; }
.log-row .lt { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.log-row .le { font-weight: 600; min-width: 110px; }
.log-row .le.bad { color: var(--danger); }
.small-input {
  padding: 9px 13px; border-radius: 10px; background: rgba(0,0,0,.3);
  border: 1px solid var(--line); color: var(--text); font-size: 13.5px; outline: none; flex: 1;
}
.small-input:focus { border-color: var(--accent); }

@media (max-width: 860px) {
  .admin-wrap { padding: 16px; }
  .admin-cols { grid-template-columns: 1fr; }
  .browse-head { padding: 24px 18px 4px; }
  .next-card { right: 12px; left: 12px; width: auto; bottom: 96px; }
  .pc-title { display: none; }
  .pc-btn { width: 42px; height: 42px; }
  .skip-intro { right: 16px; bottom: 110px; padding: 12px 20px; }
  .row-scroll.fr { grid-auto-columns: 240px; }
}

/* ===== top rated / genre view-all / franchises ===== */
.card { position: relative; }
.rank {
  position: absolute; top: 6px; left: 6px; z-index: 3;
  font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1;
  min-width: 24px; height: 22px; padding: 0 6px; border-radius: 6px;
  display: grid; place-items: center; background: var(--primary); color: #fff;
}

/* genre tabs row with a View all link */
.genre-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.genre-bar .genre-tabs { margin-bottom: 0; flex: 1; min-width: 0; }
.genre-viewall {
  flex-shrink: 0; color: var(--accent-2); text-decoration: none; font-size: 13px; font-weight: 600;
  white-space: nowrap; padding: 4px 2px;
}
.genre-viewall:hover { text-decoration: underline; }

/* home franchise tiles (~2x a poster card, landscape) */
.row-scroll.fr { grid-auto-columns: 300px; }
.fr-tile { display: block; text-decoration: none; color: var(--text); }
.fr-tile-img {
  aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--line);
  background-size: cover; background-position: center; transition: transform .18s ease, box-shadow .18s ease;
}
.fr-tile:hover .fr-tile-img { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .55); border-color: var(--accent); }
.fr-tile-cap { margin-top: 8px; }
.fr-tile-name { font-family: var(--display); font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-tile-sub { font-size: 12px; color: var(--muted); }

/* franchise / top-rated film cards (owned vs missing) */
.fr-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.fr-preset { padding: 8px 14px; font-size: 13px; }
.fr-summary { font-family: var(--display); font-size: 16px; margin-bottom: 14px; }
.fr-card .poster { position: relative; }
.fr-card.missing .poster { opacity: .5; filter: grayscale(.4); }
.fr-card.missing { cursor: default; }
.fr-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 5px; color: #fff;
}
.fr-badge.in { background: var(--primary); }
.fr-badge.miss { background: var(--danger); }
.fr-order {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  font-family: var(--display); font-weight: 800; font-size: 13px;
  background: rgba(0, 0, 0, .7); color: #fff; padding: 2px 7px; border-radius: 5px;
}

/* add-to-list (+) button on every poster */
.add-btn {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  width: 30px; height: 30px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; font-size: 20px; line-height: 1; font-weight: 600;
  background: rgba(0, 0, 0, .6); color: #fff; border: 1.5px solid rgba(255, 255, 255, .7);
  opacity: 0; transform: scale(.85); cursor: pointer;
  transition: opacity .15s, transform .12s, background .15s, border-color .15s;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.card:hover .add-btn, .cw-card:hover .add-btn { opacity: 1; transform: scale(1); }
.add-btn:hover { background: var(--primary); border-color: var(--primary); }
@media (hover: none) { .add-btn { opacity: 1; transform: scale(1); } }

/* add-to-list picker popover */
.list-picker {
  position: fixed; z-index: 130; width: 220px; max-height: 320px; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .65);
}
.lp-head { font-size: 12px; color: var(--muted); padding: 6px 10px 8px; }
.lp-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  padding: 9px 10px; border-radius: 8px; font-size: 13.5px; cursor: pointer;
}
.lp-item:hover { background: var(--panel-strong); }
.lp-item .lp-check { color: var(--accent-2); font-weight: 700; }
.lp-new { color: var(--accent-2); border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 8px 8px; }

/* list page */
.pl-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.pl-form .small-input { flex: 1; min-width: 160px; }
.pl-note { color: var(--muted); font-style: italic; margin: -6px 0 12px; }
.card.wish-miss { cursor: default; }
.wish-miss .add-btn { opacity: 1; transform: none; }
.add-btn.requested { background: var(--primary); border-color: var(--primary); cursor: default; }
.wish-thumb { width: 38px; height: 57px; border-radius: 6px; object-fit: cover; background: var(--panel-strong); flex-shrink: 0; display: inline-block; }
.section h2 .spacer { flex: 1; }
.section h2 .link-btn { font-size: 13px; font-weight: 500; font-family: var(--body); }

/* ===== clean custom select (season picker, wishlist sort, …) ===== */
.hs-select-wrap { position: relative; display: inline-flex; align-items: center; }
.hs-select {
  appearance: none; -webkit-appearance: none;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--text);
  padding: 10px 40px 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  font-family: var(--body); cursor: pointer; outline: none; min-width: 210px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.hs-select.sm { min-width: 180px; padding: 9px 38px 9px 14px; font-size: 13.5px; font-weight: 500; }
.hs-select:hover { background: rgba(255, 255, 255, .07); border-color: #444; }
.hs-select:focus-visible { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(77, 134, 255, .18); }
.hs-select option { background: var(--bg-2); color: var(--text); }
.hs-select-chev {
  position: absolute; right: 13px; width: 18px; height: 18px;
  pointer-events: none; fill: var(--muted); transition: fill .18s ease;
}
.hs-select-wrap:hover .hs-select-chev, .hs-select:focus-visible + .hs-select-chev { fill: var(--accent-2); }

/* season picker placement on the detail page */
.season-pick { display: flex; align-items: center; gap: 12px; margin: 28px 0 16px; }

/* ===== filter / sort bar (wishlist) ===== */
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; }
.filter-bar .filter-spacer { flex: 1; min-width: 8px; }
.filter-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.seg {
  display: inline-flex; background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.seg button {
  background: none; border: none; color: var(--muted);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  transition: color .15s, background .15s;
}
.seg button:hover { color: var(--text); }
.seg button.active { color: var(--white); background: var(--grad); box-shadow: 0 2px 10px rgba(47, 99, 214, .4); }

/* ===== franchise image tabs (home) ===== */
.fr-tabs {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.fr-tabs::-webkit-scrollbar { display: none; }
.fr-tab {
  flex: 0 0 auto; width: 210px; position: relative; padding: 0; cursor: pointer;
  background: none; border: 2px solid transparent; border-radius: 14px;
  text-align: left; transition: transform .15s ease, border-color .15s ease;
}
.fr-tab-img {
  aspect-ratio: 16 / 9; border-radius: 11px; border: 1px solid var(--line);
  background-size: cover; background-position: center;
}
.fr-tab-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px;
  font-family: var(--display); font-weight: 600; font-size: 13.5px; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.4) 55%, transparent);
  border-radius: 0 0 11px 11px;
}
.fr-tab:hover { transform: translateY(-3px); }
.fr-tab:hover .fr-tab-img { border-color: var(--accent); }
.fr-tab.active { border-color: var(--accent-2); }
.fr-tab.active .fr-tab-img { box-shadow: 0 8px 22px rgba(0,0,0,.5); }
@media (max-width: 860px) { .fr-tab { width: 160px; } }

/* ===== password field with show/hide eye ===== */
.pw-field { position: relative; display: flex; align-items: center; width: 100%; }
.pw-field > input { width: 100%; padding-right: 44px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 7px; display: grid; place-items: center;
  color: var(--muted); cursor: pointer; border-radius: 8px;
}
.pw-eye:hover { color: var(--text); }
.pw-eye svg { width: 19px; height: 19px; fill: currentColor; display: block; }

/* ===== hover trailer (TV cards) ===== */
.poster .hover-trailer { border: 0; z-index: 1; pointer-events: none; }

/* ===== trailer modal (YouTube) ===== */
.trailer-modal {
  position: fixed; inset: 0; z-index: 140; display: grid; place-items: center;
  background: rgba(5, 6, 10, .86); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s ease;
}
.trailer-modal.show { opacity: 1; }
.tm-inner { position: relative; width: min(92vw, 1100px); }
.tm-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.tm-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.tm-close {
  position: absolute; top: -46px; right: 0; width: 38px; height: 38px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line); color: var(--white);
  border-radius: 50%; font-size: 18px; cursor: pointer; transition: background .15s, transform .12s;
}
.tm-close:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.08); }
@media (max-width: 860px) { .tm-close { top: 0; right: 0; transform: none; } .tm-inner { width: 96vw; } }

/* ===== hover video previews on every poster ===== */
.poster .hover-preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  background: #000; opacity: 0; transition: opacity .35s ease; pointer-events: none; z-index: 1;
}
.card.previewing .poster .hover-preview { opacity: 1; }

/* ===== player: captions menu ===== */
.cc-wrap { position: relative; }
#ccBtn.on { color: var(--accent-2); }
.cc-menu {
  position: absolute; bottom: 54px; right: 0;
  background: rgba(15,17,26,.96); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; min-width: 180px; max-height: 320px; overflow-y: auto;
  display: none; backdrop-filter: blur(12px);
}
.cc-menu.open { display: block; }
.cc-menu button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--text); padding: 8px 14px; border-radius: 8px; font-size: 13.5px; white-space: nowrap;
}
.cc-menu button:hover { background: var(--panel-strong); }
.cc-menu button.active { color: var(--accent-2); font-weight: 600; }
.cc-menu .set-head {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  font-weight: 700; padding: 10px 14px 5px;
}
.cc-menu .set-head:first-child { padding-top: 4px; }
.cc-menu .set-empty { padding: 7px 14px 9px; font-size: 12.5px; color: var(--muted); font-style: italic; }

/* readable subtitle cues */
.player-wrap video::cue {
  background: rgba(0, 0, 0, .72); color: #fff;
  font-family: var(--body); line-height: 1.35;
}

/* ===== player: most-watched heatmap on the scrubber ===== */
.seek .heat { position: absolute; inset: 0; pointer-events: none; }
.seek .heat i {
  position: absolute; bottom: 0; top: 0; width: 4px; transform: translateX(-50%);
  background: var(--accent-2); border-radius: 1px;
}
.peak-marker {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 4px; height: 16px; padding: 0; border: none; border-radius: 2px;
  background: #ffd24a; box-shadow: 0 0 8px rgba(255,210,74,.9); cursor: pointer; z-index: 2;
}
.peak-marker .pm-label {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: rgba(15,17,26,.95); border: 1px solid var(--line); border-radius: 8px;
  padding: 3px 10px; font-size: 12px; color: #ffd24a; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.peak-marker:hover .pm-label { opacity: 1; }
