/* stars.css (20 Nov 2026): a star's profile card on the home page (stars/stars.html, js/stars.js), ported from character-card-proto.html.
   The app's card: solid #191622, a fine light rim, glass only on the controls; Newsreader + Jost; close top left, Share top right. */
#stars{width:min(400px,calc(100vw - 32px));max-width:none;max-height:none;margin:auto;padding:0;border:0;background:transparent;color:#fff;overflow:visible;overscroll-behavior:contain}
#stars::backdrop{background:rgba(8,7,13,.5);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
#stars .cc{position:relative;max-height:calc(100svh - 32px);overflow:auto;overscroll-behavior:contain;scrollbar-width:none;border-radius:28px;background:#191622;
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 40px 80px -36px rgba(0,0,0,.9)}
#stars .cc::-webkit-scrollbar{display:none}
#stars[open] .cc{animation:stars-in .38s cubic-bezier(.2,.8,.2,1)}
@keyframes stars-in{from{opacity:0;transform:translateY(10px) scale(.97)}}
#stars .pic{position:relative;aspect-ratio:1/1;overflow:hidden}
#stars .pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
#stars .pic::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.28) 0%,rgba(0,0,0,0) 22%,rgba(25,22,34,0) 55%,rgba(25,22,34,.7) 82%,#191622 100%)}
#stars .gl{position:absolute;z-index:2;top:14px;width:40px;height:40px;padding:0;border-radius:50%;display:grid;place-items:center;border:0;color:#fff;cursor:pointer;
 background:rgba(14,14,14,.45);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
