/* Ask Jozie: public search + chat */
html, body { height: 100%; }
body { overflow: hidden; background: var(--bg); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app { display: flex; height: 100dvh; }

/* ---------- sidebar ---------- */
.side { width: 264px; flex: none; background: var(--bg-soft); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 14px 12px; gap: 10px; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; }
.side-brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -.01em; text-decoration: none !important; }
.side-brand img { border-radius: 7px; }
.new-chat { display: flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; cursor: pointer; transition: border-color .15s; }
.new-chat:hover { border-color: var(--aj-teal); }
.new-chat svg { width: 18px; height: 18px; color: var(--aj-teal); }
.side-label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin: 8px 6px 0; }
.chat-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; margin: 0 -4px; padding: 0 4px; }
.chat-item { display: flex; align-items: center; border-radius: 8px; }
.chat-item a { flex: 1; min-width: 0; padding: 7px 8px; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none !important; }
.chat-item:hover, .chat-item.active { background: var(--border); }
.chat-item.active a { font-weight: 600; }
.chat-item button { opacity: 0; background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 6px; border-radius: 6px; }
.chat-item:hover button, .chat-item button:focus-visible { opacity: 1; }
.chat-item button:hover { color: var(--aj-red); }
.chat-item svg { width: 15px; height: 15px; }
.side-empty { font-size: 13px; color: var(--text-3); padding: 4px 8px; }
.side-foot { border-top: 1px solid var(--border); padding: 12px 6px 2px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.side-foot a { color: var(--text-2); }
.scope-line { margin: 0; font-size: 12px; color: var(--text-3); }

/* ---------- main ---------- */
.stage { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 58px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; border: 0; background: none; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--bg-soft); color: var(--text); }
.menu-btn, .side .side-close { display: none; }
.mode { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 11px; padding: 3px; gap: 2px; }
.mode button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; border: 0; background: none; color: var(--text-2); padding: 6px 14px; border-radius: 8px; cursor: pointer; }
.mode button svg { width: 16px; height: 16px; }
.mode button[aria-selected=true] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.mode button[aria-selected=true] svg { color: var(--aj-teal); }
.model { margin-left: auto; }
.model select { width: auto; font-size: 13px; font-weight: 600; padding: 6px 30px 6px 10px; border-radius: 9px; background-color: var(--surface); color: var(--text-2); }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------- chat ---------- */
.thread { flex: 1; overflow-y: auto; padding: 8px 16px 24px; scroll-behavior: smooth; }
.thread > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.hello { text-align: center; padding: 10vh 0 20px; }
.hello-logo { width: min(240px, 60vw); height: auto; margin-bottom: 18px; }
.hello h1 { font-size: 26px; margin-bottom: 6px; }
.hello-sub { color: var(--text-2); font-size: 15px; max-width: 520px; margin: 0 auto; }
.hello-stats { margin-top: 10px; font-size: 13px; color: var(--text-3); }

.msg { display: flex; gap: 14px; padding: 18px 0; }
.msg.user { justify-content: flex-end; }
.bubble { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 18px 18px 4px 18px; padding: 10px 16px; max-width: 85%; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; }
.avatar { width: 32px; height: 32px; border-radius: 9px; flex: none; background: var(--aj-teal-light); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.avatar img { width: 24px; height: 24px; }
.bot-body { flex: 1; min-width: 0; }
.status { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); min-height: 22px; }
.status .dots { display: inline-flex; gap: 3px; }
.status .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--aj-teal); animation: blink 1.2s infinite ease-in-out; }
.status .dots i:nth-child(2) { animation-delay: .15s; }
.status .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .status .dots i { animation: none; opacity: .7; } .thread { scroll-behavior: auto; } }

