/* Shared public room palette, with player layout scoped away from administration and device clients. */
/* Retained for the original-font reference in the local typography studies. */
@font-face { font-family: 'Player Sans'; src: url('/assets/fonts/roboto-variable.ttf') format('truetype'); font-style: normal; font-weight: 100 900; font-display: swap; }
body:not(.curator-mode) { background-color: #171816; background-position: center; background-size: cover; background-attachment: fixed; }
body:not(.curator-mode)::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: linear-gradient(180deg,#0c100de0 0%,#0c100d4a 37%,#0c100d7a 70%,#0c100df0 100%); }
body:not(.curator-mode) .shell { position: relative; padding: 0 32px 12px; max-width: 1800px; margin: auto; }
body:not(.curator-mode) #modeSwitchBtn { position: absolute; top: 22px; right: 32px; bottom: auto; z-index: 3; padding: 9px 15px; border: 1px solid #ffffff26; border-radius: 6px; background: #11171466; color: #dfdfd4; font: 400 14px 'Instrument Sans',Arial,sans-serif; box-shadow: none; text-transform: none; }
#panel-listener, body.collection-mode { --room-ink: #f2f0e8; --room-muted: #b3b6ab; --room-accent: #e0c18e; --room-surface: #191f1b; color: var(--room-ink); font-family: 'Instrument Sans',Arial,sans-serif; }
#panel-listener :is(button,input,select,textarea), #legendsDialog, #legendConfirmDialog,
#legendsDialog button, #legendConfirmDialog button { font-family: 'Instrument Sans',Arial,sans-serif; }
#panel-listener[data-theme-decade="1970"], body.collection-mode[data-theme-decade="1970"] { --room-surface: #24201b; --room-accent: #e4be8e; }
#panel-listener[data-theme-decade="1980"], body.collection-mode[data-theme-decade="1980"] { --room-surface: #1c2226; --room-accent: #cfdbd3; }
#panel-listener[data-theme-decade="1990"], body.collection-mode[data-theme-decade="1990"] { --room-surface: #20231e; --room-accent: #c7cead; }
#panel-listener[data-theme-decade="2000"], body.collection-mode[data-theme-decade="2000"] { --room-surface: #211f26; --room-accent: #d5c7df; }
#panel-listener[data-theme-decade="2010"], body.collection-mode[data-theme-decade="2010"] { --room-surface: #292025; --room-accent: #e7bca5; }
#panel-listener[data-theme-decade="2020"], body.collection-mode[data-theme-decade="2020"] { --room-surface: #222d23; --room-accent: #d5c494; --room-muted: #bac4af; }
html[data-light-period="day"] #panel-listener[data-theme-decade="2020"], html[data-light-period="day"] body.collection-mode[data-theme-decade="2020"] { --room-surface: #2b372b; --room-accent: #dec99e; --room-muted: #bac4af; }
#panel-listener [hidden], #eraDialog [hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.listening-brand { display: inline-flex; flex: none; align-items: center; border-radius: 6px; }
.record-mark { width: 44px; height: 46px; flex: 0 0 44px; object-fit: contain; }
#panel-listener#panel-listener .scene { display: flow-root; background: none; padding: 0; border: 0; border-radius: 0; min-height: 0; overflow: visible; }
#panel-listener .scene::before { display: none; }
#panel-listener .listening-navigation { max-width: 1600px; margin: 78px auto 10px; display: flex; gap: 24px; align-items: center; }
#panel-listener .era-mode-switch { display: inline-flex; flex: none; gap: 2px; padding: 3px; border: 1px solid #ffffff26; border-radius: 7px; background: #11171466; }
#panel-listener .era-mode-switch button { min-height: 36px; margin: 0; padding: 0 12px; border: 0; border-radius: 4px; background: transparent; color: var(--room-muted); font: 400 15px 'Instrument Sans',Arial,sans-serif; letter-spacing: normal; box-shadow: none; text-transform: none; transform: none; }
#panel-listener .era-mode-switch button[aria-pressed="true"] { background: color-mix(in srgb,var(--room-accent) 20%,transparent); color: var(--room-ink); }
#panel-listener .era-mode-switch button:hover:not(:disabled) { color: var(--room-ink); }
:is(#panel-listener, #panel-collection) .era-navigation { display: flex; flex: none; gap: 0; align-items: center; padding: 3px; border: 1px solid #ffffff26; border-radius: 7px; background: #11171466; }
:is(#panel-listener, #panel-collection) .era-step { display: grid; place-items: center; width: 32px; height: 36px; min-height: 36px; border: 0; border-radius: 4px; background: transparent; color: var(--room-muted); font: 24px 'Instrument Sans',Arial,sans-serif; padding: 0; box-shadow: none; transform: none; }
:is(#panel-listener, #panel-collection) .era-picker-button { display: flex; align-items: center; gap: 12px; border: 0; border-inline: 1px solid #ffffff1a; border-radius: 0; background: transparent; color: var(--room-ink); padding: 0 12px; font: 400 15px 'Instrument Sans',Arial,sans-serif; letter-spacing: normal; min-height: 36px; box-shadow: none; transform: none; }
:is(#panel-listener, #panel-collection) .era-navigation button:hover:not(:disabled) { background: color-mix(in srgb,var(--room-accent) 12%,transparent); color: var(--room-ink); }
:is(#panel-listener, #panel-collection) .era-step svg { display: block; width: 14px; height: 14px; fill: currentColor; }
.era-chevron { display: block; flex: none; width: 12px; height: 12px; color: var(--room-muted); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#panel-listener .era-caption { font-size: 14px; color: #d0d1c5; margin: 0; text-shadow: 0 1px 8px #000; }
.optional-listening-actions { margin-left: auto; display: flex; gap: 8px; }
#panel-listener#panel-listener .listener-layout { width: 100%; display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; max-width: 1600px; margin: auto; align-items: start; }
#panel-listener#panel-listener .listener-layout.lyrics-open { max-width: 1800px; grid-template-columns: minmax(0,1fr) 300px; }
#panel-listener#panel-listener .tv-shell { display: block; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #ffffff26; border-radius: 12px; background: var(--room-surface); box-shadow: 0 24px 70px #0006,0 2px 6px #0003; }
#panel-listener#panel-listener .tv-stage { width: 100%; height: auto; min-height: 0; aspect-ratio: 16/9; margin: 0; border: 0; border-radius: 0; background: #080b09; box-shadow: none; position: relative; overflow: hidden; }
#panel-listener .tv-stage::after, #panel-listener .tv-stage::before { display: none; }
#panel-listener #listenerPlayer { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
#panel-listener .player-empty { z-index: 1; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%,#29372b,#0e130f 75%); color: #e2e4d7; font: 400 22px 'Instrument Sans',Arial,sans-serif; text-align: center; padding: 30px; }
#panel-listener .listening-console { padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
/* Normal mode keeps the song information and video geometry steady. */
#panel-listener .listener-layout:not(.fullscreen) :is(.transport-row,.listening-tools) { transition: opacity .6s ease; }
#panel-listener .listener-layout:not(.fullscreen).controls-hidden :is(.transport-row,.listening-tools) { opacity: 0; pointer-events: none; }
/* The video owns its rounded frame; the information below can dissolve into
   the room without clipping, moving, or fading the recording itself. */
#panel-listener#panel-listener .listener-layout:not(.fullscreen) .tv-shell { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
#panel-listener#panel-listener .listener-layout:not(.fullscreen) .tv-stage { border-radius: 12px 12px 0 0; box-shadow: 0 24px 70px #0006,0 2px 6px #0003; transition: border-radius .6s ease; }
#panel-listener#panel-listener .listener-layout:not(.fullscreen).controls-hidden .tv-stage { border-radius: 12px; }
#panel-listener .listener-layout:not(.fullscreen) .player-controls { margin-top: 0; border-radius: 0 0 12px 12px; background-color: var(--room-surface); transition: background-color .6s ease; }
#panel-listener .listener-layout:not(.fullscreen).controls-hidden .player-controls { background-color: transparent; }
#panel-listener .listener-layout:not(.fullscreen) .listening-console { padding-left: 6px; padding-right: 6px; }
#panel-listener .listener-layout:not(.fullscreen) #trackTitle { font: 500 clamp(23px,2vw,30px)/1.2 'Instrument Sans',Arial,sans-serif; letter-spacing: -.5px; color: #f7f1e3; text-shadow: 0 1px 8px #000; }
#panel-listener .listener-layout:not(.fullscreen) #trackArtist { color: #d0d1c5; text-shadow: 0 1px 8px #000; }
.now-playing-copy { min-width: 0; flex: 1; }
#panel-listener .listening-eyebrow, #eraDialog .listening-eyebrow { margin: 0 0 9px; color: var(--room-accent,#d9c299); font: 400 11px 'Instrument Sans',Arial,sans-serif; letter-spacing: 2px; }
#panel-listener #trackTitle { margin: 0; font: 500 clamp(21px,1.9vw,28px)/1.2 'Instrument Sans',Arial,sans-serif; letter-spacing: -.45px; overflow-wrap: anywhere; color: #f4f0e5; }
#panel-listener #trackArtist { margin: 5px 0 0; color: #bfc3b9; font-size: 14px; line-height: 1.5; }
#panel-listener#panel-listener .transport-row { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin: 0; }
#panel-listener#panel-listener .transport-row button { display: grid; place-items: center; flex: 0 0 44px; min-width: 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; box-shadow: none; color: #e6e8dc; transform: none; }
#panel-listener .transport-row svg { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#panel-listener .transport-row .pause-icon { fill: none; stroke-width: 3.5; }
#panel-listener .transport-row .play-icon { display: none; width: 20px; height: 20px; }
#panel-listener .transport-main[data-paused="true"] .play-icon { display: block; }
#panel-listener .transport-main[data-paused="true"] .pause-icon { display: none; }
#panel-listener#panel-listener .transport-row button:hover { background: #ffffff0c; border-color: #ffffff26; transform: none; }
#panel-listener .listening-tools { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
#panel-listener#panel-listener .listening-tools button { display: flex; align-items: center; gap: 12px; border: 0; border-radius: 6px; background: transparent; color: #d7dcd1; font: 400 14px 'Instrument Sans',Arial,sans-serif; text-transform: none; padding: 8px 10px; min-height: 40px; box-shadow: none; }
#panel-listener .playback-order-button svg { width: 10px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.5; }
:is(#panel-listener#panel-listener #playbackOrderMenu, #collectionFilterMenu) { position: fixed; inset: auto; margin: 0; width: 260px; padding: 8px; border: 1px solid #ffffff29; border-radius: 10px; background: #202622; color: #f1f0e5; box-shadow: 0 12px 40px #0008; font: 400 14px 'Instrument Sans',Arial,sans-serif; }
:is(#playbackOrderMenu, #collectionFilterMenu)::backdrop { background: transparent; }
:is(#panel-listener #playbackOrderMenu, #collectionFilterMenu) > p { font-size: 10px; letter-spacing: 1.5px; color: #aeb7a5; margin: 8px 12px 9px; }
:is(#panel-listener#panel-listener #playbackOrderMenu, #collectionFilterMenu) button { position: relative; display: block; width: 100%; min-height: 54px; text-align: left; padding: 9px 32px 9px 12px; border: 0; border-radius: 6px; background: transparent; font: 400 14px 'Instrument Sans',Arial,sans-serif; color: #ecefe4; }
:is(#panel-listener #playbackOrderMenu, #collectionFilterMenu) button span { display: block; font-size: 12px; color: #b2bdab; margin-top: 3px; }
:is(#panel-listener#panel-listener #playbackOrderMenu, #collectionFilterMenu) button[aria-checked="true"] { background: #d4bf9715; color: var(--room-accent); }
:is(#panel-listener #playbackOrderMenu, #collectionFilterMenu) button[aria-checked="true"]::after { content: '✓'; position: absolute; right: 13px; top: 13px; }
:is(#panel-listener#panel-listener #playbackOrderMenu, #collectionFilterMenu) button:hover { background: #ffffff0d; }
#panel-listener#panel-listener .listening-tools .tool-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 40px; min-height: 40px; padding: 8px; gap: 0; border: 1px solid transparent; border-radius: 9px; }
#panel-listener .listening-tools .tool-icon > svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#panel-listener .contract-icon { display: none; }
#panel-listener .fullscreen .expand-icon { display: none; }
#panel-listener .fullscreen .contract-icon { display: block; }
#panel-listener#panel-listener button:hover, #panel-listener #playbackOrder:hover { filter: none; background-color: #ffffff12; }
#panel-listener#panel-listener button:disabled { opacity: .35; cursor: default; }
#panel-listener#panel-listener :is(button,a,select):focus-visible, #eraDialog :is(button,a):focus-visible { outline: 2px solid #d2bd96; outline-offset: 3px; }
#panel-listener#panel-listener .transport-row button:focus-visible { background: #394438; }
#panel-listener#panel-listener.controls-idle :is(button,a,select):focus-visible { outline-color: #d2bd9638; background: #1d271ecc; }
#panel-listener .playback-notice { margin: 0; padding: 8px 20px; font-size: 14px; color: #f2d3a6; border-top: 1px solid #ffffff15; }
#panel-listener#panel-listener .lyrics-panel { background: var(--room-surface); border: 1px solid #ffffff24; border-radius: 12px; padding: 24px; color: var(--room-ink); }
#panel-listener .lyrics-panel h3 { font-size: 18px; }
#panel-listener .lyrics-body { font-family: 'Instrument Sans',Arial,sans-serif; line-height: 1.9; font-size: 17px; }
#eraDialog, #panel-listener#panel-listener #queuePanel { box-sizing: border-box; background: #1b211e; color: #f1eee4; border: 1px solid #ffffff29; border-radius: 16px; padding: 30px; box-shadow: 0 24px 100px #0008; font-family: 'Instrument Sans',Arial,sans-serif; }
#eraDialog { width: min(850px,calc(100vw - 40px)); max-height: calc(100dvh - 48px); }
#eraDialog::backdrop, #panel-listener #queuePanel::backdrop { background: #090e0bc9; backdrop-filter: blur(10px); }
.era-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.era-dialog-heading h2 { font: 400 36px 'Instrument Sans',Arial,sans-serif; margin: 0 0 12px; letter-spacing: -.6px; }
.era-dialog-heading p:not(.listening-eyebrow) { color: #b3bbae; font-size: 16px; margin: 0; }
#eraDialog button, #panel-listener#panel-listener #queuePanel button { border: 1px solid #ffffff20; background: transparent; color: #e5e9dd; border-radius: 6px; min-height: 44px; font-family: inherit; font-size: 14px; }
.era-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 24px; }
#eraDialog .era-choice { position: relative; isolation: isolate; overflow: hidden; min-height: 142px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; text-align: left; padding: 20px; border-radius: 8px; background: #30382c; background-image: linear-gradient(0deg,#0b120de8,#0b120d18),var(--era-art); background-size: cover; background-position: center; }
#eraDialog .era-choice:hover { border-color: #ddc59b; }
#eraDialog .era-choice[aria-pressed="true"] { border-color: #dfc28c; box-shadow: inset 0 0 0 1px #dfc28c; }
.era-choice strong { font: 400 32px 'Instrument Sans',Arial,sans-serif; }
.era-choice span { font-size: 13px; color: #d4d9cc; margin-top: 7px; }
.era-choice em { font: 11px 'Instrument Sans',Arial,sans-serif; position: absolute; top: 12px; right: 12px; background: #172218e8; padding: 5px 7px; border-radius: 4px; color: #e5cfaa; }
#eraDialog .era-choices.years { grid-template-columns: repeat(5,minmax(0,1fr)); }
#eraDialog .years .era-choice { min-height: 90px; padding: 14px; background-image: none; }
#eraDialog .years .era-choice strong { font-size: 24px; }
#eraDialog .years .era-choice em { position: static; padding: 0; background: none; margin-top: 6px; }
#panel-listener#panel-listener #queuePanel { width: min(1040px,calc(100vw - 40px)); height: min(760px,calc(100dvh - 48px)); max-height: calc(100dvh - 48px); }
#panel-listener #queueTitle { font: 400 30px 'Instrument Sans',Arial,sans-serif; }
#panel-listener .guide-eyebrow { font-size: 11px; letter-spacing: 1.5px; color: #c7b087; }
#panel-listener #guideNowPlaying { color: #bec7b6; font-size: 15px; }
#panel-listener#panel-listener #queuePanel .queue-item { border: 0; border-radius: 6px; background: #ffffff06; padding: 12px 15px; }
#panel-listener#panel-listener #queuePanel .queue-item:hover { background: #ffffff0e; }
#panel-listener#panel-listener #queuePanel .queue-item.active { background: #d4bf971a; box-shadow: inset 2px 0 #d4bf97; }
#panel-listener #queuePanel .queue-item strong { font-size: 15px; font-weight: 400; color: #eceee4; }
#panel-listener #queuePanel .queue-item span { font-size: 13px; color: #b4bfa8; }
#panel-listener #queueMeta { color: #c2c9b8; font-size: 13px; }
#panel-listener#panel-listener .listener-layout.fullscreen { height: 100dvh; min-height: 0; width: 100%; padding: 0; max-width: none; background: #080b09; align-content: start; }
body:has(#listenerLayout.fullscreen) .listening-header, body:has(#listenerLayout.fullscreen) .listening-navigation, body:has(#listenerLayout.fullscreen) #modeSwitchBtn { display: none; }
body:not(.curator-mode):has(#listenerLayout.fullscreen) .shell { padding: 0; max-width: none; }
#panel-listener#panel-listener .listener-layout.fullscreen .tv-shell { position: relative; padding: 0; width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
#panel-listener#panel-listener .listener-layout.fullscreen .tv-stage { min-height: 0; aspect-ratio: auto; }
#panel-listener .listener-layout.fullscreen .player-controls { position: absolute; inset: auto 0 0; z-index: 2; max-height: 100%; overflow-y: auto; background: linear-gradient(180deg,#080e0aad,#080e0af0); transition: opacity .6s ease; }
#panel-listener .listener-layout.fullscreen.controls-hidden .player-controls { opacity: 0; pointer-events: none; }
#panel-listener .listener-layout:focus { outline: none; }
#panel-listener .listener-layout.fullscreen.controls-hidden .tv-stage { cursor: none; }
#panel-listener .player-wake-surface { display: none; }
/* A cross-origin iframe cannot forward pointer movement to the page. Cover it
   only while our controls are hidden, so the first movement/tap can reveal them. */
#panel-listener .listener-layout.controls-hidden .player-wake-surface { display: block; position: absolute; inset: 0; z-index: 1; }
#panel-listener .fullscreen-toolbar { display: none; }
#panel-listener#panel-listener .listener-layout.fullscreen .fullscreen-toolbar { display: none; }
#panel-listener .listener-layout.fullscreen .fullscreen-toolbar button { background: transparent; border: 0; color: #c7cfbe; min-height: 40px; }
@media (max-width: 1100px) {
  body:not(.curator-mode) .shell { padding: 0 20px 16px; }
  body:not(.curator-mode) #modeSwitchBtn { right: 20px; }
  #panel-listener#panel-listener .listener-layout.lyrics-open { grid-template-columns: minmax(0,1fr); }
  #panel-listener#panel-listener .lyrics-panel { height: auto !important; max-height: 420px !important; }
  #panel-listener .listening-console { padding: 12px 18px; }
}
@media (max-width: 650px) {
  body:not(.curator-mode) .shell { padding: 0 16px 24px; }
  body:not(.curator-mode) #modeSwitchBtn { top: 22px; right: 16px; padding: 8px 11px; min-height: 40px; font-size: 13px; }
  .record-mark { width: 35px; height: 37px; flex-basis: 35px; }
  #panel-listener .listening-navigation { gap: 8px; margin-top: 74px; margin-bottom: 10px; flex-wrap: nowrap; }
  #panel-listener .era-mode-switch button { padding: 0 8px; font-size: 14px; }
  :is(#panel-listener, #panel-collection) .era-step { width: 28px; }
  :is(#panel-listener, #panel-collection) .era-picker-button { font-size: 14px; gap: 8px; padding-inline: 8px; }
  #panel-listener .era-caption { display: none; }
  #panel-listener .listening-navigation:has(> .listening-brand) { flex-wrap: wrap; }
  #panel-listener#panel-listener .tv-shell { border-radius: 9px; }
  #panel-listener .listening-console { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px 10px; }
  #panel-listener #trackTitle { font-size: 22px; }
  #panel-listener #trackArtist { font-size: 13px; }
  #panel-listener#panel-listener .transport-row { justify-content: center; gap: 18px; }
  #panel-listener .listening-tools { justify-content: center; gap: 8px; flex-wrap: wrap; }
  #eraDialog, #panel-listener#panel-listener #queuePanel { padding: 22px 16px; border-radius: 12px; width: calc(100vw - 24px); }
  .era-dialog-heading h2 { font-size: 29px; }
  .era-dialog-heading p:not(.listening-eyebrow) { font-size: 14px; }
  .era-choices { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  #eraDialog .era-choice { min-height: 132px; padding: 16px; }
  #eraDialog .era-choices.years { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #panel-listener #queueTitle { font-size: 25px; }
  #panel-listener#panel-listener .listener-layout.fullscreen { padding: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  #panel-listener .tv-shell button { transition: background-color .25s,outline-color .35s; }
  :is(#panel-listener, #panel-collection) .era-step { transition: background-color .18s,transform .18s; }
  #eraDialog[open], #queuePanel[open] { animation: room-arrive .18s ease-out; }
  @keyframes room-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) { #panel-listener *, #panel-listener *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
