/* Voice Library page (prefix vg-). Gallery of voice cards with a round portrait in a waveform ring, category bar, filters, search, and one view per voice with every emotion and strength. */
.vg { --vg-nav: 58px; --vg-gut: clamp(1.25rem, 4vw, 4rem); --vg-ease: cubic-bezier(.2, .72, .22, 1); --vg-hair: color-mix(in srgb, var(--color-text-primary) 8%, transparent);
  background: var(--color-bg-page); }
.vg p { max-width: none; }
.vg :focus-visible, .vg-sheet :focus-visible, .vg-get :focus-visible { outline: 2px solid var(--color-accent-primary); outline-offset: 3px; }
.vg-wrap { width: min(100% - 2 * var(--vg-gut), 1760px); margin-inline: auto; }

/* ========== Head ========== */
.vg-head { position: relative; overflow: hidden; padding: calc(var(--vg-nav) + clamp(1.6rem, 3.2vw, 2.6rem)) 0 clamp(1.2rem, 2.4vw, 1.8rem); }
.vg-head::before { content: ""; position: absolute; inset: -40% -10% auto 45%; height: 160%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-cta) 13%, transparent), transparent); animation: vg-drift 14s ease-in-out infinite alternate; }
@keyframes vg-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6%, 8%) scale(1.12); } }
.vg-kicker { position: relative; display: flex; align-items: center; gap: .9rem; margin: 0 0 .8rem; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--color-accent-primary); }
.vg-kicker::before { content: ""; width: 2rem; height: 1px; background: var(--color-accent-primary); }
.vg-head h1 { position: relative; margin: 0 0 .6rem; font-family: 'Cormorant Garamond', var(--font-family-heading); font-weight: 600; font-size: clamp(2.3rem, 4.6vw, 4.3rem); line-height: 1.04; letter-spacing: -.015em; color: var(--color-text-primary); }
.vg-cycle-box { display: inline-block; min-width: 5.2em; }
.vg-cycle { display: inline-block; font-weight: 500; color: var(--color-accent-primary); transition: transform .55s var(--vg-ease), opacity .45s, filter .45s; }
.vg-cycle.is-out { opacity: 0; transform: translateY(-.4em); filter: blur(4px); }
.vg-cycle.is-pre { opacity: 0; transform: translateY(.4em); filter: blur(4px); transition: none; }
.vg-lead { position: relative; margin: 0; color: var(--color-text-secondary); font-size: clamp(1rem, 1.15vw, 1.12rem); }

/* ========== Choices row (sticky) ========== */
.vg-probe { display: block; height: 1px; }
.vg-bar { position: sticky; top: var(--vg-nav); z-index: 40; background: var(--color-bg-page); border-top: 1px solid var(--vg-hair); border-bottom: 1px solid var(--vg-hair); transition: box-shadow .4s; }
.vg-bar.is-stuck { box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .75); }
.vg-bar-in { position: relative; display: flex; align-items: center; gap: 1.5rem; min-height: 3.5rem; }
.vg-tabs { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .2rem 1.1rem; overflow-x: auto; scrollbar-width: none; transition: opacity .3s; }
.vg-tabs::-webkit-scrollbar { display: none; }
.vg-tabs.is-over { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.vg-find { flex: none; display: flex; align-items: center; }
.vg-find-open { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: .9rem; color: var(--color-text-secondary); transition: color .3s; }
.vg-find-open:hover { color: var(--color-accent-primary); }
.vg-find-field, .vg-find-close { display: none; }
.vg-bar.is-searching .vg-tabs { opacity: 0; pointer-events: none; }
.vg-bar.is-searching .vg-find { position: absolute; inset: 0; gap: 1rem; animation: vg-fade .35s var(--vg-ease); }
.vg-bar.is-searching .vg-find-open { display: none; }
.vg-bar.is-searching .vg-find-field { flex: 1; display: flex; align-items: center; gap: .8rem; min-width: 0; padding: .3rem 0; border-bottom: 1px solid var(--color-accent-primary); }
.vg-bar.is-searching .vg-find-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--color-text-secondary); font-size: 1.15rem; }
.vg-find-field i { color: var(--color-accent-primary); }
.vg-find-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--color-text-primary); font-family: 'Cormorant Garamond', var(--font-family-heading); font-size: 1.35rem; font-weight: 600; }
.vg-find-field input:focus-visible { outline: none; }
.vg-find-field input::placeholder { color: var(--color-text-muted); font-weight: 500; font-style: italic; }
.vg-find-field input::-webkit-search-cancel-button { display: none; }
.vg-find-n { flex: none; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--color-text-muted); }