.src-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; }
.src { flex: none; width: 196px; text-align: left; font: inherit; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 11px; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: border-color .15s, background-color .15s; }
.src:hover { border-color: var(--aj-teal); }
.src.lit { border-color: var(--aj-teal); background: var(--aj-teal-light); }
.src-top { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); min-width: 0; }
.src-n { flex: none; min-width: 18px; height: 18px; border-radius: 5px; background: var(--aj-teal); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.src-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-t { font-size: 13px; font-weight: 600; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.src-media { font-size: 11px; color: var(--aj-orange-dark); font-weight: 600; }

.answer { font-size: 15.5px; line-height: 1.7; overflow-wrap: anywhere; }
.answer.error { color: var(--aj-red); background: var(--aj-red-light); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.answer .caret { display: inline-block; width: 8px; height: 1.05em; background: var(--aj-teal); vertical-align: -2px; margin-left: 2px; border-radius: 2px; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.cite { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; margin: 0 1px; border-radius: 5px; border: 0; background: var(--aj-teal-light); color: var(--aj-teal-dark); font: inherit; font-size: 11px; font-weight: 700; vertical-align: 2px; cursor: pointer; line-height: 1; }
.cite:hover { background: var(--aj-teal); color: #fff; }
/* a run of citations as one chip named after its first source: "coindesk.com +2" */
.cite.named { height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--border); vertical-align: 1px; margin: 0 2px; }
.cite.named:hover { background: var(--aj-teal-light); color: var(--aj-teal-dark); border-color: var(--aj-teal); }

/* key figures (```stats) */
.md .stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 4px 0 18px; }
.md .stat { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); min-width: 0; }
.md .stat-l { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
.md .stat-v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--text); overflow-wrap: anywhere; }
.md .stat-n { font-size: 12.5px; color: var(--text-3); line-height: 1.35; }
.md .stat.down .stat-v, .md .stat.bad .stat-v { color: var(--aj-red); }
.md .stat.up .stat-v, .md .stat.good .stat-v { color: var(--aj-green-dark); }
.md .stat.down { border-top: 3px solid var(--aj-red); }
.md .stat.up, .md .stat.good { border-top: 3px solid var(--aj-green); }
.md .stat.bad { border-top: 3px solid var(--aj-red); }

/* the one thing to know (```callout) */
.md .callout { margin: 4px 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--aj-orange-light); border-left: 4px solid var(--aj-orange); }
.md .callout > :last-child { margin-bottom: 0; }

/* tables in answers */
.answer .table { border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.answer table { border-collapse: collapse; width: 100%; font-size: 14px; }
.answer th, .answer td { border: 0; border-bottom: 1px solid var(--border); padding: 8px 12px; }
.answer th { background: var(--bg-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); }
.answer tr:last-child td { border-bottom: 0; }
.answer tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg-soft) 55%, transparent); }
.answer h2, .answer h3 { margin-top: 1.4em; }
.answer ol > li::marker { font-weight: 700; color: var(--aj-teal-dark); }

