:root { --bg: #0f0d0c; --card: #1c1714; --line: #3a2e27; --fg: #fbf3ee; --fg2: #c9b5a8; --acc: #f97316; --acc2: #c2410c; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Segoe UI", Rubik, "Noto Sans Hebrew", system-ui, sans-serif; }
body { min-height: 100vh; padding-bottom: 120px; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 14px; }
button.primary { background: var(--acc); border-color: transparent; color: #fff; font-weight: 600; }
button.ghost { background: transparent; }
button.small { padding: 4px 10px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; }
input, select { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
input:focus { outline: 2px solid var(--acc); border-color: transparent; }
.hidden { display: none !important; }
.muted { color: var(--fg2); }
.center { text-align: center; padding: 40px 12px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: linear-gradient(135deg, #431407, #7c2d12); box-shadow: 0 4px 18px rgba(0,0,0,.4); }
.brand { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.brand img { width: 30px; height: 30px; }
.tabs { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: rgba(0,0,0,.2); border-color: transparent; white-space: nowrap; }
.tabs button.on { background: rgba(255,255,255,.18); font-weight: 600; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.pc { background: var(--card); border-radius: 14px; overflow: hidden; cursor: pointer; border: 1px solid var(--line); transition: transform .12s; }
.pc:hover { transform: translateY(-2px); }
.pc img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #2a211c; }
.pc .t { padding: 8px 10px 2px; font-weight: 600; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc .s { padding: 0 10px 10px; font-size: 12px; color: var(--fg2); }
.badge { display: inline-block; font-size: 11px; background: var(--acc2); color: #fff; border-radius: 999px; padding: 1px 8px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.hero { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.hero img { width: 180px; height: 180px; border-radius: 16px; object-fit: cover; flex: none; background: #2a211c; }
.hero h1 { margin: 0 0 4px; font-size: 24px; }
.desc { white-space: pre-line; color: var(--fg2); font-size: 14px; max-height: 7.5em; overflow: hidden; position: relative; }
.desc.open { max-height: none; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.tags span { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--fg2); }
.ep { display: flex; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.ep .d { flex: 1; min-width: 0; }
.ep .d b { display: block; }
.ep .d .m { font-size: 12px; color: var(--fg2); margin-top: 2px; }
.ep .d .x { font-size: 13px; color: var(--fg2); margin-top: 6px; white-space: pre-line; display: none; }
.ep.open .d .x { display: block; }
.ep .acts { display: flex; gap: 6px; flex: none; }
.ep .acts button { padding: 6px 10px; }
.ep.new { background: linear-gradient(90deg, rgba(34,197,94,.13), transparent 70%); border-inline-start: 4px solid #22c55e; }
.ep.new b::after { content: "חדש"; font-size: 10px; background: #16a34a; color: #fff; border-radius: 6px; padding: 1px 6px; margin-inline-start: 6px; vertical-align: middle; }
.ep.done .d b { color: var(--fg2); font-weight: 500; }
.ep .epc { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.ep .pn { color: #86efac; }
.prog { height: 3px; background: var(--line); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--acc); }
.res { display: flex; gap: 12px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.res img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: #2a211c; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--acc); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.player { position: fixed; inset-inline: 0; bottom: 0; z-index: 6; display: flex; gap: 12px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #1a1310ee; backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.player img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; }
.pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pinfo b, .pinfo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinfo > span { font-size: 12px; color: var(--fg2); }
.pbar { display: flex; align-items: center; gap: 8px; font-size: 12px; direction: ltr; }
.pbar input { flex: 1; padding: 0; accent-color: var(--acc); }
.pctl { display: flex; gap: 6px; align-items: center; }
.pctl button { padding: 6px 10px; }
.pctl .big { width: 46px; height: 46px; border-radius: 50%; background: var(--acc); color: #fff; border: 0; font-size: 18px; padding: 0; }
.pctl select { padding: 6px; }
.login { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #7c2d12, var(--bg) 60%); }
.login form { display: flex; flex-direction: column; gap: 10px; width: min(340px, 92vw); text-align: center; align-items: stretch; }
.login h2 { margin: 4px 0 0; }
.err { color: #fca5a5; min-height: 1.2em; }
.toast { position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%); background: #166534; color: #fff; padding: 10px 18px; border-radius: 12px; z-index: 10; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.toast.bad { background: #991b1b; }
.danger { color: #fca5a5; }
.small { font-size: 13px; }
h2.sec { font-size: 17px; margin: 4px 2px 10px; }
.cnt { display: inline-block; min-width: 20px; font-size: 11px; background: #16a34a; color: #fff; border-radius: 999px; padding: 1px 6px; margin-inline-start: 2px; }
.pc { position: relative; }
.pc.has-new { border-color: #22c55e; box-shadow: 0 0 0 1px #22c55e, 0 8px 24px rgba(34,197,94,.18); }
.pc .newb { position: absolute; top: 8px; inset-inline-start: 8px; background: #16a34a; color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.tags .tnew { border-color: #22c55e; color: #86efac; }
/* continue listening */
.cont { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ct { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; cursor: pointer; }
.ct:hover { border-color: var(--acc); }
.ct img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.ct b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.ct span { display: block; font-size: 12px; color: var(--fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct .pl { width: 40px; height: 40px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; flex: none; font-size: 15px; }
/* profiles */
.avatar { padding: 0; border: 0; background: none; border-radius: 50%; }
.av { --c: #f97316; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 60%, #000)); font-size: 19px; box-shadow: 0 2px 10px rgba(0,0,0,.35); flex: none; }
.av.big { width: 110px; height: 110px; border-radius: 26px; font-size: 58px; }
.av.add { background: transparent; border: 2px dashed var(--line); color: var(--fg2); box-shadow: none; font-size: 48px; }
.profiles { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; background: radial-gradient(circle at 50% 0%, #431407, var(--bg) 65%); overflow: auto; padding: 20px; }
.pwrap { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.pwrap h1 { margin: 0; font-size: 30px; }
.plist { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 760px; margin: 8px 0 6px; }
.pf { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; padding: 6px; border-radius: 18px; position: relative; color: var(--fg2); }
.pf b { color: var(--fg); font-weight: 600; }
.pf:hover .av, .pf:focus .av { outline: 3px solid #fff; outline-offset: 3px; }
.pf small { position: absolute; top: 4px; inset-inline-end: 4px; }
.pf i { position: absolute; inset: 6px 6px auto; height: 110px; display: grid; place-items: center; background: rgba(0,0,0,.45); border-radius: 26px; font-style: normal; font-size: 30px; }
.modal { position: fixed; inset: 0; z-index: 9; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 14px; }
.modal .card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 10px; max-height: 92vh; overflow: auto; }
.modal .card > button { text-align: start; }
.pf-prev { display: flex; justify-content: center; }
.emojis, .colors { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.emojis button { font-size: 22px; padding: 4px 6px; background: transparent; }
.emojis button.on { border-color: var(--acc); background: rgba(249,115,22,.15); }
.colors button { width: 30px; height: 30px; border-radius: 50%; padding: 0; border: 2px solid transparent; }
.colors button.on { border-color: #fff; }
.qrbox { display: flex; gap: 14px; align-items: center; }
.qrbox img { background: #fff; border-radius: 12px; padding: 6px; flex: none; }
a.btn { display: block; text-align: center; text-decoration: none; color: #fff; border-radius: 10px; padding: 10px 14px; }
a.btn.primary { background: var(--acc); font-weight: 600; }
@media (max-width: 720px) {
  #install .lbl { display: none; }
  .av.big { width: 88px; height: 88px; font-size: 46px; border-radius: 22px; }
  .pf i { height: 88px; border-radius: 22px; }
  .cont { grid-template-columns: 1fr; }
  .qrbox { flex-direction: column; }
  .top { flex-wrap: wrap; padding: 8px 10px; }
  .tabs { order: 3; flex-basis: 100%; }
  .hero { flex-direction: column; align-items: center; text-align: center; }
  .hero img { width: 150px; height: 150px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .player { flex-wrap: wrap; }
  .player img { width: 44px; height: 44px; }
  .pctl { width: 100%; justify-content: center; }
  .ep { flex-wrap: wrap; }
  .ep .acts { width: 100%; justify-content: flex-end; }
}