/* ========== The gallery ========== */
.vg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 196px), 1fr)); gap: 1.1rem 1rem;
  padding: clamp(1.4rem, 2.6vw, 2.1rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.vg-empty { grid-column: 1 / -1; margin: 3rem 0; text-align: center; font-family: 'Cormorant Garamond', var(--font-family-heading); font-style: italic; font-size: 1.5rem; color: var(--color-text-secondary); }
.vg-empty button { margin-left: .4em; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-style: normal; color: var(--color-accent-primary); border-bottom: 1px solid color-mix(in srgb, var(--color-accent-primary) 45%, transparent); }

.vg-card { --emo: var(--color-accent-primary); --p: 0; --lvl: .55; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; min-width: 0;
  padding: 1.1rem .9rem 1rem; border: 1px solid var(--color-border-default); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-bg-elevated) 75%, transparent), color-mix(in srgb, var(--color-bg-surface) 90%, transparent));
  opacity: 0; transform: translateY(18px); container-type: inline-size; transition: border-color .4s, box-shadow .5s, translate .4s; }
.vg-card:hover { translate: 0 -3px; border-color: color-mix(in srgb, var(--color-accent-primary) 35%, transparent); box-shadow: var(--shadow-card-hover); }
.vg-card.is-playing { border-color: color-mix(in srgb, var(--emo) 60%, transparent); box-shadow: 0 0 40px -12px color-mix(in srgb, var(--emo) 55%, transparent); }
.vg-card > :last-child { margin-top: .15rem; }
/* a narrow card keeps two emotions and "All", so nothing gets cut (measured on the card's inner width) */
@container (max-width: 268px) { .vg-emos .vg-pill[data-n="3"] { display: none; } }
@container (max-width: 170px) { .vg-emos .vg-pill[data-n="2"] { display: none; } }
/* narrow cards keep the word "Strength" and the bars; the level name shows in the playing label */
@container (max-width: 190px) { .vg-str-t { display: none; } }
@container (max-width: 130px) { .vg-str-k { display: none; } }
.vg-card.is-in { animation: vg-up .7s var(--vg-ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes vg-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes vg-fade { from { opacity: 0; } to { opacity: 1; } }

/* the round portrait, with the voice's waveform as a ring of rays around it */
.vg-av { position: relative; width: 152px; aspect-ratio: 1; margin: .3rem auto 0; cursor: pointer; }
.vg-av::before { content: ""; position: absolute; inset: -12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--emo) 30%, transparent), transparent); opacity: .5; transition: opacity .6s; }
.vg-card.is-playing .vg-av::before { opacity: calc(.4 + var(--lvl, .55) * .6); }
.vg-halo { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 50%; }
.vg-halo circle { fill: none; stroke: color-mix(in srgb, var(--color-accent-primary) 25%, transparent); stroke-width: .8; }
.vg-halo line { stroke: color-mix(in srgb, var(--color-accent-primary) 42%, transparent); stroke-width: 2.2; stroke-linecap: round; transition: stroke .25s; }
.vg-halo line.is-lit { stroke: var(--emo); }
.vg-card.is-playing .vg-halo { animation: vg-spin 40s linear infinite; }
@keyframes vg-spin { to { transform: rotate(360deg); } }
.vg-face { position: absolute; left: 15%; top: 15%; width: 70%; height: 70%; border-radius: 50%; overflow: hidden; background: #120d1c;
  border: 2px solid color-mix(in srgb, var(--color-accent-primary) 45%, transparent); box-shadow: 0 0 0 4px var(--color-bg-surface), 0 12px 30px rgba(0, 0, 0, .6);
  transition: transform .6s cubic-bezier(.2, .72, .22, 1), border-color .4s; }
.vg-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.vg-card:hover .vg-face { transform: scale(1.04); }
.vg-card.is-playing .vg-face { border-color: var(--emo); }
.vg-init { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 50% 38%, var(--ph), #0c0a14 88%);
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 2.6rem; color: color-mix(in srgb, var(--color-accent-primary) 85%, transparent); }
.vg-n { margin: .45rem 0 0; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.45rem; line-height: 1.05; color: var(--color-text-primary); cursor: pointer; transition: color .3s; }
.vg-n:hover { color: var(--color-accent-primary); }
.vg-r { margin: 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.02rem; color: var(--color-text-secondary); }

/* shared by the big portrait in the voice view */
.vg-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(12, 10, 20, .25) 0%, transparent 22%, transparent 46%, rgba(12, 10, 20, .6) 70%, rgba(12, 10, 20, .95) 100%); }
.vg-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: screen; transition: opacity .7s;
  background: radial-gradient(90% 55% at 50% 100%, color-mix(in srgb, var(--emo) 55%, transparent), transparent 75%); }