#stars .gl.x{left:14px}#stars .gl.sh{right:14px}
#stars .gl svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#stars .who{position:relative;z-index:2;margin-top:-86px;padding:0 22px}
#stars h2{margin:0;font:400 34px/1.02 Newsreader,Georgia,serif;letter-spacing:-.022em;text-wrap:balance;text-shadow:0 2px 18px rgba(0,0,0,.5)}
#stars .what{margin:8px 0 0;font:400 15px/1.4 Jost,system-ui,sans-serif;color:rgba(255,255,255,.74)}
#stars .what b{color:#fff;font-weight:500}
#stars .act{display:flex;gap:10px;margin:16px 0 0}
#stars .pill{border:0;cursor:pointer;padding:11px 20px;border-radius:999px;font:600 15px/1 Jost,system-ui,sans-serif}
#stars .pill.w{background:#fff;color:#12141d}
#stars .pill.w[aria-pressed="true"]{background:rgba(255,255,255,.1);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
#stars .latest{margin:20px 0 0;padding:16px 22px 20px;border-top:1px solid rgba(255,255,255,.08)}
#stars .latest>p{margin:0 0 10px;font:500 13px/1.2 Jost,system-ui,sans-serif;color:rgba(255,255,255,.6)}
#stars .row{display:flex;align-items:center;gap:12px;padding:8px 0}
#stars .row img{width:48px;height:48px;border-radius:10px;object-fit:cover;flex:none}
#stars .row .t{flex:1;min-width:0}
#stars .row b{display:block;font:600 15px/1.25 Jost,system-ui,sans-serif;text-wrap:balance}   /* never cut: a long title takes two lines */
#stars .row i{display:block;font:400 13px/1.3 Jost,system-ui,sans-serif;font-style:normal;color:rgba(255,255,255,.66)}
#stars .row .pl{flex:none;width:40px;height:40px;padding:0;border-radius:50%;background:#fff;border:0;display:grid;place-items:center;cursor:pointer}
#stars .row .pl svg{width:15px;height:15px;fill:#12141d;margin-left:2px}
#stars .row .pl.on svg{margin-left:0}
#stars button:focus-visible{outline:2px solid #fff;outline-offset:2px}
#stars .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:420px){#stars h2{font-size:30px}}
@media (prefers-reduced-motion:reduce){#stars[open] .cc{animation:none}}

/* a piece playing in the card: the main player's track at card size (css/player-frame.css .pf-seg, .pf-meta), under its row */
#stars .scrub{margin:-2px 0 6px 60px}
#stars .scrub .trk{position:relative;display:flex;align-items:center;height:22px;cursor:pointer;touch-action:none;border-radius:6px}
#stars .scrub .seg{position:relative;flex:1;height:4px;border-radius:3px;background:rgba(255,255,255,.26);overflow:hidden;transition:height .22s cubic-bezier(.2,.8,.2,1)}
#stars .scrub .seg u{position:absolute;left:0;top:0;bottom:0;width:0;background:#fff;border-radius:inherit}
#stars .scrub .trk:hover .seg,#stars .scrub.on .seg{height:8px}
#stars .scrub .trk:focus-visible{outline:2px solid #fff;outline-offset:2px}
#stars .scrub .tm{display:flex;justify-content:space-between;margin-top:1px;font:500 12px/1 Jost,system-ui,sans-serif;font-variant-numeric:tabular-nums;color:rgba(255,255,255,.66)}
@media (prefers-reduced-motion:reduce){#stars .scrub .seg{transition:none}}

/* 20 Nov (UI check): every control in the card is a 44 px target: Close and Share, Follow, the row buttons, and the scrubber, whose hit area is
   44 px tall while its line stays thin (it reaches down over the times, never up over the row's button). The first row opens its expie: an open
   arrow, not the play triangle. Share says so when it copies the link */
#stars .gl{width:44px;height:44px}
#stars .pill{display:inline-flex;align-items:center;min-height:44px;padding:0 20px}
#stars .row .pl{width:44px;height:44px}
#stars .row .pl.op svg{fill:none;stroke:#12141d;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;margin-left:0}
#stars .scrub .trk{box-sizing:border-box;height:44px;margin:-6px 0 -16px;padding-bottom:10px}
#stars .toast{position:absolute;z-index:3;left:50%;top:14px;transform:translateX(-50%);margin:0;display:flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;
 background:rgba(14,14,14,.55);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);
 font:500 14px/1 Jost,system-ui,sans-serif;color:#fff;white-space:nowrap;pointer-events:none;animation:stars-toast .25s ease-out}
#stars .toast[hidden]{display:none}
@keyframes stars-toast{from{opacity:0;transform:translate(-50%,-4px)}}
@media (prefers-reduced-motion:reduce){#stars .toast{animation:none}}

/* the stars together, on the page (stars/stars.html .sw, 29 Nov 2026): the card's own language at tile size. Solid #191622, a fine light rim,
   the portrait fading into the tile, Newsreader name, Jost line, the card's white Follow. Heading and lede as the Book's (css/book.css .bk-copy) */
.sw{position:relative;z-index:1;color:#fff;background:#05060d;padding:clamp(72px,11vh,128px) clamp(20px,5vw,72px) clamp(40px,6vh,72px)}
.sw-in{max-width:1180px;margin:0 auto}
.sw-copy{margin:0 0 clamp(36px,5.4vh,64px)}
.sw-copy h2{margin:0;font:350 clamp(40px,5.6vw,80px)/1 Newsreader,Georgia,serif;letter-spacing:-.028em;text-wrap:balance}
.sw-lede p{margin:22px 0 0;max-width:31rem;font:400 clamp(18px,1.5vw,21px)/1.5 Jost,system-ui,sans-serif;color:rgba(255,255,255,.78);text-wrap:pretty}
@media (min-width:960px){.sw-copy{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(40px,6vw,96px);align-items:end}.sw-copy h2{max-width:9.5em}.sw-lede p{margin-top:0}}
@media (max-width:959px){.sw-copy{max-width:34rem;margin-left:auto;margin-right:auto;text-align:center}.sw-lede p{margin-left:auto;margin-right:auto}}
.sw-row{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,1.6vw,22px)}
.sw-t{position:relative;display:flex;flex-direction:column;border-radius:28px;background:#191622;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 30px 60px -36px rgba(0,0,0,.9);overflow:hidden}
.sw-open{all:unset;box-sizing:border-box;display:flex;flex-direction:column;flex:1;cursor:pointer;padding:0 20px;-webkit-tap-highlight-color:transparent}
.sw-pic{position:relative;display:block;margin:0 -20px;aspect-ratio:1/1;overflow:hidden}
.sw-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.sw-pic::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(25,22,34,0) 52%,rgba(25,22,34,.72) 82%,#191622 100%)}
.sw-n{position:relative;display:block;margin-top:-34px;font:400 clamp(24px,2.1vw,30px)/1.04 Newsreader,Georgia,serif;letter-spacing:-.022em;text-wrap:balance;text-shadow:0 2px 18px rgba(0,0,0,.5)}
.sw-n .nb{white-space:nowrap}
.sw-m{display:block;text-wrap:balance;margin-top:8px;font:400 15px/1.4 Jost,system-ui,sans-serif;color:rgba(255,255,255,.74)}
.sw-fo{align-self:flex-start;margin:16px 20px 20px;border:0;cursor:pointer;padding:11px 20px;border-radius:999px;font:600 15px/1 Jost,system-ui,sans-serif;background:#fff;color:#12141d;-webkit-tap-highlight-color:transparent}
.sw-fo[aria-pressed="true"]{background:rgba(255,255,255,.1);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
.sw-open:focus-visible{outline:2px solid #fff;outline-offset:-4px;border-radius:28px}.sw-fo:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (hover:hover){.sw-open:hover .sw-pic img{transform:scale(1.03)}}
@media (max-width:959px){.sw-row{grid-template-columns:repeat(2,minmax(0,1fr));max-width:680px;margin:0 auto;gap:16px}}   /* a tablet or a phone: two by two, nothing off screen */
@media (max-width:599px){
 .sw{padding-left:16px;padding-right:16px}.sw-row{gap:12px}
 .sw-t{border-radius:22px}.sw-open{padding:0 14px}.sw-pic{margin:0 -14px}
 .sw-n{font-size:clamp(17px,4.8vw,21px);margin-top:-26px}.sw-m{font-size:13.5px;margin-top:6px}
 .sw-fo{margin:14px 14px 16px;padding:10px 17px;font-size:14px}
 .sw-open:focus-visible{border-radius:22px}
}
@media (prefers-reduced-motion:reduce){.sw-pic img{transition:none}}
