@font-face{font-family:Nunito;src:url("/css/fonts/nunito-400-latin.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Nunito;src:url("/css/fonts/nunito-700-latin.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:Nunito;src:url("/css/fonts/nunito-800-latin.woff2") format("woff2");font-weight:800;font-display:swap}

/* Light theme only: warm ivory page, white cards, charcoal text, royal blue headings, orange action button. */
:root{color-scheme:light;--bg:#fcfbf7;--card:#fff;--ink:#1a1a1a;--muted:#57534b;--line:#e6e1d5;--soft:#f3f0e8;--blue:#1d4ed8;--blue-dark:#163ba8;--blue-soft:#e9effd;--orange:#ff6a00;--orange-dark:#e25e00;--wine:#7B1E3A;--wine-dark:#651730;--cream:#FFF9F2;--pb-card:#FFFDF8;--pb-line:#EFDCC4;--track:#EAD9C6;--bar-h:6.35rem;font:100%/1.45 Nunito,system-ui,sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;min-height:100svh;padding-bottom:calc(var(--bar-h) + env(safe-area-inset-bottom,0px));background:var(--bg)}
a{color:var(--blue);font-weight:700;text-underline-offset:.2em;text-decoration-thickness:1px}
a:hover{color:var(--blue-dark)}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
.symbols,[hidden]{display:none!important}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}

/* Page frame and compact header */
.rd{max-width:76rem;margin:0 auto;padding:.75rem max(1rem,env(safe-area-inset-right,0px)) 1rem max(1rem,env(safe-area-inset-left,0px))}
.rd-head{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.75rem}
.brand{margin:0;font-size:clamp(1.5rem,3.6vw,1.9rem);font-weight:800;line-height:1.1;letter-spacing:-.02em;color:var(--blue)}
.brand::after{content:"";display:inline-block;width:.42rem;height:.42rem;margin-left:.3rem;border-radius:50%;background:var(--orange)}
.rd-head p{margin:.15rem 0 0;font-size:1rem;line-height:1.35;color:var(--muted)}
.rd-contact{flex:none;display:inline-flex;align-items:center;min-height:2.75rem;font-size:.95rem;text-align:right}

/* Two panels: the stage comes first in the page, the song list second. On wide screens the list sits on the left. */
.rd-layout{display:grid;gap:1rem}
.rd-stage,.rd-catalog{min-width:0;background:var(--card);border:1px solid var(--line);border-radius:1rem}

/* Stage: picture, title, credit, player. The picture frame is always 16:9, so nothing below it moves. */
.rd-stage{padding:.9rem;text-align:center;scroll-margin-top:.5rem}
.rd-art{position:relative;width:min(100%,max(16rem,calc((100svh - 9rem - var(--bar-h))*16/9)));aspect-ratio:16/9;margin:0 auto;border-radius:.75rem;background:var(--soft);overflow:hidden}
.rd-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.rd-now{display:flex;align-items:center;justify-content:center;min-height:2.4em;margin:.6rem 0 0;font-size:clamp(1.3rem,3.2vw,1.6rem);font-weight:800;line-height:1.2;color:var(--blue);text-wrap:balance;overflow-wrap:anywhere}
.rd-credit{margin:.1rem 0 0;font-size:1rem;color:var(--muted)}

/* Autoplay switch stays on the stage, under the song name. */
#settings{display:flex;align-items:center;justify-content:center;font-size:.875rem;color:var(--muted)}
.autoplay{display:flex;align-items:center;gap:.4rem;min-height:2.75rem;cursor:pointer}
.autoplay input{width:1.15rem;height:1.15rem;margin:0;accent-color:var(--wine)}

/* Player bar at the bottom of the window: cover and name on the left, controls and progress in the middle,
   volume on the right. Light only: cream strip, white card, burgundy accents. */
.pb{position:fixed;left:0;right:0;bottom:0;z-index:20;padding:.5rem max(1rem,env(safe-area-inset-right,0px)) calc(.5rem + env(safe-area-inset-bottom,0px)) max(1rem,env(safe-area-inset-left,0px));background:var(--cream)}
.pb-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,32rem) minmax(0,1fr);align-items:center;gap:1rem;max-width:74rem;margin:0 auto;padding:.4rem .9rem;background:var(--pb-card);border:1px solid var(--pb-line);border-radius:.9rem;box-shadow:0 6px 22px rgba(123,30,58,.1)}
.pb :focus-visible{outline-color:var(--wine)}
.pb-song{display:flex;align-items:center;gap:.75rem;min-width:0}
.pb-cover{position:relative;flex:none;width:56px;height:56px;border-radius:6px;background:var(--wine);overflow:hidden}
.pb-cover::before{content:"RIGLI";position:absolute;inset:0;display:grid;place-items:center;font-size:.7rem;font-weight:800;letter-spacing:.06em;color:#fff}
.pb-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.pb-text{min-width:0}
.pb-title,.pb-artist{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pb-title{font-size:1rem;font-weight:800;line-height:1.3;color:var(--ink)}
.pb-artist{font-size:.85rem;font-weight:400;line-height:1.3;color:var(--muted)}
.pb-center{min-width:0}
.pb-side{display:flex;justify-content:flex-end;min-width:0}

.transport{display:flex;justify-content:center;align-items:center;gap:.35rem}
.transport button,#mute{position:relative;display:inline-grid;place-items:center;flex:none;width:2.75rem;height:2.75rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink)}
.transport button:hover,#mute:hover{background:#f6eadb}
.transport svg,#mute svg,.rd-icon svg{width:1.25rem;height:1.25rem;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#play,#play:hover{background:var(--wine);color:#fff}
#play:hover{background:var(--wine-dark)}
#play svg{width:1.25rem;height:1.25rem}
/* Shuffle and Repeat when on: burgundy icon with a small dot under it. */
.transport .mode[aria-pressed=true],#mute[aria-pressed=true]{color:var(--wine)}
.transport .mode[aria-pressed=true]::after{content:"";position:absolute;left:50%;bottom:.3rem;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--wine)}

.timeline{display:flex;align-items:center;gap:.6rem;margin:-.55rem 0;font-size:.8rem;font-variant-numeric:tabular-nums;color:var(--muted)}
.timeline span{min-width:2.3rem}
.timeline span:first-child{text-align:right}
.timeline input{flex:1}
/* Progress and volume: a 4px line, burgundy up to the current point, round handle only on hover, drag or keyboard focus. */
input[type=range]{-webkit-appearance:none;appearance:none;--p:0%;min-width:0;height:2.75rem;margin:0;padding:0;background:transparent;cursor:pointer}
input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(to right,var(--wine) var(--p),var(--track) var(--p))}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:12px;height:12px;margin-top:-4px;border:0;border-radius:50%;background:var(--wine);opacity:0}
input[type=range]:hover::-webkit-slider-thumb,input[type=range]:active::-webkit-slider-thumb,input[type=range]:focus-visible::-webkit-slider-thumb{opacity:1}
input[type=range]::-moz-range-track{height:4px;border-radius:2px;background:var(--track)}
input[type=range]::-moz-range-progress{height:4px;border-radius:2px;background:var(--wine)}
input[type=range]::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:var(--wine);opacity:0}
input[type=range]:hover::-moz-range-thumb,input[type=range]:active::-moz-range-thumb,input[type=range]:focus-visible::-moz-range-thumb{opacity:1}
#volume-group{display:flex;align-items:center;gap:.15rem}
#volume{flex:none;width:90px}
#status.error{margin:.3rem 0;font-size:.95rem;font-weight:700;color:#a3261a}