.vg-name { position: absolute; z-index: 2; left: 1rem; right: 4.7rem; bottom: .95rem; pointer-events: none; }
.vg-name p { margin: .28rem 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'Cormorant Garamond', var(--font-family-heading); font-style: italic; font-size: 1.08rem; line-height: 1.2; color: var(--color-text-secondary); }
.vg-now { position: absolute; z-index: 3; top: .75rem; left: .85rem; display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-text-primary); opacity: 0; transform: translateY(-4px); transition: opacity .35s, transform .45s var(--vg-ease); pointer-events: none; }
.vg-now i { width: 7px; height: 7px; border-radius: 50%; background: var(--emo); box-shadow: 0 0 10px var(--emo); }
.vg-card.is-playing .vg-now { opacity: 1; transform: none; }
.vg-prog { position: absolute; z-index: 3; left: 0; bottom: 0; height: 2px; width: calc(var(--p) * 100%); background: var(--emo); box-shadow: 0 0 10px var(--emo); }

/* placeholder portrait: the voice's own waveform as a ring, until real portraits exist */
.vg-ph { display: grid; place-items: center; background: radial-gradient(85% 70% at 50% 40%, var(--ph) 0%, color-mix(in srgb, var(--ph) 35%, #0c0a14) 45%, #0c0a14 85%); }
.vg-ph svg { width: 84%; height: auto; margin-top: -14%; overflow: visible; }
.vg-ph line { stroke: var(--color-accent-primary); stroke-width: 1.6; stroke-linecap: round; opacity: .55; }
.vg-ph circle { fill: none; stroke: color-mix(in srgb, var(--color-accent-primary) 35%, transparent); stroke-width: .8; }
.vg-ph text { font-family: 'Cormorant Garamond', var(--font-family-heading); font-style: italic; font-weight: 500; font-size: 64px; fill: color-mix(in srgb, var(--color-accent-primary) 80%, transparent); }

/* play */
.vg-play { position: absolute; z-index: 2; right: 2%; bottom: 6%; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; font-size: .8rem;
  color: var(--color-bg-elevated); background: var(--color-accent-primary); box-shadow: 0 10px 26px color-mix(in srgb, var(--color-cta) 30%, transparent); transition: transform .3s var(--vg-ease), background .3s; }
.vg-play .fa-play { margin-left: 3px; }
.vg-play:hover { transform: scale(1.1); background: #f0c25e; }
.vg-play:active { transform: scale(.94); }
.vg-card.is-playing .vg-play { animation: vg-ring 1.9s ease-out infinite; }
@keyframes vg-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent-primary) 50%, transparent), 0 12px 34px color-mix(in srgb, var(--color-cta) 28%, transparent); } 100% { box-shadow: 0 0 0 24px color-mix(in srgb, var(--color-accent-primary) 0%, transparent), 0 12px 34px color-mix(in srgb, var(--color-cta) 28%, transparent); } }

/* under the portrait */
.vg-sound { margin: 0; padding: 0 .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--color-text-muted); }
.vg-emos { display: flex; flex-wrap: nowrap; justify-content: center; gap: .4rem; overflow: hidden; }
.vg-card .vg-sound { width: 100%; text-align: center; margin: .2rem 0 .3rem; font-size: .58rem; letter-spacing: .08em; }
.vg-s-lv .vg-pill[disabled]:hover { border-color: color-mix(in srgb, var(--color-text-primary) 18%, transparent); color: var(--color-text-primary); }
/* the emotion row may run a little into the card's side padding, so three buttons fit on a small card */
.vg-card .vg-emos { width: calc(100% + 1rem); gap: .3rem; }
.vg-card .vg-pill { padding-inline: .66rem; }

