/* Hello Doggo: the ♪ music card's look, one copy for every exhibit that shows it (public/music-card.js: owner, 25 November
   2026, one shared card). The layout, sizes and motion are the card's own; each exhibit gives its colours and type through
   the --mc- properties below (set on its card), its buttons' graphics (music-card.js `icons`, `buttonClass`), and its
   card's frame, place and unfolding from ♪ in its own stylesheet, loaded after this one.
     --mc-ink         the recording, the playlist pill, the chosen tab, the lists' names   --mc-dim  a list's count
     --mc-pill        the playlist pill's outline (the chosen tab's line)    --mc-tab     a tab not chosen
     --mc-tab-line    the chosen tab's underline                             --mc-rule    the lines above and below the tabs
     --mc-lit         the playing list's name                                --mc-glint   its glint (a background)
     --mc-cover-bg, --mc-cover-shadow, --mc-cover-edge  a list's cover and the recording's, and the frame of one without
     --mc-scroll      the list's scroll bar                                  --mc-text-shadow  under the recording and the lists' names
     --mc-press, --mc-hover  the fill under a pressed or hovered row, tab or playlist's row; --mc-hover-ink their words then
     --mc-ring, --mc-ring-play, --mc-ring-fill, --mc-ring-ink  the round line buttons ('ring': the line drawings' frame)
     --mc-medium, --mc-book  the type's weights (500 and 450; a face with only its regular, 400)
     --mc-time, --mc-ease  the list's glide and fades; --mc-tabs-top, --mc-buttons-foot, --mc-list-pad  spacing
     --mc-list-room   how tall the list may be (about half the screen; music-card.js `fit` works it out where asked) */
