/* ═══════════════════════════════════════════════════════════════════
   v1.4.5 — 50 UI parandust + 10 valitavat värvi-paletti
   ═══════════════════════════════════════════════════════════════════ */

/* ─── 10 PRESET-TEEMAT ─────────────────────────────────────────────
   Aktiivne palett rakendatakse <body data-palette="xxx">-i kaudu.
   Igal teemal 4 põhi-värvi (rose, wine, cream, ink).
*/

/* Default (rose-wine) — sama mis baas */
body[data-palette="default"],
body:not([data-palette]) {
  --rose: #E89BA0; --rose-petal: #FBE7E5;
  --wine: #8B3A47; --wine-dark: #5E2530;
  --cream: #FBF8F5; --ink: #1F1A18;
  --bg: #FBF8F5; --text: #1F1A18; --muted: #8B7A72;
  --surface: #FFFFFF; --border: #E8DDD6;
}
body[data-palette="forest"] {
  --rose: #9BC7A4; --rose-petal: #DFEEDB;
  --wine: #2D5A3D; --wine-dark: #1A3D24;
  --cream: #F4F7F2; --ink: #1A2E1F;
  --bg: #F4F7F2; --text: #1A2E1F; --muted: #5A7060;
  --surface: #FFFFFF; --border: #D9E4D4;
}
body[data-palette="ocean"] {
  --rose: #7DB3D6; --rose-petal: #D6E8F2;
  --wine: #1E5B7F; --wine-dark: #0E2A3D;
  --cream: #F2F7FA; --ink: #0E2A3D;
  --bg: #F2F7FA; --text: #0E2A3D; --muted: #5A7889;
  --surface: #FFFFFF; --border: #D4E2EB;
}
body[data-palette="sunset"] {
  --rose: #F4A261; --rose-petal: #FBE0C7;
  --wine: #C44536; --wine-dark: #7A2517;
  --cream: #FFF4E6; --ink: #3D1F12;
  --bg: #FFF4E6; --text: #3D1F12; --muted: #8A6B4F;
  --surface: #FFFFFF; --border: #F0DEC4;
}
body[data-palette="lavender"] {
  --rose: #C7A4D6; --rose-petal: #EADBF2;
  --wine: #6A3B8E; --wine-dark: #3D1F5C;
  --cream: #F8F4FB; --ink: #2D1A3D;
  --bg: #F8F4FB; --text: #2D1A3D; --muted: #7A6489;
  --surface: #FFFFFF; --border: #E2D4EB;
}
body[data-palette="midnight"] {
  --rose: #7C8DA0; --rose-petal: #2D3640;
  --wine: #5E9EE0; --wine-dark: #8FB8E8;
  --cream: #1A1F26; --ink: #ECEFF4;
  --bg: #1A1F26; --text: #ECEFF4; --muted: #9AA5B5;
  --surface: #242B33; --border: #3A4250;
}
body[data-palette="midnight"] a { color: #8FB8E8; }
body[data-palette="cream"] {
  --rose: #D4B896; --rose-petal: #F0E4D2;
  --wine: #8B6F47; --wine-dark: #5C4A2E;
  --cream: #FFF8F0; --ink: #3D2F1F;
  --bg: #FFF8F0; --text: #3D2F1F; --muted: #8A7A65;
  --surface: #FFFFFF; --border: #ECDFC9;
}
body[data-palette="mocha"] {
  --rose: #A48372; --rose-petal: #DBC6BA;
  --wine: #5C3D2E; --wine-dark: #3D241A;
  --cream: #F5EDE5; --ink: #2D1F18;
  --bg: #F5EDE5; --text: #2D1F18; --muted: #7A6358;
  --surface: #FFFFFF; --border: #E5D6C9;
}
body[data-palette="emerald"] {
  --rose: #7AC4A0; --rose-petal: #C8EBD8;
  --wine: #1E6B4C; --wine-dark: #0E3D2A;
  --cream: #EFFAF4; --ink: #0E2E20;
  --bg: #EFFAF4; --text: #0E2E20; --muted: #4F7060;
  --surface: #FFFFFF; --border: #CFE5DA;
}
body[data-palette="blush"] {
  --rose: #F2B5C0; --rose-petal: #FBE2E7;
  --wine: #B5677A; --wine-dark: #7A3B4C;
  --cream: #FEF5F7; --ink: #3D1F26;
  --bg: #FEF5F7; --text: #3D1F26; --muted: #8A6470;
  --surface: #FFFFFF; --border: #EFD5DD;
}

/* Üleminek pehmema värvivahetusega */
body { transition: background-color 0.3s ease, color 0.3s ease; }

/* ═══════════════════════════════════════════════════════════════════
   #1 AJA-TUNDLIK TERVITUS — riba konto avalehel
   ═══════════════════════════════════════════════════════════════════ */
.an-greeting {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: linear-gradient(135deg, var(--rose-petal), var(--cream));
  border-radius: 12px; margin-bottom: 20px;
}
.an-greeting .ico { font-size: 1.8rem; }
.an-greeting .text { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--wine-dark); }

/* ═══════════════════════════════════════════════════════════════════
   #2 "JÄTKA KUULAMIST" rida
   ═══════════════════════════════════════════════════════════════════ */
.an-continue-row {
  display: flex; gap: 12px; overflow-x: auto; padding: 6px 0 12px;
  scroll-snap-type: x mandatory;
}
.an-continue-row .ep-tile { flex: 0 0 280px; scroll-snap-align: start; }

/* ═══════════════════════════════════════════════════════════════════
   #3 KIIRSTART-KAARDID konto avalehel
   ═══════════════════════════════════════════════════════════════════ */
.an-quickstart-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 22px;
}
.an-qs-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 12px; text-align: center;
  text-decoration: none; color: var(--text);
  transition: transform 0.15s, border-color 0.15s;
}
.an-qs-card:hover {
  transform: translateY(-2px); border-color: var(--rose);
}
.an-qs-card .ico { font-size: 1.8rem; }
.an-qs-card .label { font-size: 0.85rem; margin-top: 6px; }
.an-qs-card .count {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem;
  color: var(--wine); font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   #4 STICKY AUDIO MÄNGIJA lehe allservas
   ═══════════════════════════════════════════════════════════════════ */
.an-sticky-player {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 10px 18px; z-index: 90;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  transform: translateY(100%); transition: transform 0.3s;
}
.an-sticky-player.active { transform: translateY(0); }
.an-sticky-player .sp-title { flex: 1; font-weight: 500; color: var(--text); }
.an-sticky-player .sp-controls { display: flex; gap: 8px; }
.an-sticky-player button {
  background: var(--wine); color: white; border: none;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════
   #5 MINI-MÄNGIJA SWIPE-UP paneel mobiilil
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
  .an-sticky-player {
    cursor: grab;
  }
  .an-sticky-player.expanded {
    height: 80vh; flex-direction: column; padding: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   #6 SPOTLIGHT SEARCH (Cmd+K) — modal
   ═══════════════════════════════════════════════════════════════════ */
.an-spotlight {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: none; align-items: flex-start; justify-content: center;
  z-index: 200; padding-top: 12vh;
}
.an-spotlight.active { display: flex; }
.an-spotlight-box {
  background: var(--surface); width: 600px; max-width: 90vw;
  border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}
.an-spotlight-input {
  width: 100%; padding: 18px 22px; border: none;
  font-size: 1.1rem; background: transparent; color: var(--text);
}
.an-spotlight-input:focus { outline: none; }
.an-spotlight-results { max-height: 50vh; overflow-y: auto; }
.an-spotlight-result {
  padding: 10px 22px; cursor: pointer; border-top: 1px solid var(--border);
  color: var(--text); text-decoration: none; display: block;
}
.an-spotlight-result:hover, .an-spotlight-result.active { background: var(--rose-petal); }

/* ═══════════════════════════════════════════════════════════════════
   #7 SIDEBAR PIN-IMINE
   ═══════════════════════════════════════════════════════════════════ */
.acc-tab .pin-toggle {
  margin-left: auto; opacity: 0; transition: opacity 0.15s;
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); padding: 2px 4px;
}
.acc-tab:hover .pin-toggle { opacity: 0.6; }
.acc-tab .pin-toggle:hover, .acc-tab .pin-toggle.pinned { opacity: 1; color: var(--wine); }

/* ═══════════════════════════════════════════════════════════════════
   #8 RECENT SEARCHES dropdown
   ═══════════════════════════════════════════════════════════════════ */
.an-recent-searches {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 240px; padding: 6px 0; display: none;
}
.an-recent-searches.open { display: block; }
.an-recent-searches a {
  display: block; padding: 8px 14px; color: var(--text);
  text-decoration: none; font-size: 0.88rem;
}
.an-recent-searches a:hover { background: var(--rose-petal); }

/* ═══════════════════════════════════════════════════════════════════
   #9 DnD RINNAMÄRK sidebar'is
   ═══════════════════════════════════════════════════════════════════ */
.an-dnd-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.7rem; padding: 2px 8px;
  background: #FEF3C7; color: #B45309; border-radius: 100px;
}

/* ═══════════════════════════════════════════════════════════════════
   #10 PERSONAALSE STATISTIKA ANIMEERITUD LOENDURID
   ═══════════════════════════════════════════════════════════════════ */
.an-counter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem; color: var(--wine-dark); font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════════
   #11 CIRCULAR PROGRESS RING episoodi-kaardil
   ═══════════════════════════════════════════════════════════════════ */
.an-ep-ring {
  width: 36px; height: 36px;
  background:
    radial-gradient(closest-side, var(--surface) 70%, transparent 71%),
    conic-gradient(var(--wine) calc(var(--p, 0) * 1%), var(--border) 0);
  border-radius: 50%; position: relative; display: inline-block;
}
.an-ep-ring::after {
  content: attr(data-pct) "%"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 600; color: var(--wine);
}

/* ═══════════════════════════════════════════════════════════════════
   #12 HOVER-EELVAADE märkmetest episoodi ajatempel'il
   ═══════════════════════════════════════════════════════════════════ */
.an-ts-marker { position: relative; cursor: pointer; }
.an-ts-marker .preview {
  display: none; position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%); margin-bottom: 8px;
  background: var(--ink); color: var(--cream); padding: 8px 12px;
  border-radius: 6px; font-size: 0.8rem; white-space: nowrap;
  max-width: 280px; white-space: normal;
}
.an-ts-marker:hover .preview { display: block; }