/* emotion strength on a card: three bars and the level's name */
.vg-str { display: flex; align-items: center; justify-content: center; gap: .45rem; height: 26px; }
.vg-str-k { font: 600 .58rem 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--color-text-muted); margin-right: .2rem; }
.vg-lv { display: flex; align-items: flex-end; justify-content: center; width: 14px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.vg-lv b { display: block; width: 6px; border-radius: 1.5px; background: color-mix(in srgb, var(--color-text-primary) 22%, transparent); transition: background .25s, box-shadow .25s; }
.vg-lv[data-lv="normal"] b { height: 8px; }
.vg-lv[data-lv="strong"] b { height: 13px; }
.vg-lv[data-lv="extreme"] b { height: 18px; }
.vg-lv.is-lit b { background: var(--color-accent-primary); box-shadow: 0 0 6px rgba(232, 180, 76, .5); }
.vg-lv.is-off { opacity: .25; pointer-events: none; }
.vg-str-t { min-width: 3.8em; text-align: left; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: .98rem; color: var(--color-accent-primary); }
.vg-pill { flex: none; padding: .36rem .78rem; border: 1px solid color-mix(in srgb, var(--color-text-primary) 18%, transparent); border-radius: 999px; background: transparent; cursor: pointer;
  font-family: 'Inter', var(--font-family-base); font-size: .78rem; font-weight: 500; line-height: 1.2; color: var(--color-text-primary); transition: background .3s, border-color .3s, color .3s, transform .2s; }
.vg-pill:hover { border-color: var(--color-accent-primary); color: var(--color-accent-primary); }
.vg-pill:active { transform: scale(.95); }
.vg-pill.is-on { background: var(--color-accent-primary); border-color: var(--color-accent-primary); color: #1a1528; }
.vg-pill-all { border-color: color-mix(in srgb, var(--color-accent-primary) 40%, transparent); color: var(--color-accent-primary); }

/* Use in Demodokos */
.vg-use { position: relative; display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; height: 38px; padding: 0 .9rem; overflow: hidden; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--color-accent-primary) 60%, transparent); border-radius: 999px; background: transparent;
  font-family: 'Inter', var(--font-family-base); font-size: .8rem; font-weight: 600; color: var(--color-accent-primary); white-space: nowrap; transition: background .3s, color .3s, border-color .3s, box-shadow .3s; }
.vg-use:hover { background: var(--color-accent-primary); color: #1a1528; box-shadow: 0 8px 24px color-mix(in srgb, var(--color-cta) 28%, transparent); }
.vg-mark { flex: none; font-size: 1rem; }

/* ========== One voice, every emotion ========== */
.vg-sheet { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: var(--vg-gut, 2rem); }
.vg-sheet[hidden] { display: none; }
.vg-sheet-bg { position: absolute; inset: 0; background: rgba(8, 6, 14, .86); animation: vg-fade .35s; }
.vg-sheet-box { --emo: var(--color-accent-primary); --p: 0; position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(1.6rem, 3vw, 3rem);
  width: min(1240px, 100%); max-height: calc(100vh - 2 * clamp(1rem, 3vw, 2.5rem)); overflow: auto; padding: clamp(1rem, 1.8vw, 1.5rem);
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-xl); background: var(--color-bg-surface); box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
  animation: vg-pop .5s var(--vg-ease); }
@keyframes vg-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.vg-x { position: absolute; z-index: 5; top: .8rem; right: .8rem; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--color-border-strong); border-radius: 50%;
  background: color-mix(in srgb, var(--color-bg-page) 70%, transparent); color: var(--color-text-primary); cursor: pointer; font-size: 1.05rem; transition: border-color .3s, color .3s; }
.vg-x:hover { border-color: var(--color-accent-primary); color: var(--color-accent-primary); }
.vg-s-pic { position: relative; isolation: isolate; align-self: start; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: #120d1c;
  border: 1px solid color-mix(in srgb, var(--emo) 40%, transparent); transition: border-color .6s, box-shadow .6s; }
.vg-sheet-box.is-playing .vg-s-pic { box-shadow: 0 0 70px -12px color-mix(in srgb, var(--emo) 65%, transparent); border-color: color-mix(in srgb, var(--emo) 75%, transparent); }
.vg-s-pic > img, .vg-s-pic .vg-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vg-sheet-box.is-playing .vg-glow { opacity: 1; }
.vg-s-pic .vg-name { right: 1.2rem; left: 1.4rem; bottom: 1.3rem; }
.vg-s-pic .vg-name h2 { margin: 0; font-family: 'Cormorant Garamond', var(--font-family-heading); font-weight: 600; font-size: clamp(2.6rem, 4vw, 3.8rem); line-height: .95; color: var(--color-text-primary); text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }
.vg-s-pic .vg-name p { font-size: clamp(1.2rem, 1.5vw, 1.45rem); margin-top: .45rem; white-space: normal; }
.vg-s-pic .vg-prog { height: 3px; }
.vg-s-body { display: flex; flex-direction: column; min-width: 0; padding: clamp(.6rem, 1.6vw, 1.6rem) clamp(.2rem, 1vw, 1rem) clamp(.4rem, 1vw, .8rem) 0; }
.vg-s-body .vg-sound { padding: 0; margin: 0 3rem 1.4rem 0; font-size: .7rem; }
.vg-s-k { margin: 0 0 .7rem; font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--color-text-primary); }
.vg-s-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.vg-s-pills .vg-pill { padding: .48rem 1rem; font-size: .88rem; }
.vg-s-pills .vg-pill.is-in { animation: vg-up .45s var(--vg-ease) both; animation-delay: calc(var(--i, 0) * 12ms); }
/* strength choice in the voice view: a small three-bar meter in each button */
.vg-meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-right: .5rem; vertical-align: -1px; }
.vg-meter b { width: 3px; border-radius: 1px; background: currentColor; opacity: .3; }
.vg-meter b:nth-child(1) { height: 6px; }
.vg-meter b:nth-child(2) { height: 9px; }
.vg-meter b:nth-child(3) { height: 12px; }
.vg-meter[data-n="1"] b:nth-child(-n+1), .vg-meter[data-n="2"] b:nth-child(-n+2), .vg-meter[data-n="3"] b { opacity: 1; }
.vg-s-lv .vg-pill[disabled] { opacity: .35; cursor: default; }
/* the landing page's player bar */
.vg-player { display: flex; align-items: center; gap: 1.2rem; margin: .4rem 0 1.4rem; padding: .65rem 1.6rem .65rem .65rem; border: 1px solid var(--color-border-strong); border-radius: 999px;
  background: color-mix(in srgb, var(--color-bg-elevated) 70%, transparent); }
