/* verdict.css: THE AUDIENCE VERDICT. Markup from verdict_render() in includes/verdict.php; behaviour in assets/js/verdict.js.
   Everything is under .nsv, so nothing here can reach the rest of the site. Palette and type are the Episode page's own:
   near-black, hot pink, gold, plum panels, Oswald capitals.

   Two shapes:
     FRESH   (nobody has rated yet, this reader included): the full panel with large stars.
     COMPACT (this reader has rated, or voting is closed): one slim row: small gold stars, their own rating and the
             Audience Score. "Change your verdict" opens the full panel again, in place. */

.nsv { --v-pink: #ff2faf; --v-gold: #e4b84a; --v-ink: #060306; position: relative; overflow: hidden; margin: 30px 0 22px; padding: 22px clamp(16px, 3vw, 32px) 24px;
  background: linear-gradient(180deg, #1a0c1d 0%, #0d060f 100%); border: 1px solid #3a2236; border-top: 2px solid var(--v-gold); color: #f4eaf3; text-align: center; font-family: "DM Sans", system-ui, sans-serif; line-height: 1.4; }
.nsv[hidden], .nsv [hidden] { display: none !important; }
.nsv-brand { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .28em; color: #b79bb4; text-transform: uppercase; }
.nsv-s { display: inline-block; padding: 2px 6px; background: var(--v-pink); color: #18061a; font-weight: 700; letter-spacing: .04em; }
.nsv-title { margin: 12px 0 4px; font: 600 clamp(22px, 4.4vw, 34px)/1.1 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.nsv-prompt { margin: 2px 0 16px; font-style: italic; color: #cbb6c9; font-size: 15px; }
.nsv-note { margin: 8px 0 14px; color: #bda8bb; font-size: 14px; }

/* the stars (a star is two half-star buttons laid over one drawing) */
.nsv-star { --sz: clamp(42px, 12vw, 72px); position: relative; display: inline-block; width: var(--sz); height: var(--sz); vertical-align: middle; }
.nsv-star svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nsv-star-bg path { fill: #3b2d40; }
.nsv-star-fg { clip-path: inset(0 calc((1 - var(--fill)) * 100%) 0 0); transition: clip-path .12s ease; }
.nsv-star-fg path { fill: var(--v-gold); }
.nsv-stars { display: inline-flex; gap: clamp(2px, 1vw, 8px); padding: 4px 0; }
.nsv .nsv-half { position: absolute; top: 0; bottom: 0; width: 50%; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 0; -webkit-tap-highlight-color: transparent; }
.nsv-l { left: 0; } .nsv-r { right: 0; }
.nsv .nsv-half:focus-visible { outline: 2px solid var(--v-pink); outline-offset: -2px; background: rgba(255, 47, 175, .12); }
.nsv-mini { display: inline-flex; gap: 2px; vertical-align: middle; }
.nsv-mini .nsv-star { --sz: 19px; }
.nsv-big .nsv-star { --sz: clamp(34px, 9vw, 52px); }
.nsv-ghost { opacity: .45; }

.nsv-readout { min-height: 34px; margin: 6px 0 2px; font: 600 clamp(20px, 3.6vw, 26px)/1.2 "Oswald", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--v-gold); }
.nsv-readout.is-empty, .nsv-readtext.is-empty { color: #8f7a8c; }
.nsv-tools { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.nsv .nsv-step { width: 44px; height: 44px; padding: 0; background: #170b1a; border: 1px solid #5a2f52; color: #fff; font: 600 22px/1 "Oswald", sans-serif; cursor: pointer; border-radius: 0; }
.nsv .nsv-step:hover { border-color: var(--v-pink); }
.nsv .nsv-zero { height: 44px; padding: 0 16px; background: transparent; border: 1px solid #5a2f52; color: #d8c5d6; font: 500 12px/1 "Oswald", sans-serif; letter-spacing: .18em; cursor: pointer; border-radius: 0; }
.nsv .nsv-zero:hover { border-color: var(--v-gold); }
.nsv .nsv-zero[aria-pressed="true"] { background: var(--v-gold); border-color: var(--v-gold); color: #1b1304; font-weight: 700; }
.nsv .nsv-step:focus-visible, .nsv .nsv-zero:focus-visible, .nsv .nsv-submit:focus-visible, .nsv .nsv-view:focus-visible, .nsv .nsv-change:focus-visible, .nsv .nsv-cancel:focus-visible { outline: 2px solid var(--v-gold); outline-offset: 2px; }

.nsv-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 6px; }
.nsv .nsv-submit { min-width: min(100%, 320px); padding: 16px 30px; background: var(--v-pink); color: #18061a; border: 0; border-radius: 0; font: 700 14px/1 "Oswald", sans-serif; letter-spacing: .22em; cursor: pointer; transition: background .15s; }
.nsv .nsv-submit:hover:not(:disabled) { background: #fff; }
.nsv .nsv-submit:disabled { opacity: .38; cursor: not-allowed; }
.nsv .nsv-view, .nsv .nsv-cancel { padding: 6px 2px; background: transparent; border: 0; border-bottom: 1px solid #6d5a2a; color: #e8d28c; font: 500 12px/1 "Oswald", sans-serif; letter-spacing: .2em; cursor: pointer; }
.nsv .nsv-view:hover, .nsv .nsv-cancel:hover { color: #fff; border-bottom-color: #fff; }
.nsv-peek { min-height: 8px; margin-top: 14px; color: #efe3ee; }
.nsv-peek .nsv-lbl { display: block; font: 500 11px/1 "Oswald", sans-serif; letter-spacing: .26em; color: #b79bb4; margin-bottom: 4px; }
.nsv-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nsv-error { margin: 14px 0 0; color: #ff9cc3; font-size: 14px; }

/* the score, wherever it appears */
.nsv-num { font: 600 clamp(24px, 4.2vw, 32px)/1 "Oswald", sans-serif; color: #fff; letter-spacing: .04em; }
.nsv-num i { font-style: normal; font-size: .62em; color: #a99bad; }
.nsv-count { display: block; margin-top: 5px; font: 500 11px/1 "Oswald", sans-serif; font-style: normal; letter-spacing: .22em; color: #cbb6c9; }
.nsv-none strong { display: block; font: 600 clamp(18px, 3.4vw, 24px)/1.1 "Oswald", sans-serif; letter-spacing: .14em; color: #fff; }
.nsv-none em { display: block; margin-top: 6px; color: #bda8bb; font-size: 14px; }

/* COMPACT: one slim row */
.nsv.is-compact { padding: 12px clamp(12px, 2.4vw, 22px); text-align: left; }
.nsv-compact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(14px, 3vw, 28px); }
.nsv-badge { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 "Oswald", sans-serif; letter-spacing: .24em; color: #b79bb4; white-space: nowrap; }
.nsv-minewrap { display: inline-flex; align-items: center; }
.nsv-mine, .nsv-aud { display: inline-flex; flex-direction: column; gap: 4px; min-width: 0; }
.nsv-mine .nsv-lbl, .nsv-aud .nsv-lbl { font: 500 10px/1 "Oswald", sans-serif; letter-spacing: .24em; color: #a28ea0; text-transform: uppercase; }
.nsv-mine strong, .nsv-aud .nsv-num { font: 600 21px/1 "Oswald", sans-serif; color: var(--v-gold); letter-spacing: .04em; }
.nsv-aud .nsv-num { color: #fff; font-size: 21px; display: inline; }
.nsv-aud { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.nsv-aud .nsv-lbl { flex: 0 0 100%; }
.nsv-aud .nsv-count { display: inline; margin: 0; font-size: 10px; letter-spacing: .2em; }
.nsv-aud .nsv-none strong { font-size: 15px; display: inline; }
.nsv-aud .nsv-none em { display: inline; margin: 0 0 0 8px; font-size: 13px; }
.nsv-mine i { font-style: normal; font-size: .7em; color: #a99bad; }
.nsv .nsv-change { margin-left: auto; padding: 9px 14px; background: transparent; border: 1px solid #5a2f52; color: #e8dce6; font: 500 11px/1 "Oswald", sans-serif; letter-spacing: .2em; cursor: pointer; border-radius: 0; }
.nsv .nsv-change:hover { border-color: var(--v-pink); color: #fff; }
.nsv-closed { margin-left: auto; font: 500 11px/1 "Oswald", sans-serif; letter-spacing: .22em; color: #9b8798; }
.nsv.is-closed { border-top-color: #6d5a2a; }

/* opened again from the compact row: the full panel comes back, in place */
.nsv.is-editing { padding: 22px clamp(16px, 3vw, 32px) 24px; text-align: center; }
.nsv.is-editing .nsv-compact { display: none; }

/* the confirmation: the stars glow, a pink light crosses the panel, the words appear. Under a second. */
.nsv-sweep { position: absolute; top: 0; bottom: 0; left: 0; width: 38%; pointer-events: none; opacity: 0; transform: translateX(-120%); background: linear-gradient(100deg, transparent, rgba(255, 47, 175, .42), transparent); }
.nsv.is-celebrating .nsv-sweep { animation: nsv-sweep .8s ease-out both; }
.nsv.is-celebrating .nsv-star-fg path { filter: drop-shadow(0 0 9px rgba(228, 184, 74, .95)); }
.nsv.is-celebrating .nsv-readout { color: #fff; animation: nsv-pop .5s ease-out both; }
.nsv.is-celebrating .nsv-readout .nsv-readtext { color: #fff; }
@keyframes nsv-sweep { 0% { opacity: 0; transform: translateX(-120%); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(300%); } }
@keyframes nsv-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  /* on a phone the compact row is a small grid: badge and stars on top, then YOUR VERDICT beside the AUDIENCE SCORE, then the button */
  .nsv-compact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; align-items: start; }
  .nsv-badge { grid-column: 1; }
  .nsv-minewrap { grid-column: 2; justify-self: end; }
  .nsv-mine { grid-column: 1; } .nsv-aud { grid-column: 2; }
  .nsv .nsv-change, .nsv-closed { grid-column: 1 / -1; margin-left: 0; text-align: center; }
  .nsv .nsv-change { padding: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .nsv *, .nsv *::before, .nsv *::after { animation: none !important; transition: none !important; }
}
