/*!
 * voyager-player.css  v1.2.1
 * The Golden Record player on seriouslyscientific.com/voyager/ (version
 * A, the scope under the record), signed off by Deyne in the Test Lab on
 * 31 October 2026 (claude-test-facility/voyager-record-player). Its
 * colours are set on the player's wrapper, .vg-listen, not the page, and
 * it sizes its boxes border-box inside, which the site does not set.
 * Behaviour: js/voyager-player.js. Markup: page-voyager.php, THE GOLDEN
 * RECORD.
 * v1.1.0 (31 October 2026): FULLSCREEN, near the end (version B from
 * claude-test-facility/voyager-player-fullscreen).
 * v1.2.0 (1 November 2026): a Sound of Earth's story and credit under its
 * title, look B from claude-test-facility/voyager-earth-notes (Deyne).
 * v1.2.1 (1 November 2026): the progress line is a slider, with a 22px
 * band to press or drag and the same 4px line drawn across its middle.
 */
.vg-listen {
    --deep-space: #1A0C08;
    --lunar-rock: #3D2318;
    --martian-soil: #795548;
    --amber: #E29000;
    --highlight-yellow: #fadb67;
    --nebula-turquoise: #4A9FD4;
    --starlight: #F7FAFC;
    --starlight-muted: #E2E8F0;
    --dim: #AE8E7B;
    --script-fonts: "Segoe UI", "Segoe UI Historic", "Nirmala UI", "Leelawadee UI", "Myanmar Text",
        "Microsoft YaHei", "Microsoft JhengHei", "Yu Gothic", "Malgun Gothic", "Estrangelo Edessa",
        "Noto Sans", system-ui, sans-serif;
}
.vg-listen, .vg-listen *, .vg-listen *::before, .vg-listen *::after { box-sizing: border-box; }

/* ---- the stage: one black frame, three columns ---- */
.gr-stage {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 1.5rem 2rem;
    align-items: start;
    padding: 1.5rem;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 0 0 1px rgba(250, 219, 103, .55), 0 0 14px rgba(250, 219, 103, .12);
}

/* ---- the lists ----
   Greetings on the left, the Sounds of Earth on the right. (Launch day
   has moved to the countdown: voyager-launch-countdown in the Test Lab.)
   The box keeps one size: the middle column never changes height (the
   words area is fixed, below), and on screens wide enough for three
   columns player.js gives both lists that same height (--gr-list-h), so
   they reach the bottom of the box and scroll inside it if they must. */
.gr-list { display: flex; flex-direction: column; min-width: 0; max-height: 640px; }
.gr-side { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
@media (min-width: 1000px) {
    .gr-list--greet,
    .gr-side { height: var(--gr-list-h, 640px); }
    .gr-list { max-height: none; }
    .gr-side .gr-list { height: 100%; }
}
.gr-list-title {
    margin: 0 0 .6rem;
    padding: 0 .4rem .6rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
}
.gr-list-count {
    display: block;
    margin-top: .15rem;
    font: 400 .72rem/1.3 Inter, sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dim);
}
.gr-items {
    flex: 1 1 auto;
    min-height: 0;
    list-style: none;
    margin: 0;
    padding: 0 .25rem 0 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(250, 219, 103, .35) transparent;
}
.gr-item {
    display: flex;
    align-items: baseline;
    gap: .65rem;
    width: 100%;
    padding: .32rem .6rem;    /* .42rem left the 21 Sounds of Earth 54 px too tall for version B */
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--starlight-muted);
    font: 400 .93rem/1.35 Inter, sans-serif;
    text-align: left;
    cursor: pointer;
}
.gr-item-n {
    flex: none;
    width: 1.6rem;
    color: var(--dim);
    font-variant-numeric: tabular-nums;
    font-size: .8rem;
}
.gr-item-note { display: block; font-size: .72rem; color: var(--dim); }
.gr-item:hover,
.gr-item:focus-visible { border-color: rgba(250, 219, 103, .45); outline: none; }
.gr-item[aria-current="true"] {
    color: var(--highlight-yellow);
    border-color: rgba(250, 219, 103, .6);
    background: rgba(250, 219, 103, .08);
}
.gr-item[aria-current="true"] .gr-item-n { color: var(--amber); }
.gr-item:disabled { cursor: default; opacity: .5; }
.gr-item:disabled:hover { border-color: transparent; }

