/* ---------- refinements (2 Dec, late): the Lurklist calendar, steady centred counts, the person ⋯, louder artists,
   calmer header icons, the LURKED box. Loaded after tabs-20261202.css. ---------- */

/* ===== the Lurklist calendar: a chosen year opens into its months (app.js renderWatchFilters) ===== */
html body #shell #view-watcher .w-year-rail .w-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; margin: 3px 0 9px 0; padding: 6px 0 6px 6px;
  border-left: 2px solid #ff5b1c; animation: wm-open .24s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes wm-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html body #shell #view-watcher .w-year-rail .w-months { animation: none; } }
body.motion-quiet #view-watcher .w-year-rail .w-months { animation: none; }
html body #shell #view-watcher .w-year-rail .w-months > button { display: grid !important; place-items: center; align-content: center; gap: 2px; height: 30px !important; min-height: 30px !important;
  margin: 0 !important; padding: 0 !important; border: 1px solid rgba(16, 16, 14, .16) !important; border-radius: 0 !important; box-shadow: none !important; cursor: pointer;
  background: color-mix(in srgb, #ff5b1c calc(var(--h, 0) * 42%), #fffdf6) !important; color: #10100e !important; transition: transform .12s, border-color .12s, background .12s; }
html body #shell #view-watcher .w-year-rail .w-months > button::before, html body #shell #view-watcher .w-year-rail .w-months > button::after { content: none !important; display: none !important; }
html body #shell #view-watcher .w-year-rail .w-months > button b { font: 700 10px/1 var(--body, "Chakra Petch", sans-serif) !important; letter-spacing: .06em; color: inherit; }
html body #shell #view-watcher .w-year-rail .w-months > button span { font: 600 8.5px/1 var(--body, "Chakra Petch", sans-serif) !important; color: #4a4e45 !important; min-height: 8px; }
html body #shell #view-watcher .w-year-rail .w-months > button:hover:not(:disabled) { border-color: #10100e !important; transform: translateY(-1px); }
html body #shell #view-watcher .w-year-rail .w-months > button.on { background: #ff5b1c !important; color: #fff !important; border-color: #10100e !important; box-shadow: 2px 2px 0 #10100e !important; }
html body #shell #view-watcher .w-year-rail .w-months > button.on span { color: #fff !important; }
html body #shell #view-watcher .w-year-rail .w-months > button.empty { opacity: .32; cursor: default; }
/* the year whose month is chosen reads as "inside this year" rather than the whole year */
html body #shell #view-watcher .w-year-rail .erabar > button.on.has-month { background: transparent !important; color: #10100e !important; box-shadow: inset 3px 0 0 #ff5b1c !important; }
html body #shell #view-watcher .w-year-rail .erabar > button.on.has-month span { color: #4a4e45 !important; }
/* phones: MONTH under YEAR in the year panel, the same cream picker as YEAR */
.mobile-lurk-month[hidden] { display: none !important; }
@media (max-width: 760px) {
  html body #shell#shell #view-watcher .wtop .mobile-lurk-month:not([hidden]) { display: block !important; margin: 6px 0 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
  html body #shell#shell #view-watcher .wtop .mobile-lurk-month > span { display: none !important; }
  html body #shell#shell #view-watcher .wtop #w-month-mobile { display: block !important; width: 100% !important; min-width: 0 !important; max-width: none !important; height: 36px !important; min-height: 36px !important;
    margin: 0 !important; padding: 0 30px 0 14px !important; border: 1px solid rgba(14, 14, 12, .1) !important; border-radius: 0 !important; box-shadow: none !important;
    -webkit-appearance: none !important; appearance: none !important; color: #0e0e0c !important; font: 600 13px/1 var(--body, "Chakra Petch", sans-serif) !important;
    background: #fbf6ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M0 0h12L6 8z' fill='%234a4e45'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px !important; }
  /* a chosen month reads as an active filter */
  html body #shell#shell #view-watcher .wtop #w-month-mobile:has(option:checked:not([value=""])) { border-color: #10100e !important; box-shadow: inset 3px 0 0 #ff5b1c !important; }
}
@media (min-width: 761px) { .mobile-lurk-month { display: none !important; } }

/* ===== one button row in the Lurklist too (owner: "the like bars are off-centre … make the comment box go onto the next
   line … on the lurklist page there's a lot of issues with this and the spacing makes it look cheap") =====
   Every Lurklist song row now carries the same ♥ · 💬 · Similar · crate · ⋯ as Likes, at fixed widths with centred
   counts (app.js fmtCount keeps them to five characters). Playing a song no longer moves anything: LIKERS hangs under
   the ♥ the way it does on Likes, instead of comments dropping to a second line. */
@media (min-width: 761px) {
  html body #shell#shell#shell #w-feed .t-kids .row.compact.dense {
    grid-template-columns: 38px minmax(0, 1fr) 50px 138px 34px 30px 30px !important; column-gap: 10px !important;
    grid-template-areas: "art body dur stats sim crate more" !important; }
  html body #shell#shell#shell #w-feed .t-kids .row.compact.dense.current {
    grid-template-rows: auto !important; grid-template-areas: "art body dur stats sim crate more" !important; }
  html body #shell#shell#shell #w-feed .t-kids .row.compact.dense > .r-stats {
    grid-area: stats !important; display: flex !important; align-items: center !important; gap: 4px !important; width: 138px !important; padding: 0 0 0 4px !important;
    box-sizing: border-box !important; justify-content: flex-start !important; position: relative !important; overflow: visible !important; align-self: center !important; }
  html body #shell#shell#shell #w-feed .t-kids .row.compact.dense > .r-stats > :is(.r-heart, .r-comments) { grid-area: auto !important; margin: 0 !important; align-self: center !important; }
  html body #shell#shell#shell #w-feed .t-kids .row.compact.dense > .r-stats > .r-comments {
    display: inline-flex !important; align-items: center; gap: 4px; width: 60px !important; min-width: 60px !important; max-width: 60px !important; height: 30px !important; min-height: 30px !important;
    padding: 0 6px !important; justify-content: center !important; box-sizing: border-box !important; font-size: 11px !important; }
  html body #shell#shell#shell #w-feed .t-kids .row.compact.dense > .r-stats > .r-likers { display: none !important; }
  html body #shell#shell#shell #w-feed .t-kids .row.compact.dense.current > .r-stats > .r-likers {
    display: inline-flex !important; position: absolute !important; left: 4px !important; top: calc(100% + 6px) !important; grid-area: auto !important; margin: 0 !important; }
  html body #shell#shell#shell #w-feed .t-kids .row.compact.dense > .r-likeit {
    grid-area: sim !important; display: grid !important; place-items: center; width: 34px !important; height: 30px !important; min-height: 30px !important; padding: 0 !important;
    align-self: center !important; justify-self: start !important; margin: 0 !important; }
  html body #shell#shell#shell #w-feed .t-kids .row.compact.dense > .r-likeit :is(.signal-label, .signal-arrow) { display: none !important; }
  html body #shell#shell#shell #w-feed .t-kids .row.compact.dense > :is(.r-crate, .r-more, .c-dur) { align-self: center !important; margin-top: 0 !important; }
  /* the length: a quiet tag that lines up with the buttons, not a dark pill */
  html body #shell#shell#shell #w-feed .t-kids .row.compact.dense > .c-dur { justify-self: end !important; padding: 0 !important; background: none !important; color: #4a4e45 !important;
    border: 0 !important; box-shadow: none !important; font: 600 11px/1 var(--mono, "JetBrains Mono", monospace) !important; font-variant-numeric: tabular-nums; opacity: 1 !important; }
}