.gallery { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.g-label { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin: 4px 0 0; }
.g-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.g-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.g-audio { display: flex; flex-direction: column; gap: 8px; }
.g-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.g-from { font-size: 12px; color: var(--text-3); background: none; border: 0; padding: 0; font: inherit; font-size: 12px; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-from:hover { color: var(--link); }

.actions { display: flex; align-items: center; gap: 2px; margin-top: 8px; color: var(--text-3); font-size: 12px; }
.actions .icon-btn { width: 30px; height: 30px; }
.actions svg { width: 16px; height: 16px; }
.actions .meta { margin-left: 8px; }

/* media pieces (shared with search and reader) */
.vfacade, .vframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; border: 0; padding: 0; cursor: pointer; }
.vfacade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .15s; }
.vfacade:hover img { opacity: 1; }
.vf-blank { position: absolute; inset: 0; background: linear-gradient(135deg, #1F8F86, #111618); }
.vf-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 40px; border-radius: 12px; background: rgba(0, 0, 0, .72); display: flex; align-items: center; justify-content: center; transition: background-color .15s; }
.vfacade:hover .vf-play { background: var(--aj-orange); }
.vf-play svg { fill: #fff; stroke: none; width: 24px; height: 24px; }
.vf-meta { position: absolute; left: 8px; bottom: 8px; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .65); padding: 2px 7px; border-radius: 6px; }
.vfacade.compact .vf-play { width: 40px; height: 28px; border-radius: 8px; }
.vfacade.compact .vf-meta { display: none; }
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
video { width: 100%; max-height: 60vh; border-radius: 10px; background: #000; display: block; }
.img-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-soft); cursor: zoom-in; aspect-ratio: 4 / 3; }
.img-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.img-btn:hover img { transform: scale(1.03); }
.audio-card { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.ac-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--aj-orange-light); color: var(--aj-orange-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.ac-icon svg { fill: currentColor; stroke: none; }
.ac-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ac-title { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-body audio { width: 100%; height: 36px; }

/* markdown */
.md p { margin: 0 0 .8em; }
.md > :last-child { margin-bottom: 0; }
.md h2, .md h3, .md h4, .md h5 { margin: 1.1em 0 .45em; font-size: 1.08em; }
.md h2 { font-size: 1.2em; }
.md ul, .md ol { margin: 0 0 .8em; padding-left: 1.4em; }
.md li { margin: .2em 0; }
.md blockquote { margin: 0 0 .8em; padding: 2px 0 2px 14px; border-left: 3px solid var(--aj-teal); color: var(--text-2); }
.md pre { margin: 0 0 .8em; font-size: 13px; }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 1.2em 0; }
.md .table { overflow-x: auto; margin: 0 0 .9em; }
.md table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.md th, .md td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
.md th { background: var(--bg-soft); }
.md figure { margin: .4em 0 1em; }
.md figure .img-btn { aspect-ratio: auto; cursor: zoom-in; }
.md figure .img-btn img { height: auto; object-fit: contain; max-height: 460px; }
.md figcaption { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.md mark { background: var(--aj-orange-light); color: inherit; border-radius: 3px; padding: 0 2px; }

/* composer */
.composer { padding: 0 16px 14px; }
.composer-box { max-width: 780px; margin: 0 auto; position: relative; display: flex; align-items: flex-end; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow-md); transition: border-color .15s, box-shadow .15s; }
.composer-box:focus-within { border-color: var(--aj-teal); box-shadow: 0 0 0 3px var(--focus), var(--shadow-md); }
.composer textarea { border: 0 !important; box-shadow: none !important; padding: 8px 0; resize: none; min-height: 24px; max-height: 200px; font-size: 15.5px; line-height: 1.5; background: transparent; }
.send { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--aj-orange); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-left: 8px; transition: background-color .15s, opacity .15s; }
.send:hover:not(:disabled) { background: var(--aj-orange-dark); }
.send:disabled { opacity: .35; cursor: default; }
.send.stop { background: var(--text); }
.send.stop svg { fill: var(--bg); stroke: none; }
.composer-note { text-align: center; font-size: 11.5px; color: var(--text-3); margin: 8px 0 0; }