/* Secondary links under the player. The row keeps its height when a song has no links. */
.rd-links{min-height:2.8rem;margin-top:.2rem}
.materials{display:flex;flex-wrap:wrap;justify-content:center;column-gap:1.1rem;border-top:1px solid var(--line)}
.materials a{display:inline-flex;align-items:center;min-height:2.75rem;font-size:.95rem}
.materials a svg{flex:none;width:1.25rem;height:1.25rem;margin-right:.35rem}

/* Song list with filters */
.rd-catalog{display:flex;flex-direction:column;overflow:hidden}
.rd-catalog-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.4rem .5rem;padding:.6rem .75rem;border-bottom:1px solid var(--line)}
.rd-catalog h2{margin:0;font-size:1.2rem;font-weight:800;line-height:1.2;color:var(--blue)}
.rd-filters{display:flex;gap:.35rem}
.rd-filter{min-height:2.5rem;padding:.2rem .7rem;border:1px solid #cfc9bb;border-radius:2rem;background:var(--card);font-size:.875rem;font-weight:700;color:var(--ink);white-space:nowrap}
.rd-filter:hover{border-color:var(--blue);color:var(--blue)}
.rd-filter[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff}
.rd-list{margin:0;padding:0;list-style:none}
.rd-list li{display:flex;align-items:stretch}
.rd-list li+li{border-top:1px solid #f0ece2}
.rd-choice{display:flex;align-items:center;gap:.6rem;flex:1;min-width:0;min-height:3rem;padding:.3rem .75rem .3rem .5rem;border:0;border-left:.25rem solid transparent;border-radius:0;background:transparent;text-align:left;font-size:1rem;font-weight:700;line-height:1.25;color:var(--ink)}
.rd-choice:hover{background:#f7f5ee}
.rd-choice:focus-visible{outline-offset:-3px}
.rd-icon{display:grid;place-items:center;flex:none;width:2rem;height:2rem;border-radius:50%;background:var(--blue-soft);color:var(--blue)}
.rd-icon svg{width:.95rem;height:.95rem}
.rd-title{flex:1;min-width:0;overflow-wrap:anywhere}
.rd-badge{flex:none;padding:.05rem .45rem;border:1px solid var(--line);border-radius:.4rem;background:var(--bg);font-size:.875rem;font-weight:400;line-height:1.3;color:var(--muted)}
.rd-choice[aria-current=true]{background:var(--blue-soft);border-left-color:var(--blue);color:var(--blue-dark)}
.rd-choice[aria-current=true] .rd-icon{background:var(--wine);color:#fff}
.rd-choice[aria-current=true] .rd-badge{background:var(--card);border-color:#c9d6f7}
/* The featured song: a warm tint and the word Featured. It keeps the tint when it is the current song. */
.rd-choice.rd-featured,.rd-choice.rd-featured[aria-current=true]{background:#fff1e0}
.rd-choice.rd-featured:hover{background:#ffe8cf}
.rd-choice.rd-featured .rd-badge{background:var(--card);border-color:#f3d3b3}
.rd-note{display:block;margin-top:.1rem;font-size:.875rem;font-weight:700;line-height:1.3;color:#8f3900}
.rd-choice.rd-featured .rd-badge-featured{background:#ffdcbd;border-color:#ffb97f;font-weight:700;color:#8f3900}
/* After each song button: the icon that opens the song's official release (Spotify, or YouTube when the song is not on Spotify). */
.rd-choice:not(:last-child){padding-right:.3rem}
.rd-out{display:grid;place-items:center;flex:none;width:2.75rem}
.rd-out svg{display:block;width:1.5rem;height:1.5rem}
.rd-out:hover{background:#f7f5ee}
.rd-out:focus-visible{outline-offset:-3px}
.rd-list li.rd-current{background:var(--blue-soft)}
.rd-list li.rd-marked{background:#fff1e0}
.rd-list li.rd-marked .rd-out:hover{background:#ffe8cf}

/* Plain list of recordings, shown only when scripts are off */
.rd-noscript{text-align:left}
.rd-noscript p{margin:0 0 .3rem;font-weight:800;color:var(--blue)}
.rd-noscript ul{margin:0;padding-left:1.2rem;columns:2 14rem}
.rd-noscript li{padding:.2rem 0}

/* Wide screens: list on the left with its own scroll, stage on the right, both stay in view. */
@media (min-width:54rem){
  .rd-layout{grid-template-columns:minmax(17rem,23rem) minmax(0,1fr);align-items:start}
  .rd-catalog{grid-column:1;grid-row:1;position:sticky;top:.75rem;height:calc(100svh - 6.6rem - var(--bar-h));min-height:20rem}
  .rd-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  .rd-stage{grid-column:2;grid-row:1;position:sticky;top:.75rem;padding:1.1rem 1.25rem}
  .rd-art{width:min(100%,max(20rem,calc((100svh - 19.5rem - var(--bar-h))*16/9)))}
  .rd-now{min-height:1.2em}
}

/* Phones and tablets: name and contact link on one line, the positioning line under them */
@media (max-width:53.99rem){
  .rd-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 .75rem}
  .rd-head>div{display:contents}
  .brand{grid-column:1;grid-row:1}
  .rd-contact{grid-column:2;grid-row:1}
  .rd-head p{grid-column:1/-1;grid-row:2;margin-top:0}
}

/* Under 640px the bar stacks: cover and name on top, controls in the middle, progress across, no volume. */
@media (max-width:39.99rem){
  :root{--bar-h:8.7rem}
  .pb{padding:.4rem max(.5rem,env(safe-area-inset-right,0px)) calc(.4rem + env(safe-area-inset-bottom,0px)) max(.5rem,env(safe-area-inset-left,0px))}
  .pb-card{grid-template-columns:minmax(0,1fr);gap:0;padding:.45rem .7rem .1rem}
  .pb-cover{width:44px;height:44px}
  .pb-side{display:none}
  .transport{gap:.5rem}
}

/* Small phones */
@media (max-width:24rem){
  .rd{padding-left:max(.75rem,env(safe-area-inset-left,0px));padding-right:max(.75rem,env(safe-area-inset-right,0px))}
  .rd-stage{padding:.7rem}
  .rd-head p{font-size:.95rem}
  .rd-filter{padding:.2rem .55rem}
  .rd-choice{gap:.45rem;padding-right:.6rem}
  .rd-badge{padding:.05rem .35rem}
}

/* The narrowest phones: the featured row keeps "Featured" and drops the "Jewish" badge, so a short name is not cut in half. */
@media (max-width:21.5rem){
  .rd-badge-featured+.rd-badge{display:none}
}
