/* Listening library: compact, readable record sleeves without artwork downloads. */
.discovery-intro { background:#e5dac0; border:1px solid var(--rim); border-radius:8px; padding:18px 22px; }
.discovery-intro p { margin:0 0 10px; }
.discovery-intro p:last-child { margin:0; color:var(--muted); }
.discovery-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 16px; margin-top:14px; }
.discovery-search { grid-column:1 / -1; }
.discovery-filters label { min-width:0; margin:10px 0; }
.discovery-toolbar { display:flex; gap:12px 18px; align-items:center; flex-wrap:wrap; margin:8px 0 18px; }
.check-label { display:flex; align-items:center; gap:10px; margin:0; min-height:44px; }
.check-label input { width:20px; height:20px; flex:none; margin:0; accent-color:var(--orange); }
.discovery-toolbar button { min-height:44px; }
.library-method { border-block:1px solid var(--rim); padding:12px 0; font-size:14px; }
.library-method summary { cursor:pointer; min-height:28px; font-weight:600; }
.library-method p { line-height:1.6; }
.library-method a,.discovery-record a { color:#93401e; text-underline-offset:3px; }
.discovery-decade { margin:34px 0 48px; scroll-margin-top:20px; }
.discovery-decade>h2 { color:var(--ivory); background:#31564d; padding:15px 18px; border-radius:6px; display:flex; justify-content:space-between; align-items:center; font-size:28px; }
.discovery-decade>h2 span { font-size:14px; font-weight:400; }
.discovery-genre>h3 { font-size:18px; color:#31564d; border-bottom:1px solid var(--rim); padding-bottom:10px; margin:26px 0 14px; }
.discovery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.discovery-record { background:var(--ivory); border:1px solid var(--rim); border-left:4px solid var(--orange); border-radius:7px; padding:20px; min-width:0; overflow-wrap:anywhere; }
.discovery-record:focus { outline:3px solid var(--orange); outline-offset:4px; }
.record-meta { color:var(--muted); font-size:13px; line-height:1.5; }
.discovery-record h4 { font:750 22px/1.25 'Trebuchet MS',Arial,sans-serif; margin:10px 0 6px; }
.record-artist { font-weight:600; }
.discovery-record p { font-size:15px; margin:8px 0 14px; }
.record-details { border-block:1px solid #d4c8ad; margin:16px 0; }
.record-details summary { cursor:pointer; padding:12px 0; min-height:44px; font-size:14px; font-weight:600; }
.record-details ul { padding-left:19px; }
.record-details li { margin:12px 0; font-size:14px; }
.record-details .next-label { font-weight:600; margin-bottom:0; }
.next-links { display:flex; flex-wrap:wrap; gap:0 14px; }
.next-links a { display:inline-flex; align-items:center; min-height:40px; }
.listen-links { display:flex; flex-wrap:wrap; gap:5px 14px; font-size:14px; }
.listen-links a { display:inline-flex; align-items:center; min-height:40px; }
.record-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.record-actions button { min-height:44px; padding:9px 12px; border:1px solid #9d8a69; border-radius:5px; background:linear-gradient(#fff9ed,#eadcc2); color:var(--ink); font-size:14px; }
.record-actions button:first-child { background:#31564d; color:var(--ivory); border-color:#31564d; }
.record-actions button[aria-pressed=true] { background:#dce7dd; border-color:#31564d; }
@media(max-width:1000px) { .discovery-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:720px) {
  .discovery-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; }
  .discovery-filters label:nth-child(3) { grid-column:1 / -1; grid-row:3; }
  .discovery-intro { padding:16px; }
  .discovery-toolbar { gap:8px 14px; }
  .check-label { flex-basis:100%; }
  .discovery-record { padding:16px; }
  .discovery-decade>h2 { font-size:25px; }
  .record-actions button { flex:1; }
}

.listening-page { --rim:#b9ab8e; --orange:#b65327; --ivory:#fffbed; }
.listening-page #discover { padding-bottom:40px; }
.listening-page .page-hero { padding-block:38px 24px; }
.listening-page .page-hero h1 { font-size:clamp(2.5rem,6vw,4.5rem); overflow-wrap:anywhere; }
.listening-page .library-stats { color:var(--teal); font-weight:700; }
.listening-page .discovery-filters label { display:block; font-weight:600; }
.listening-page .discovery-filters input,.listening-page .discovery-filters select { display:block; width:100%; min-width:0; max-width:100%; min-height:48px; margin-top:8px; padding:12px; border:1px solid var(--rim); border-radius:5px; background:var(--ivory); color:var(--ink); font:inherit; font-size:16px; box-sizing:border-box; }
.listening-page .discovery-filters select { appearance:none; padding-right:32px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23293c38' fill='none'/%3E%3C/svg%3E"); background-position:right 12px center; background-repeat:no-repeat; }
.listening-page button { cursor:pointer; font:inherit; }
.listening-page .discovery-toolbar button { background:var(--ivory); color:var(--ink); border:1px solid var(--rim); padding:10px 15px; border-radius:5px; }
.listening-page #discover-shuffle { background:var(--orange); color:#fffbed; border-color:#93401e; }
.listening-page button:disabled { opacity:.5; cursor:default; }
.listening-page .small,.listening-page .library-method { font-size:14px; }
.listening-page .discovery-record p { font-size:16px; line-height:1.6; }
.listening-page .record-actions button[aria-pressed=true] { color:var(--ink); }
.listening-page #library-toast:not(:empty) { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); max-width:calc(100vw - 32px); width:max-content; border-radius:6px; padding:12px 18px; background:#293c38; color:#fffbed; z-index:20; }
.listening-page :focus-visible { outline:3px solid var(--orange); outline-offset:4px; }
.listening-page [hidden] { display:none!important; }
.listening-page .empty { padding:30px 0; }
@media(max-width:720px) { .listening-page .wrap { width:calc(100% - 32px); } .listening-page .page-hero { padding-top:24px; } }