.vg-pbtn { flex: none; display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border: 1px solid var(--color-accent-primary); border-radius: 50%; cursor: pointer;
  background: var(--color-bg-elevated); color: var(--color-text-primary); font-size: 1.05rem; transition: transform .3s var(--vg-ease), background .3s, color .3s; }
.vg-pbtn .fa-play { margin-left: 3px; }
.vg-pbtn:hover { transform: scale(1.06); background: var(--color-accent-primary); color: #1a1528; }
.vg-sheet-box.is-playing .vg-pbtn { animation: vg-ring 1.9s ease-out infinite; }
.vg-dots { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 2px; overflow: hidden; }
.vg-dots i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--color-text-primary) 26%, transparent); transition: background .2s, transform .3s; }
.vg-dots i.is-lit { background: var(--emo); transform: scale(1.35); box-shadow: 0 0 8px var(--emo); }
.vg-plabel { flex: none; font-family: 'Cormorant Garamond', var(--font-family-heading); font-style: italic; font-size: 1.55rem; color: var(--color-accent-primary); }
.vg-s-foot { margin-top: auto; }
.vg-s-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.vg-s-acts .vg-use { width: auto; min-width: 16rem; height: 52px; font-size: .98rem; background: var(--color-accent-primary); color: #1a1528; border-color: var(--color-accent-primary); box-shadow: 0 10px 30px color-mix(in srgb, var(--color-cta) 26%, transparent); }
.vg-s-acts .vg-use:hover { background: #f0c25e; }
.vg-s-nav { display: flex; gap: .5rem; margin-left: auto; }
.vg-s-nav button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--color-border-strong); border-radius: 50%; background: none; cursor: pointer;
  color: var(--color-text-secondary); font-size: 1rem; transition: border-color .3s, color .3s; }
.vg-s-nav button:hover { border-color: var(--color-accent-primary); color: var(--color-accent-primary); }
body.vg-locked { overflow: hidden; }

/* ========== After Use in Demodokos: the offer, the voice on its way, send it to the PC ========== */
.vg-get { --vg-ease: cubic-bezier(.2, .72, .22, 1); position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: clamp(1rem, 3vw, 2rem); }
.vg-get[hidden] { display: none; }
.vg-get p { max-width: none; }
.vg-get-bg { position: absolute; inset: 0; background: rgba(8, 6, 14, .82); animation: vg-fade .35s; }
.vg-get-box { --emo: var(--color-accent-primary); position: relative; display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1fr); width: min(900px, 100%);
  max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow: auto; border: 1px solid var(--color-border-strong); border-radius: var(--radius-xl);
  background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--color-accent-primary) 8%, transparent), transparent 70%), var(--color-bg-surface);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7); animation: vg-pop .5s var(--vg-ease); }