/* ---------- search ---------- */
.search-view { overflow-y: auto; padding: 4px 16px 40px; }
.search-view > * { width: 100%; max-width: 820px; margin-left: auto; margin-right: auto; }
.sbox { position: relative; display: flex; align-items: center; margin-top: 6vh; transition: margin .2s; }
.search-view.has-results .sbox { margin-top: 4px; }
.sbox input { height: 52px; border-radius: 99px; padding: 0 118px 0 46px; font-size: 16px; box-shadow: var(--shadow-sm); }
.sbox-icon { position: absolute; left: 17px; color: var(--text-3); pointer-events: none; }
.sbox .btn { position: absolute; right: 6px; height: 40px; border-radius: 99px; padding: 0 20px; }
.stabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-top: 14px; overflow-x: auto; }
.stabs button { font: inherit; font-size: 14px; font-weight: 600; background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 12px; color: var(--text-2); cursor: pointer; margin-bottom: -1px; white-space: nowrap; }
.stabs button span { font-weight: 500; color: var(--text-3); font-size: 12.5px; }
.stabs button[aria-selected=true] { color: var(--aj-teal-dark); border-bottom-color: var(--aj-teal); }
.stabs button:disabled { opacity: .4; cursor: default; }
.sresults { padding-top: 14px; }
.s-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.ask-this { font: inherit; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 99px; padding: 6px 12px; cursor: pointer; }
.ask-this:hover { border-color: var(--aj-teal); color: var(--aj-teal-dark); }
.ask-this svg { width: 15px; height: 15px; color: var(--aj-teal); }
.res { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.res:last-child { border-bottom: 0; }
.res-main { flex: 1; min-width: 0; }
.res-url { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.res-url img { width: 16px; height: 16px; flex: none; }
.res-title { display: block; text-align: left; font: inherit; font-size: 18.5px; font-weight: 600; color: var(--aj-teal-dark); background: none; border: 0; padding: 0; margin: 3px 0 4px; cursor: pointer; line-height: 1.3; }
.res-title:hover { text-decoration: underline; }
.res-hl { margin: 0 0 4px; color: var(--text-2); font-size: 14.5px; }
.res-hl mark { background: var(--aj-orange-light); color: inherit; border-radius: 3px; padding: 0 2px; }
.res-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text-3); margin-top: 6px; }
.res-thumb { width: 168px; flex: none; }
.res-thumb .img-btn { aspect-ratio: 16 / 10; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.audio-list { display: flex; flex-direction: column; gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tile-t { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { text-align: center; color: var(--text-2); padding: 34px 0; }

/* ---------- reader ---------- */
.reader { width: min(560px, 46vw); flex: none; border-left: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.reader-top { display: flex; align-items: flex-start; gap: 10px; padding: 14px 14px 8px 20px; }
.reader-title { flex: 1; min-width: 0; }
.reader-crumb { font-size: 12px; color: var(--text-3); margin: 0 0 3px; }
.reader-title h2 { font-size: 18px; margin: 0; }
.reader-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 10px; border-bottom: 1px solid var(--border); }
.reader-links a { font-size: 12.5px; font-weight: 600; border: 1px solid var(--border); border-radius: 99px; padding: 3px 10px; color: var(--text-2); }
.reader-links a:hover { border-color: var(--aj-teal); color: var(--aj-teal-dark); text-decoration: none; }
.reader-body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.reader-nav { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding: 10px 16px; font-size: 13px; color: var(--text-3); }
.reader-nav button { font: inherit; font-size: 13px; font-weight: 600; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; color: var(--text); cursor: pointer; }
.reader-nav button:disabled { opacity: .4; cursor: default; }
.reader-nav button:hover:not(:disabled) { border-color: var(--aj-teal); }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
.lightbox img { display: block; max-width: 94vw; max-height: 84vh; border-radius: 10px; margin: 0 auto; background: #fff; }
.lightbox p { color: #fff; text-align: center; font-size: 14px; margin: 10px 0 0; }
.lb-close { position: fixed; top: 14px; right: 14px; color: #fff; background: rgba(255, 255, 255, .12); }
.lb-close:hover { background: rgba(255, 255, 255, .25); color: #fff; }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .reader { position: fixed; right: 0; top: 0; bottom: 0; width: min(560px, 100vw); z-index: 40; box-shadow: var(--shadow-lg); }
}
@media (max-width: 820px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; visibility: hidden; }
  .app.side-open .side { transform: none; visibility: visible; box-shadow: var(--shadow-lg); }
  .res-tags .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .res-url span { overflow: hidden; text-overflow: ellipsis; }
  .side .side-close, .menu-btn { display: inline-flex; }
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 45; }
  .bar { padding: 8px 12px; gap: 8px; }
  .mode button { padding: 6px 10px; }
  .model select { max-width: 150px; }
  .res-thumb { width: 96px; }
  .hello { padding-top: 6vh; }
}
@media (max-width: 520px) {
  .sbox input { padding-right: 16px; padding-left: 42px; }
  .sbox .btn { display: none; }
  .thread, .composer, .search-view { padding-left: 12px; padding-right: 12px; }
  .src { width: 168px; }
  .g-videos, .vid-grid { grid-template-columns: 1fr; }
  .res-thumb { display: none; }
}

/* ---------- playlist (list answers) ---------- */
.playlist { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.pl-now { padding: 12px 12px 4px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.pl-now .vframe, .pl-now video { max-width: 640px; }
.pl-now audio { width: 100%; }
.pl-playing { font-size: 13px; color: var(--text-2); margin: 8px 2px 6px; }
.pl-list { list-style: none; margin: 0; padding: 4px; max-height: 460px; overflow-y: auto; }
.pl-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 7px 8px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.pl-row:hover { background: var(--bg-soft); }
.pl-row.on { background: var(--aj-teal-light); }
.pl-n { width: 20px; text-align: right; font-size: 12.5px; color: var(--text-3); flex: none; }
.pl-thumb { width: 72px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; background: var(--bg-soft); border: 1px solid var(--border); }
.pl-icon { display: flex; align-items: center; justify-content: center; color: var(--aj-teal); font-size: 16px; }
.pl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-t b, .pl-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-t b { font-size: 14px; font-weight: 600; }
.pl-t small { font-size: 12px; color: var(--text-3); }
.pl-play { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--aj-orange); color: #fff; font-size: 12px; flex: none; opacity: 0; transition: opacity .15s; }
.pl-row:hover .pl-play, .pl-row.on .pl-play, .pl-row:focus-visible .pl-play { opacity: 1; }