/* ═══════════════════════════════════════════════════════════════════
   #13 KLÕPSA-HÜPPA AJASKAALA chapter'ite punktidega
   ═══════════════════════════════════════════════════════════════════ */
.an-timeline {
  position: relative; height: 32px; background: var(--border);
  border-radius: 100px; cursor: pointer; overflow: hidden;
}
.an-timeline .fill { background: var(--wine); height: 100%; }
.an-timeline .chapter-dot {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; background: var(--cream); border-radius: 50%;
  border: 2px solid var(--wine);
}

/* ═══════════════════════════════════════════════════════════════════
   #14 KIIRKLAHVID — visual indicator
   ═══════════════════════════════════════════════════════════════════ */
kbd {
  background: var(--surface); border: 1px solid var(--border);
  border-bottom-width: 2px; border-radius: 4px;
  padding: 1px 6px; font-family: monospace; font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════════
   #15 KLAVIATUURI OTSETEED MODAL (vajuta ?)
   ═══════════════════════════════════════════════════════════════════ */
.an-shortcuts-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center; z-index: 300;
}
.an-shortcuts-modal.active { display: flex; }
.an-shortcuts-box {
  background: var(--surface); padding: 30px; border-radius: 14px;
  max-width: 480px; width: 90%;
}
.an-shortcuts-box dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0; }
.an-shortcuts-box dt { color: var(--text); }
.an-shortcuts-box dd { margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   #16 "MARK AS LISTENED" üks-klõpsu nupp
   ═══════════════════════════════════════════════════════════════════ */
.an-mark-listened {
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); padding: 4px 10px; border-radius: 100px;
  font-size: 0.8rem; cursor: pointer; transition: 0.15s;
}
.an-mark-listened.done {
  background: #4F9D69; border-color: #4F9D69; color: white;
}
.an-mark-listened:hover { border-color: var(--wine); color: var(--wine); }

/* ═══════════════════════════════════════════════════════════════════
   #17 LEMMIK-REŽIIM topeltklõps + animeeritud südamed
   ═══════════════════════════════════════════════════════════════════ */
@keyframes an-heart-fly {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to { transform: translate(var(--x, 0), -120px) scale(0.4); opacity: 0; }
}
.an-heart-particle {
  position: fixed; font-size: 1.6rem; pointer-events: none;
  animation: an-heart-fly 1.2s ease-out forwards;
}

/* ═══════════════════════════════════════════════════════════════════
   #18 VÄRVIKOODIGA LEMMIKUD (5 värvi)
   ═══════════════════════════════════════════════════════════════════ */
