/* Quiet by default. Only the latest update and four actions stay on stage. */
.planet-live-layer {
    --rail-inset: clamp(16px, 2.5vw, 44px);
    --rail-bottom: clamp(26px, 5vh, 54px);
    --rail-width: 48px;
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    color: var(--planet-ink);
}
.planet-live-layer [hidden] { display: none !important; }
.planet-live-layer :is(button, a, textarea):focus-visible { outline: 2px solid var(--planet-live); outline-offset: 4px; }
.planet-live-layer button { -webkit-tap-highlight-color: transparent; }

/* Two quiet lines: release identity, then its benefit. The optional studio opens below. */
.planet-studio-tv { position: absolute; z-index: 2; top: var(--planet-tv-inset); left: var(--planet-tv-inset); width: min(var(--planet-tv-width), calc(100% - 2 * var(--planet-tv-inset))); padding: 10px; border: 1px solid var(--planet-glass-border); border-radius: var(--r-md); background: var(--planet-glass); color: var(--planet-ink); pointer-events: auto; backdrop-filter: var(--planet-glass-filter); -webkit-backdrop-filter: var(--planet-glass-filter); box-shadow: var(--planet-glass-shadow); }
.planet-studio-tv[data-expanded="true"] { border-color: var(--planet-line-strong); }
.planet-update-peek { display: flex; align-items: center; justify-content: center; gap: 3px; width: 36px; min-height: 32px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--planet-muted); cursor: pointer; }
.planet-update-peek:hover { background: var(--planet-line); color: var(--planet-ink); }
.planet-live-layer .planet-update-peek:focus-visible { outline: 2px solid var(--planet-gold); outline-offset: 1px; }
.planet-studio-tv-icon { flex: 0 0 auto; width: 17px; height: 17px; fill: currentColor; color: var(--planet-gold); }
.planet-studio-toggle { flex: 0 0 auto; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; color: var(--planet-faint); transition: transform .2s; }
.planet-update-peek[aria-expanded="true"] .planet-studio-toggle { transform: rotate(180deg); }
.planet-studio-screen { margin-top: 10px; }
.planet-studio-status { display: grid; gap: 5px; min-width: 0; }
.planet-update-meta { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; color: var(--planet-faint); font-size: .75rem; }
.planet-current-release { display: flex; align-items: baseline; gap: 5px; min-width: 0; color: var(--planet-faint); text-decoration: none; white-space: nowrap; }
.planet-update-context { flex-shrink: 0; color: var(--planet-muted); }
.planet-current-release b { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--planet-ink); font-size: .875rem; font-weight: 550; }
.planet-current-release [data-update-version] { flex-shrink: 0; }
.planet-current-release:hover b { text-decoration: underline; text-underline-offset: 3px; }
.planet-current-release > span:last-child { opacity: .6; }
.planet-update-meta time { white-space: nowrap; }
.planet-update-summary { display: flex; gap: 1px; width: 100%; overflow: hidden; color: var(--planet-ink); }
.planet-flap { position: relative; flex: 1 1 0; min-width: 0; height: 1.5rem; border-radius: 2px; background: linear-gradient(var(--planet-flap-top) 50%, var(--planet-flap-bottom) 50%); perspective: 100px; }
.planet-flap::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--planet-panel-strong); opacity: .55; pointer-events: none; }
.planet-flap-face { display: grid; place-items: center; width: 100%; height: 100%; font: 500 .875rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; backface-visibility: hidden; }
.planet-flap.is-flipping .planet-flap-face { animation: planetLetterFlip .48s var(--flap-delay, 0ms) ease-in-out both; }