.vg-get-pic { position: relative; isolation: isolate; overflow: hidden; min-height: 100%; background: #120d1c; border-right: 1px solid color-mix(in srgb, var(--emo) 28%, transparent); transition: border-color .6s; }
.vg-get-box.is-playing .vg-get-pic { border-color: color-mix(in srgb, var(--emo) 70%, transparent); }
.vg-get-pic > img, .vg-get-pic .vg-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vg-get-pic .vg-name { left: 1.3rem; right: 5rem; bottom: 1.2rem; }
.vg-get-pic .vg-name strong { display: block; font-family: 'Cormorant Garamond', var(--font-family-heading); font-weight: 600; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.05; color: var(--color-text-primary); }
.vg-get-pic .vg-play { right: 1.2rem; bottom: 1.25rem; width: 48px; height: 48px; font-size: .9rem; }
.vg-get-box.is-playing .vg-play { animation: vg-ring 1.9s ease-out infinite; }
.vg-get-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: clamp(2.4rem, 4.4vw, 3.4rem) clamp(1.6rem, 3.6vw, 2.8rem); }
.vg-get-body h2 { margin: 0; font-family: 'Cormorant Garamond', var(--font-family-heading); font-weight: 600; font-size: clamp(2.2rem, 3.8vw, 3rem); line-height: 1.06; color: var(--color-text-primary); }
.vg-get-body h2 em { color: var(--color-accent-primary); font-style: italic; white-space: nowrap; }
.vg-get-line { margin: .9rem 0 0; font-size: 1.04rem; line-height: 1.65; color: var(--color-text-secondary); }
.vg-get-facts { align-self: stretch; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.vg-get-facts li { margin: 0; padding: .62rem 0; border-top: 1px solid color-mix(in srgb, var(--color-accent-primary) 20%, transparent);
  font-family: 'Cormorant Garamond', var(--font-family-heading); font-style: italic; font-size: 1.32rem; line-height: 1.25; color: var(--color-text-primary); }
.vg-get-facts li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--color-accent-primary) 20%, transparent); }
.vg-get-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: 1.7rem; }
.vg-get-link { padding: .25rem 0; border: 0; background: none; cursor: pointer; font-family: 'Cormorant Garamond', var(--font-family-heading); font-style: italic; font-size: 1.22rem; line-height: 1.3; color: var(--color-accent-primary);
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--color-accent-primary) 45%, transparent); text-underline-offset: .22em; transition: color .3s, text-decoration-color .3s; }
.vg-get-link:hover { color: #f0c25e; text-decoration-color: currentColor; }
.vg-get-mark { width: 54px; height: 54px; margin-bottom: 1.1rem; fill: none; stroke: var(--color-accent-primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vg-get-mark circle { stroke-dasharray: 214; stroke-dashoffset: 214; transform: rotate(-90deg); transform-origin: center; animation: vg-draw .9s var(--vg-ease) .1s forwards; }
.vg-get-mark path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: vg-draw .45s var(--vg-ease) .75s forwards; }
@keyframes vg-draw { to { stroke-dashoffset: 0; } }

.vg-cta { background: var(--color-bg-surface); }
.vg-cta h2 { font-family: 'Cormorant Garamond', var(--font-family-heading); font-weight: 600; }
.vg-cta .cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.8rem; }

/* ========== Narrower screens ========== */
@media (max-width: 900px) {
  .vg { --vg-nav: 56px; }
  .vg-sheet { padding: 0; }
  .vg-sheet-box { display: block; width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; padding: 0 0 1.5rem; }
  .vg-s-pic { width: 100%; aspect-ratio: 4 / 3.4; margin-bottom: 1.2rem; border-radius: 0; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--emo) 40%, transparent); }
  .vg-s-pic > img { object-position: 50% 22%; }
  .vg-s-body { padding: 0 var(--vg-gut, 1.25rem); }
  /* player and Use stay in reach while the emotions scroll */
  .vg-s-foot { position: sticky; bottom: 0; z-index: 3; margin: 0 calc(-1 * var(--vg-gut, 1.25rem)); padding: .7rem var(--vg-gut, 1.25rem) .3rem;
    background: var(--color-bg-surface); border-top: 1px solid var(--color-border-default); box-shadow: 0 -18px 30px -12px rgba(0, 0, 0, .7); }
  .vg-s-foot .vg-player { margin: 0 0 .7rem; padding-top: .45rem; padding-bottom: .45rem; }
  .vg-s-acts { flex-wrap: nowrap; }
  .vg-s-acts .vg-use { flex: 1; min-width: 0; height: 48px; }
  .vg-sheet-box { padding-bottom: 0; }
}
@media (max-width: 640px) {
  .vg-card .vg-sound { white-space: normal; line-height: 1.55; min-height: 3.1em; display: flex; align-items: center; justify-content: center; }
  .vg-head { padding-top: calc(var(--vg-nav) + 1.3rem); padding-bottom: 1.1rem; }
  .vg-head h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .vg-cycle-box { min-width: 0; }
  .vg-lead { font-size: .96rem; }
  .vg-bar-in { gap: .9rem; }
  .vg-find-open span { display: none; }
  .vg-find-open { width: 44px; height: 44px; justify-content: center; font-size: 1.05rem; color: var(--color-text-primary); border-left: 1px solid var(--vg-hair); }
  .vg-find-field input { font-size: 1.2rem; }
  .vg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; padding-top: 1.1rem; }
  .vg-card { padding: .9rem .55rem .75rem; }
  .vg-av { width: 116px; }
  .vg-n { font-size: 1.22rem; }
  .vg-r { font-size: .9rem; }
  .vg-play { width: 36px; height: 36px; font-size: .7rem; }
  .vg-init { font-size: 2rem; }
  .vg-now { top: .6rem; left: .65rem; font-size: .56rem; }
  .vg-sound { font-size: .56rem; letter-spacing: .12em; }
  .vg-emos { gap: .3rem; }
  .vg-pill, .vg-card .vg-pill { padding: .32rem .58rem; font-size: .72rem; }
  .vg-use { height: 38px; padding: 0 .4rem; gap: .35rem; font-size: .72rem; }
  .vg-mark { font-size: .85rem; }
  .vg-s-pills .vg-pill { padding: .42rem .82rem; font-size: .82rem; }
  .vg-player { padding-right: 1.1rem; gap: .8rem; }
  .vg-pbtn { width: 50px; height: 50px; }
  .vg-plabel { font-size: 1.3rem; }
  .vg-s-nav button { width: 40px; height: 40px; }
  /* the window rises from the bottom, within reach of the thumb */
  .vg-get { place-items: end stretch; padding: 0; }
  .vg-get-box { display: block; width: 100%; border-width: 1px 0 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; animation-name: vg-fup; }
  .vg-get-pic { min-height: 0; height: clamp(150px, 27vh, 230px); border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--emo) 28%, transparent); }
  .vg-get-pic > img { object-position: 50% 22%; }
  .vg-get-pic .vg-name strong { font-size: 1.9rem; }
  .vg-get-body { padding: 1.3rem 1.25rem 1.5rem; }
  .vg-get-body h2 { font-size: 2.05rem; }
  .vg-get-line { margin-top: .55rem; font-size: 1rem; line-height: 1.55; }
  .vg-get-mark { width: 44px; height: 44px; margin-bottom: .7rem; }
  .vg-get-facts { margin-top: .9rem; }
  .vg-get-facts li { padding: .42rem 0; font-size: 1.16rem; }
  .vg-get-acts { align-self: stretch; flex-direction: column; align-items: stretch; gap: .55rem; margin-top: 1.1rem; }
  .vg-get-acts .btn-glow, .vg-get-acts .btn-ghost { width: 100%; max-width: none; justify-content: center; text-align: center; white-space: nowrap; }
  .vg-get-link { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .vg *, .vg *::before, .vg *::after, .vg-sheet *, .vg-get, .vg-get * { animation: none !important; transition: none !important; }
  .vg-card { opacity: 1; transform: none; }
  .vg-get-mark circle, .vg-get-mark path { stroke-dashoffset: 0; }
}