.an-favorite-color {
  display: inline-block; width: 14px; height: 14px;
  border-radius: 3px; margin-right: 4px; cursor: pointer;
  border: 1px solid var(--border);
}
.an-favorite-color[data-c="red"] { background: #E89BA0; }
.an-favorite-color[data-c="orange"] { background: #F4A261; }
.an-favorite-color[data-c="yellow"] { background: #F4D35E; }
.an-favorite-color[data-c="green"] { background: #9BC7A4; }
.an-favorite-color[data-c="blue"] { background: #7DB3D6; }

/* ═══════════════════════════════════════════════════════════════════
   #19 AUDIO MÄNGIJA EQ + visualizer
   ═══════════════════════════════════════════════════════════════════ */
.an-eq {
  display: inline-flex; gap: 2px; align-items: flex-end; height: 18px;
}
.an-eq span {
  display: inline-block; width: 3px; background: var(--wine);
  animation: an-eq 1s ease infinite;
}
.an-eq span:nth-child(2) { animation-delay: 0.2s; }
.an-eq span:nth-child(3) { animation-delay: 0.4s; }
.an-eq span:nth-child(4) { animation-delay: 0.6s; }
@keyframes an-eq {
  0%, 100% { height: 30%; } 50% { height: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════
   #20 SKIP-SILENCE + SKIP-INTRO NUPUD
   ═══════════════════════════════════════════════════════════════════ */
.an-skip-btn {
  background: var(--rose-petal); color: var(--wine-dark);
  border: none; padding: 6px 12px; border-radius: 100px;
  font-size: 0.78rem; cursor: pointer;
}
.an-skip-btn:hover { background: var(--rose); color: white; }

/* ═══════════════════════════════════════════════════════════════════
   #21 INLINE MARKDOWN TOOLBAR
   ═══════════════════════════════════════════════════════════════════ */
.an-md-toolbar {
  display: flex; gap: 4px; padding: 6px;
  background: var(--cream); border: 1px solid var(--border);
  border-bottom: none; border-radius: 6px 6px 0 0;
}
.an-md-toolbar button {
  background: transparent; border: none; padding: 4px 8px;
  cursor: pointer; border-radius: 4px; color: var(--text);
}
.an-md-toolbar button:hover { background: var(--rose-petal); }

/* ═══════════════════════════════════════════════════════════════════
   #22 MARKDOWN-EELVAADE split view
   ═══════════════════════════════════════════════════════════════════ */
.an-md-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.an-md-split textarea, .an-md-split .preview {
  min-height: 200px; padding: 10px;
  border: 1px solid var(--border); border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   #23 @MENTION AUTOCOMPLETE
   ═══════════════════════════════════════════════════════════════════ */
.an-mention-list {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 4px 0; min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 50;
}
.an-mention-list .item {
  padding: 6px 12px; cursor: pointer;
}
.an-mention-list .item:hover, .an-mention-list .item.active { background: var(--rose-petal); }

/* ═══════════════════════════════════════════════════════════════════
   #24 DRAG-AND-DROP PLAYLIST järjekord
   ═══════════════════════════════════════════════════════════════════ */
.an-playlist-item {
  cursor: grab; transition: 0.15s;
}
.an-playlist-item.dragging { opacity: 0.5; cursor: grabbing; }
.an-playlist-item.drag-over { border-top: 2px solid var(--wine); }

/* ═══════════════════════════════════════════════════════════════════
   #25 BULK-TEGEVUSED — selection bar
   ═══════════════════════════════════════════════════════════════════ */
.an-bulk-bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--ink); color: var(--cream);
  padding: 10px 16px; border-radius: 8px;
  display: none; align-items: center; gap: 14px;
}
.an-bulk-bar.active { display: flex; }
.an-bulk-bar button {
  background: transparent; border: 1px solid var(--cream);
  color: var(--cream); padding: 4px 10px; border-radius: 6px;
  cursor: pointer; font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════════
   #26 INLINE-REDIGEERIMINE
   ═══════════════════════════════════════════════════════════════════ */
.an-inline-edit { cursor: text; padding: 2px 4px; border-radius: 3px; }
.an-inline-edit:hover { background: var(--rose-petal); }
.an-inline-edit.editing { background: var(--surface); border: 1px solid var(--wine); padding: 4px 8px; }

/* ═══════════════════════════════════════════════════════════════════
   #27 AUTO-SAVE INDIKAATOR
   ═══════════════════════════════════════════════════════════════════ */
.an-autosave {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 0.78rem;
}
.an-autosave .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
}
.an-autosave.saved .dot { background: #4F9D69; animation: pulse 1.5s; }
.an-autosave.saving .dot { background: #F4A261; animation: pulse 0.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════════
   #28 UNDO TOAST
   ═══════════════════════════════════════════════════════════════════ */
.an-undo-toast {
  background: var(--ink); color: var(--cream);
  padding: 12px 20px; border-radius: 8px;
  display: flex; gap: 14px; align-items: center;
}
.an-undo-toast button {
  background: transparent; color: var(--rose); border: none;
  cursor: pointer; font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   #29 MÄRKMETE VAATE TOGGLE
   ═══════════════════════════════════════════════════════════════════ */
.an-view-toggle {
  display: inline-flex; background: var(--cream); border: 1px solid var(--border);
  border-radius: 100px; padding: 3px;
}
.an-view-toggle button {
  background: transparent; border: none; padding: 4px 12px;
  cursor: pointer; border-radius: 100px; color: var(--muted);
  font-size: 0.82rem;
}
.an-view-toggle button.active { background: var(--wine); color: white; }

/* ═══════════════════════════════════════════════════════════════════
   #30 FILTRI SALVESTAMINE (saved preset chips)
   ═══════════════════════════════════════════════════════════════════ */
.an-filter-chip {
  display: inline-flex; gap: 6px; align-items: center;
  background: var(--rose-petal); color: var(--wine-dark);
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.82rem; margin: 2px;
}
.an-filter-chip .x { cursor: pointer; opacity: 0.6; }
.an-filter-chip .x:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════
   #31 TUMEDA REŽIIMI lülitumine — kaetud paletiga (midnight)
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  body:not([data-palette]) {
    /* Auto-dark, kui user pole valinud */
    --bg: #1A1F26; --text: #ECEFF4; --surface: #242B33;
    --border: #3A4250; --cream: #1A1F26; --ink: #ECEFF4;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   #32 SKELETON LOADERS
   ═══════════════════════════════════════════════════════════════════ */
.an-skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--cream) 50%, var(--border) 75%);
  background-size: 200% 100%; animation: skel 1.4s infinite;
  border-radius: 4px;
}
@keyframes skel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.an-skeleton-text { height: 1em; margin: 4px 0; }
.an-skeleton-tile { height: 70px; margin-bottom: 10px; }

/* ═══════════════════════════════════════════════════════════════════
   #33 CONFETTI saavutuse avamisel — JS triggib
   ═══════════════════════════════════════════════════════════════════ */
.an-confetti-particle {
  position: fixed; width: 8px; height: 8px;
  pointer-events: none; z-index: 1000;
  animation: an-confetti-fall 1.6s ease-out forwards;
}
@keyframes an-confetti-fall {
  to { transform: translate(var(--dx, 0), 100vh) rotate(720deg); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   #34 TOAST (kasutab olemasolevat toast.js)
   ═══════════════════════════════════════════════════════════════════ */
/* toast.js teeb visuaali */

/* ═══════════════════════════════════════════════════════════════════
   #35 EMPTY STATE illustratsioonidega
   ═══════════════════════════════════════════════════════════════════ */
.an-empty-illust {
  text-align: center; padding: 50px 20px; color: var(--muted);
}
.an-empty-illust .illustration {
  font-size: 4rem; margin-bottom: 16px; opacity: 0.5;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ═══════════════════════════════════════════════════════════════════
   #36 HOVER-CARDS kasutajanime peal
   ═══════════════════════════════════════════════════════════════════ */
.an-user-hover { position: relative; cursor: pointer; }
.an-user-hover .card {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px; min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 50;
}
.an-user-hover:hover .card { display: block; }

/* ═══════════════════════════════════════════════════════════════════
   #37 PROFIILI LEHE LIVE-EELVAADE
   ═══════════════════════════════════════════════════════════════════ */
.an-profile-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 700px) { .an-profile-split { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════════
   #38 PATRONI-STAATUSE RINNAMÄRK
   ═══════════════════════════════════════════════════════════════════ */
.an-patron-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #FFD700, #D4AF37);
  color: #5C3D00; padding: 2px 10px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   #39 ONLINE/LAST-SEEN INDIKAATOR
   ═══════════════════════════════════════════════════════════════════ */
.an-online-dot {
  display: inline-block; width: 8px; height: 8px;
  background: #4F9D69; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--surface);
}
.an-offline-dot { background: var(--muted); }

/* ═══════════════════════════════════════════════════════════════════
   #40 SÕBRALIK 404 konto-vaadetes
   ═══════════════════════════════════════════════════════════════════ */
.an-404-friendly {
  text-align: center; padding: 60px 20px;
}
.an-404-friendly h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; color: var(--wine-dark);
}

/* ═══════════════════════════════════════════════════════════════════
   #41 AVATARI UPLOADER + crop
   ═══════════════════════════════════════════════════════════════════ */
.an-avatar-uploader {
  position: relative; width: 140px; height: 140px;
  border-radius: 50%; overflow: hidden; cursor: pointer;
  border: 3px dashed var(--border);
}
.an-avatar-uploader:hover { border-color: var(--wine); }
.an-avatar-uploader img { width: 100%; height: 100%; object-fit: cover; }
.an-avatar-uploader .overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4);
  color: white; display: none; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.an-avatar-uploader:hover .overlay { display: flex; }

/* ═══════════════════════════════════════════════════════════════════
   #42 INLINE-VALIDATSIOON + parooli tugevus
   ═══════════════════════════════════════════════════════════════════ */
.an-validation { font-size: 0.8rem; margin-top: 4px; }
.an-validation.ok { color: #4F9D69; }
.an-validation.err { color: #B91C1C; }
.an-pw-strength {
  display: flex; gap: 3px; height: 4px; margin-top: 6px;
}
.an-pw-strength .seg { flex: 1; background: var(--border); border-radius: 2px; }
.an-pw-strength.s1 .seg:nth-child(-n+1) { background: #B91C1C; }
.an-pw-strength.s2 .seg:nth-child(-n+2) { background: #F59E0B; }
.an-pw-strength.s3 .seg:nth-child(-n+3) { background: #84CC16; }
.an-pw-strength.s4 .seg { background: #4F9D69; }

/* ═══════════════════════════════════════════════════════════════════
   #43 FLOATING LABELS
   ═══════════════════════════════════════════════════════════════════ */
.an-floating { position: relative; margin: 14px 0; }
.an-floating input {
  width: 100%; padding: 18px 12px 6px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text);
}
.an-floating label {
  position: absolute; left: 12px; top: 14px;
  color: var(--muted); pointer-events: none;
  transition: 0.2s; background: transparent;
}
.an-floating input:focus + label,
.an-floating input:not(:placeholder-shown) + label {
  top: 4px; font-size: 0.72rem; color: var(--wine);
}

/* ═══════════════════════════════════════════════════════════════════
   #44 PROFIILI BIO rich text — kasutab TinyMCE või tinymde
   ═══════════════════════════════════════════════════════════════════ */
.an-bio-editor { min-height: 160px; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }

/* ═══════════════════════════════════════════════════════════════════
   #45 LINKIDE OG-EELVAADE kommentaarides
   ═══════════════════════════════════════════════════════════════════ */
.an-link-preview {
  display: flex; gap: 12px; background: var(--cream);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; margin: 8px 0; text-decoration: none; color: var(--text);
}
.an-link-preview img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════════════
   #46 KONFLIKTI-LAHENDUSE UI
   ═══════════════════════════════════════════════════════════════════ */
.an-conflict {
  background: #FEF3C7; border: 1px solid #F59E0B;
  padding: 14px; border-radius: 8px; margin: 12px 0;
}
.an-conflict button {
  background: var(--wine); color: white; border: none;
  padding: 6px 14px; border-radius: 100px; cursor: pointer; margin-right: 6px;
}

/* ═══════════════════════════════════════════════════════════════════
   #47 MULTI-STEP WIZARDID
   ═══════════════════════════════════════════════════════════════════ */
.an-wizard-steps {
  display: flex; gap: 0; margin-bottom: 20px;
}
.an-wizard-steps .step {
  flex: 1; height: 6px; background: var(--border);
  position: relative;
}
.an-wizard-steps .step.done { background: var(--wine); }
.an-wizard-steps .step.active { background: var(--rose); }
.an-wizard-steps .step + .step { margin-left: 4px; }

/* ═══════════════════════════════════════════════════════════════════
   #48 HOVER-TOOLTIP IKOONIDEL
   ═══════════════════════════════════════════════════════════════════ */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute;
  bottom: 100%; left: 50%; transform: translateX(-50%);
  margin-bottom: 6px; background: var(--ink); color: var(--cream);
  padding: 4px 10px; border-radius: 4px; font-size: 0.75rem;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════
   #49 MOBILE BOTTOM-SHEET seadete jaoks
   ═══════════════════════════════════════════════════════════════════ */
.an-bottom-sheet {
  position: fixed; bottom: -100%; left: 0; right: 0;
  background: var(--surface); border-radius: 16px 16px 0 0;
  padding: 20px; box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transition: bottom 0.3s; z-index: 100;
  max-height: 80vh; overflow-y: auto;
}
.an-bottom-sheet.open { bottom: 0; }
.an-bottom-sheet .handle {
  width: 40px; height: 4px; background: var(--border);
  border-radius: 100px; margin: 0 auto 14px;
}

/* ═══════════════════════════════════════════════════════════════════
   #50 ONBOARDING TOUR (3-4 sammu, popover)
   ═══════════════════════════════════════════════════════════════════ */
.an-onboarding-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999;
  display: none;
}
.an-onboarding-overlay.active { display: block; }
.an-onboarding-popover {
  background: var(--surface); padding: 20px;
  border-radius: 14px; max-width: 360px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  position: fixed; z-index: 1000;
}
.an-onboarding-popover h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--wine-dark); margin: 0 0 8px;
}
.an-onboarding-popover .actions {
  display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px;
}
.an-onboarding-popover button {
  background: var(--wine); color: white; border: none;
  padding: 8px 16px; border-radius: 100px; cursor: pointer;
}
.an-onboarding-popover .skip {
  background: transparent; color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════════
   TEEMAVALIKU NUPP top-paneelis
   ═══════════════════════════════════════════════════════════════════ */
.an-palette-trigger {
  background: transparent; border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 100px;
  cursor: pointer; color: var(--text);
  font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px;
}
.an-palette-trigger:hover { border-color: var(--wine); }

/* ═══════════════════════════════════════════════════════════════════
   AVALEHE LAIENDID — 10 UI parandust + tugi 10 funktsionaalsusele
   Inspiratsioon: Spotify, Apple Podcasts, Overcast, NPR, TED, Pocket Casts
   ═══════════════════════════════════════════════════════════════════ */

/* ─── üldine sektsiooni-stiil ─────────────────────────────────────── */
.hv-trending, .hv-continue, .hv-picks, .hv-guest-spotlight,
.hv-countdown, .hv-stats, .hv-categories, .hv-surprise,
.hv-newsletter, .hv-infinite, .hv-listen-on {
  max-width: 1100px; margin: 30px auto; padding: 0 20px;
}
.hv-trending h2, .hv-continue h2, .hv-picks h2, .hv-categories h2,
.hv-newsletter h2, .hv-infinite h2 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--wine-dark); font-size: 1.8rem;
  margin: 0 0 16px;
}

/* ─── #H10 Multi-platform listen badges ────────────────────────── */
.hv-listen-on {
  background: linear-gradient(135deg, var(--rose-petal), var(--cream));
  padding: 12px 20px; border-radius: 14px;
  margin-top: 20px;
}
.hv-listen-inner {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.hv-listen-label { font-weight: 600; color: var(--wine-dark); margin-right: 4px; }
.hv-listen-badge {
  background: var(--surface); color: var(--text);
  padding: 6px 14px; border-radius: 100px;
  text-decoration: none; font-size: 0.85rem;
  border: 1px solid var(--border); transition: 0.15s;
}
.hv-listen-badge:hover {
  background: var(--wine); color: var(--cream); border-color: var(--wine);
  transform: translateY(-2px);
}

/* ─── #H2 + #UI4 Trending row (Spotify-stiil hover-preview) ───── */
.hv-trending-head {
  display: flex; justify-content: space-between; align-items: baseline;
}
.hv-fire { display: inline-block; animation: hv-fire 2s ease infinite; }
@keyframes hv-fire {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.15) rotate(-5deg); }
}
.hv-live-count {
  background: #DC2626; color: white;
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600;
}
.hv-live-count::before { content: '● '; animation: pulse 1.5s infinite; }
.hv-trending-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.hv-trend-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 12px;
  text-decoration: none; color: var(--text);
  border: 1px solid var(--border); transition: 0.2s;
  position: relative; overflow: hidden;
}
.hv-trend-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-color: var(--rose);
}
.hv-trend-rank {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; color: var(--wine);
  font-weight: 600; line-height: 1; flex-shrink: 0;
  width: 36px; text-align: center;
}
.hv-trend-content { flex: 1; min-width: 0; }
.hv-trend-title { font-weight: 600; color: var(--text); }
.hv-trend-meta { color: var(--muted); font-size: 0.82rem; }
.hv-trend-preview {
  background: var(--wine); color: white; border: none;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  flex-shrink: 0; transition: 0.15s;
}
.hv-trend-preview:hover { transform: scale(1.15); background: var(--wine-dark); }
.hv-trend-preview.playing { background: #DC2626; }

/* ─── #H3 Continue listening rida ─────────────────────────────── */
.hv-continue-row {
  display: flex; gap: 12px; overflow-x: auto;
  padding-bottom: 8px; scroll-snap-type: x mandatory;
}
.hv-continue-card {
  flex: 0 0 280px; scroll-snap-align: start;
  display: flex; gap: 12px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; text-decoration: none; color: var(--text);
  transition: 0.15s;
}
.hv-continue-card:hover { border-color: var(--rose); transform: translateY(-2px); }
.hv-continue-num {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--rose-petal); color: var(--wine-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  flex-shrink: 0;
}
.hv-continue-info { flex: 1; min-width: 0; }
.hv-continue-title { font-weight: 500; }
.hv-continue-progress {
  height: 4px; background: var(--border); border-radius: 100px;
  margin-top: 8px; overflow: hidden;
}
.hv-continue-progress .bar { background: var(--wine); height: 100%; border-radius: 100px; }

/* ─── #H4 + #UI2 Editor's picks koos tilt-animatsiooniga ──────── */
.hv-picks-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.hv-pick-tile {
  background: linear-gradient(135deg, var(--rose-petal), var(--cream));
  border: 2px solid var(--rose);
  padding: 20px; border-radius: 12px;
  text-decoration: none; color: var(--text);
  position: relative; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}
.hv-pick-tile:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.hv-pick-tile.tilt-active {
  /* JS lisab inline-style transform-i */
}
.hv-pick-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--wine); font-weight: 600;
  text-transform: uppercase;
}
.hv-pick-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; color: var(--wine-dark);
  font-weight: 600; margin: 8px 0;
}
.hv-pick-guest { color: var(--text); }
.hv-pick-num {
  position: absolute; right: 16px; top: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; color: var(--rose); opacity: 0.6;
  font-weight: 600;
}

/* ─── #H5 Featured guest spotlight ────────────────────────────── */
.hv-guest-spotlight {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 20px; padding: 24px;
  background: linear-gradient(135deg, var(--cream), var(--rose-petal));
  border-radius: 14px;
  align-items: center;
}
@media (max-width: 600px) {
  .hv-guest-spotlight { grid-template-columns: 1fr; text-align: center; }
}
.hv-spotlight-img {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--wine); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  margin: 0 auto;
}
.hv-spotlight-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--wine); text-transform: uppercase; font-weight: 600;
}
.hv-spotlight-text h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--wine-dark); font-size: 1.6rem;
  margin: 4px 0 6px;
}
.hv-spotlight-text p { color: var(--text); }