/* Social-video familiarity, without counts, a container, or perpetual motion. */
.planet-action-rail {
    position: absolute;
    z-index: 3;
    right: var(--rail-inset);
    bottom: var(--rail-bottom);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: var(--rail-width);
    pointer-events: auto;
}
.planet-rail-action { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 48px; min-height: 48px; padding: 0; border: 0; background: transparent; color: var(--planet-ink); cursor: pointer; }
.planet-rail-icon { position: relative; display: grid; place-items: center; width: 44px; height: 42px; border-radius: 50%; background: transparent; filter: drop-shadow(0 2px 5px var(--planet-panel)); transition: background .18s, transform .18s; }
.planet-rail-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.planet-love-action svg { width: 27px; height: 27px; fill: currentColor; stroke-width: .7; }
.planet-rail-label { color: var(--planet-muted); font-size: .75rem; line-height: 1.25; }
.planet-rail-action:hover .planet-rail-icon, .planet-rail-action[aria-expanded="true"] .planet-rail-icon { background: var(--planet-line); }
.planet-rail-action:hover .planet-rail-icon { transform: translateY(-2px); }
.planet-rail-action:active .planet-rail-icon { transform: scale(.9); }
.planet-love-action.is-loved .planet-rail-icon { color: var(--planet-love); }
.planet-rail-action.is-reacting .planet-rail-icon { animation: planetHeartBeat .34s ease; }
.planet-rail-divider { width: 15px; height: 1px; margin-block: 2px 0; background: var(--planet-line-strong); }
.planet-fullscreen-action { min-height: 44px; color: var(--planet-faint); }
.planet-fullscreen-action svg { width: 19px; height: 19px; }
.planet-music-indicator { display: none; }
[data-playing="true"] .planet-rail-icon { color: var(--planet-violet); }

/* Small, local responses. Nothing crosses the globe uninvited. */
.planet-reaction-field { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.planet-floating-reaction { position: absolute; left: var(--float-x); top: var(--float-y); width: var(--float-size, 23px); height: var(--float-size, 23px); color: var(--planet-love); font-size: 22px; line-height: 1; animation: planetReactionRise 2.2s ease-out both; }
.planet-floating-reaction svg { width: 100%; height: 100%; fill: currentColor; }
.planet-floating-note { position: absolute; left: 67%; top: 42%; max-width: min(240px, 43vw); padding: 10px 15px; border: 1px solid var(--planet-line-strong); border-radius: 18px 18px 18px 4px; background: var(--planet-panel-strong); box-shadow: var(--planet-shadow); color: var(--planet-ink); font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; animation: planetNoteRise 5s ease both; }
.planet-floating-note small { display: block; margin-bottom: 3px; color: var(--planet-faint); font-size: .75rem; }
.planet-floating-note:nth-of-type(even) { top: 55%; left: 63%; }
.planet-live-page.planet-live-controls-active .gbar-stack > .gbar { display: none; }
.planet-live-page.planet-live-controls-active .gbar-menu { display: none !important; }

@keyframes planetLetterFlip { 0% { transform: rotateX(0); } 49% { transform: rotateX(-90deg); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes planetHeartBeat { 40% { transform: scale(1.15); } 70% { transform: scale(.96); } }
@keyframes planetReactionRise { 0% { opacity: 0; transform: translate(-50%, 0) scale(.5) rotate(-8deg); } 15% { opacity: .95; } 100% { opacity: 0; transform: translate(calc(-50% + var(--float-drift)), -175px) scale(1.1) rotate(var(--float-spin)); } }
@keyframes planetNoteRise { 0% { opacity: 0; transform: translateY(9px) scale(.96); } 12%,75% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-30px) scale(.99); } }

@media (max-width: 720px) {
    .planet-live-layer { --rail-inset: 16px; --rail-bottom: 24px; }
    .planet-action-rail { gap: 11px; }
    .planet-floating-note { left: 37%; top: 34%; max-width: calc(63% - 72px); }
    .planet-floating-note:nth-of-type(even) { left: 31%; top: 46%; }
}
@media (max-width: 370px) { .planet-flap-face { font-size: .75rem; } }
@media (max-height: 540px) and (orientation: landscape) {
    .planet-action-rail { gap: 4px; }
    .planet-rail-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .planet-studio-toggle { transition: none; }
    .planet-flap.is-flipping .planet-flap-face, .planet-rail-action.is-reacting .planet-rail-icon { animation: none; }
    .planet-floating-reaction, .planet-floating-note { animation: none; }
}