/* ---- the record, as in the video ----
   A coin with two faces: NASA's photograph of the cover on the front and
   of the record itself on the back, both cut out (the corners are
   see-through). The first press turns it over (is-flipped); the record
   then spins inside its face (player.js turns .gr-spin) under a sheen that
   stays still, as real reflections do. The tonearm is drawn over the top
   right, its pivot just off the record, so the box keeps room above. The
   warm glow is a gradient behind the disc, not a filter, so the spinning
   record never has to redraw its glow. */
.gr-centre { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.gr-disc-wrap { position: relative; width: 100%; max-width: 380px; margin-top: 4.5rem; perspective: 1400px; }
.gr-disc-wrap::before {
    content: "";
    position: absolute;
    inset: -9%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(226, 144, 0, .3) 84%, rgba(226, 144, 0, 0) 100%);
}
/* Square by padding (a percentage of the width) rather than aspect-ratio,
   which older TV browsers lack: there the record would have no height.
   The turn takes 1.4 s, as the video's does (0.9 s was easy to miss). */
.gr-coin {
    position: relative;
    height: 0;
    padding-bottom: 100%;
    transform-style: preserve-3d;
    transition: transform 1.4s cubic-bezier(.45, .05, .25, 1);
}
.gr-coin.is-flipped { transform: rotateY(180deg); }
.gr-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.gr-face--cover { display: block; object-fit: contain; }
.gr-face--record { transform: rotateY(180deg); }
.gr-spin { display: block; width: 100%; height: 100%; border-radius: 50%; will-change: transform; }
.gr-sheen {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    background: conic-gradient(from 300deg, transparent 0deg, rgba(255, 240, 200, .16) 25deg, transparent 60deg,
                               transparent 180deg, rgba(255, 240, 200, .12) 205deg, transparent 240deg);
    mix-blend-mode: screen;
}
/* The tonearm: the video's shape and colours (render_intro.py), in a box
   the size of the record, drawn past its edges. Its shadow falls further
   while it is lifted and moving (is-up). */