/* ─── #H9 Countdown clock ─────────────────────────────────────── */
.hv-countdown {
  background: var(--ink); color: var(--cream);
  padding: 24px; border-radius: 14px; text-align: center;
}
.hv-countdown h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--cream); margin: 6px 0 14px;
}
.hv-cd-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--rose); text-transform: uppercase; font-weight: 600;
}
.hv-cd-clock {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-top: 14px;
}
.hv-cd-cell {
  background: rgba(255,255,255,0.1); padding: 12px 18px;
  border-radius: 8px; min-width: 70px;
  display: flex; flex-direction: column; align-items: center;
}
.hv-cd-cell b {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; color: var(--rose); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hv-cd-cell small { font-size: 0.7rem; color: var(--cream); opacity: 0.7; }

/* ─── #UI8 Animated stats counters ────────────────────────────── */
.hv-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.hv-stat {
  background: var(--surface); border: 1px solid var(--border);
  padding: 20px; border-radius: 12px; text-align: center;
}
.hv-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem; color: var(--wine-dark);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.hv-stat-label { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }

/* ─── #UI5 Category chips Apple Browse-stiil ─────────────────── */
.hv-cat-chips {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.hv-cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 100px;
  text-decoration: none; color: var(--wine-dark);
  font-weight: 500; transition: transform 0.15s;
}
.hv-cat-chip:hover { transform: translateY(-2px); }
.hv-cat-count {
  background: rgba(0,0,0,0.15); padding: 2px 10px;
  border-radius: 100px; font-size: 0.75rem;
}

/* ─── #H7 Surprise me ─────────────────────────────────────────── */
.hv-surprise { text-align: center; }
.hv-surprise-btn {
  background: linear-gradient(135deg, var(--rose), var(--wine));
  color: white; border: none;
  padding: 14px 32px; border-radius: 100px;
  font-size: 1rem; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: 0.2s; font-family: inherit;
}
.hv-surprise-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.hv-surprise-btn:active { transform: translateY(0) scale(0.98); }

/* ─── #H6 Newsletter signup koos topic preferences ────────────── */
.hv-newsletter {
  background: var(--surface); border: 1px solid var(--border);
  padding: 24px; border-radius: 14px;
}
.hv-newsletter p { color: var(--muted); }
.hv-nl-input {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 8px;
  margin-top: 12px; background: var(--bg); color: var(--text);
}
.hv-nl-topics-label {
  margin-top: 14px; font-weight: 600;
  color: var(--text); font-size: 0.88rem;
}
.hv-nl-topics-list {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px;
}
.hv-nl-topic {
  padding: 6px 14px; border-radius: 100px;
  background: var(--rose-petal); color: var(--wine-dark);
  cursor: pointer; transition: 0.15s;
  font-size: 0.85rem;
}
.hv-nl-topic:has(input:checked) {
  background: var(--wine); color: white;
}
.hv-nl-topic input { display: none; }
.hv-nl-submit {
  background: var(--wine); color: white; border: none;
  padding: 12px 28px; border-radius: 100px;
  cursor: pointer; margin-top: 14px; font-weight: 600;
}
.hv-nl-submit:hover { background: var(--wine-dark); }

/* ─── #UI6 Infinite scroll grid ───────────────────────────────── */
.hv-infinite-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.hv-inf-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 16px; border-radius: 12px;
  text-decoration: none; color: var(--text);
  transition: 0.15s; border-left: 4px solid var(--rose);
}
.hv-inf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.hv-inf-num {
  font-family: 'Cormorant Garamond', serif;
  color: var(--wine); font-size: 1.2rem; font-weight: 600;
}
.hv-inf-title {
  font-family: 'Cormorant Garamond', serif;
  color: var(--wine-dark); font-size: 1.2rem;
  margin: 4px 0;
}
.hv-inf-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.hv-inf-meta {
  display: flex; gap: 10px; margin-top: 10px;
  color: var(--muted); font-size: 0.78rem;
}
.hv-inf-meta .badge {
  background: var(--rose-petal); color: var(--wine-dark);
  padding: 1px 8px; border-radius: 100px;
}

