/* "Right now" section: live activity, music, today's timeline, working-on note, recent GitHub work */
:root { --pink:#E58FB8; --dim:#4A5C78; }
#now[hidden] { display:none; }
/* Until the feed answers, hold the section's space so nothing below jumps when it appears. */
#now.loading { min-height:780px; }
#now.loading > * { visibility:hidden; }
@media (max-width:900px) { #now.loading { min-height:1500px; } }
.now { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:18px; align-items:start; }
.now-l, .now-r { display:flex; flex-direction:column; gap:18px; min-width:0; }
@media (max-width:900px) { .now { grid-template-columns:1fr; } }
.now ul { list-style:none; padding:0; margin:0; }
.now h3.ph { font:500 13.5px var(--sans); color:var(--soft); margin:0 0 14px; display:flex; justify-content:space-between; gap:12px; }

.player { --acc:var(--blue); padding:22px; display:grid; grid-template-columns:168px minmax(0,1fr); gap:22px; align-items:center; }
.cover { width:168px; height:168px; border-radius:6px; background:var(--bg); border:1px solid var(--line); display:block; }
.np-k { font-size:13.5px; color:var(--soft); display:flex; align-items:center; gap:8px; margin:0 0 6px; }
.np-k::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--acc); }
.player.on .np-k::before { animation:np-pulse 2s infinite; box-shadow:0 0 0 0 var(--acc); }
@keyframes np-pulse { 70% { box-shadow:0 0 0 7px transparent; } }
.np-title { font:400 40px/1.05 var(--serif); margin:0; color:var(--acc); overflow-wrap:anywhere; }
.np-note { margin:6px 0 0; font:italic 400 18px var(--serif); color:var(--ink); overflow-wrap:anywhere; }
.np-time { display:flex; align-items:center; gap:12px; margin-top:18px; font-size:13.5px; color:var(--soft); font-variant-numeric:tabular-nums; }
.np-bar { flex:1; height:4px; background:var(--line); border-radius:4px; overflow:hidden; }
.np-bar i { display:block; height:100%; width:0; background:var(--acc); border-radius:4px; transition:width .6s; }
.music { grid-column:1 / -1; display:flex; align-items:center; gap:14px; border-top:1px solid var(--line); padding-top:16px; margin-top:2px; min-width:0; }
.music[hidden] { display:none; }
.music .song { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.music .t { font-weight:500; } .music .a { color:var(--soft); }
.music .when { margin-left:auto; font-size:13px; color:var(--soft); white-space:nowrap; }
.np-bars { display:flex; gap:2px; align-items:end; height:16px; width:18px; flex:none; }
.np-bars i { flex:1; background:var(--green); border-radius:1px; height:60%; }
.music.playing .np-bars i { animation:np-eq 1s ease-in-out infinite alternate; }
.music:not(.playing) .np-bars i { background:var(--soft); height:35%; }
.np-bars i:nth-child(2) { animation-delay:-.4s; } .np-bars i:nth-child(3) { animation-delay:-.7s; } .np-bars i:nth-child(4) { animation-delay:-.2s; }
@keyframes np-eq { from { height:20%; } to { height:100%; } }

.day { padding:20px 22px; }
.day[hidden] { display:none; }
/* today's playlist: a planner-style schedule on a thin rail */
.sched { list-style:none; margin:0; padding:0; }
.sched li { display:grid; grid-template-columns:76px 22px minmax(0,1fr) auto; align-items:center; min-height:38px; position:relative; }
.sched li::before { content:""; grid-column:2; grid-row:1; justify-self:center; width:10px; height:10px; border-radius:50%; background:var(--c, var(--soft)); z-index:1; }
.sched li::after { content:""; position:absolute; left:calc(76px + 10px); top:0; bottom:0; width:1.5px; background:var(--line); }
.sched li:first-child::after { top:50%; } .sched li:last-child::after { bottom:50%; }
.sched li:only-child::after { display:none; }
.sched time { grid-column:1; font-size:13px; color:var(--soft); font-variant-numeric:tabular-nums; text-align:right; padding-right:12px; }
.sched .what { grid-column:3; padding-left:10px; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sched .what em { font-style:normal; font-size:12px; color:var(--acc, var(--c)); border:1px solid currentColor; border-radius:20px; padding:0 7px; margin-left:8px; vertical-align:1px; }
.sched .len { grid-column:4; font-size:13.5px; color:var(--soft); font-variant-numeric:tabular-nums; padding-left:12px; }
.sched li.cur::before { box-shadow:0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.sched li.cur .what em { color:var(--c); }
.sched li.gap { min-height:30px; }
.sched li.gap::before { background:var(--panel); border:1.5px dashed var(--dim); width:8px; height:8px; }
.sched li.gap .what, .sched li.gap .len { color:var(--soft); font-style:italic; font-family:var(--serif); font-size:14.5px; }
.sched li.sun { min-height:28px; }
.sched li.sun::before { background:var(--gold); width:6px; height:6px; }
.sched li.sun time, .sched li.sun .what { color:var(--gold); font:italic 400 14px var(--serif); }
.sched li.sun time { font-size:13px; font-family:var(--sans); font-style:normal; }
.day .more { background:none; border:0; padding:0 0 8px 98px; color:var(--soft); font:inherit; font-size:13px; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.day .more:hover { color:var(--ink); }
.day .more[hidden] { display:none; }
.totals { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:14px !important; padding-top:14px !important; border-top:1px solid var(--line); font-size:13.5px; color:var(--soft); }
.totals li { display:flex; align-items:center; gap:8px; }
.totals li::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--c); }
.totals b { font-weight:500; font-variant-numeric:tabular-nums; }
.totals .chaos b { color:var(--coral); }

.now-r .panel { padding:18px 20px; }
.now-r .panel[hidden] { display:none; }
.letter { font:400 18px/1.5 var(--serif); margin:0; overflow-wrap:anywhere; }
.qs li { padding:10px 0; border-top:1px solid var(--line); }
.qs li:first-child { border-top:0; padding-top:0; }
.qs a { font:italic 400 17px/1.4 var(--serif); text-decoration:none; overflow-wrap:anywhere; } .qs a:hover { text-decoration:underline; }
.qs small { display:block; font-size:12.5px; color:var(--soft); margin-top:3px; }
.work li { display:grid; grid-template-columns:auto minmax(0,1fr); gap:2px 10px; padding:9px 0; border-top:1px solid var(--line); font-size:14.5px; }
.work li:first-child { border-top:0; padding-top:0; }
.work li::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--violet); margin-top:7px; }
.work a { text-decoration:none; overflow-wrap:anywhere; } .work a:hover { text-decoration:underline; }
.work small { grid-column:2; color:var(--soft); font-size:12.5px; }

@media (max-width:560px) {
  .player { grid-template-columns:96px minmax(0,1fr); gap:16px; padding:18px; }
  .cover { width:96px; height:96px; }
  .np-title { font-size:30px; } .np-note { font-size:16px; } .np-time { margin-top:12px; } .np-bar { display:none; }
  .music { flex-wrap:wrap; } .music .song { white-space:normal; } .music .when { margin-left:32px; }
}
@media (prefers-reduced-motion:reduce) {
  .player.on .np-k::before, .music.playing .np-bars i { animation:none; }
  .np-bar i { transition:none; }
}
