:root { --bg:#0b1120; --card:#131c31; --line:#24314f; --text:#e2e8f0; --sub:#94a3b8; --accent:#38bdf8; --star:#facc15; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; background:var(--bg); color:var(--text); font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; padding-bottom: 110px; }
.app-header { position: sticky; top:0; z-index:10; background: rgba(11,17,32,.96); padding: 12px 14px 10px; border-bottom:1px solid var(--line); backdrop-filter: blur(6px); }
.header-row { display:flex; align-items:baseline; gap:10px; }
.app-header h1 { font-size:19px; margin:0; letter-spacing:.02em; }
.count { color:var(--sub); font-size:12px; }
.install-btn { margin-left:auto; background:var(--accent); color:#082f49; border:0; border-radius:8px; padding:7px 10px; font-weight:700; font-size:13px; }
#search { width:100%; margin-top:10px; padding:10px 12px; border-radius:10px; border:1px solid var(--line); background:#0f172a; color:var(--text); font-size:16px; }
.filters { display:flex; gap:14px; align-items:center; margin-top:9px; flex-wrap:wrap; }
#theme-filter { background:#0f172a; color:var(--text); border:1px solid var(--line); border-radius:8px; padding:7px 8px; font-size:14px; max-width: 60vw; }
.toggle { font-size:14px; color:var(--sub); display:flex; gap:6px; align-items:center; }
.key-note { color:#fbbf24; font-size:12px; margin:8px 0 0; }
.list { padding: 6px 12px 20px; max-width: 860px; margin: 0 auto; }
.group-head { position: sticky; top: 128px; z-index:5; background:var(--bg); color:var(--accent); font-size:13px; font-weight:700; padding:10px 2px 6px; border-bottom:1px solid var(--line); }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px 13px; margin-top:10px; }
.meta { font-size:11.5px; color:var(--sub); display:flex; gap:7px; flex-wrap:wrap; }
.meta .theme { color:var(--accent); }
.card h2 { font-size:15.5px; line-height:1.45; margin:6px 0 4px; }
.card h2 a { color:var(--text); text-decoration:none; }
.card h2 a:active { color:var(--accent); }
.source { font-size:12px; color:var(--sub); }
.note { font-size:13.5px; line-height:1.6; margin:7px 0 0; color:#cbd5e1; }
.card details { margin-top:7px; }
.card summary { font-size:12.5px; color:var(--accent); cursor:pointer; }
.summary-text { font-size:13.5px; line-height:1.7; color:#cbd5e1; margin:6px 0 0; }
.card-foot { display:flex; align-items:center; gap:12px; margin-top:10px; flex-wrap:wrap; }
.stars { display:flex; gap:2px; }
.star { background:none; border:0; font-size:21px; line-height:1; padding:3px; color:#475569; cursor:pointer; }
.star.on { color:var(--star); }
.audio-btn { background:#1e293b; color:var(--text); border:1px solid var(--line); border-radius:999px; padding:7px 13px; font-size:13px; cursor:pointer; }
.audio-btn.ready { background:var(--accent); color:#082f49; font-weight:700; border-color:transparent; }
.audio-btn.requested { color:#fbbf24; }
.audio-btn.small { padding:5px 10px; font-size:12px; }
.loading, .empty { color:var(--sub); text-align:center; padding:30px 0; }
.player { position:fixed; left:0; right:0; bottom:0; z-index:20; background:#0f172a; border-top:1px solid var(--line); display:flex; gap:10px; padding:10px 12px calc(10px + env(safe-area-inset-bottom)); align-items:center; }
.player-art { width:44px; height:44px; border-radius:8px; }
.player-main { flex:1; min-width:0; }
.player-title { font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:5px; }
.player-controls { display:flex; align-items:center; gap:8px; }
.play-btn { width:40px; height:40px; border-radius:50%; border:0; background:var(--accent); color:#082f49; font-size:17px; flex:none; }
#seek { flex:1; accent-color: var(--accent); min-width: 60px; }
.time { font-size:11.5px; color:var(--sub); font-variant-numeric: tabular-nums; }
.speed-btn, .close-btn { background:none; border:1px solid var(--line); color:var(--text); border-radius:8px; padding:6px 8px; font-size:12.5px; flex:none; }
.toast { position:fixed; left:50%; transform:translateX(-50%); bottom:120px; z-index:30; background:#1e293b; border:1px solid var(--line); color:var(--text); padding:9px 16px; border-radius:999px; font-size:13.5px; box-shadow:0 6px 24px rgba(0,0,0,.5); }
@media (min-width: 700px) { .card h2 { font-size:16.5px; } }