/* ─── #UI7 Floating "Listen now" pill (UX FIX: alati nähtav scroll'i järel) ── */
.hv-float-cta {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--wine); color: white;
  padding: 12px 22px; border-radius: 100px;
  text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 50; transform: translateY(100px); opacity: 0;
  transition: 0.3s;
}
.hv-float-cta.visible { transform: translateY(0); opacity: 1; }
.hv-float-cta:hover { background: var(--wine-dark); transform: translateY(-3px); }
@media (max-width: 600px) {
  .hv-float-cta { bottom: 16px; right: 16px; padding: 10px 18px; font-size: 0.88rem; }
}

/* UX FIX: nav-cta-btn (Registreeru) suurem ja nähtavam */
.nav-cta-btn {
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 8px 18px !important;
  background: linear-gradient(135deg, var(--rose), var(--wine)) !important;
  color: white !important;
  border-radius: 100px !important;
  box-shadow: 0 4px 12px rgba(139,58,71,0.2);
  transition: 0.2s;
}
.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139,58,71,0.3);
}

/* UX FIX: Episoodi audio-mängija sticky scrollil (kasutaja näeb seda alati) */
@media (min-width: 800px) {
  .ep-webplayer {
    position: sticky;
    top: 80px;
    z-index: 90;
    background: var(--surface);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 24px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   v1.4.5+ AVALEHE V2 — 25 funktsionaalsust + 25 UI elementi
   Inspiratsioon: Spotify, Apple Podcasts, NPR, Tim Ferriss, Smartless
   ═══════════════════════════════════════════════════════════════════ */

/* Üldised sektsiooni-margins */
.hv2-daily-quote, .hv2-collections, .hv2-topic-chips-wrap, .hv2-live-events,
.hv2-editor-picks, .hv2-listener-globe, .hv2-poll, .hv2-weekly-recap,
.hv2-backstage, .hv2-listener-spotlight, .hv2-sponsors, .hv2-year-filter,
.hv2-subscribe-bar, .hv2-save-platforms, .hv2-share-strip {
  max-width: 1100px; margin: 36px auto; padding: 0 20px;
  content-visibility: auto; contain-intrinsic-size: 1px 400px;
}

.hv2-daily-quote h2, .hv2-collections h2, .hv2-topic-chips-wrap h2,
.hv2-editor-picks h2, .hv2-listener-globe h2, .hv2-year-filter h2,
.hv2-save-platforms h2, .hv2-backstage h2 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--wine-dark); font-size: 1.8rem;
  margin: 0 0 16px;
}

/* ─── F2 Daily quote (U5 — pull-quote suur typograafia) ────────── */
.hv2-daily-quote {
  text-align: center; padding: 40px 20px;
  background: linear-gradient(135deg, var(--rose-petal), var(--cream));
  border-radius: 20px;
  position: relative; overflow: hidden;
}
.hv2-daily-quote::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(232,155,160,0.2), transparent 40%);
  pointer-events: none;
}
.hv2-dq-eyebrow {
  color: var(--wine); font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 14px;
  position: relative;
}
.hv2-quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; color: var(--rose); line-height: 0.5;
  display: inline-block; vertical-align: middle;
}
.hv2-dq-attrib {
  margin-top: 18px; color: var(--muted); font-size: 0.95rem;
  font-style: italic; position: relative;
}

/* ─── F6 Curated collections grid (Spotify-stiil) ──────────────── */
.hv2-collections-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.hv2-coll-card {
  display: block; color: white; text-decoration: none;
  padding: 24px; border-radius: 16px;
  min-height: 180px; transition: transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.hv2-coll-card::after {
  content: ''; position: absolute; bottom: -40px; right: -40px;
  width: 120px; height: 120px; opacity: 0.15;
  background: radial-gradient(circle, white, transparent 70%);
}
.hv2-coll-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}
.hv2-coll-emoji {
  font-size: 3rem; line-height: 1; margin-bottom: 12px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.hv2-coll-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem;
  font-weight: 600; line-height: 1.2;
}
.hv2-coll-meta {
  margin-top: 6px; font-size: 0.85rem; opacity: 0.85;
}
.hv2-coll-skel {
  height: 180px; border-radius: 16px;
}