/* Category tabs, Filters button and filter panel. */

/* ========== Category tabs ========== */
.vg-bar-in { min-height: 4.6rem; gap: 1rem; }
.vg-tabs { gap: 0; align-items: stretch; }
.vg-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .38rem; flex: none; position: relative; padding: .7rem .95rem .65rem; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font-family: 'Inter', var(--font-family-base); font-size: .8rem; font-weight: 500; letter-spacing: .01em; color: color-mix(in srgb, var(--color-text-primary) 74%, transparent); transition: color .3s; }
.vg-tab i { font-size: 1.3rem; color: color-mix(in srgb, var(--color-accent-primary) 72%, transparent); transition: transform .35s cubic-bezier(.2, .72, .22, 1), color .3s, filter .3s; }
.vg-tab:hover { color: var(--color-text-primary); }
.vg-tab:hover i { transform: translateY(-2px); color: var(--color-accent-primary); }
.vg-tab.is-on { color: var(--color-accent-primary); }
.vg-tab.is-on i { color: var(--color-accent-primary); filter: drop-shadow(0 0 10px rgba(232, 180, 76, .55)); }
.vg-tab::after { content: ""; position: absolute; left: .95rem; right: .95rem; bottom: 0; height: 2px; background: var(--color-accent-primary); transform: scaleX(0); transition: transform .45s cubic-bezier(.2, .72, .22, 1); }
.vg-tab.is-on::after { transform: scaleX(1); }
.vg-tab:focus-visible { outline: 2px solid var(--color-accent-primary); outline-offset: -2px; }

/* ========== Filters and Search buttons ========== */
.vg-fbtn, .vg-find-open { position: relative; flex: none; display: inline-flex; align-items: center; gap: .55rem; height: 40px; padding: 0 1.05rem; border: 1px solid color-mix(in srgb, var(--color-text-primary) 22%, transparent); border-radius: 999px; background: transparent; color: var(--color-text-primary);
  font: 500 .88rem 'Inter', sans-serif; cursor: pointer; transition: border-color .3s, color .3s; }
