:root { color-scheme:dark; font:15px/1.2 "Segoe UI",Arial,sans-serif; color:#fff0db; }
*,*::after,*::before { box-sizing:border-box; }
html,body,main { width:100%; height:100%; margin:0; }
main { position:relative; }
button,input { font:inherit; }
button:enabled { cursor:pointer; }
[hidden],#feedback:empty { display:none !important; }
#selector { height:100%; display:grid; grid-template:"search search" minmax(0,1fr) "rows action" minmax(0,2fr)/minmax(0,1fr) minmax(52px,21%); gap:clamp(2px,.9vh,5px); padding:2px; }
.search-bar { grid-area:search; display:flex; min-height:0; border:1px solid #a08a6d; border-radius:4px; background:linear-gradient(#100f0d,#201a15); box-shadow:inset 0 2px 5px #000; }
#query { padding:0 3%; width:100%; min-width:0; height:100%; border:0; color:#fff6e5; background:transparent; font:italic 500 clamp(10px,min(3.8vw,16vh),21px)/1.1 "Segoe UI",Arial,sans-serif; }
#query::placeholder { color:#eee2d1; opacity:1; }
.search-bar button { padding:0 1.5%; border:0; border-left:1px solid #5d5246; color:#f4e5ce; background:none; font-size:clamp(9px,min(3vw,12vh),15px); }
#strips { grid-area:rows; display:grid; grid-template-rows:repeat(2,minmax(0,1fr)); gap:clamp(2px,.9vh,5px); min-height:0; }
.strip { container-type:size; display:flex; flex-direction:column; justify-content:center; align-items:stretch; width:100%; min-width:0; min-height:0; overflow:hidden; text-align:left; padding:1px 2.5%; border:1px solid #a78359; border-radius:3px; color:#2d1e15; background:linear-gradient(#fae6c8,#e8c89b); box-shadow:inset 0 1px #fff4d6; }
.strip-title, .strip-artist { display:block; flex:none; min-width:0; padding:0 .09em 1px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; line-height:1.32; font-size:calc(var(--label-size) * var(--label-fit, 1)); }
.strip-title { --label-size:min(21px, 3.55vw, 12vh); font-weight:700; }
.strip-artist { --label-size:min(16px, 2.85vw, 9vh); color:#493225; font-weight:500; }
.strip-artist:empty { display:none; }
.strip:disabled { opacity:.9; }
.strip[aria-pressed="true"] { background:linear-gradient(#ffe8b8,#f4c684); box-shadow:inset 4px 0 #942b20,inset 0 1px #fff6df; }
.strip:hover:enabled { background:#ffe1ad; }
#send { grid-area:action; min-width:0; padding:0 2px; border:2px solid #ab5f47; border-radius:4px; background:linear-gradient(130deg,#e11b26,#ad1018 72%); box-shadow:inset 1px 1px #ff9083,inset -1px -2px #6d0a0c,0 1px 2px #000; color:#fff8eb; font:italic 700 clamp(11px,min(4.1vw,17vh),23px)/1.05 "Segoe UI",Arial,sans-serif; }
#send:disabled { background:linear-gradient(145deg,#c01c26,#961018); color:#f9d9cc; }
:focus-visible { outline:2px solid #fff; outline-offset:-3px; }
.strip:focus-visible { outline-color:#4a2612; }
#jr-catalogue .sc-track-request-widget > .container > :not(.modal-mask):not(:has(.modal-mask)) { display:none !important; }
#jr-catalogue .modal-mask { position:absolute; inset:0; z-index:4; overflow:auto; background:#211c18; }
.modal-wrapper { display:grid; min-height:100%; align-content:center; }
.modal-container { margin:0 auto; padding:4px 8px; width:100%; color:#fff8e8; }
.modal-header,.modal-body { margin:0; overflow-wrap:anywhere; font-size:clamp(10px,12vh,15px); }
.modal-footer { text-align:right; }
.modal-footer button,#retry { padding:3px 8px; border:1px solid #ac744a; border-radius:3px; background:#7b2422; color:white; }
#feedback:not(:empty) { position:absolute; inset:2px 24% auto 3px; margin:0; z-index:2; padding:3px 5px; border-radius:3px; background:#211a15; color:#fff7e8; font-size:clamp(9px,12vh,14px); pointer-events:none; }
#retry-row { position:absolute; z-index:3; bottom:2px; right:3px; margin:0; }
#retry { font-size:clamp(9px,12vh,13px); }
noscript { position:absolute; inset:0; background:#211a15; font-size:12px; }
@media (max-aspect-ratio:2/1) {
    #selector { grid-template:"search" minmax(0,.9fr) "rows" minmax(0,2fr) "action" minmax(0,.85fr)/100%; }
    #query { font-size:clamp(16px,5.8vw,22px); }
    .strip-title { --label-size:min(23px, 5.5vw, 9.4vh); }
    .strip-artist { --label-size:min(17px, 4.1vw, 7.2vh); }
    #send { font-size:clamp(17px,6vw,24px); }
}
@supports (font-size:1cqh) {
    .strip-title { --label-size:min(21px, 3.55vw, 39cqh); }
    .strip-artist { --label-size:min(16px, 2.85vw, 29cqh); }
    @media (max-aspect-ratio:2/1) {
        .strip-title { --label-size:min(23px, 5.5vw, 39cqh); }
        .strip-artist { --label-size:min(17px, 4.1vw, 29cqh); }
    }
}
@media (forced-colors:active) { .strip[aria-pressed="true"] { border:3px solid Highlight; } }