/* ─── F12+U12 Topic chips horizontal scroll (Netflix-stiil) ────── */
.hv2-topic-chips-row {
  display: flex; gap: 10px;
  overflow-x: auto; padding: 8px 4px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.hv2-topic-chips-row::-webkit-scrollbar { height: 6px; }
.hv2-topic-chips-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }
.hv2-topic-chip {
  flex: 0 0 auto; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 100px;
  color: white; text-decoration: none;
  font-weight: 500; transition: 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.hv2-topic-chip:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.hv2-topic-chip .chip-count {
  background: rgba(255,255,255,0.25);
  padding: 2px 10px; border-radius: 100px; font-size: 0.78rem;
}

/* ─── F25 Editor's picks (NYT-stiil tabid) ──────────────────────── */
.hv2-ep-head {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 12px;
}
.hv2-ep-tabs {
  display: inline-flex; background: var(--cream); border: 1px solid var(--border);
  border-radius: 100px; padding: 4px;
}
.hv2-ep-tab {
  background: transparent; border: none; cursor: pointer;
  padding: 6px 16px; border-radius: 100px;
  color: var(--muted); font-size: 0.85rem; font-weight: 500;
  transition: 0.15s; font-family: inherit;
}
.hv2-ep-tab.active {
  background: var(--wine); color: white;
}
.hv2-ep-tab:hover:not(.active) {
  color: var(--wine-dark); background: var(--rose-petal);
}
.hv2-ep-list { margin-top: 16px; }
.hv2-ep-card {
  display: flex; gap: 14px; align-items: start;
  padding: 16px 18px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; text-decoration: none; color: var(--text);
  transition: 0.15s;
}
.hv2-ep-card:hover {
  border-color: var(--rose); transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.hv2-ep-rank {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--wine));
  color: white; display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.3rem;
  flex-shrink: 0;
}
.hv2-ep-info { flex: 1; min-width: 0; }
.hv2-ep-title { font-weight: 600; color: var(--wine-dark); }
.hv2-ep-meta { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.hv2-ep-note {
  margin-top: 8px; padding: 8px 12px; background: var(--cream);
  border-left: 3px solid var(--rose); border-radius: 0 6px 6px 0;
  font-style: italic; color: var(--text); font-size: 0.88rem;
}

/* ─── F13 Listener globe ────────────────────────────────────────── */
.hv2-listener-globe {
  background: linear-gradient(135deg, var(--ink), #2C1820);
  color: var(--cream); padding: 30px;
  border-radius: 18px; display: flex;
  gap: 24px; align-items: center;
}
@media (max-width: 600px) {
  .hv2-listener-globe { flex-direction: column-reverse; text-align: center; }
}
.hv2-globe-text { flex: 1; }
.hv2-listener-globe h2 { color: var(--cream); margin: 0 0 8px; }
.hv2-listener-globe p { font-size: 1.05rem; }
.hv2-big-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; color: var(--rose);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.hv2-globe-sep { opacity: 0.5; margin: 0 8px; }
.hv2-globe-emoji {
  font-size: 6rem; line-height: 1;
  animation: hv2-globe-rotate 20s linear infinite;
}
@keyframes hv2-globe-rotate {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(20deg); }
}

/* ─── F14 Quick-fire poll ───────────────────────────────────────── */
.hv2-poll {
  background: var(--surface); border: 1px solid var(--border);
  padding: 24px; border-radius: 16px;
}
.hv2-poll-question {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; color: var(--wine-dark);
  margin-bottom: 16px;
}
.hv2-poll-options { display: flex; flex-direction: column; gap: 8px; }
.hv2-poll-opt {
  background: var(--cream); border: 1px solid var(--border);
  padding: 12px 16px; border-radius: 10px;
  cursor: pointer; text-align: left;
  position: relative; overflow: hidden;
  transition: 0.15s; font-family: inherit; color: var(--text);
  display: flex; gap: 10px; align-items: center;
}
.hv2-poll-opt:hover {
  background: var(--rose-petal); border-color: var(--wine);
}
.hv2-poll-opt.voted {
  cursor: default; pointer-events: none;
}
.hv2-poll-opt .opt-text { flex: 1; }
.hv2-poll-opt .opt-bar {
  position: absolute; inset: 0; pointer-events: none;
}
.hv2-poll-opt.voted .opt-bar .opt-fill {
  display: block; height: 100%;
  background: rgba(232,155,160,0.3);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.hv2-poll-opt .opt-fill { display: none; }
.hv2-poll-opt .opt-pct {
  font-weight: 600; color: var(--wine);
  font-variant-numeric: tabular-nums;
}

/* ─── F4 Weekly recap ──────────────────────────────────────────── */
.hv2-weekly-recap {
  background: linear-gradient(135deg, #FFD700, #B8860B);
  color: white; padding: 24px;
  border-radius: 16px; text-align: center;
}
.hv2-wr-eyebrow {
  font-size: 0.78rem; letter-spacing: 0.15em;
  opacity: 0.9; font-weight: 600;
}
.hv2-weekly-recap h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; margin: 8px 0; color: white;
}
.hv2-weekly-recap p { opacity: 0.9; margin: 0; }

/* ─── F11+F24 Backstage photos (Smartless-stiil) ───────────────── */
.hv2-backstage-strip {
  display: flex; gap: 12px;
  overflow-x: auto; padding: 8px 4px 14px;
  scroll-snap-type: x mandatory;
}
.hv2-bs-photo {
  flex: 0 0 240px; height: 200px;
  background-size: cover; background-position: center;
  border-radius: 12px; position: relative;
  scroll-snap-align: start;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.hv2-bs-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.hv2-bs-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white; font-size: 0.82rem;
  border-radius: 0 0 12px 12px;
}

/* ─── F15 Listener spotlight ────────────────────────────────────── */
.hv2-listener-spotlight {
  background: linear-gradient(135deg, var(--cream), var(--rose-petal));
  border-left: 6px solid var(--wine);
  padding: 24px; border-radius: 14px;
  display: flex; gap: 20px; align-items: center;
}
@media (max-width: 500px) {
  .hv2-listener-spotlight { flex-direction: column; text-align: center; }
}
.hv2-ls-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--wine));
  color: white; display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; font-weight: 600;
  flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hv2-ls-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.15em;
  color: var(--wine); font-weight: 600; text-transform: uppercase;
}
.hv2-ls-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; color: var(--wine-dark); margin: 4px 0;
}
.hv2-ls-quote {
  margin: 8px 0 0; font-style: italic; color: var(--text);
  font-size: 0.92rem; line-height: 1.5;
}