/* ===== the person's ⋯ sits right after "liked a track ▾" (owner: "the two … above each other is confusing"): a small,
   borderless key that belongs to the person line, not a second song ⋯ stacked above the row's own ===== */
html body #shell #w-feed .t-node > .t-menu { margin: 0 0 0 2px !important; width: 26px !important; height: 26px !important; min-height: 26px !important; padding: 0 !important; display: inline-grid !important;
  place-items: center; border: 1px solid transparent !important; background: transparent !important; box-shadow: none !important; color: #4a4e45 !important; border-radius: 0 !important; }
html body #shell #w-feed .t-node > .t-menu:hover, html body #shell #w-feed .t-node > .t-menu:focus-visible { border-color: #10100e !important; color: #10100e !important; background: #fffdf6 !important; }
html body #shell #w-feed .t-node > .t-menu svg { width: 14px !important; height: 14px !important; }
html body #shell #w-feed .t-node > .t-badge { margin-left: 4px !important; }

/* ===== the artist stands out (owner: "make the artist name more apparent") =====
   Bold, a size up, and the player's artist colour (burnt orange on the cream); on the playing row, whose title is
   already orange, the artist turns ink so the two never blur together. Rows, cards, crates and the queue. */
html body :is(#shell#shell#shell, #more-modal#more-modal#more-modal, #drawer#drawer#drawer) :is(.row, .card, .ct-row) .r-artist,
html body :is(#shell#shell#shell, #more-modal#more-modal#more-modal, #drawer#drawer#drawer) :is(.row, .card, .ct-row) .r-artist .artist-name {
  color: #b8430e !important; font-weight: 700 !important; opacity: 1 !important; }
html body :is(#shell#shell#shell, #more-modal#more-modal#more-modal) .row.current .r-artist,
html body :is(#shell#shell#shell, #more-modal#more-modal#more-modal) .row.current .r-artist .artist-name { color: #10100e !important; }
html body :is(#shell#shell#shell, #more-modal#more-modal#more-modal, #drawer#drawer#drawer) :is(.row, .card, .ct-row) .r-artist .artist-name:hover { color: #e2500f !important; text-decoration: underline; }
@media (min-width: 761px) {
  html body :is(#shell#shell#shell, #more-modal#more-modal#more-modal) .rows:not(.grid) .row.dense .r-artist { font-size: 12.5px !important; letter-spacing: .01em; }
  html body #shell#shell#shell #w-feed .row.compact .r-artist { font-size: 12px !important; letter-spacing: .01em; }
  html body #shell#shell#shell .card .c-artist { font-size: 12.5px !important; }
}
@media (max-width: 760px) {
  html body :is(#shell#shell#shell, #more-modal#more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-artist { font: 700 13px/1.3 var(--body, "Chakra Petch", sans-serif) !important; }
}
html body .q-row .a { color: #b8430e !important; font-weight: 700 !important; }
html body :is(#shell#shell#shell, #more-modal#more-modal#more-modal, #drawer#drawer#drawer) :is(.row, .card, .ct-row) .r-artist .artist-name { font-size: inherit !important; line-height: inherit !important; letter-spacing: inherit !important; }

/* ===== the list's song count (owner: "the really small text where it says 21,028 tracks is slightly overlapping with the
   buttons … fix this throughout"). cohesion-20261116.css hung it 14 px below the toolbar, on the first row's buttons.
   It now sits in the toolbar's own line, right-aligned and centred with the tabs, readable at 10.5 px. ===== */
@media (min-width: 761px) {
  html body #shell#shell .view-main .listpanel > .tabsbar > .count {
    position: static !important; inset: auto !important; order: 99; margin: 0 4px 0 auto !important; align-self: center !important;
    font: 600 10.5px/1 var(--mono, "JetBrains Mono", monospace) !important; letter-spacing: .06em; color: #4a4e45 !important; white-space: nowrap; }
}

/* ===== phones: nothing runs into its neighbour (found by a collision probe across every page, 2 Dec late) ===== */
@media (max-width: 760px) {
  /* a song row's "liked month · length" keeps its full width; a long genre tag shortens with … instead of pushing the
     date into the ♥ (CHARTS rows with tags like DEEP DUBSTEP) */
  html body :is(#shell#shell#shell, #more-modal#more-modal#more-modal) .rows:not(.grid) > .row:not(#x0) > .r-body {
    grid-template-columns: minmax(0, max-content) max-content minmax(0, 1fr) !important; /* tag (shrinks first) · date (whole) · rest; the 1fr keeps long titles out of the sizing */
    grid-template-areas: "artist artist artist" "title title title" !important; }
  html body :is(#shell#shell#shell, #more-modal#more-modal#more-modal) .rows:not(.grid) > .row > .r-body .r-titleline > .r-tdate { justify-self: start !important; text-align: left !important; min-width: 0; }
  html body :is(#shell#shell#shell, #more-modal#more-modal#more-modal) .rows:not(.grid) > .row > .r-body .r-titleline > .tag { min-width: 0 !important; max-width: 100% !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; justify-self: start; }
  /* Blend's roster: LURK and IN LURKLIST are 40 px icon keys here; their words stay as the accessible name */
  html body #shell#shell#shell #view-blend .roster-acts > .btn { font-size: 0 !important; letter-spacing: 0 !important; gap: 0 !important; padding: 0 !important; justify-content: center !important; align-items: center !important; overflow: hidden !important; }
  html body #shell#shell#shell #view-blend .roster-acts > .btn > span { display: none !important; }
  html body #shell#shell#shell #view-blend .roster-acts > .btn > svg.ic { display: block !important; width: 14px !important; height: 14px !important; margin: 0 !important; }
}

/* ===== the Lurklist's top (owner, 2 Dec late: "bring the view … into the filter activity as the starting and then
   filter activity under it, then expand the genre buttons so more are visible … filter by more surgical genres") =====
   VIEW now opens the side panel (index.html); the genre box takes the whole width: GENRE and the dropdown on one line,
   then two rows of chips filled by app.js fitGenres(). The box keeps one height, so the list never jumps. */
@media (min-width: 761px) {
  html body #shell#shell#shell #view-watcher .wtop { display: flex !important; flex-wrap: wrap !important; }
  html body #shell#shell#shell #view-watcher .wtop > .panel:first-child {
    flex: 1 1 100% !important; width: 100% !important; max-width: none !important; min-width: 0 !important;
    display: grid !important; grid-template-columns: minmax(0, 1fr) 220px !important; grid-template-rows: auto auto !important;
    column-gap: 12px !important; row-gap: 10px !important; align-items: center !important; align-content: start !important; }
  html body #shell#shell#shell #view-watcher .wtop > .panel:first-child > .ph { grid-column: 1 !important; grid-row: 1 !important; margin: 0 !important; }
  html body #shell#shell#shell #view-watcher .wtop > .panel:first-child > .genre-select { grid-column: 2 !important; grid-row: 1 !important; width: 100% !important; margin: 0 !important; }
  html body #shell#shell#shell #view-watcher .wtop > .panel:first-child > #w-gchips {
    --g-rows: 2; grid-column: 1 / -1 !important; grid-row: 2 !important; display: flex !important; flex-wrap: wrap !important; align-content: flex-start !important;
    gap: 6px !important; height: calc(var(--chip, 30px) * 2 + 6px) !important; min-height: calc(var(--chip, 30px) * 2 + 6px) !important; max-height: none !important;
    overflow: hidden !important; margin: 0 !important; padding: 0 !important; }
  html body #shell#shell#shell #view-watcher #w-gchips > .gchip { flex: 0 0 auto !important; width: auto !important; max-width: 260px; margin: 0 !important; }
  html body #shell#shell#shell #view-watcher #w-gchips > .gchip.gc-off { display: none !important; }
  /* VIEW at the top of the side panel: three equal keys across, then FILTER ACTIVITY under a rule */
  html body #shell#shell#shell #view-watcher .wside > .panel > .w-view-h { margin: 0 0 10px !important; }
  html body #shell#shell#shell #view-watcher .wside #w-mode { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important;
    width: 100% !important; height: auto !important; margin: 0 0 14px !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
  html body #shell#shell#shell #view-watcher .wside #w-mode > button { width: 100% !important; height: 34px !important; min-height: 34px !important; margin: 0 !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important; white-space: nowrap; }
  html body #shell#shell#shell #view-watcher .wside > .panel > .w-filter-h { padding-top: 14px !important; border-top: 1px dashed rgba(16, 16, 14, .2) !important; }
}
/* laptops up to 1080 px stack the page in one column, which dropped VIEW and the filters below the whole feed: there
   the side panel sits above the feed as a two-column deck (VIEW + FILTER ACTIVITY beside the Lurklist people) */
@media (min-width: 761px) and (max-width: 1080px) {
  html body #shell#shell#shell #view-watcher:not(.lurklist-is-empty) .wbody > .wside { order: -1 !important; display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 12px !important; align-items: stretch !important; width: 100% !important; position: static !important; margin: 0 0 4px !important; }
  html body #shell#shell#shell #view-watcher:not(.lurklist-is-empty) .wbody > .wside > .panel { margin: 0 !important; min-width: 0 !important; max-height: 340px; overflow: auto; }
}

/* ===== the player bar (owner, 3 Dec: "the player waveform at the bottom is overlapping with the duration and length
   of the song … looks weird") =====
   The waveform's canvas kept its drawn width, so its cell couldn't shrink and the box ran under "0:02 / 3:33" (worse
   with an hour-long mix). The box now shrinks with its column, the time keeps its whole width with a clear gap, and
   while a song plays on wide screens the bar has the tenth column it needs: the queue key (≡) had wrapped onto a
   second row below the screen. */
@media (min-width: 761px) {
  html body #player.player .p-wave { min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; overflow: hidden !important; }
  html body #player.player .p-wave canvas { min-width: 0 !important; max-width: 100% !important; }
  html body #player.player .p-time { min-width: max-content !important; white-space: nowrap !important; padding: 0 4px !important; text-align: center !important; }
}
@media (min-width: 1100px) {
  html body #player.player.player { grid-template-columns: minmax(400px, 1.2fr) auto minmax(90px, .8fr) max-content auto auto auto auto auto auto !important; }
}

/* the player's sparks (live.js): compositor-animated dots along the traces, no canvas */
html body #player .live-sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; contain: strict; }
html body #player .live-sparks :is(.ls-head, .ls-dot, .ls-pulse) { position: absolute; left: 0; top: 0; display: block; pointer-events: none; will-change: transform, opacity; }
html body #player .live-sparks .ls-head { width: 3px; height: 3px; margin: -1px 0 0 -1px; background: #ffd2b8; box-shadow: 0 0 5px 1px rgba(255, 79, 23, .9), 0 0 12px rgba(255, 79, 23, .7); }
html body #player .live-sparks .ls-dot { width: 2px; height: 2px; margin: -1px 0 0 -1px; background: #ff4f17; }
html body #player .live-sparks .ls-pulse { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border: 1px solid rgba(255, 79, 23, .9); box-sizing: border-box; opacity: 0; }
@media (prefers-reduced-motion: reduce) { html body #player .live-sparks { display: none !important; } }

/* phones: the YEAR picker's arrow was white on its cream face (nearly invisible); ink, like MONTH under it */
@media (max-width: 760px) {
  html body #shell#shell #view-watcher .wtop #w-year-mobile { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M0 0h12L6 8z' fill='%234a4e45'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 12px 8px !important; }
  /* VIEW rides in More filters with the rest: three keys across */
  html body #shell#shell #view-watcher .w-more #w-mode { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; width: 100% !important; margin: 0 0 12px !important; }
  html body #shell#shell #view-watcher .w-more #w-mode > button { width: 100% !important; height: 38px !important; min-height: 38px !important; justify-content: center !important; margin: 0 !important; }
  html body #shell#shell #view-watcher .w-more .w-filter-h { padding-top: 12px !important; border-top: 1px dashed rgba(16, 16, 14, .2) !important; }
}

/* (3 Dec, production pass) grid cards: the liker strip ran the full width of the cover, so a long handle slid under the
   play key (phones), and YOU TOO sat under the crate key in the top corner (wide screens). The handle now stops short
   of the play key with "…", and YOU TOO sits beside the crate key. */
html body #shell .card .c-art > .c-who { padding-right: 46px; min-width: 0; }
html body #shell .card .c-who .c-hand { font-weight: inherit; min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #shell .card .c-art > .c-you { top: 8px; right: 44px; z-index: 2; }

/* (3 Dec, production pass) the smallest phones (320–379 px): LURK and BLEND beside the name left it ~10 px, so the
   handle and overlap ran under the keys. There they sit under the name instead. */
@media (max-width: 379px) {
  html body #shell #hub-twins .person-card.twin { grid-template-columns: 46px minmax(0, 1fr) !important; grid-template-areas: "art body" "art acts" !important; row-gap: 6px !important; }
  html body #shell #hub-twins .person-card .twin-acts { justify-content: flex-start; }
}
/* (3 Dec, production pass) 320–359 px: the header row had 125 px for a 143 px logo, so it read LÜRKLIS. */
@media (max-width: 359px) {
  html body .hdr #logo .logo-wordmark.logo-wordmark { width: 84px !important; }
}

/* (3 Dec, production pass) the genre toolbar (Likes, a person, Blend results, the Similar popup): its last cell had
   what was left of one line, so where the panel is narrower (1280 with the side column) YEAR × GENRE · SURPRISE ME ·
   shuffle · sort ran left over CLEAR. Below 900 px of toolbar those keys take their own line, right-aligned. */
@media (min-width: 761px) {
  html body :is(#shell, #more-modal) .index2 .genre-tail { container: gtail / inline-size; }
}
@container gtail (max-width: 899px) {
  html body :is(#shell, #more-modal) .index2 .genre-tail > .sortwrap { grid-column: 1 / -1 !important; }
}
