/* Encore at night: a dark listening room, violet like a stage light, and each listener in a colour of their own.
   The family look of Tempo, Muster and Folio - dark, a serif for headings, a rule under the bar - with covers as
   the colour, since the music brings its own. */
:root {
    --bg: #14111c;
    --panel: #1c1827;
    --panel-hover: #241f33;
    --sunk: #17141f;
    --line: #2c2639;
    --line-strong: #3d3550;
    --text: #ece8f4;
    --muted: #9c95ad;
    --faint: #686178;
    --accent: #b4a7f5;
    --accent-strong: #c9bffa;
    --accent-dim: #2e2748;
    --accent-ink: #1a1430;
    --good: #86c9a6;
    --danger: #ea8577;
    --danger-dim: #3e2324;

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
    --radius: 14px;
    color-scheme: dark;

    --who: var(--accent);
    --who-dim: var(--accent-dim);
}

/* Each listener's colour: the bright one for marks, the dim one for what sits behind them. */
.c-violet { --who: #b4a7f5; --who-dim: #2e2748; }
.c-teal   { --who: #6fd3b2; --who-dim: #173a32; }
.c-coral  { --who: #f2997b; --who-dim: #3e2219; }
.c-amber  { --who: #efb85a; --who-dim: #3b2c12; }
.c-blue   { --who: #82b8ee; --who-dim: #172d45; }
.c-pink   { --who: #ee93b3; --who-dim: #3f1d2b; }

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 "Segoe UI", system-ui, sans-serif;
}

/* A stage light from above, low and wide, fixed while the page scrolls. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 80% 50% at 50% -12%, rgba(180, 167, 245, .10) 0%, transparent 70%), var(--bg); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; }
h1 { font-size: 2rem; margin: 0 0 1rem; line-height: 1.15; }
h2 { font-size: 1.2rem; margin: 0 0 .6rem; }
h3 { font-size: 1.02rem; margin: 0 0 .5rem; }
h1:focus { outline: none; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .84rem; }
.good { color: var(--good); }
.warn { color: var(--danger); }
.label { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .82rem; margin-bottom: .35rem; }
.big-number { display: block; font-size: 1.7rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.grow { flex: 1; min-width: 0; }
ul.plain, ol.plain { list-style: none; margin: 0; padding: 0; }
code { font-size: .9em; background: var(--sunk); padding: .05rem .3rem; border-radius: 5px; }

.icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon .fill { fill: currentColor; stroke: none; }

/* ---- Shell ---- */

.shell { min-height: 100vh; }

.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 2rem;
    padding: .7rem 2rem;
    background: rgba(20, 17, 28, .88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.topnav { display: flex; gap: .3rem; }
.topnav a, .topbar-end a { color: var(--muted); padding: .35rem .75rem; border-radius: 999px; }
.topnav a:hover, .topbar-end a:hover { color: var(--text); text-decoration: none; background: var(--panel); }
.topnav a.active, .topbar-end a.active { color: var(--text); background: var(--accent-dim); }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.sign-out { margin: 0; }

.link-button { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.link-button.faint { color: var(--faint); }

.content { max-width: 1180px; margin: 0 auto; padding: 1.6rem 2rem 4rem; }

.tabbar { display: none; }

/* ---- Bits ---- */

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.panel { margin-bottom: 1.2rem; }
.welcome { max-width: 40rem; }
.welcome p { color: var(--muted); }

.btn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
    padding: .5rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--accent-strong); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.small { padding: .3rem .8rem; font-size: .86rem; }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost:hover { background: var(--panel-hover); }
.btn.danger { background: var(--danger); color: #2a0f0b; }

input, select {
    background: var(--sunk); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px;
    padding: .45rem .7rem; font: inherit; min-width: 0;
}
input:focus, select:focus { outline: 2px solid var(--accent-dim); border-color: var(--accent); }

.notice { display: flex; align-items: center; gap: .5rem; padding: .55rem .85rem; border-radius: 10px; margin: 0 0 1rem;
    background: var(--panel); border: 1px solid var(--line); }
.notice.good { border-color: #2f5a46; color: var(--good); }
.notice.warn { border-color: #5a2e2a; background: var(--danger-dim); color: #f3b3a9; }
.notice.small { margin: .4rem 0 .2rem; padding: .35rem .7rem; }

/* A cover: square, a little rounded, the size set by its class. */
.cover { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--sunk); }
.cover.blank { display: flex; align-items: center; justify-content: center; color: hsl(var(--hue, 260) 45% 82%);
    background: hsl(var(--hue, 260) 30% 24%); font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.cover.tiny { width: 36px; height: 36px; flex: none; border-radius: 6px; font-size: .9rem; }
.cover.small { width: 52px; height: 52px; flex: none; }
.cover.round { border-radius: 50%; }
.cover.broken { background: var(--panel-hover); box-shadow: inset 0 0 0 1px var(--line-strong); }

.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
    background: var(--who-dim); color: var(--who); font-weight: 600; }
.who-text { color: var(--who); }

/* ---- Who and when ---- */

.profile-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.chips { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .9rem; border-radius: 999px;
    color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.chip:hover { color: var(--text); text-decoration: none; background: var(--panel); }
.chip.on { background: var(--who-dim); color: var(--text); box-shadow: inset 0 0 0 1px var(--who); }
.chip.ghost { padding: .35rem .6rem; }
button.chip { background: none; border: 0; font: inherit; cursor: pointer; }
button.chip.on { background: var(--who-dim); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--who); }

.periods { display: flex; gap: .2rem; background: var(--panel); padding: .2rem; border-radius: 999px; border: 1px solid var(--line); }
.periods a { color: var(--muted); padding: .25rem .8rem; border-radius: 999px; font-size: .88rem; }
.periods a:hover { color: var(--text); text-decoration: none; }
.periods a.on { background: var(--accent-dim); color: var(--text); }

/* ---- Nu ---- */

.now-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.8rem; margin-bottom: 2rem; }

.now.big { display: flex; flex-direction: column; gap: .8rem; }
.now.big .now-cover { width: 260px; height: 260px; border-radius: var(--radius); font-size: 3rem; }
.now.big .now-cover.quiet { filter: saturate(.75) brightness(.9); }
.now-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; margin: .35rem 0 .15rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted);
    background: var(--panel); border: 1px solid var(--line); padding: .15rem .6rem; border-radius: 999px; }
.badge.who { color: var(--who); background: var(--who-dim); border-color: transparent; }
.progress { height: 4px; background: var(--line); border-radius: 2px; margin-top: .8rem; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--who); }
.progress-times { display: flex; justify-content: space-between; font-size: .75rem; color: var(--faint); margin-top: .2rem; }

.wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: auto; gap: 8px; }
.wall.loading { height: 300px; }
.tile { margin: 0; position: relative; display: block; }
.tile:hover .cover { outline: 2px solid var(--accent); outline-offset: -2px; }
.tile .cover { border-radius: 8px; }
.tile.large { grid-column: span 2; grid-row: span 2; }
.tile .caption { position: absolute; left: 8px; bottom: 8px; right: 8px; font-size: .78rem; color: #fff;
    background: rgba(12, 10, 18, .72); padding: .2rem .5rem; border-radius: 6px; width: fit-content; max-width: calc(100% - 16px);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.clock-panel { margin-bottom: 2rem; }
.clock { display: flex; align-items: flex-end; gap: 4px; height: 90px; }
.clock .bar { flex: 1; background: color-mix(in srgb, var(--accent) 42%, var(--bg)); border-radius: 3px 3px 1px 1px; min-height: 3px; }
.clock .bar.high { background: color-mix(in srgb, var(--accent) 72%, var(--bg)); }
.clock .bar.peak { background: var(--accent); }
.clock-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--faint); margin-top: .3rem; }

.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.moment { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.moment-body { display: flex; gap: .8rem; align-items: center; }
.moment p { margin: 0; }

/* ---- Statistieken ---- */

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.8rem; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 2.4rem; }

.toplist li, .recent li, .small-list li { display: flex; align-items: center; gap: .7rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.toplist li:last-child, .recent li:last-child, .small-list li:last-child { border-bottom: 0; }
.toplist .rank { width: 1.4rem; text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; flex: none; }
.toplist .grow, .recent .grow { display: flex; flex-direction: column; }
.title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toplist .muted, .recent .muted { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { height: 4px; border-radius: 2px; background: var(--line); margin-top: .3rem; }
.meter span { display: block; height: 100%; border-radius: 2px; background: var(--who); }
.count { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; font-size: .9rem; }
.footnote { margin-top: 2rem; }

/* ---- Genres ---- */

.tag { font-size: .72rem; color: var(--muted); background: var(--panel-hover); border-radius: 999px; padding: .05rem .5rem; margin-left: .45rem; vertical-align: .1em; }
.genre-row { margin-top: 2.2rem; }
.genre-bars li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 3rem; gap: .8rem; align-items: center; padding: .32rem 0; }
.genre-bars .genre-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.genre-bars .meter { height: 8px; border-radius: 4px; margin: 0; background: transparent; }
.genre-bars .meter span { border-radius: 4px; }
.genre-bars .count { text-align: right; }

.trend { display: flex; align-items: flex-end; gap: 5px; height: 150px; }
.trend-month { flex: 1; display: flex; flex-direction: column; border-radius: 3px; overflow: hidden; min-height: 2px; }
.trend-month span { display: block; min-height: 1px; }
.trend-axis { display: flex; gap: 5px; font-size: .72rem; color: var(--faint); margin-top: .3rem; }
.trend-axis span { flex: 1; text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .8rem; font-size: .82rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: .35rem; }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* ---- Geschiedenis ---- */

.search-box { display: flex; align-items: center; gap: .5rem; background: var(--sunk); border: 1px solid var(--line-strong);
    border-radius: 999px; padding: 0 .9rem; color: var(--faint); min-width: 0; width: 22rem; max-width: 100%; }
.search-box:focus-within { border-color: var(--accent); }
.search-box input { border: 0; background: transparent; outline: none; padding: .45rem 0; flex: 1; }
.history-day { margin-bottom: 1.6rem; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line-strong); padding-bottom: .35rem; }
.day-head h2 { margin: 0; font-size: 1.05rem; }
.history li { display: grid; grid-template-columns: 3rem 36px minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; }
.history .grow { display: flex; flex-direction: column; }
.history .muted { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history .time { color: var(--faint); font-variant-numeric: tabular-nums; font-size: .88rem; }
.load-more { display: flex; justify-content: center; margin: 1rem 0 2rem; }

/* ---- Artiest ---- */

.plain-link { color: inherit; }
.plain-link:hover { color: var(--accent); text-decoration: none; }
a.muted.plain-link:hover { color: var(--accent); }

.artist-head { display: flex; gap: 1.6rem; align-items: flex-end; margin-bottom: 1.6rem; }
.artist-head .artist-photo { width: 180px; height: 180px; border-radius: var(--radius); flex: none; font-size: 3rem; }
.artist-title { min-width: 0; }
.artist-title h1 { font-size: 2.6rem; margin: .1rem 0 .6rem; }
.artist-title .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }
.artist-title .tag { margin: 0; font-size: .8rem; padding: .15rem .65rem; }
.artist-title .tag:first-child { background: var(--who-dim); color: var(--who); }
.artist-links { display: flex; gap: 1.2rem; }
.date-number { display: block; font-size: 1.1rem; font-weight: 600; margin-top: .35rem; }
.artist-notes { margin: -.6rem 0 1.2rem; }
.bio { margin: 0 0 1.8rem; padding: .2rem 0 .2rem 1rem; border-left: 2px solid var(--line-strong); color: var(--muted);
    font-family: var(--serif); font-size: 1rem; line-height: 1.6; max-width: 52rem; }
.bio a { font-family: "Segoe UI", system-ui, sans-serif; font-size: .85rem; margin-left: .3rem; }
.artist-months { margin-bottom: 2rem; }
.months { display: flex; align-items: flex-end; gap: 3px; height: 100px; border-bottom: 1px solid var(--line); }
.months .bar { flex: 1; background: color-mix(in srgb, var(--who) 55%, var(--bg)); border-radius: 2px 2px 0 0; }
.months .bar.peak { background: var(--who); }
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.album-grid figure { margin: 0; min-width: 0; }
.album-grid figcaption { display: flex; flex-direction: column; font-size: .82rem; margin-top: .3rem; }
.similar { margin-top: 2rem; }
.similar-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip.new { background: #3b2c12; color: #efb85a; box-shadow: none; }
a.chip.new:hover { background: #4a3816; }

/* ---- Album, landen, decennia ---- */

.album-grid a { display: block; min-width: 0; }
.album-grid a:hover .cover { outline: 2px solid var(--accent); outline-offset: -2px; }
.caption-line { display: flex; flex-direction: column; font-size: .82rem; margin-top: .3rem; min-width: 0; }
.caption-line .title, .caption-line .faint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.artist-head .album-cover { border-radius: 10px; }
.album-title { font-size: 2rem !important; line-height: 1.15; }
.album-meta { margin-bottom: .6rem; }
.more-heading { margin-top: 1.8rem; }

.tracklist li { display: flex; align-items: center; gap: .7rem; padding: .38rem 0; border-bottom: 1px solid var(--line); }
.tracklist li:last-child { border-bottom: 0; }
.tracklist .rank { width: 1.4rem; text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; flex: none; }
.tracklist .grow { display: flex; flex-direction: column; }
.tracklist .meter { height: 4px; border-radius: 2px; background: var(--line); margin-top: .3rem; }
.tracklist .meter span { display: block; height: 100%; border-radius: 2px; background: var(--who); }
.tracklist li.unheard .title { color: var(--faint); }
.tracklist li.disc { color: var(--muted); font-size: .8rem; padding-top: .9rem; border-bottom-color: var(--line-strong); }

.country-bars li { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) 3rem; }
.country-bars .genre-name { display: flex; align-items: baseline; gap: .45rem; }
.country-bars .code { font-size: .68rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); background: var(--panel-hover);
    border-radius: 4px; padding: .05rem .3rem; flex: none; }
.country-bars .meter span { background: #6aa6e6; }
.country-bars a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.decades { display: flex; align-items: flex-end; gap: .5rem; height: 150px; }
.decade { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .25rem;
    background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--muted); min-width: 0; }
.decade .bar { width: 100%; background: color-mix(in srgb, var(--who) 50%, var(--bg)); border-radius: 4px 4px 1px 1px; }
.decade.peak .bar, .decade.on .bar { background: var(--who); }
.decade.on .year { color: var(--text); }
.decade .share { font-size: .72rem; }
.decade .year { font-size: .78rem; }
.decade:hover .bar { background: var(--who); }
.decade-albums { margin-top: 1rem; }

/* ---- Vlaggen en bijschriften ---- */

.flag-box { display: inline-flex; flex: none; }
.flag { width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); display: block; }
.artist-kicker { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.country-bars .genre-name { align-items: center; }

.tile .caption.small { left: 5px; bottom: 5px; right: 5px; font-size: .66rem; padding: .1rem .35rem; border-radius: 4px; }
.tile .caption { display: flex; gap: .3em; }
.tile .caption strong { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tile .caption .sep, .tile .caption .n { flex: none; }

/* ---- Kalender, records, weerzien ---- */

.history-top { margin-bottom: 2rem; }
.calendar-head { margin-bottom: .4rem; }
.calendar { display: flex; gap: 6px; }
.cal-days { display: grid; grid-template-rows: 14px repeat(7, 1fr); gap: 3px; font-size: .68rem; color: var(--faint); line-height: 1; }
.cal-days span { display: flex; align-items: center; }
.cal-grid { flex: 1; display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); gap: 3px; min-width: 0; }
.cal-week { display: grid; grid-template-rows: 14px repeat(7, auto); gap: 3px; min-width: 0; }
.cal-month { font-size: .68rem; color: var(--faint); white-space: nowrap; overflow: visible; line-height: 14px; }
.cal-day { aspect-ratio: 1; width: 100%; border-radius: 2px; border: 0; padding: 0; background: var(--panel); cursor: pointer; }
.cal-day:disabled { cursor: default; }
.cal-day.future { background: transparent; }
.cal-day.l1 { background: #3d3462; } .cal-day.l2 { background: #5a4d99; } .cal-day.l3 { background: #8a7ce0; } .cal-day.l4 { background: #c4bafa; }
.cal-day:not(:disabled):hover, .cal-day.on { outline: 2px solid #fff; outline-offset: -1px; }
.swatch-day { width: 11px; height: 11px; aspect-ratio: auto; cursor: default; }
.records { margin-top: 1.4rem; margin-bottom: 0; }
.records .faint.small { display: block; margin-top: .2rem; }
.day-filter { display: flex; align-items: center; gap: .8rem; }
.reunion { margin-top: 2rem; }
.reunion-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.reunion-item { display: flex; align-items: center; gap: .8rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; }
.reunion-item:hover { border-color: var(--line-strong); }
.reunion-item > span { display: flex; flex-direction: column; min-width: 0; }

/* ---- Home Assistant ---- */

.ha-people { display: grid; gap: .5rem; margin: .4rem 0 1rem; }
.ha-people label { display: grid; grid-template-columns: 8rem minmax(0, 18rem) auto; gap: .8rem; align-items: center; }
.ha-people label > span { display: flex; align-items: center; gap: .45rem; }
.ha-toggles { display: grid; gap: .45rem; margin-bottom: 1rem; }
.ha-toggles label { display: flex; align-items: center; gap: .55rem; }
.ha-toggles input { width: auto; }

/* ---- Samen, meer ---- */

.together-more { margin-top: 2.2rem; }
.mirror { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 9rem) minmax(0, 1fr); gap: .45rem .6rem; align-items: center; font-size: .86rem; }
.mirror-left, .mirror-right { display: flex; height: 9px; }
.mirror-left { justify-content: flex-end; }
.mirror-left span { background: var(--who); border-radius: 4px 0 0 4px; }
.mirror-right span { background: var(--who); border-radius: 0 4px 4px 0; }
.mirror-name { text-align: center; display: flex; align-items: center; justify-content: center; gap: .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mirror-foot { display: flex; justify-content: space-between; font-size: .78rem; margin-top: .4rem; }

/* ---- Concerten ---- */

.concert-month { margin: 1.4rem 0 .4rem; font-family: var(--serif); }
.concerts li { display: flex; align-items: center; gap: .9rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.concerts li:last-child { border-bottom: 0; }
.concerts li.off .title, .concerts li.off .day { text-decoration: line-through; color: var(--faint); }
.concerts .grow { display: flex; flex-direction: column; min-width: 0; }
.concert-date { width: 3rem; flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.concert-date .day { font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.concert-date .weekday { font-size: .75rem; color: var(--muted); }
.concert-side { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; flex: none; text-align: right; }
.tag.top-tag { background: #3b2c12; color: #efb85a; }
.tag.both-tag { background: #173a32; color: #6fd3b2; }
.tag.warn-tag { background: var(--danger-dim); color: #f3b3a9; }

/* ---- Wrapped ---- */

.wrapped { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.w-card { border-radius: 16px; padding: 1.2rem 1.3rem; min-height: 230px; display: flex; flex-direction: column; gap: .3rem;
    background: var(--w-bg); color: var(--w-text); }
.w-card a { color: inherit; }
.w-wide { grid-column: span 3; min-height: 0; }
.w-violet { --w-bg: #26215c; --w-text: #cecbf6; --w-soft: #afa9ec; --w-strong: #eeedfe; }
.w-teal   { --w-bg: #04342c; --w-text: #9fe1cb; --w-soft: #5dcaa5; --w-strong: #e1f5ee; }
.w-coral  { --w-bg: #4a1b0c; --w-text: #f5c4b3; --w-soft: #f0997b; --w-strong: #faece7; }
.w-amber  { --w-bg: #412402; --w-text: #fac775; --w-soft: #ef9f27; --w-strong: #faeeda; }
.w-pink   { --w-bg: #4b1528; --w-text: #f4c0d1; --w-soft: #ed93b1; --w-strong: #fbeaf0; }
.w-blue   { --w-bg: #042c53; --w-text: #b5d4f4; --w-soft: #85b7eb; --w-strong: #e6f1fb; }
.w-gray   { --w-bg: #24212b; --w-text: #d3d1c7; --w-soft: #9c95ad; --w-strong: #f1eff8; }
.w-kicker { font-size: .82rem; color: var(--w-soft); }
.w-gap { margin-top: .9rem; }
.w-hero { display: block; font-family: var(--serif); font-size: 3.6rem; line-height: 1; color: var(--w-strong); margin-top: auto; }
.w-big { display: block; font-size: 1.1rem; color: var(--w-strong); }
.w-title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; color: var(--w-strong); display: flex; align-items: center; gap: .45rem; }
.w-foot { margin-top: auto; font-size: .85rem; color: var(--w-soft); }
.w-label { display: block; font-size: .78rem; color: var(--w-soft); }
.w-top li { display: flex; align-items: center; gap: .6rem; padding: .22rem 0; }
.w-top li a { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-top li.first a { font-family: var(--serif); font-size: 1.25rem; color: var(--w-strong); }
.w-top li span:last-child { color: var(--w-soft); font-size: .85rem; }
.w-list li { display: flex; justify-content: space-between; gap: .8rem; padding: .2rem 0; }
.w-list li > span:last-child { color: var(--w-soft); }
.w-list li span:first-child { display: flex; align-items: center; gap: .4rem; }
.w-pair { display: grid; gap: 1rem; margin-top: auto; }
.w-shift { display: grid; grid-template-columns: 4.5rem 1fr; gap: .5rem; align-items: center; font-size: .8rem; margin-top: .6rem; }
.w-bar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; gap: 2px; }
.w-bar .rest { background: rgba(255, 255, 255, .12); }
.s0 { background: #ed93b1; } .s1 { background: #d4537e; } .s2 { background: #993556; } .s3 { background: #fbeaf0; } .s4 { background: #f0997b; }
.w-legend { margin-top: auto; display: grid; gap: .15rem; font-size: .8rem; }
.w-legend li { display: flex; align-items: center; gap: .4rem; }
.w-legend .faint { color: var(--w-soft); }
.w-moments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: .4rem; }
.w-moments span:not(.w-label):not(.w-title) { font-size: .82rem; color: var(--w-soft); }

/* ---- Wereldkaart ---- */

.world-row { margin-top: 2.2rem; }
.world svg { width: 100%; height: auto; display: block; }
.world .land { fill: #2a2536; stroke: var(--bg); stroke-width: .5; }
.world .land.l1 { fill: #3d3462; }
.world .land.l2 { fill: #5a4d99; }
.world .land.l3 { fill: #7e70d0; }
.world .land.l4 { fill: #a397ef; }
.world .land.l5 { fill: #cfc7fb; }
.world .land[class*=" l"] { cursor: pointer; }
.world .land[class*=" l"]:hover, .world .land.on { stroke: #fff; stroke-width: 1; }
.world-legend { display: flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--faint); margin-top: .3rem; }
.world-legend .swatch { width: 16px; height: 8px; border-radius: 2px; }
.world-legend .swatch.l1 { background: #3d3462; } .world-legend .swatch.l2 { background: #5a4d99; }
.world-legend .swatch.l3 { background: #7e70d0; } .world-legend .swatch.l4 { background: #a397ef; }
.world-legend .swatch.l5 { background: #cfc7fb; }
.country-artists { margin-top: .8rem; }
.country-artists .label { gap: .45rem; }

/* ---- Samen ---- */

.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin-bottom: 1.8rem; }
.now.small { display: flex; align-items: center; gap: .8rem; background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: .7rem .9rem; }
.now.small .now-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.now.small .who-text { font-size: .8rem; }
.now.small .line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.match { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.8rem; }
.match-number { font-family: var(--serif); font-size: 3.2rem; font-weight: 600; line-height: 1; color: var(--accent); }
.match h2 { margin: 0 0 .2rem; }
.match p { margin: 0; }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.three .both { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.who-heading { color: var(--who); }
.small-list .count { font-size: .85rem; }

.tips { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.8rem; }
.tip { display: flex; align-items: center; gap: .7rem; color: var(--muted); }
.tip .icon { color: var(--accent); }
.tip strong { color: var(--text); font-weight: 600; }

/* ---- Instellingen ---- */

.profile-card { border: 1px solid var(--line); border-left: 3px solid var(--who); border-radius: 0; padding: .9rem 1rem; margin: 1rem 0; background: var(--sunk); }
.profile-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .6rem; }
.name-input { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; width: 12rem; }
.grow-right { margin-left: auto; }
.link-row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .35rem 0; }
.link-row .label { width: 4.5rem; margin: 0; }
.link-row input { width: 12rem; }
.actions { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-top: .7rem; }
.add-row, .paste-row { display: flex; gap: .6rem; margin-top: 1rem; }
.paste-row input { flex: 1; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; margin: .8rem 0; }
.form-grid label { display: flex; flex-direction: column; gap: .3rem; color: var(--muted); font-size: .86rem; }
.form-grid input { color: var(--text); font-size: .95rem; }
.password-fields { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---- Signing in ---- */

.signin-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; }
.signin { width: 100%; max-width: 22rem; display: flex; flex-direction: column; gap: .8rem; }
.signin h1 { font-size: 1.6rem; margin: 0; }
.search { width: 100%; }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; padding: .7rem 1.2rem;
    background: var(--danger-dim); color: #f3b3a9; border-top: 1px solid #5a2e2a; }
#blazor-error-ui .reload { margin-left: .5rem; }

/* ---- Narrow ---- */

@media (max-width: 900px) {
    .now-grid { grid-template-columns: 1fr; }
    .now.big { flex-direction: row; align-items: center; }
    .now.big .now-cover { width: 140px; height: 140px; }
    .moments, .three { grid-template-columns: 1fr; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .columns { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .topbar { padding: .6rem 1rem; }
    .topnav, .topbar-end .wide-only, .topbar-end > a { display: none; }
    .content { padding: 1rem 1rem 6rem; }
    .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pair { grid-template-columns: 1fr; }
    .artist-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .artist-head .artist-photo { width: 140px; height: 140px; }
    .artist-title h1 { font-size: 2rem; }
    .history li { grid-template-columns: 2.6rem 36px minmax(0, 1fr); }
    .album-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wrapped { grid-template-columns: 1fr; }
    .reunion-list { grid-template-columns: 1fr; }
    .cal-days { display: none; }
    .cal-grid { gap: 2px; }
    .cal-week { gap: 2px; }
    .w-wide { grid-column: auto; }
    .w-moments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* On a phone the small covers are too small for a name: the count alone. */
    .tile .caption.small strong, .tile .caption.small .sep { display: none; }
    .periods a { padding: .25rem .55rem; font-size: .82rem; }
    .album-title { font-size: 1.5rem !important; }
    .history .album { display: none; }
    .search-box { width: 100%; }
    .genre-bars li { grid-template-columns: minmax(0, 8rem) minmax(0, 1fr) 2.6rem; }
    .tabbar a { padding: .2rem .15rem; font-size: .6rem; }
    .concert-side .muted { display: none; }
    .now.big .now-cover { width: 110px; height: 110px; }
    .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; justify-content: space-around;
        background: rgba(20, 17, 28, .95); border-top: 1px solid var(--line); padding: .4rem 0 calc(.4rem + env(safe-area-inset-bottom)); }
    .tabbar a { display: flex; flex-direction: column; align-items: center; gap: .1rem; color: var(--faint); font-size: .72rem; padding: .2rem .6rem; }
    .tabbar a.active { color: var(--accent); }
    .tabbar a:hover { text-decoration: none; }
    .tabbar .icon { width: 1.4em; height: 1.4em; }
}

.lookup-problems { display: grid; gap: .2rem; margin: .4rem 0 .8rem; color: var(--muted); }

.ha-matrix { display: grid; grid-template-columns: minmax(10rem, 1.4fr) repeat(var(--people), minmax(0, 1fr)); gap: .55rem 1rem; align-items: center; margin: .4rem 0 .6rem; }
.ha-matrix .head { font-weight: 600; }
.ha-matrix input[type=checkbox] { width: 1.05rem; height: 1.05rem; justify-self: start; }
.ha-matrix select { min-width: 0; width: 100%; }

.upload { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.upload input[type=file] { padding: .3rem .5rem; font-size: .84rem; max-width: 22rem; }
.link-row .label { width: auto; min-width: 4.5rem; }

/* ---- Rustige weergave ---- */

.calm { max-width: 34rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.calm-hello { font-size: 2.2rem; margin: 0; }
.calm-when { margin: -.9rem 0 .2rem; }
.calm .now.small { padding: .9rem 1rem; }
.calm-week h2 { margin: .4rem 0 .6rem; }
.calm-covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.calm-covers a:hover .cover { outline: 2px solid var(--who); outline-offset: -2px; }
.calm-sentence { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; margin: .8rem 0 0; }
.calm-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.calm-card p { margin: .2rem 0 0; }
.calm-card.together { background: #173a32; border-color: transparent; }
.calm-card.together .calm-kicker { color: #6fd3b2; }
.calm-kicker { font-size: .8rem; color: var(--muted); }
.calm-tip { color: #9fe1cb; font-size: .92rem; }
.calm-wrapped { justify-content: center; padding: .75rem 1rem; margin-top: .4rem; }
.calm-toggle { display: flex; align-items: center; gap: .4rem; font-size: .86rem; color: var(--muted); }
.calm-toggle input { width: auto; }
.more-list { display: grid; gap: .7rem; max-width: 34rem; }
.more-item { display: flex; align-items: center; gap: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; color: var(--text); }
.more-item:hover { border-color: var(--line-strong); text-decoration: none; }
.more-item .icon { width: 1.4em; height: 1.4em; color: var(--accent); }
.more-item > span { display: flex; flex-direction: column; }

/* ---- Muziekjaren ---- */

.years-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.years-head h1 { margin: 0; }
.years-summary { font-family: var(--serif); font-size: 1.1rem; color: var(--muted); margin: .4rem 0 1.6rem; }
.timeline li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; }
.timeline .year { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; padding-top: .55rem; color: var(--text); }
.timeline .year:hover { color: var(--who); }
.timeline .year-body { display: flex; gap: .9rem; align-items: center; border-left: 2px solid var(--who); padding: .6rem 0 1.2rem 1.1rem; min-width: 0; }
.timeline .year-artist { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-weight: 600; }
.timeline .year-artist .tag { margin: 0; }
.timeline .year-details { display: flex; flex-wrap: wrap; gap: .1rem .9rem; margin-top: .15rem; }
.timeline .year-hours { width: 9rem; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.timeline .year-hours .meter { width: 100%; height: 6px; margin: 0; }
.timeline .year-hours .meter span { margin-left: auto; }
.timeline .beginning .year-body { border-left-style: dashed; }
.beginning-note { font-family: var(--serif); font-size: 1.05rem; margin: .5rem 0 0; color: var(--text); }
.first-play { display: flex; gap: .6rem; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem 1rem; margin: -.4rem 0 1.4rem; }
.first-play .icon { color: var(--accent); margin-top: .15rem; }
@media (max-width: 640px) {
    .timeline li { grid-template-columns: 3.4rem minmax(0, 1fr); gap: .6rem; }
    .timeline .year { font-size: 1.2rem; }
    .timeline .year-body { flex-wrap: wrap; }
    .timeline .year-hours { width: 100%; align-items: flex-start; }
    .timeline .year-hours .meter span { margin-left: 0; }
}