/* ─── F23 Sponsors strip (NPR-stiil) ────────────────────────────── */
.hv2-sponsors {
  background: var(--cream); padding: 20px 24px;
  border-radius: 12px; display: flex; gap: 20px;
  align-items: center; flex-wrap: wrap;
}
.hv2-sponsors-label {
  color: var(--muted); font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.hv2-sponsors-row {
  display: flex; gap: 24px; align-items: center;
  flex-wrap: wrap;
}
.hv2-sponsor {
  display: inline-flex; align-items: center;
  opacity: 0.6; transition: opacity 0.15s;
  filter: grayscale(50%);
}
.hv2-sponsor:hover { opacity: 1; filter: grayscale(0); }
.hv2-sponsor img { max-height: 40px; width: auto; }
.hv2-sponsor-text {
  font-family: 'Cormorant Garamond', serif;
  color: var(--wine-dark); font-weight: 600;
}

/* ─── F9 Year filter chips ──────────────────────────────────────── */
.hv2-year-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.hv2-year-chip {
  display: inline-flex; flex-direction: column;
  align-items: center; padding: 12px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; text-decoration: none;
  transition: 0.15s; min-width: 80px;
}
.hv2-year-chip:hover {
  border-color: var(--wine); transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.hv2-year-chip .y-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 600; color: var(--wine-dark);
}
.hv2-year-chip .y-count { font-size: 0.78rem; color: var(--muted); }

/* ─── F19 Subscribe bar (Substack-stiil) ────────────────────────── */
.hv2-subscribe-bar {
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  color: white; padding: 28px;
  border-radius: 18px;
}
.hv2-sb-content {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 20px; align-items: center;
}
@media (max-width: 700px) {
  .hv2-sb-content { grid-template-columns: 1fr; text-align: center; }
}
.hv2-sb-icon { font-size: 2.4rem; }
.hv2-subscribe-bar strong {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem;
}
.hv2-subscribe-bar p { margin: 4px 0 0; opacity: 0.85; font-size: 0.9rem; }
.hv2-sb-form { display: flex; gap: 8px; }
.hv2-sb-form input {
  background: white; min-width: 200px;
}

/* ─── F16+F17+F20 Save-platforms grid ───────────────────────────── */
.hv2-sp-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.hv2-sp-card {
  display: flex; gap: 14px; align-items: center;
  padding: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; color: var(--text);
  transition: 0.2s;
}
.hv2-sp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.hv2-sp-card.spotify:hover { border-color: #1DB954; }
.hv2-sp-card.apple:hover { border-color: #9933CC; }
.hv2-sp-card.youtube:hover { border-color: #FF0000; }
.hv2-sp-card.rss:hover { border-color: #FFA500; }
.hv2-sp-card strong {
  display: block; color: var(--text); font-weight: 600;
}
.hv2-sp-card small {
  display: block; color: var(--muted); font-size: 0.78rem; margin-top: 2px;
}

/* ─── F18 Share strip ───────────────────────────────────────────── */
.hv2-share-strip {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap; padding: 14px 20px;
  background: var(--cream); border-radius: 12px;
}
.hv2-share-text { color: var(--muted); font-weight: 600; }
.hv2-share-btn {
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 100px;
  cursor: pointer; transition: 0.15s;
  display: inline-flex; gap: 6px; align-items: center;
  font-family: inherit; font-size: 0.85rem; color: var(--text);
}
.hv2-share-btn:hover {
  background: var(--rose-petal); border-color: var(--wine);
  transform: translateY(-1px);
}

/* ─── U16 Floating "Back to top" nupp ───────────────────────────── */
.hv2-back-to-top {
  position: fixed; bottom: 90px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--wine); color: white; border: none;
  cursor: pointer; font-size: 1.4rem; line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transform: translateY(120px); opacity: 0;
  transition: 0.3s; z-index: 80;
}
.hv2-back-to-top.visible {
  transform: translateY(0); opacity: 1;
}
.hv2-back-to-top:hover {
  background: var(--wine-dark);
  transform: translateY(-3px) scale(1.08);
}
@media (max-width: 600px) {
  .hv2-back-to-top { bottom: 80px; right: 16px; width: 40px; height: 40px; }
}

/* ─── U19 Cookie consent ────────────────────────────────────────── */
.hv2-cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  z-index: 999; max-width: 600px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  padding: 18px 22px; display: flex; align-items: center; gap: 16px;
  animation: hv2-cookie-slide 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes hv2-cookie-slide {
  from { transform: translateY(150%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.hv2-cb-content {
  display: flex; gap: 14px; align-items: center;
  flex: 1; flex-wrap: wrap;
}
.hv2-cb-icon { font-size: 2rem; }
.hv2-cb-text { flex: 1; min-width: 200px; font-size: 0.9rem; color: var(--text); }
.hv2-cb-actions { display: flex; gap: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   v1.4.5+ U1-U25 — UI elemendid (sticky nav, hover-reveal, jne)
   ═══════════════════════════════════════════════════════════════════ */

/* U1 — Sticky nav transformation scrollil */
.topnav.scrolled {
  padding: 8px 20px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.topnav.scrolled .logo-icon { width: 28px; height: 28px; }
.topnav { transition: padding 0.2s, box-shadow 0.2s; }

/* U2 — Hero parallax (subtle background scroll) */
.hero[data-parallax] {
  background-attachment: fixed;
  background-size: cover;
}
@media (prefers-reduced-motion: reduce) {
  .hero[data-parallax] { background-attachment: scroll; }
}

/* U3 — Hover-reveal episoodi metadata */
.episode-card { position: relative; overflow: hidden; }
.episode-card .ec-hover-reveal {
  position: absolute; inset: 0; padding: 18px;
  background: linear-gradient(180deg, transparent 30%, rgba(94,37,48,0.95) 100%);
  color: white; opacity: 0; transition: opacity 0.25s;
  display: flex; flex-direction: column; justify-content: flex-end;
  pointer-events: none;
}
.episode-card:hover .ec-hover-reveal { opacity: 1; }

/* U4 — Animated gradient background (Apple Music stiil) */
.hv2-animated-gradient {
  background: linear-gradient(-45deg, var(--rose), var(--wine), var(--rose-petal), var(--cream));
  background-size: 400% 400%;
  animation: hv2-gradient-shift 15s ease infinite;
}
@keyframes hv2-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* U6 — Cover art mosaic (BBC-stiil collage) */
.hv2-cover-mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px; max-width: 400px;
}
.hv2-cover-mosaic .cell {
  aspect-ratio: 1; border-radius: 4px;
  background-size: cover; background-position: center;
  transition: transform 0.3s;
}
.hv2-cover-mosaic:hover .cell { transform: scale(0.96); }
.hv2-cover-mosaic .cell:hover { transform: scale(1.1); z-index: 2; }

/* U7 — Animated podcast cover (subtle bounce on hover) */
.hv2-pulse {
  animation: hv2-pulse-anim 2s ease-in-out infinite;
}
@keyframes hv2-pulse-anim {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* U8 — Glow on featured episode */
.featured-ep.hv2-glow {
  box-shadow: 0 0 30px rgba(232,155,160,0.4), 0 8px 24px rgba(0,0,0,0.1);
  position: relative;
}
.featured-ep.hv2-glow::before {
  content: ''; position: absolute; inset: -2px;
  background: linear-gradient(135deg, var(--rose), var(--wine));
  border-radius: inherit; z-index: -1;
  filter: blur(20px); opacity: 0.4;
}

/* U10 — Filmstrip preview row */
.hv2-filmstrip {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 8px 0;
}
.hv2-filmstrip .fs-item {
  flex: 0 0 200px; scroll-snap-align: start;
  border-radius: 10px; overflow: hidden;
  transition: transform 0.2s;
}
.hv2-filmstrip .fs-item:hover { transform: scale(1.05); }

/* U14 — Audio progress dot episoodi-kaardil */
.episode-card .ec-progress-dot {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: conic-gradient(var(--wine) calc(var(--p, 0) * 1%), var(--border) 0);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.episode-card .ec-progress-dot::after {
  content: ''; width: 28px; height: 28px;
  background: var(--surface); border-radius: 50%;
}

/* U15 — Avatar group stacking (social proof) */
.hv2-avatar-group {
  display: inline-flex; padding-left: 12px;
}
.hv2-avatar-group .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--wine));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 600;
  border: 2px solid var(--surface); margin-left: -10px;
}
.hv2-avatar-group .av:hover {
  transform: translateY(-3px); z-index: 2;
}

/* U17 — Episode badge ("New", "Trending", "Top") */
.ep-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 100px; font-size: 0.7rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.ep-badge.new { background: #4F9D69; color: white; }
.ep-badge.trending { background: #DC2626; color: white; animation: hv2-trend 1.2s ease infinite; }
.ep-badge.top { background: linear-gradient(135deg, #FFD700, #D4AF37); color: #5C3D00; }
@keyframes hv2-trend {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* U18 — Listen-time meter episoodi-kaardil */
.hv2-listen-meter {
  display: inline-flex; gap: 4px; align-items: center;
  color: var(--muted); font-size: 0.78rem;
}
.hv2-listen-meter .clock { font-size: 0.85rem; }

/* U21 — Cover art lazy-load + blur placeholder (Medium-stiil) */
img[data-blur-loader] {
  filter: blur(20px); transition: filter 0.4s;
}
img[data-blur-loader].loaded {
  filter: blur(0);
}

/* U22 — Skeleton loader rich (Twitter-stiil) */
.hv2-skel {
  background: linear-gradient(90deg, var(--border) 25%, var(--cream) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: hv2-skel-shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes hv2-skel-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* U23 — Reduced motion respect (universal) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* U24 — Keyboard focus visible improved */
*:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 2px;
  border-radius: 4px;
}

/* U25 — Live activity indicator (animeeritud) */
.hv2-live-indicator {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: #DC2626; font-weight: 600;
}
.hv2-live-indicator::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #DC2626; animation: hv2-pulse-dot 1.5s ease infinite;
}
@keyframes hv2-pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220,38,38,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 10px rgba(220,38,38,0); }
}

/* U9 — Smooth scroll snap kõikidele sektsioonidele */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* U11 — Sticky search instant-results dropdown (kasutab Spotlight-i) */
.an-spotlight-results .an-spotlight-result strong {
  color: var(--wine);
}

/* U13 — Card stack (Tinder-style) — JS täidab */
.hv2-card-stack {
  position: relative; height: 360px;
}
.hv2-card-stack .stack-card {
  position: absolute; inset: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  transition: transform 0.3s, opacity 0.3s;
  cursor: grab;
}
.hv2-card-stack .stack-card:nth-child(1) { z-index: 3; transform: scale(1); }
.hv2-card-stack .stack-card:nth-child(2) { z-index: 2; transform: scale(0.96) translateY(8px); opacity: 0.85; }
.hv2-card-stack .stack-card:nth-child(3) { z-index: 1; transform: scale(0.92) translateY(16px); opacity: 0.7; }
.hv2-card-stack .stack-card.dragging { cursor: grabbing; }
.hv2-card-stack .stack-card.swiped-right {
  transform: translateX(150%) rotate(20deg); opacity: 0;
}
.hv2-card-stack .stack-card.swiped-left {
  transform: translateX(-150%) rotate(-20deg); opacity: 0;
}

/* PWA install banner override (paremal alanurgas, mitte alumiselt servalt) */
@media (min-width: 700px) {
  #an-pwa-banner {
    left: auto !important; right: 24px; transform: translateY(150%) !important;
  }
  #an-pwa-banner.show {
    transform: translateY(0) !important;
  }
}
.hv-eq {
  display: inline-flex; gap: 2px; align-items: flex-end;
  height: 16px;
}
.hv-eq span {
  display: inline-block; width: 3px;
  background: var(--cream); border-radius: 1px;
  animation: hv-eq-bounce 1s ease infinite;
}
.hv-eq span:nth-child(2) { animation-delay: 0.15s; }
.hv-eq span:nth-child(3) { animation-delay: 0.3s; }
.hv-eq span:nth-child(4) { animation-delay: 0.45s; }
@keyframes hv-eq-bounce {
  0%, 100% { height: 40%; } 50% { height: 100%; }
}

/* ─── #UI10 Pull-to-refresh indikaator mobiilil ──────────────── */
.hv-ptr {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: center;
  padding: 16px; transform: translateY(-100%);
  transition: transform 0.3s; pointer-events: none;
  z-index: 100;
}
.hv-ptr.active { transform: translateY(0); }
.hv-ptr-spin {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--wine);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: hv-ptr-rotate 0.8s linear infinite;
}
@keyframes hv-ptr-rotate { to { transform: rotate(360deg); } }

/* ─── #UI1 Sticky search (kasutab olemasolevat topnav) ────────── */
/* topnav on juba sticky base.css'is — lisame autocomplete-i */

/* ─── #UI9 Cover art parallax — JS täidab data-parallax atribuudid ── */
.hv-trend-card[data-parallax] { will-change: transform; }

/* ═══════════════════════════════════════════════════════════════════
   v1.4.5 PERF R6 — MODERN FORM KOMPONENDID
   Asendab brauseri-vaikimisi 95-stiilis vormielemendid.
   Kasutab teemavaliku CSS-muutujaid (kohandub palette'ile).
   ═══════════════════════════════════════════════════════════════════ */

/* Modern field-card — kogu vormi-rea ümbrik */
.mf-card {
  background: var(--surface, white);
  border: 1px solid var(--border, #E8DDD6);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mf-card:hover { border-color: var(--rose); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.mf-card-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.mf-card-label {
  font-weight: 600; color: var(--text, #1F1A18);
  font-size: 0.95rem;
}
.mf-card-help {
  color: var(--muted, #8B7A72); font-size: 0.82rem;
  margin-top: 2px;
}

/* iOS-stiilis toggle switch (asendab native checkbox'i) */
.mf-toggle {
  position: relative; display: inline-block;
  width: 48px; height: 28px;
  flex-shrink: 0;
}
.mf-toggle input {
  opacity: 0; width: 0; height: 0;
}
.mf-toggle-slider {
  position: absolute; cursor: pointer;
  inset: 0; background-color: var(--border);
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 100px;
}
.mf-toggle-slider::before {
  position: absolute; content: '';
  height: 22px; width: 22px;
  left: 3px; bottom: 3px;
  background: white; border-radius: 50%;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.mf-toggle input:checked + .mf-toggle-slider {
  background: linear-gradient(135deg, var(--rose), var(--wine));
}
.mf-toggle input:checked + .mf-toggle-slider::before {
  transform: translateX(20px);
}
.mf-toggle input:focus + .mf-toggle-slider {
  box-shadow: 0 0 0 3px var(--rose-petal);
}

/* Modern number stepper (asendab number-input'i) */
.mf-stepper {
  display: inline-flex; align-items: stretch;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 100px; overflow: hidden;
}
.mf-stepper button {
  background: transparent; border: none; cursor: pointer;
  width: 36px; font-size: 1.2rem; color: var(--wine);
  transition: 0.15s;
}
.mf-stepper button:hover { background: var(--rose-petal); }
.mf-stepper input {
  width: 60px; text-align: center;
  border: none; background: transparent; color: var(--text);
  font-weight: 600; font-variant-numeric: tabular-nums;
  font-family: inherit;
}
.mf-stepper input:focus { outline: none; }

/* Modern text input — pehme, animeeritud */
.mf-input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mf-input:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px var(--rose-petal);
}
.mf-input::placeholder { color: var(--muted); opacity: 0.6; }

/* Floating label group */
.mf-field {
  position: relative; margin-bottom: 16px;
}
.mf-field-label {
  display: block; margin-bottom: 8px;
  font-weight: 500; color: var(--text); font-size: 0.88rem;
}
.mf-field-label .req { color: var(--wine); }
.mf-field-hint {
  color: var(--muted); font-size: 0.78rem; margin-top: 4px;
}
.mf-field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 600px) { .mf-field-row { grid-template-columns: 1fr; } }

/* Modern range slider */
.mf-range {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: transparent; height: 24px;
}
.mf-range::-webkit-slider-runnable-track,
.mf-range::-moz-range-track {
  height: 6px; background: var(--border); border-radius: 100px;
}
.mf-range::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--rose), var(--wine));
  border-radius: 50%; cursor: grab;
  margin-top: -8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}
.mf-range::-moz-range-thumb {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--rose), var(--wine));
  border: none; border-radius: 50%; cursor: grab;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.mf-range:hover::-webkit-slider-thumb { transform: scale(1.15); }
.mf-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--rose-petal); }

/* Modern primaarne CTA */
.mf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--rose), var(--wine));
  color: white; border: none;
  padding: 12px 26px; border-radius: 100px;
  font-family: inherit; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: 0.2s;
  box-shadow: 0 4px 12px rgba(139,58,71,0.25);
}
.mf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139,58,71,0.35);
}
.mf-btn:active { transform: translateY(0); }
.mf-btn-ghost {
  background: transparent; color: var(--wine);
  border: 1.5px solid var(--border);
  box-shadow: none;
}
.mf-btn-ghost:hover {
  background: var(--rose-petal); border-color: var(--wine);
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
.mf-btn-danger {
  background: linear-gradient(135deg, #DC2626, #991B1B);
  box-shadow: 0 4px 12px rgba(220,38,38,0.25);
}

/* Tab/time-cell value display (24:00 -> 22:00 stiil) */
.mf-time-cell {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; min-width: 80px;
}
.mf-time-cell .v {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 600; color: var(--wine-dark);
  line-height: 1;
}
.mf-time-cell .u { font-size: 0.7rem; color: var(--muted); margin-top: 4px; }

/* Empty state, kaunilt vormistatud */
.mf-empty {
  text-align: center; padding: 60px 30px;
  background: linear-gradient(135deg, var(--cream), var(--rose-petal));
  border-radius: 16px;
}
.mf-empty .ill {
  font-size: 5rem; line-height: 1;
  margin-bottom: 16px; opacity: 0.7;
  animation: mf-float 3s ease-in-out infinite;
}
@keyframes mf-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
.mf-empty h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--wine-dark); font-size: 1.6rem;
  margin: 0 0 10px;
}
.mf-empty p {
  color: var(--text); margin: 0 auto 20px; max-width: 380px;
  line-height: 1.5;
}
.mf-empty .mf-btn { margin-top: 8px; }