.gr-arm {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    filter: drop-shadow(4px 5px 4px rgba(0, 0, 0, .6));
    transition: filter .3s;
}
.gr-arm.is-up { filter: drop-shadow(9px 12px 8px rgba(0, 0, 0, .45)); }
.gr-arm-part { fill: #14161C; stroke: #D9B45A; stroke-width: 4; stroke-linejoin: round; }

/* ---- the oscilloscope: a screen under the record ---- */
.gr-scope {
    display: block;
    width: 100%;
    max-width: 520px;
    height: 110px;
    margin: 1.4rem 0 0;
    border-radius: 10px;
    background: rgba(250, 219, 103, .03);
    box-shadow: inset 0 0 0 1px rgba(250, 219, 103, .18);
}

/* ---- now playing ---- */
/* One height whatever plays, so the box never grows or shrinks. 13rem
   fits 47 of the 55 greetings at full size; the other 8 have their words
   shrunk to fit (85% at the smallest: Gujarati, Persian, Marathi,
   Ukrainian). 16rem left a gap under nearly every greeting (Deyne,
   31 October); 12rem left three that would not fit even at 75%. */
.gr-now { width: 100%; margin: 1.25rem 0 0; text-align: center; height: 13rem; overflow-y: auto; }
.gr-now p { margin: 0; }
.gr-now-kicker { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }
.gr-now-title {
    margin-top: .2rem !important;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
}
.gr-now-who { color: var(--dim); font-size: .9rem; }
/* The three lines of words take their size from --s (1 = full size);
   player.js turns it down a step at a time for the few long greetings
   that would not otherwise fit the words area (never below 0.75). */
.gr-now-orig {
    margin-top: .7rem !important;
    font-family: var(--script-fonts);
    font-size: 1.35rem;
    font-size: calc(1.35rem * var(--s, 1));
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.gr-now-roman { color: var(--starlight-muted); font-style: italic; font-size: calc(1rem * var(--s, 1)); overflow-wrap: anywhere; }
.gr-now-eng { margin-top: .5rem !important; color: var(--starlight-muted); font-size: calc(1rem * var(--s, 1)); }
.gr-now-eng b { color: var(--amber); font-weight: 600; margin-right: .3rem; }
/* A Sound of Earth: what it is for (the story), then who recorded or
   sent it (the credit), small and gold. Greetings never show them. */
.gr-now-story { margin-top: .5rem !important; color: var(--starlight-muted); font-size: calc(.98rem * var(--s, 1)); line-height: 1.5; }
.gr-now-credit { margin-top: .6rem !important; color: var(--amber); font-size: calc(.8rem * var(--s, 1)); letter-spacing: .03em; }

/* ---- controls: yellow, never blue ---- */
.gr-controls { display: flex; align-items: center; gap: .9rem; width: 100%; max-width: 520px; margin: 1rem 0 0; }
.gr-play {
    flex: none;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(250, 219, 103, .6);
    background: rgba(0, 0, 0, .45);
    color: var(--highlight-yellow);
    cursor: pointer;
}
.gr-play svg { width: 20px; height: 20px; }
.gr-play .gr-icon-pause { display: none; }
.gr-play.is-playing .gr-icon-play { display: none; }
.gr-play.is-playing .gr-icon-pause { display: block; }
.gr-play:hover,
.gr-play:focus-visible { background: var(--highlight-yellow); color: #1A0C08; outline: none; }
/* The line is also a slider: a 22px band to hit with a finger, the 4px
   line drawn across its middle. touch-action stops a drag scrolling the page. */
.gr-progress { flex: 1; position: relative; height: 22px; cursor: pointer; touch-action: none; }
.gr-progress::before,
.gr-progress-fill { content: ""; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 999px; }
.gr-progress::before { right: 0; background: rgba(255, 255, 255, .15); }
.gr-progress:hover::before { background: rgba(255, 255, 255, .25); }
.gr-progress-fill { width: 0; background: var(--amber); }
.gr-progress:focus { outline: none; }
.gr-progress:focus-visible { outline: 2px solid var(--highlight-yellow); outline-offset: 2px; border-radius: 4px; }
.gr-time { flex: none; min-width: 5.5rem; text-align: right; color: var(--dim); font-size: .85rem; font-variant-numeric: tabular-nums; }

/* ---- credits ---- */
.gr-credit { max-width: 900px; margin: 1rem auto 0; text-align: center; font-size: .8rem; color: var(--dim); }
.gr-credit--check { color: var(--highlight-yellow); }

/* ---- short screens (the classroom TV at 1280 x 720): a smaller record
   and scope, so the words and controls stay on screen. A height query,
   not min(), for TV browsers. ---- */
@media (min-width: 1000px) and (max-height: 800px) {
    /* The whole box fits a 720 px screen: narrower lists give the words a
       wider middle (so they wrap no more than at 1600 wide), and the
       record and scope are smaller. */
    .gr-stage { grid-template-columns: 260px 1fr 260px; gap: 1rem 1.5rem; padding: 1rem; }
    .gr-disc-wrap { max-width: 200px; margin-top: 2.75rem; }
    .gr-scope { height: 70px; margin-top: .75rem; }
    .gr-now { margin-top: .75rem; }
}

/* ---- tabs: phones only ---- */
.gr-tabs { display: none; }

@media (max-width: 999px) {
    .gr-stage { grid-template-columns: 1fr; padding: 1.1rem; }
    .gr-centre { order: -1; }
    .gr-disc-wrap { max-width: 280px; margin-top: 3.5rem; }
    /* Phones wrap the longest greetings to 365 to 502 px, too tall to fix
       for all: a minimum instead, growing only for those few. */
    .gr-now { height: auto; min-height: 14rem; overflow: visible; }
    .gr-tabs { display: flex; gap: .4rem; }
    .gr-tab {
        flex: 1;
        padding: .6rem .5rem;
        border-radius: 999px;
        border: 1px solid rgba(250, 219, 103, .4);
        background: transparent;
        color: var(--starlight-muted);
        font: 600 .9rem/1 Inter, sans-serif;
        cursor: pointer;
    }
    .gr-tab[aria-selected="true"] { border-color: var(--highlight-yellow); color: var(--highlight-yellow); background: rgba(250, 219, 103, .08); }
    .gr-list { max-height: 440px; }
    /* One list at a time, chosen by the tabs. */
    .gr-stage[data-tab="greet"] .gr-list--earth,
    .gr-stage[data-tab="earth"] .gr-list--greet { display: none; }
}

/* ================================================================
   FULLSCREEN (v1.1.0, 31 October 2026)
   voyager-player.js puts the whole box on the screen and adds
   is-fullscreen; the Lists button adds gr-lists-open. On wide screens a
   big record sits beside big words, and with the lists open it is the
   usual three columns, larger. Sizes are shares of the screen's height
   (vh), so the classroom TV at 720 and a 1080 screen look the same; no
   min() or max(), which TV browsers lack. Phones keep their own layout.
   ================================================================ */

/* The buttons: in the play bar after the time, dressed like the map's
   Fullscreen (muted yellow, never the link blue). #gr-stage in front so
   they beat the shared sim button's blue. */
#gr-stage .gr-fs,
#gr-stage .gr-fs-lists {
    flex: none;
    padding: .42rem .85rem;
    font-size: .72rem;
    border-color: rgba(250, 219, 103, .4);
    color: var(--starlight-muted);
    background: rgba(0, 0, 0, .45);
}
#gr-stage .gr-fs[aria-pressed="true"],
#gr-stage .gr-fs-lists[aria-pressed="true"] { border-color: var(--highlight-yellow); color: var(--highlight-yellow); }
#gr-stage .gr-fs:focus-visible,
#gr-stage .gr-fs-lists:focus-visible { background: var(--highlight-yellow); border-color: var(--highlight-yellow); color: #1A0C08; outline: none; }
@media (hover: hover) {
    #gr-stage .gr-fs:hover,
    #gr-stage .gr-fs-lists:hover { background: var(--highlight-yellow); border-color: var(--highlight-yellow); color: #1A0C08; }
}
.gr-fs svg { width: 13px; height: 13px; }
.gr-fs .gr-fs-out,
.gr-stage.is-fullscreen .gr-fs .gr-fs-in { display: none; }
.gr-stage.is-fullscreen .gr-fs .gr-fs-out { display: inline; }
#gr-stage .gr-fs-lists { display: none; }
.gr-fs-mark { display: none; }

/* The box, edge to edge (phones scroll inside it). */
.gr-stage.is-fullscreen { border-radius: 0; box-shadow: none; overflow-y: auto; }

/* Phones: the button shows only its picture, so the progress bar keeps its room. */
@media (max-width: 599px) {
    .gr-fs .ss-sim-btn-label { display: none; }
    #gr-stage .gr-fs { padding: .42rem .6rem; }
}

@media (min-width: 1000px) {
    .gr-stage.is-fullscreen { overflow: hidden; padding: 3vh 3vw; align-items: stretch; }
    .gr-stage.is-fullscreen .gr-centre { height: 94vh; justify-content: center; }
    #gr-stage.is-fullscreen .gr-fs-lists { display: inline-flex; }

    /* The watermark, as on the Space Timers: lowercase, white at 20%,
       small, bottom left. */
    .gr-stage.is-fullscreen .gr-fs-mark {
        display: block;
        position: absolute;
        left: 3vw;
        bottom: 2.4vh;
        font: 400 2vh/1 Inter, sans-serif;
        color: rgba(255, 255, 255, .2);
        pointer-events: none;
    }

    /* A big record beside big words. */
    .gr-stage.is-fullscreen:not(.gr-lists-open) { grid-template-columns: 1fr; padding: 4vh 5vw; }
    .gr-stage.is-fullscreen:not(.gr-lists-open) .gr-list--greet,
    .gr-stage.is-fullscreen:not(.gr-lists-open) .gr-side { display: none; }
    .gr-stage.is-fullscreen:not(.gr-lists-open) .gr-centre {
        display: grid;
        height: 92vh;
        grid-template-columns: 66vh 1fr;
        grid-template-rows: 1fr auto auto;
        column-gap: 8vw;
        align-items: center;
    }
    .gr-stage.is-fullscreen:not(.gr-lists-open) .gr-disc-wrap { grid-column: 1; grid-row: 1 / span 3; max-width: none; width: 66vh; margin: 0; }
    .gr-stage.is-fullscreen:not(.gr-lists-open) .gr-now {
        grid-column: 2;
        grid-row: 1;
        height: 58vh;
        margin: 0;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .gr-stage.is-fullscreen:not(.gr-lists-open) .gr-scope { grid-column: 2; grid-row: 2; max-width: none; width: 100%; height: 10vh; margin: 2vh 0 0; }
    .gr-stage.is-fullscreen:not(.gr-lists-open) .gr-controls { grid-column: 2; grid-row: 3; max-width: none; width: 100%; margin: 2vh 0 0; }
    .gr-stage.is-fullscreen:not(.gr-lists-open) .gr-now-kicker { font-size: 1.8vh; }
    .gr-stage.is-fullscreen:not(.gr-lists-open) .gr-now-title { font-size: 6vh; }
    .gr-stage.is-fullscreen:not(.gr-lists-open) .gr-now-who { font-size: 2.4vh; }
    .gr-stage.is-fullscreen:not(.gr-lists-open) .gr-now-orig { font-size: calc(4.6vh * var(--s, 1)); }
    .gr-stage.is-fullscreen:not(.gr-lists-open) .gr-now-roman,
    .gr-stage.is-fullscreen:not(.gr-lists-open) .gr-now-eng { font-size: calc(3.3vh * var(--s, 1)); }
    .gr-stage.is-fullscreen:not(.gr-lists-open) .gr-now-story { font-size: calc(3vh * var(--s, 1)); }
    .gr-stage.is-fullscreen:not(.gr-lists-open) .gr-now-credit { font-size: calc(2.1vh * var(--s, 1)); }

    /* The lists open: the three columns, larger. Room above the record
       for the tonearm's counterweight; the lists stop short of the
       bottom so the watermark sits clear under the greetings. */
    .gr-stage.is-fullscreen.gr-lists-open { grid-template-columns: 24vw 1fr 24vw; gap: 2vh 3vw; }
    .gr-stage.is-fullscreen.gr-lists-open .gr-list--greet,
    .gr-stage.is-fullscreen.gr-lists-open .gr-side { height: calc(var(--gr-list-h, 640px) - 5vh); }
    .gr-stage.is-fullscreen.gr-lists-open .gr-disc-wrap { max-width: none; width: 36vh; margin-top: 6vh; }
    .gr-stage.is-fullscreen.gr-lists-open .gr-scope { max-width: none; width: 64vh; height: 8vh; margin-top: 2vh; }
    .gr-stage.is-fullscreen.gr-lists-open .gr-now { height: 32vh; margin-top: 2vh; }
    .gr-stage.is-fullscreen.gr-lists-open .gr-now-kicker { font-size: 1.5vh; }
    .gr-stage.is-fullscreen.gr-lists-open .gr-now-title { font-size: 4vh; }
    .gr-stage.is-fullscreen.gr-lists-open .gr-now-who { font-size: 2vh; }
    .gr-stage.is-fullscreen.gr-lists-open .gr-now-orig { font-size: calc(3vh * var(--s, 1)); }
    .gr-stage.is-fullscreen.gr-lists-open .gr-now-roman,
    .gr-stage.is-fullscreen.gr-lists-open .gr-now-eng { font-size: calc(2.3vh * var(--s, 1)); }
    .gr-stage.is-fullscreen.gr-lists-open .gr-now-story { font-size: calc(2.2vh * var(--s, 1)); }
    .gr-stage.is-fullscreen.gr-lists-open .gr-now-credit { font-size: calc(1.6vh * var(--s, 1)); }
    .gr-stage.is-fullscreen.gr-lists-open .gr-controls { max-width: none; width: 72vh; margin-top: 1.5vh; }
    .gr-stage.is-fullscreen.gr-lists-open .gr-item { font-size: calc(.55rem + 1vh); }
    .gr-stage.is-fullscreen.gr-lists-open .gr-list-title { font-size: calc(.5rem + 1vh); }
}

/* Visitors who ask for less movement: the cover changes at once, the arm
   moves at once and the record stays still (player.js checks too). */
@media (prefers-reduced-motion: reduce) {
    .gr-coin,
    .gr-arm { transition: none; }
}
