/* Art tiles: covers for albums and tracks, round portraits for artists. */
.art { --size: 44px; position: relative; display: inline-block; flex-shrink: 0; width: var(--size); height: var(--size); overflow: hidden; border-radius: 3px; background: var(--paper-3); isolation: isolate; }
.art::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(27, 27, 31, .14); pointer-events: none; }
.art-artist { border-radius: 50%; }
.art .art-gen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-xs { --size: 34px; }
.art-sm { --size: 44px; }
.art-md { --size: 60px; }
.art-lg { --size: 96px; }
.art-xl { --size: 152px; }
.art-artist.art-xs, .art-artist.art-md, .art-artist.art-lg, .art-artist.art-xl { border-radius: 50%; }
.art .art-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.art.has-artwork .art-real { opacity: 1; }
a.art { transition: transform .25s var(--ease); }
a.art:hover { transform: scale(1.04); }
.art-fill { width: 100%; height: auto; aspect-ratio: 1; }

/* The #1 artist, printed as the headliner of a gig poster. */
.poster { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; min-width: 0; min-height: 440px; padding: 32px; background: var(--blue); background-image: radial-gradient(rgba(246, 245, 241, .2) 1.2px, transparent 1.5px); background-size: 7px 7px; color: var(--paper); }
.poster-sun { position: absolute; top: -90px; right: -90px; z-index: -1; width: 360px; aspect-ratio: 1; border-radius: 50%; background: var(--pink); mix-blend-mode: multiply; }
/* Artwork prints in black over the blue, so a photo turns into a duotone. */
.poster .art { position: absolute; top: 34px; right: 34px; z-index: -1; --size: 168px; filter: grayscale(1) contrast(1.5) brightness(1.3); mix-blend-mode: multiply; }
.poster .art::after { box-shadow: none; }
.poster-kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.poster-name { font: 800 clamp(56px, 7.4vw, 112px)/.84 var(--display); font-stretch: 75%; letter-spacing: -.035em; overflow-wrap: anywhere; }
.poster-name .link-name:hover { text-decoration-color: var(--pink); }
.poster-stats { max-width: 34em; font-size: 17px; }
.poster-meta { font-size: 14px; opacity: .9; }
.poster .btn-paper { background: var(--paper); color: var(--ink); }

/* The rest of the bill: each name sized by its listening time. */
.lineup { display: flex; flex-direction: column; justify-content: center; gap: 18px; min-width: 0; padding: 28px 24px 24px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--pink); text-align: center; }
.lineup-kicker { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lineup-list { display: grid; gap: 8px; justify-items: center; }
.lineup-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; min-width: 0; max-width: 100%; }
.lineup-name { font: 800 calc(16px + var(--s, 1) * clamp(16px, 3.2vw, 38px))/1 var(--display); font-stretch: 80%; letter-spacing: -.025em; overflow-wrap: anywhere; text-align: center; }
.lineup-list span { color: var(--blue); font-size: 13px; font-weight: 700; white-space: nowrap; }
.lineup-foot { color: var(--ink-3); font-size: 13.5px; }

/* Stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { position: relative; min-width: 0; padding-top: 12px; border-top: 6px solid var(--ink); }
.stat-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.stat-label .i svg { width: 15px; height: 15px; }
.stat-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 8px; }
.stat-value { color: var(--blue); font: 800 clamp(44px, 5vw, 64px)/.95 var(--display); font-stretch: 80%; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat-value small { margin-left: 6px; color: var(--ink-3); font: 600 15px var(--sans); letter-spacing: 0; }
.stat-sub { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.stat-spark { flex-shrink: 1; min-width: 0; width: 92px; height: 30px; margin-bottom: 4px; color: var(--pink); }

/* Ranked lists. A pink highlighter shows each one's size against the leader. */
.rank-list { display: grid; }
.rank-row { display: grid; grid-template-columns: 30px auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line-2); transition: background .2s; }
.rank-row:hover { background: rgba(27, 27, 31, .04); }
.rank-num { color: var(--blue); font: 800 18px var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.rank-main { position: relative; isolation: isolate; display: grid; gap: 1px; min-width: 0; padding: 2px 6px; }
.rank-title { display: block; max-width: 100%; overflow: hidden; font-size: 15px; font-weight: 650; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.rank-row[data-open], .podium-card[data-open], .album-card[data-open], .track-table tr[data-open], .mini-tracks li[data-open], .detail-tracks li[data-open] { cursor: pointer; }
.album-card h3 button, .track-title, .mini-tracks strong button { display: block; max-width: 100%; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.link-name { max-width: 100%; text-align: left; text-decoration: underline transparent; text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s; }
.link-name:hover, button.rank-title:hover { text-decoration: underline currentColor; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legend-item { cursor: pointer; transition: color .2s; }
.legend-item:hover { color: var(--ink); }
.rank-sub { overflow: hidden; color: var(--ink-3); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.rank-value { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
span.bar { position: absolute; inset: 0; z-index: -1; display: block; overflow: hidden; }
span.bar > span { display: block; height: 100%; background: rgba(255, 72, 166, .22); }

.rank-list.two-col { display: block; columns: 2; column-gap: 40px; }
.rank-list.two-col .rank-row { break-inside: avoid; }
.discoveries .rank-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.empty-mini { padding: 28px 8px; color: var(--ink-3); font-size: 14px; text-align: center; }

/* Podium */
.podium { display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: end; gap: 24px; }
.podium-card { position: relative; display: grid; justify-items: center; gap: 6px; min-width: 0; padding: 28px 20px 24px; overflow: hidden; border: 2px solid var(--ink); background: var(--paper-2); text-align: center; isolation: isolate; }
.podium-card .art { margin-bottom: 10px; }
.place-1 { order: 2; padding-top: 36px; border-color: var(--blue); background: var(--blue); background-image: radial-gradient(rgba(246, 245, 241, .2) 1.2px, transparent 1.5px); background-size: 7px 7px; color: var(--paper); box-shadow: 6px 6px 0 var(--pink); }
.place-1::before { content: ''; position: absolute; top: -70px; right: -70px; z-index: -1; width: 220px; aspect-ratio: 1; border-radius: 50%; background: var(--pink); mix-blend-mode: multiply; }
.place-1 .art { filter: grayscale(1) contrast(1.5) brightness(1.3); mix-blend-mode: multiply; }
.place-2 { order: 1; }
.place-3 { order: 3; }
.podium-rank { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 2px solid currentColor; font: 800 13px var(--display); }
.podium-name { max-width: 100%; font: 800 28px/1 var(--display); font-stretch: 85%; letter-spacing: -.03em; overflow-wrap: anywhere; }
.place-1 .podium-name { font-size: 40px; }
.podium-hours { font: 800 24px var(--display); letter-spacing: -.02em; }
.podium-meta, .podium-since { color: var(--ink-3); font-size: 13px; }
.place-1 .podium-meta, .place-1 .podium-since { color: var(--paper); opacity: .9; }

/* Legends & donut */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.legend-item i, .donut-legend i { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }
.chart .layer { fill-opacity: .9; mix-blend-mode: multiply; stroke: var(--paper); stroke-width: 1; }
.fresh .layers { animation: fade .9s ease both; }
.donut-wrap { display: flex; align-items: center; gap: 28px; }
.donut-holder { position: relative; flex-shrink: 0; }
.donut .track { stroke: var(--paper-3); }
.donut circle[data-tip] { outline: none; transition: stroke-width .2s; }
.donut circle[data-tip]:hover, .donut circle[data-tip]:focus-visible { stroke-width: 27px; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-center strong { font: 800 34px var(--display); letter-spacing: -.03em; }
.donut-center span { margin-top: -2px; color: var(--ink-3); font-size: 12.5px; }
.donut-legend { display: grid; flex: 1; gap: 10px; min-width: 0; }
.donut-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13.5px; }
.donut-legend span { overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.donut-legend strong { font-variant-numeric: tabular-nums; }

/* Albums */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 3px solid var(--ink); }
.section-head h2 { font: 800 30px/1.05 var(--display); font-stretch: 90%; letter-spacing: -.032em; }
.section-head p { color: var(--ink-3); font-size: 14px; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 28px 20px; }
.album-card { display: grid; gap: 3px; min-width: 0; }
.album-cover { position: relative; margin-bottom: 10px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.album-card:hover .album-cover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--pink); }
.album-rank { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; background: var(--paper); border: 2px solid var(--ink); font: 800 14px var(--display); }
.album-card h3 { overflow: hidden; font-size: 15px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.album-card p { overflow: hidden; color: var(--ink-2); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.album-hours { color: var(--ink-3); font-size: 13px; }

/* Records & moments, torn off like ticket stubs. */
.records { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stub { display: grid; grid-template-columns: minmax(0, 1fr) 46px; min-width: 0; border: 2px solid var(--ink); background: var(--paper-2); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.stub:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.stub-main { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 14px 14px 16px; }
.stub-tear { display: grid; place-items: center; border-left: 2px dashed var(--ink); background: var(--pink-soft); }
.stub:nth-child(3n + 2) .stub-tear { background: rgba(47, 85, 200, .22); }
.stub:nth-child(3n + 3) .stub-tear { background: rgba(255, 210, 63, .55); }
.stub-tear .i svg { width: 18px; height: 18px; }
.record-label { color: var(--blue); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.record-value { overflow: hidden; font: 800 28px/1.08 var(--display); font-stretch: 85%; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.record-sub { color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }

/* Habits */
.calendar-scroll { padding-bottom: 4px; overflow-x: auto; }
.calendar .day { outline: none; }
.calendar .day:hover { stroke: var(--ink); stroke-width: 1.5; }
.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 12px; color: var(--ink-3); }
.heat-legend i { width: 12px; height: 12px; border-radius: 2px; }
.heat-legend small { margin: 0 4px; font-size: 11.5px; }
.clock-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 20px; }
.clock .ring { fill: none; stroke: var(--line); }
.clock .wedge { outline: none; opacity: .9; mix-blend-mode: multiply; transition: opacity .15s; }
.clock .wedge:hover, .clock .wedge:focus-visible, .clock .wedge.peak { opacity: 1; }
.chart .clock-value { font: 800 28px var(--display); fill: var(--ink); }
.dayparts { display: grid; gap: 16px; }
.daypart { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; }
.daypart-icon { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ink); }
.daypart-icon svg { width: 16px; height: 16px; }
.daypart strong { font-size: 14px; }
.daypart div span { margin-left: 6px; color: var(--ink-3); font-size: 12.5px; }
.daypart-bar { grid-column: 2; height: 6px; overflow: hidden; background: var(--paper-3); }
.daypart-bar span { display: block; height: 100%; }
.daypart em { grid-row: 1 / span 2; grid-column: 3; font: 800 18px var(--display); font-style: normal; font-variant-numeric: tabular-nums; }
.week-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: 10px; height: 210px; padding-top: 8px; border-bottom: 3px solid var(--ink); }
.week-bar { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; height: 100%; outline: none; }
.week-fill { align-self: end; width: 100%; background: var(--blue); transition: filter .2s; }
.week-bar.peak .week-fill { background: var(--pink); }
.week-bar:hover .week-fill, .week-bar:focus-visible .week-fill { filter: brightness(.9); }
.week-label { color: var(--ink-3); font-size: 12.5px; font-weight: 650; text-align: center; padding-bottom: 6px; }
.week-bar.peak .week-label { color: var(--ink); }
.heat-grid { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); align-items: center; gap: 3px; }
.heat-day { color: var(--ink-3); font-size: 12px; font-weight: 650; }
.heat-cell { aspect-ratio: 1; border-radius: 2px; transition: box-shadow .15s; }
.heat-cell:hover { box-shadow: 0 0 0 2px var(--ink); }
.heat-hours { display: flex; justify-content: space-between; margin: 8px 0 0 37px; color: var(--ink-3); font-size: 11.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 2px solid var(--ink); color: var(--ink); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.chip .i svg { width: 13px; height: 13px; }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.mini-stats div { padding-top: 8px; border-top: 2px solid var(--ink); }
.mini-stats strong { display: block; color: var(--blue); font: 800 32px/1.1 var(--display); letter-spacing: -.03em; }
.mini-stats span { color: var(--ink-3); font-size: 13px; }

.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gauge { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px; border: 2px solid var(--ink); background: var(--paper-2); }
.ring-gauge { flex-shrink: 0; }
.ring-gauge .track { stroke: var(--paper-3); }
.gauge strong { display: block; font: 800 26px/1.1 var(--display); letter-spacing: -.02em; }
.gauge span { display: block; font-size: 13.5px; font-weight: 650; }
.gauge small { color: var(--ink-3); font-size: 12.5px; }
.behaviour-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.behaviour-grid h3 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 14px; font-weight: 700; }
.behaviour-grid h3 small { color: var(--ink-3); font-size: 12px; font-weight: 500; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; margin-bottom: 12px; font-size: 13px; }
.hbar-label { overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.hbar em { color: var(--ink-3); font-style: normal; font-variant-numeric: tabular-nums; }
.hbar-track { grid-column: 1 / -1; height: 6px; overflow: hidden; background: var(--paper-3); }
.hbar-track span { display: block; height: 100%; background: var(--blue); }
.mini-tracks { display: grid; gap: 10px; }
.mini-tracks li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.mini-tracks div { display: grid; min-width: 0; }
.mini-tracks strong { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.mini-tracks span { overflow: hidden; color: var(--ink-3); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.mini-tracks em { color: var(--ink-2); font-size: 12.5px; font-style: normal; white-space: nowrap; }
.mini-tracks .empty-mini { display: block; padding: 8px 0; text-align: left; }

/* Years */
.chart.bars .bar { outline: none; }
.chart.bars .bar-fill { mix-blend-mode: multiply; transition: filter .2s; }
.chart.bars .bar:hover .bar-fill, .chart.bars .bar:focus-visible .bar-fill { filter: brightness(.88); }
.chart text.strong { fill: var(--ink); font-weight: 700; }
.chart text.sub { font-size: 11px; }
.fresh .bar-fill { animation: rise-bar .8s var(--ease) both; transform-box: fill-box; transform-origin: bottom; }
@keyframes rise-bar { from { transform: scaleY(0); } }
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.year-card { display: grid; align-content: start; gap: 16px; padding: 22px; border: 2px solid var(--ink); background: var(--paper-2); }
.year-card.selected { box-shadow: 6px 6px 0 var(--pink); }
.year-card header { display: flex; align-items: center; justify-content: space-between; }
.year-card h3 { font: 800 40px/1 var(--display); font-stretch: 85%; letter-spacing: -.035em; }
.year-hours { color: var(--blue); font: 800 46px/1 var(--display); font-stretch: 85%; letter-spacing: -.035em; }
.year-hours small { margin-left: 6px; color: var(--ink-3); font: 600 15px var(--sans); letter-spacing: 0; }
.year-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 14px 0; border-block: 2px solid var(--ink); }
.year-card dt { color: var(--ink-3); font-size: 12.5px; }
.year-card dd { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.year-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.year-top div { display: grid; min-width: 0; }
.year-top span { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.year-top strong { overflow: hidden; font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.delta { margin-left: auto; padding: 1px 7px; border: 1.5px solid currentColor; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }

/* On this day */
.look-back { display: grid; }
.look-back > li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.look-year { color: var(--blue); font: 800 30px/1 var(--display); letter-spacing: -.03em; }
.look-back > li > div { display: grid; gap: 8px; min-width: 0; }
.look-total { color: var(--ink-3); font-size: 13px; }
.look-track { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.look-track > span { display: grid; min-width: 0; }
.look-track .link-name { overflow: hidden; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.look-track em { overflow: hidden; color: var(--ink-3); font-size: 12.5px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

/* Tracks table */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.toolbar-end { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.search { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 240px; max-width: 440px; height: 44px; padding: 0 16px; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--paper-2); color: var(--ink-3); transition: box-shadow .2s; }
.search:focus-within { box-shadow: 4px 4px 0 var(--pink); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 14.5px; }
.search input::placeholder { color: var(--ink-3); }
.table-wrap { overflow-x: auto; }
.track-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.track-table th { padding: 0 12px 10px; border-bottom: 2px solid var(--ink); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.track-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.track-table tbody tr { transition: background .15s; }
.track-table tbody tr:hover { background: rgba(27, 27, 31, .04); }
.track-table .num { color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.track-table .rank { width: 44px; color: var(--blue); font: 800 15px var(--display); }
.track-cell { display: flex; align-items: center; gap: 14px; min-width: 0; }
.track-text { display: grid; min-width: 0; }
.track-title { max-width: 380px; overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.track-artist { color: var(--ink-3); font-size: 13px; }
.col-album { color: var(--ink-2); }
.clip { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--ink-3); font-size: 13.5px; }
.pager > div { display: flex; gap: 8px; }

/* Small shared bits */
.segmented { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.segmented button { height: 32px; padding: 0 12px; font-size: 13px; font-weight: 650; color: var(--ink-2); transition: color .2s, background .2s; }
.segmented button + button { border-left: 2px solid var(--ink); }
.segmented button:hover { background: var(--paper-3); color: var(--ink); }
.segmented button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.insight { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 12px 14px; background: var(--paper-3); color: var(--ink-2); font-size: 14px; }
.insight .i { color: var(--blue); margin-top: 1px; }
.insight strong { color: var(--ink); }

/* Charts */
.chart-slot { width: 100%; min-height: 40px; }
.chart { display: block; overflow: visible; }
.chart text { font: 600 11.5px var(--sans); fill: var(--ink-3); }
.chart .grid-line { stroke: var(--line); }
.chart .baseline { stroke: var(--ink); stroke-width: 2; }
.chart .line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .pt { outline: none; }
.chart .hit { fill: transparent; }
.chart .guide { stroke: var(--ink); stroke-dasharray: 3 4; opacity: 0; transition: opacity .15s; }
.chart .pt circle.dot { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; opacity: 0; transition: opacity .15s; }
.chart .pt:hover circle.dot, .chart .pt:focus-visible circle.dot, .chart .pt:hover .guide, .chart .pt:focus-visible .guide { opacity: 1; }
.chart .peak-dot { fill: var(--pink); stroke: var(--ink); stroke-width: 2; }
.fresh .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s var(--ease) .15s forwards; }
.fresh .area { animation: fade 1s ease .35s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
.chart-foot { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-2); color: var(--ink-3); font-size: 13.5px; }
.chart-foot strong { color: var(--ink); font-weight: 650; }

@media (max-width: 1100px) {
  .grid-hero > * { grid-column: 1 / -1; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donut-wrap { flex-direction: column; align-items: stretch; }
  .donut-holder { align-self: center; }
  .records, .gauges, .behaviour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .poster { min-height: 0; padding: 26px 22px; }
  .poster .art { --size: 112px; top: 22px; right: 22px; }
  .poster-sun { width: 240px; top: -70px; right: -70px; }
  .poster-name { margin-top: 80px; }
  .podium { grid-template-columns: 1fr; }
  .podium-card { order: 0; }
  .rank-list.two-col { columns: 1; }
  .records { grid-template-columns: 1fr; }
  .col-album, .col-first { display: none; }
  .track-title { max-width: 200px; }
  .clock-wrap { grid-template-columns: 1fr; }
  .week-bars { gap: 6px; }
}
@media (max-width: 480px) {
  .stat-grid { gap: 20px 16px; }
  .gauges, .behaviour-grid { grid-template-columns: 1fr; }
}