/* Hero stat row (suur number + alapealkiri) */
.mf-stat-hero {
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  color: white; padding: 24px;
  border-radius: 14px; margin-bottom: 20px;
  display: flex; gap: 20px; align-items: center;
}
.mf-stat-hero .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 600;
  line-height: 1; color: var(--rose-petal);
}
.mf-stat-hero .meta { flex: 1; }
.mf-stat-hero .meta-title {
  font-size: 1.1rem; font-weight: 600;
}
.mf-stat-hero .meta-sub { font-size: 0.85rem; opacity: 0.8; margin-top: 4px; }

/* Status badge */
.mf-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 500;
}
.mf-badge-ok { background: #D1FAE5; color: #065F46; }
.mf-badge-warn { background: #FEF3C7; color: #92400E; }
.mf-badge-danger { background: #FEE2E2; color: #991B1B; }
.mf-badge-info { background: var(--rose-petal); color: var(--wine-dark); }

/* Info-box (näpunäide) */
.mf-info {
  display: flex; gap: 12px; padding: 14px 18px;
  background: var(--rose-petal); color: var(--wine-dark);
  border-left: 4px solid var(--wine);
  border-radius: 0 8px 8px 0; margin: 14px 0;
}
.mf-info .ic { font-size: 1.4rem; flex-shrink: 0; }
.mf-info-text { line-height: 1.5; font-size: 0.9rem; }

/* Section heading (suur + alapealkiri) */
.mf-section {
  margin: 28px 0 14px;
}
.mf-section h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--wine-dark); font-size: 1.4rem;
  margin: 0 0 4px;
}
.mf-section .sub { color: var(--muted); font-size: 0.88rem; }

/* ═══════════════════════════════════════════════════════════════════
   v1.4.5 PERF R3 — content-visibility: auto
   Brauser SAGE renderi viivitus, kuni sektsioon scrolli vaatevälja jõuab.
   Mõju: paint-aja vähenemine kuni 70% pikkadel lehtedel.
   contain-intrinsic-size annab placeholder-suuruse (väldib CLS-i).
   ═══════════════════════════════════════════════════════════════════ */
.hv-trending, .hv-continue, .hv-picks, .hv-guest-spotlight,
.hv-countdown, .hv-stats, .hv-categories, .hv-surprise,
.hv-newsletter, .hv-infinite,
.episode-grid, .guest-gallery, .quote-carousel,
.testimonials, .press-strip, .news-strip {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;  /* tüüpiline sektsiooni-kõrgus */
}

/* Hero ei tohi olla content-visibility (LCP element, peab kohe näha olema) */
.hero, .topnav, .skip-link { content-visibility: visible; }

/* ═══════════════════════════════════════════════════════════════════
   INLINE BRAND-IKOONID (_brand_icon.html partial)
   Spotify, Apple Podcasts, YouTube, Instagram, Facebook, X, jne.
   ═══════════════════════════════════════════════════════════════════ */
.brand-icon {
  display: inline-block; vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.brand-icon-instagram { /* gradient on SVG-s endas */ }

/* Hover-efekt platform-nuppudel — kerge zoom */
.platform:hover .brand-icon,
.epr-link:hover .brand-icon,
.hv-listen-badge:hover .brand-icon,
.footer-platform-link:hover .brand-icon {
  transform: scale(1.15);
}

/* Listen-badge sisukord — ikoon + tekst horisontaalselt */
.hv-listen-badge {
  display: inline-flex; align-items: center; gap: 6px;
}
.hv-listen-badge .brand-icon {
  flex-shrink: 0;
}

