/* Mellfam Podcasts - phone first, dark, matches the site's navy nav */
:root {
  --bg: #0b1220; --panel: #121b2e; --panel2: #18233a; --line: #23314d; --text: #e8eefc; --muted: #93a3c4;
  --accent: #8b5cf6; --accent2: #22d3ee; --good: #34d399; --warn: #fbbf24; --radius: 14px;
  --tabs-h: 62px; --mini-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
body { padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 12px); min-height: 100vh; }
body.has-mini { padding-bottom: calc(var(--tabs-h) + var(--mini-h) + var(--safe-b) + 16px); }
a { color: var(--accent2); }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
.hidden { display: none !important; }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: linear-gradient(90deg, #0f172a, #1e3a5f); border-bottom: 1px solid #1f2b45; }
.brand { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -.5px; font-size: 1.05rem; }
.brand span { color: #60a5fa; }
.top h1 { flex: 1; margin: 0; font-size: 1.05rem; font-weight: 700; }
.who { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 5px 12px 5px 5px; }
.who .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; }

main { max-width: 1100px; margin: 0 auto; padding: 14px 16px 24px; }
h2.sec { margin: 22px 0 10px; font-size: 1.1rem; }
h2.sec:first-child { margin-top: 4px; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.empty .big { font-size: 3rem; }
.btn { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.btn:disabled { opacity: .5; }

/* ---- show grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
.tile { background: none; border: 0; padding: 0; text-align: left; position: relative; }
.tile .art { width: 100%; aspect-ratio: 1; border-radius: var(--radius); object-fit: cover; background: var(--panel2); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.tile .t { margin-top: 7px; font-weight: 650; font-size: .9rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .a { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { position: absolute; top: 6px; right: 6px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.4); }

/* continue-listening row */
.row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.row .card { flex: 0 0 240px; scroll-snap-align: start; }

/* ---- episode list ---- */
.eps { display: flex; flex-direction: column; gap: 2px; }
.ep { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--panel); }
.ep + .ep { margin-top: 6px; }
.ep .art { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--panel2); }
.ep .body { flex: 1; min-width: 0; cursor: pointer; }
.ep .show { color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep .title { font-weight: 650; font-size: .92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep .meta { color: var(--muted); font-size: .76rem; margin-top: 2px; display: flex; gap: 8px; align-items: center; }
.ep.played .title { color: var(--muted); }
.ep .bar { height: 3px; background: var(--line); border-radius: 3px; margin-top: 5px; overflow: hidden; }
.ep .bar i { display: block; height: 100%; background: var(--accent2); }
.ep .acts { display: flex; gap: 6px; flex: none; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel2); display: grid; place-items: center; font-size: 1.05rem; }
.iconbtn.play { background: var(--accent); border-color: var(--accent); color: #fff; }
.iconbtn.on { border-color: var(--accent2); color: var(--accent2); }
.ep.now { outline: 2px solid var(--accent); }

/* ---- show page ---- */
.showhead { display: flex; gap: 16px; align-items: flex-start; }
.showhead .art { width: 132px; height: 132px; border-radius: var(--radius); object-fit: cover; flex: none; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
@media (min-width: 700px) { .showhead .art { width: 190px; height: 190px; } }
.showhead h2 { margin: 2px 0 4px; font-size: 1.25rem; line-height: 1.2; }
.showhead .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.desc { color: #c8d3ea; font-size: .9rem; margin: 14px 0 6px; max-height: 6.5em; overflow: hidden; position: relative; }
.desc.open { max-height: none; }
.desc p { margin: 0 0 .6em; }
.more { background: none; border: 0; color: var(--accent2); padding: 4px 0; font-weight: 600; }
.listhead { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { background: none; border: 0; padding: 6px 12px; font-size: .82rem; color: var(--muted); }
.seg button.on { background: var(--panel2); color: var(--text); }

/* ---- discover ---- */
.search { position: relative; }
.search input { width: 100%; padding: 13px 16px 13px 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 1rem; outline: none; }
.search input:focus { border-color: var(--accent); }
.search::before { content: "🔍"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: .95rem; opacity: .7; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 13px; font-size: .85rem; color: var(--muted); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.addfeed { margin-top: 26px; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius); }
.addfeed form { display: flex; gap: 8px; margin-top: 8px; }
.addfeed input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.rank { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.65); color: #fff; font-weight: 800; font-size: .75rem; border-radius: 8px; padding: 2px 7px; }
.loading { text-align: center; padding: 40px; color: var(--muted); }
.spinner { width: 34px; height: 34px; margin: 0 auto 10px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- bottom tabs ---- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center; background: rgba(11,18,32,.96); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); backdrop-filter: blur(8px); }
.tabs button { flex: 1; max-width: 170px; height: var(--tabs-h); background: none; border: 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .74rem; font-weight: 600; }
.tabs button .i { font-size: 1.3rem; line-height: 1; }
.tabs button.on { color: var(--text); }
.tabs button.on .i { transform: scale(1.12); }

/* ---- mini player ---- */
.mini { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tabs-h) + var(--safe-b) + 6px); z-index: 41; max-width: 760px; margin: 0 auto; height: var(--mini-h);
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: linear-gradient(90deg, #2a1f55, #1b2a4a); border: 1px solid #3b3a72; box-shadow: 0 10px 30px rgba(0,0,0,.5); overflow: hidden; }
.mini .art { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.mini .txt { flex: 1; min-width: 0; cursor: pointer; }
.mini .t { font-weight: 700; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .s { color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .prog { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent2); width: 0; }
.mini .iconbtn { border: 0; background: rgba(255,255,255,.1); }
.mini .iconbtn.play { background: #fff; color: #1b1440; }

/* ---- full player ---- */
.player { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: radial-gradient(120% 70% at 50% 0%, #34296b 0%, #111a30 55%, #0b1220 100%);
  display: flex; flex-direction: column; align-items: center; padding: 14px 20px calc(24px + var(--safe-b)); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.player .bar { width: 100%; max-width: 520px; display: flex; justify-content: space-between; align-items: center; }
.player .bar button { background: none; border: 0; font-size: 1.5rem; padding: 6px 10px; }
.player .big { width: min(78vw, 360px); aspect-ratio: 1; border-radius: 20px; object-fit: cover; margin: 18px 0; box-shadow: 0 20px 50px rgba(0,0,0,.55); }
.player .pt { font-size: 1.15rem; font-weight: 750; text-align: center; max-width: 520px; line-height: 1.3; }
.player .ps { color: var(--muted); margin-top: 4px; text-align: center; cursor: pointer; }
.player .scrub { width: 100%; max-width: 520px; margin-top: 22px; }
.player input[type=range] { width: 100%; accent-color: var(--accent2); height: 28px; }
.player .times { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.player .ctrls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 10px; }
.player .ctrls .skip { background: none; border: 0; font-size: 1rem; font-weight: 800; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.player .ctrls .skip span { position: absolute; font-size: 2.6rem; opacity: .35; line-height: 1; }
.player .ctrls .pp { width: 78px; height: 78px; border-radius: 50%; border: 0; background: #fff; color: #1b1440; font-size: 2rem; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.player .extras { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.player .extras button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 8px 14px; font-size: .85rem; font-weight: 600; }
.player .extras button.on { border-color: var(--accent2); color: var(--accent2); }
.player .notes { width: 100%; max-width: 620px; margin-top: 26px; background: rgba(0,0,0,.25); border-radius: var(--radius); padding: 14px 16px; color: #c8d3ea; font-size: .9rem; }
.player .notes p { margin: 0 0 .6em; }
.player .notes h3 { margin: 0 0 8px; font-size: .95rem; color: var(--text); }

/* ---- sheets (who's listening, episode details, menus) ---- */
.sheet { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet .box { width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto; background: var(--panel); border-radius: 20px 20px 0 0; padding: 18px 18px calc(22px + var(--safe-b)); animation: up .2s ease-out; }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet .box { border-radius: 20px; } }
.sheet h3 { margin: 0 0 12px; }
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.names button { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); font-weight: 650; text-align: left; }
.names button.on { border-color: var(--accent); }
.names .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.other { display: flex; gap: 8px; margin-top: 14px; }
.other input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.menu { display: flex; flex-direction: column; gap: 8px; }
.menu button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); font-weight: 600; }
.menu button.on { border-color: var(--accent2); color: var(--accent2); }
.epdetail .art { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; }
.epdetail .head { display: flex; gap: 14px; }
.epdetail .notes { margin-top: 14px; color: #c8d3ea; font-size: .9rem; }
.epdetail .notes p { margin: 0 0 .6em; }
.epdetail .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + var(--mini-h) + var(--safe-b) + 22px); z-index: 90; background: #1f2a44; border: 1px solid var(--line); color: var(--text); padding: 10px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: 90vw; font-size: .9rem; }
.toast.err { border-color: #b91c1c; background: #3b1219; }
@media (hover: hover) { .tile:hover .art { transform: translateY(-2px); transition: transform .15s; } .ep:hover { background: var(--panel2); } }

/* ===================== round two: family, stats, radio, books, chapters, transcript, TV ===================== */
.tabs button { max-width: 140px; }
.who .kid { font-size: .7rem; background: var(--good); color: #052e1c; border-radius: 999px; padding: 1px 6px; font-weight: 800; }
.e-badge { display: inline-block; font-size: .62rem; font-weight: 800; background: #475569; color: #fff; border-radius: 4px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; }

/* sent-to-you inbox */
.inbox { background: linear-gradient(90deg, #2a1f55, #16213a); border: 1px solid #3b3a72; border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; }
.inbox .from { font-size: .82rem; color: #c4b5fd; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; }
.inbox .from b { color: #fff; }
.inbox .from button { background: none; border: 0; color: var(--muted); font-size: 1rem; padding: 0 4px; }
.inbox .ep { background: rgba(0,0,0,.2); }

/* the family is listening */
.strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.fam { flex: 0 0 150px; scroll-snap-align: start; background: var(--panel); border-radius: var(--radius); padding: 10px; border: 0; text-align: left; }
.fam .who2 { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; margin-bottom: 8px; }
.fam .who2 .av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 800; flex: none; }
.fam .art { width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; }
.fam .t { font-size: .78rem; font-weight: 650; margin-top: 6px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fam .ago { font-size: .7rem; color: var(--muted); }

/* promo cards on Discover */
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.promo { border: 0; border-radius: var(--radius); padding: 14px; text-align: left; color: #fff; font-weight: 750; display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.promo span { font-weight: 500; font-size: .8rem; opacity: .85; }
.promo.books { background: linear-gradient(135deg, #b45309, #7c2d12); }
.promo.radio { background: linear-gradient(135deg, #0e7490, #1e3a8a); }

/* generated book covers (LibriVox has no artwork in its directory) */
.cover { width: 100%; aspect-ratio: 1; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: center; padding: 12px; color: #fff; text-align: center;
  font-family: Georgia, "Times New Roman", serif; box-shadow: 0 6px 18px rgba(0,0,0,.35); position: relative; overflow: hidden; }
.cover::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.35); border-radius: 9px; }
.cover .ct { font-size: 1.02rem; font-weight: 700; line-height: 1.2; }
.cover .ca { font-size: .74rem; opacity: .85; margin-top: 8px; font-style: italic; }
.done-bar { height: 4px; background: var(--line); border-radius: 4px; margin-top: 5px; overflow: hidden; }
.done-bar i { display: block; height: 100%; background: var(--good); }

/* radio */
.stations { display: flex; flex-direction: column; gap: 6px; }
.station { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--panel); }
.station .logo { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: #fff; flex: none; }
.station .logo.ph { display: grid; place-items: center; font-size: 1.6rem; background: linear-gradient(135deg, #0e7490, #1e3a8a); }
.station .body { flex: 1; min-width: 0; }
.station .n { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station .d { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station.now { outline: 2px solid var(--accent2); }
.live { display: inline-flex; align-items: center; gap: 5px; background: #dc2626; color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: .06em; border-radius: 6px; padding: 2px 8px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* stats */
.bignums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bignum { background: var(--panel); border-radius: var(--radius); padding: 14px 10px; text-align: center; }
.bignum b { display: block; font-size: 1.5rem; }
.bignum span { color: var(--muted); font-size: .76rem; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 120px; background: var(--panel); border-radius: var(--radius); padding: 12px 12px 0; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bars i { width: 100%; max-width: 26px; background: linear-gradient(0deg, var(--accent), var(--accent2)); border-radius: 5px 5px 0 0; min-height: 2px; }
.bars span { font-size: .62rem; color: var(--muted); padding: 4px 0 6px; }
.chips2 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips2 span { background: var(--panel); border-radius: 999px; padding: 6px 12px; font-size: .84rem; }
.board { display: flex; flex-direction: column; gap: 6px; }
.board .r { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 12px; padding: 9px 12px; }
.board .r.me { outline: 2px solid var(--accent); }
.board .medal { width: 26px; text-align: center; font-size: 1.1rem; }
.board .nm { flex: 1; font-weight: 650; }
.board .tm { color: var(--muted); font-variant-numeric: tabular-nums; }
.wrapped { margin-top: 14px; border-radius: 20px; padding: 20px; color: #fff; background: radial-gradient(120% 120% at 0% 0%, #7c3aed, #1d4ed8 55%, #0f172a); }
.wrapped h3 { margin: 0 0 4px; font-size: 1.3rem; }
.wrapped .big { font-size: 2.4rem; font-weight: 900; line-height: 1.1; margin: 10px 0; }
.wrapped ol { margin: 8px 0 0; padding-left: 20px; }

/* settings menu */
.setting { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); text-align: left; width: 100%; font-weight: 600; }
.setting .lbl { flex: 1; }
.setting .lbl small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; margin-top: 2px; }
.switch { width: 46px; height: 26px; border-radius: 999px; background: #334155; position: relative; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch.on { background: var(--good); }
.switch.on::after { transform: translateX(20px); }
.namechecks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.namechecks label { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); font-weight: 600; }
.namechecks input { accent-color: var(--accent); width: 18px; height: 18px; }
textarea.note, input.note { width: 100%; margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; resize: vertical; }
.dl-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dl-row .t { flex: 1; min-width: 0; font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-row .s { color: var(--muted); font-size: .76rem; }
.progress-dl { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.progress-dl i { display: block; height: 100%; background: var(--accent2); width: 0; }

/* player: chapters, transcript, binge, TV */
.player .chap { color: var(--accent2); font-size: .85rem; margin-top: 6px; text-align: center; font-weight: 600; }
.player .chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 12px; font-size: .8rem; margin-top: 10px; display: inline-flex; gap: 8px; align-items: center; }
.player .chip button { background: none; border: 0; color: var(--muted); padding: 0; }
.chapters .c { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); margin-bottom: 6px; }
.chapters .c.on { border-color: var(--accent2); color: var(--accent2); }
.chapters .c .ts { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .8rem; flex: none; }
.transcript { max-height: 46vh; overflow-y: auto; }
.transcript .cue { padding: 6px 8px; border-radius: 8px; cursor: pointer; line-height: 1.45; }
.transcript .cue.on { background: rgba(34,211,238,.14); color: #fff; }
.transcript .cue .who3 { color: var(--accent2); font-weight: 700; font-size: .78rem; display: block; }
.tvbanner { width: 100%; max-width: 520px; margin-top: 14px; border-radius: 14px; padding: 12px 14px; background: linear-gradient(90deg, #0e7490, #1d4ed8); display: flex; align-items: center; gap: 10px; font-weight: 700; }
.tvbanner span { flex: 1; }
.tvbanner button { background: rgba(255,255,255,.18); border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 700; color: #fff; }
.offline-note { background: #3b2f12; border: 1px solid #a16207; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: .88rem; }

/* avatars anywhere else (leaderboard, settings heading) */
.av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; flex: none; vertical-align: middle; }
.sheet h3 .av { margin-right: 6px; }
a.btn { text-decoration: none; }

/* your own audiobooks: the add-a-book page */
.promos.one { grid-template-columns: 1fr; }
.upform { display: flex; flex-direction: column; gap: 12px; }
.upform .field { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; color: var(--muted); }
.upform .field input { padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 1rem; }
.pickrow { display: flex; flex-wrap: wrap; gap: 8px; }
.pickrow label { position: relative; cursor: pointer; }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.uplist .row, .covrow { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: var(--panel); border-radius: 10px; margin-bottom: 6px; font-size: .9rem; }
.uplist .row .n { color: var(--muted); min-width: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.uplist .row .t, .covrow .t { flex: 1; min-width: 0; }
.uplist .row .s { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.covprev { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.warn { color: var(--warn); font-size: .85rem; }
.upform .note { font-size: .82rem; line-height: 1.55; background: var(--panel); border-radius: 12px; padding: 12px 14px; }
.upform code { background: var(--panel2); padding: 1px 5px; border-radius: 5px; font-size: .8rem; color: var(--text); }
.upbar { height: 12px; border-radius: 999px; background: var(--panel2); overflow: hidden; }
.upbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .3s; }
.btn.danger { background: #dc2626; }
.zipbtn { padding: 14px 18px; font-size: 1.02rem; text-align: center; }
.zipicon { width: 56px; height: 56px; border-radius: 8px; display: grid; place-items: center; font-size: 1.8rem; background: var(--panel2); flex: none; }

/* YouTube: search results, saving progress */
.promo.yt { background: linear-gradient(135deg, #dc2626, #7f1d1d); grid-column: span 2; }
.ytlist { display: flex; flex-direction: column; gap: 8px; }
.ytrow { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: var(--panel); border: 0; border-radius: 12px; padding: 8px; color: var(--text); width: 100%; }
.ytthumb { position: relative; width: 136px; flex: none; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--panel2); display: grid; place-items: center; }
.ytthumb img { width: 100%; height: 100%; object-fit: cover; }
.ytthumb i { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.82); color: #fff; font-style: normal; font-size: .7rem; padding: 1px 5px; border-radius: 4px; }
.ytrow .b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ytrow .t { font-weight: 650; font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ytrow .c { color: var(--muted); font-size: .76rem; }
.ytjob { position: relative; background: var(--panel); border-radius: 12px; padding: 10px 44px 10px 12px; margin-bottom: 8px; font-size: .88rem; }
.ytjob a { color: var(--text); }
.ytjob .muted { font-size: .78rem; margin: 3px 0 6px; }
.ytjob .iconbtn { position: absolute; right: 6px; top: 6px; }
.ytjob.failed { border: 1px solid #7f1d1d; }
.ytbig { width: 100%; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.chk { display: flex; gap: 8px; align-items: center; font-size: .88rem; }
.ytbanner { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 12px 0 0; font-size: .85rem; }
/* follow + edit */
.ytrow.chan .ytthumb { width: 72px; aspect-ratio: 1; border-radius: 50%; }
.ytbig.round { width: 120px; aspect-ratio: 1; border-radius: 50%; margin: 0 auto; }
.edparts { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow-y: auto; }
.edpart { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); }
.edpart span { min-width: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.edpart input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: .9rem; }
/* bookmarks */
.bmlist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.bm { display: flex; gap: 4px; align-items: center; background: var(--panel); border-radius: 12px; padding-right: 4px; }
.bmgo { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; text-align: left; background: none; border: 0; color: var(--text); padding: 9px 10px; }
.bmgo .ts { color: var(--accent2); font-variant-numeric: tabular-nums; font-size: .82rem; flex: none; min-width: 42px; }
.bmgo .bt { min-width: 0; }
.bmgo b { display: block; font-size: .88rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmgo small { display: block; color: var(--muted); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lmain > h2.sec:first-child, #lres > h2.sec:first-child { margin-top: 16px; }
/* 🗑 on the cards of books you added */
.tilewrap { position: relative; display: flex; }
.tilewrap > .tile { flex: 1; }
.tiledel { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .82); color: #fff; font-size: .95rem; display: grid; place-items: center; }