.vg-fbtn i, .vg-find-open i { color: var(--color-accent-primary); }
.vg-fbtn:hover, .vg-find-open:hover, .vg-fbtn.is-open, .vg-fbtn.is-active { border-color: var(--color-accent-primary); color: var(--color-accent-primary); }
.vg-fbtn:focus-visible, .vg-find-open:focus-visible { outline: 2px solid var(--color-accent-primary); outline-offset: 2px; }
.vg-fbadge { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--color-accent-primary); color: #1a1528; font: 700 .68rem 'Inter', sans-serif; }
.vg-fbadge[hidden] { display: none; }
.vg-bar.is-searching .vg-fbtn { visibility: hidden; }

/* ========== Filter panel (desktop: drops down under the bar) ========== */
.vg-filter { position: absolute; left: 0; right: 0; top: 100%; }
.vg-filter[hidden] { display: none; }
.vg-filter-bg { display: none; }
.vg-filter-box { background: var(--color-bg-surface); border-top: 1px solid color-mix(in srgb, var(--color-text-primary) 8%, transparent); border-bottom: 1px solid var(--color-border-strong); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .9);
  animation: vg-fdown .35s cubic-bezier(.2, .72, .22, 1); max-height: 60vh; overflow: auto; }
@keyframes vg-fdown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes vg-fup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.vg-filter-in { display: grid; grid-template-columns: 1fr 1.5fr 2.2fr 1.2fr; gap: 2.5rem; padding: 1.5rem 0 1.1rem; }
.vg-fk { margin: 0 0 .75rem; font: 600 .68rem 'Inter', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--color-text-primary); }
.vg-fo { display: flex; flex-wrap: wrap; gap: .45rem; }
.vg-fc { margin-left: .35rem; font-size: .72rem; color: var(--color-text-muted); }
.vg-pill.is-on .vg-fc { color: rgba(26, 21, 40, .6); }
.vg-pill.is-zero { opacity: .35; pointer-events: none; }
.vg-filter-foot { display: flex; justify-content: space-between; align-items: center; padding: .9rem 0 1.2rem; border-top: 1px solid color-mix(in srgb, var(--color-text-primary) 8%, transparent); }
.vg-filter-clear { padding: .2rem 0; border: 0; border-bottom: 1px solid transparent; background: none; cursor: pointer; font: 400 .9rem 'Inter', sans-serif; color: var(--color-text-secondary); transition: color .3s, border-color .3s; }
.vg-filter-clear:hover { color: var(--color-accent-primary); border-bottom-color: var(--color-accent-primary); }
.vg-filter-show { border: 0; cursor: pointer; font-family: 'Inter', sans-serif; }
.vg-filter-show[disabled] { opacity: .45; cursor: default; }

/* ========== Summary line ========== */
.vg-active { display: flex; align-items: baseline; gap: .9rem; padding-top: 1.1rem; }
.vg-active[hidden] { display: none; }
.vg-active-t { font-family: 'Cormorant Garamond', var(--font-family-heading); font-style: italic; font-size: 1.2rem; color: var(--color-text-primary); }
.vg-active-n { font: 600 .66rem 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--color-text-muted); }
.vg-active-clear { padding: 0 0 .1rem; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--color-accent-primary) 45%, transparent); background: none; cursor: pointer; font: 400 .86rem 'Inter', sans-serif; color: var(--color-accent-primary); }

/* ========== Phone ========== */
@media (max-width: 640px) {
  .vg-tab { padding: .6rem .7rem .55rem; font-size: .74rem; }
  .vg-tab i { font-size: 1.15rem; }
  .vg-tab::after { left: .7rem; right: .7rem; }
  .vg-fbtn, .vg-find-open { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 1.05rem; }
  .vg-fbtn span, .vg-find-open span { display: none; }
  .vg-fbtn .vg-fbadge { position: absolute; top: -4px; right: -4px; }
  .vg-bar:has(.vg-filter:not([hidden])) { z-index: 1100; }
  .vg-filter { position: fixed; inset: 0; z-index: 1100; }
  .vg-filter-bg { display: block; position: absolute; inset: 0; background: rgba(8, 6, 14, .72); }
  .vg-filter-box { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; border: 1px solid var(--color-border-strong); animation: vg-fup .35s cubic-bezier(.2, .72, .22, 1); }
  .vg-filter-in { grid-template-columns: 1fr; gap: 1.3rem; padding-top: 1.3rem; }
  .vg-filter-foot { position: sticky; bottom: 0; background: var(--color-bg-surface); gap: 1rem; }
  .vg-filter-show { flex: 1; justify-content: center; }
}