/* The recording's title and, on the right level with it, its cover (owner, 26 November 2026), rounded. */
.radio .radio-now{display:flex;align-items:center;gap:12px}
.radio .radio-words{flex:1;min-width:0}
.radio .radio-cover{flex:none;width:48px;height:48px;margin-right:8px;border-radius:8px;object-fit:cover;background:var(--mc-cover-bg);box-shadow:var(--mc-cover-shadow)}
.radio .radio-cover[hidden]{display:none}
.radio .song-name{margin:0 0 -.25em;padding:0 8px .25em;font:italic 400 24px/1.15 var(--serif);color:var(--mc-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:var(--mc-text-shadow,none)}
/* A message (owner, 25 November 2026), in the recording's place: wrapping, a smaller italic, and where it offers Retry a
   slim pill under it in the card's own look. */
.radio .radio-said{margin:0;padding:0 8px;font:italic 400 18px/1.3 var(--serif);color:var(--mc-ink);text-shadow:var(--mc-text-shadow,none)}
.radio .radio-said:is(:lang(ja),:lang(zh),:lang(ko),:lang(ar),:lang(hi),:lang(th)){font-style:normal}
.radio .radio-retry{display:block;min-height:36px;margin:12px 0 0 8px;padding:0 18px;border:1px solid var(--mc-tab-line);border-radius:999px;font:var(--mc-medium,500) 16px/1 var(--serif);color:var(--mc-ink)}
.radio .radio-retry[hidden]{display:none}
/* (the recording's line clipped .25 em lower than its line box, so g, y, p, q and j keep their tails; the space it takes
   unchanged) The playlist (owner, 26 November 2026): its name in a slim outlined pill as wide as its words, a caret
   pointing the way the list goes (down while closed, up while open), clearly the thing to tap to change lists; no label. */
.radio .station-choice{position:relative;display:flex;align-items:center;gap:8px;width:fit-content;max-width:calc(100% - 8px);box-sizing:border-box;min-height:36px;margin:12px 0 0 8px;padding:0 14px 0 16px;border:1px solid var(--mc-pill,var(--mc-tab-line));border-radius:999px;text-align:left;font:var(--mc-medium,500) 20px/1.25 var(--serif);color:var(--mc-ink)}
.radio .station-choice::before{content:"";position:absolute;inset:-5px -4px}
.radio .station-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.radio .station-choice svg{flex-shrink:0;width:12px;height:8px;transition:transform var(--mc-time,.45s) var(--mc-ease)}
.radio .station-choice[aria-expanded=true] svg{transform:rotate(180deg)}
/* Previous, play/pause and next: round, centred in the card, pause the largest (52 and 62 px), all three clearly drawn;
   as far under the pill as above the card's foot (owner, 26 November 2026: 16 px each with a card's 14 px padding). */
.radio .radio-buttons{display:flex;justify-content:center;align-items:center;gap:24px;padding:16px 8px var(--mc-buttons-foot,2px)}
.radio .radio-buttons button{position:relative;display:grid;place-items:center;width:52px;height:52px;border-radius:50%}
.radio .radio-buttons button::before{content:"";position:absolute;inset:-5px}
.radio .radio-buttons .play{width:62px;height:62px}
.radio .radio-buttons svg{width:23px;height:23px}.radio .radio-buttons .play svg{width:26px;height:26px}
.radio .radio-buttons .i-pause,.radio.playing .radio-buttons .i-play{display:none}.radio.playing .radio-buttons .i-pause{display:block}
.radio .radio-buttons .ring{border:1px solid var(--mc-ring);background:var(--mc-ring-fill);color:var(--mc-ring-ink)}
.radio .radio-buttons .ring.play{border-color:var(--mc-ring-play,var(--mc-ring))}
/* The list: part of the card, gliding open downward under the buttons. */
.radio .stations-fold{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows var(--mc-time,.45s) var(--mc-ease),opacity var(--mc-time,.45s) var(--mc-ease),visibility 0s var(--mc-time,.45s)}
.radio .stations-fold.open{grid-template-rows:1fr;opacity:1;visibility:visible;transition:grid-template-rows var(--mc-time,.45s) var(--mc-ease),opacity var(--mc-time,.45s) var(--mc-ease)}
.radio .stations-fold:not(.open){pointer-events:none}
.radio .stations-panel{min-height:0;overflow:hidden}
.radio .station-tabs{display:flex;gap:26px;margin-top:var(--mc-tabs-top,14px);padding:0 10px;border-top:1px solid var(--mc-rule);border-bottom:1px solid var(--mc-rule)}
.radio .station-tabs button{min-height:50px;margin-bottom:-1px;padding:0 4px;border-bottom:1px solid transparent;font:var(--mc-medium,500) 15px/1 var(--serif);letter-spacing:.1em;text-transform:uppercase;color:var(--mc-tab)}
.radio .station-tabs button[aria-selected=true]{color:var(--mc-ink);border-bottom-color:var(--mc-tab-line)}
.radio .station-tabs span:is(:lang(ar),:lang(hi),:lang(th)){letter-spacing:0}
.radio .station-columns{display:grid;padding-top:4px}
.radio .station-columns .column{grid-area:1/1;display:flex;flex-direction:column;max-height:var(--mc-list-room,calc(50dvh - 44px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--mc-scroll) transparent;padding-right:var(--mc-list-pad,0);opacity:0;visibility:hidden;transition:opacity var(--mc-time,.45s) var(--mc-ease),visibility 0s var(--mc-time,.45s)}
.radio .station-columns .column.on{opacity:1;visibility:visible;transition:opacity var(--mc-time,.45s) var(--mc-ease)}
/* Each row: the list's one cover, its name and its count and length. */
.radio .station{flex:none;display:flex;align-items:center;gap:16px;min-height:76px;padding:8px 10px 8px 26px;border-radius:8px;text-align:left;font:var(--mc-book,450) 20px/1.2 var(--serif);color:var(--mc-ink);text-shadow:var(--mc-text-shadow,none)}
.radio .station .cover{flex:none;width:56px;height:56px;border-radius:3px;object-fit:cover;background:var(--mc-cover-bg);box-shadow:var(--mc-cover-shadow)}
.radio .station .cover.empty{box-sizing:border-box;border:1px solid var(--mc-cover-edge);background:none;box-shadow:none}
.radio .station .text{display:grid;gap:4px;min-width:0}
.radio .station .name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;transition:color var(--mc-time,.45s) var(--mc-ease)}
.radio .station .meta{font:400 16px/1.2 var(--serif);color:var(--mc-dim);font-variant-numeric:lining-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:none}
/* The playing list: its name lit, a small soft glint beside it, slowly breathing while music plays, still while paused. */
.radio .station[aria-current=true] .name{color:var(--mc-lit)}
.radio .station::before{content:"";flex:none;position:relative;width:18px;height:18px;margin:0 -16px 0 -22px;border-radius:50%;background:var(--mc-glint);opacity:0;transition:opacity var(--mc-time,.45s) var(--mc-ease)}
.radio .station[aria-current=true]::before{opacity:1;animation:glint-breathe 3.4s ease-in-out infinite alternate paused}
.radio.playing .station[aria-current=true]::before{animation-play-state:running}
@keyframes glint-breathe{from{transform:scale(.78);opacity:.62}to{transform:scale(1.12);opacity:1}}
/* Pressed (owner, 25 November 2026): the Room's press, a dip filled at once, fading back as it lets go; the round buttons
   dip deeper and fill deeper, the playlist's row, the tabs and the list's rows a lighter fill under their words. A
   computer's hover a gentle fill. (Gold where the exhibit gives no other.) */
.radio :is(.radio-buttons .ring,.radio-retry,.station-choice,.station-tabs button,.station){transition:transform .25s var(--mc-ease),background-color .3s var(--mc-ease),border-color .3s var(--mc-ease),color .3s var(--mc-ease)}
.radio .radio-buttons .ring:active{transform:scale(.94);background-color:var(--mc-ring-pressed,rgba(223,171,92,.58));border-color:var(--mc-ring-pressed-edge,#dfab5c);color:var(--mc-ring-pressed-ink,#fff6e4);transition-duration:.08s}
.radio :is(.radio-retry,.station-choice,.station-tabs button,.station):active{transform:scale(.97);background-color:var(--mc-press,rgba(223,171,92,.26));transition-duration:.08s}
@media (hover:hover) and (pointer:fine){
 .radio .radio-buttons .ring:hover{border-color:var(--mc-ring-hover-edge,#dfab5c);color:var(--mc-ring-hover-ink,#f0c27a);background-color:var(--mc-ring-hover,rgba(223,171,92,.16))}
 .radio :is(.radio-retry,.station-choice,.station-tabs button,.station):hover{background-color:var(--mc-hover,rgba(223,171,92,.1))}
 .radio .station-choice:hover{color:var(--mc-hover-ink,var(--mc-ink))}
 .radio :is(.radio-retry,.station-tabs button[aria-selected=true],.station):hover{color:var(--mc-hover-ink,var(--mc-ink))}
 .radio .station-tabs button:not([aria-selected=true]):hover{color:var(--mc-hover-ink,var(--mc-tab))}
}
