/* Persoonlijke Vriendenpagina's — aanvulling op vvdl.css */
.vriend-pagina {
    --vriend-accent: #6f86a3;
    margin: 0;
    min-height: 100vh;
    background: #f7f3eb;
    color: #27313a;
    font-family: Verdana, Arial, Helvetica, sans-serif;
}
.vriend-pagina > .globalnav {
    box-sizing: border-box;
    width: min(96vw, 1180px);
    margin-left: auto;
    margin-right: auto;
}
.vriend-profiel {
    box-sizing: border-box;
    width: min(96vw, 1180px);
    min-height: calc(100vh - 62px);
    margin: 0 auto;
    padding: 28px 10px 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
    gap: clamp(24px, 4vw, 58px);
    align-items: start;
}
.vriend-inhoud { min-width: 0; }
.vriend-portret {
    position: sticky;
    top: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}
.vriend-portret-groot {
    display: block;
    width: 100%;
    height: auto;
    max-width: 420px;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    filter: drop-shadow(4px 6px 4px rgba(0,0,0,.16));
}
.vriend-wissel {
    display: flex;
    flex: 0 0 72px;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.vriend-wissel a {
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.vriend-wissel img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 3px 2px rgba(0,0,0,.14));
    transition: transform .18s ease;
}
.vriend-wissel a:hover img,
.vriend-wissel a:focus-visible img { transform: scale(1.10); }
.vriend-wissel a:focus-visible { outline: 2px solid var(--vriend-accent); outline-offset: 3px; }
.vriend-portret-met-samenspel .vriend-portret-groot {
    max-height: min(42vh, 420px);
}
.vriend-portret-met-allertijden .vriend-portret-groot {
    max-height: min(45vh, 430px);
}
.vriend-allertijden-zijbalk {
    box-sizing: border-box;
    width: min(100%, 360px);
    align-self: flex-end;
    margin-top: -2px;
}
.vriend-allertijden-zijbalk .vriend-zijblok h3 {
    margin: 10px 0 6px;
    font-size: 17px;
}
.vriend-allertijden-zijbalk .vriend-zijblok + .vriend-zijblok h3 {
    margin-top: 14px;
}
.vriend-statregels {
    display: grid;
    gap: 2px;
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
}
.vriend-statregels > div {
    display: grid;
    grid-template-columns: minmax(86px, auto) minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    padding: 1px 0;
}
.vriend-statregels dt {
    margin: 0;
    font-weight: 700;
    color: var(--vriend-accent);
}
.vriend-statregels dd {
    min-width: 0;
    margin: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.vriend-keuzes {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 24px;
}
.vriend-keuze {
    border: 1px solid color-mix(in srgb, var(--vriend-accent) 65%, #ffffff);
    border-radius: 999px;
    padding: 7px 12px 8px;
    background: transparent;
    color: var(--vriend-accent);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.vriend-keuze:hover,
.vriend-keuze:focus-visible { background: color-mix(in srgb, var(--vriend-accent) 10%, transparent); }
.vriend-keuze[aria-selected="true"] { background: var(--vriend-accent); color: #fff; }
.vriend-keuze:focus-visible { outline: 2px solid var(--vriend-accent); outline-offset: 2px; }
.vriend-paneel h2,
.vriend-paneel h3,
.vriend-paneel h4 { color: var(--vriend-accent); }
.vriend-paneel > h2 { margin: 0 0 17px; font-size: clamp(26px, 4vw, 38px); }
.vriend-paneel h3 { margin: 24px 0 10px; font-size: 21px; }
.vriend-paneel h4 { margin: 18px 0 8px; font-size: 17px; }
.vriend-uitleg { margin: -7px 0 17px; font-size: 13px; line-height: 1.45; opacity: .72; }
.vriend-tabel {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 15px;
    line-height: 1.35;
}
.vriend-tabel th,
.vriend-tabel td { padding: 5px 6px; vertical-align: top; border-bottom: 1px solid rgba(39,49,58,.10); }
.vriend-tabel th { color: var(--vriend-accent); font-size: 12px; text-align: left; }
.vriend-tabel .num { width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.vriend-tabel .jaar { width: 55px; text-align: right; font-variant-numeric: tabular-nums; }
.vriend-tabel .score { width: 66px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.vriend-tabel .band { width: 32%; text-align: right; opacity: .78; }
.vriend-tabel tbody tr:hover { background: color-mix(in srgb, var(--vriend-accent) 5%, transparent); }

/* Aller tijden: hoofdrang plus tussen haakjes de rang volgens de andere maatstaf. */
.vriend-allertijden-tabel .vriend-hoofdrang { width: 30px; padding-right: 2px; }
.vriend-allertijden-tabel .vriend-andere-rang {
    width: 38px;
    padding-left: 2px;
    padding-right: 6px;
    text-align: left;
    color: rgba(39,49,58,.62);
    font-weight: 400;
}
.vriend-allertijden-tabel th.vriend-andere-rang { color: transparent; }

/* Aller tijden: twee maatstaven naast elkaar; de actieve kolomkop bepaalt de sortering. */
.vriend-allertijden-tabel .vriend-sorteerkop {
    padding: 0;
    vertical-align: middle;
}
.vriend-sorteerknop {
    width: 100%;
    border: 0;
    padding: 5px 6px;
    background: transparent;
    color: var(--vriend-accent);
    font: inherit;
    font-weight: 700;
    text-align: right;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    white-space: nowrap;
}
.vriend-sorteerkop.is-actief .vriend-sorteerknop {
    color: var(--vriend-accent);
}
.vriend-sorteerknop:hover,
.vriend-sorteerknop:focus-visible {
    color: var(--vriend-accent);
    background: color-mix(in srgb, var(--vriend-accent) 7%, transparent);
}
.vriend-sorteerknop:focus-visible {
    outline: 2px solid var(--vriend-accent);
    outline-offset: -2px;
}

/* Aller tijden en Frequency: albumtitel links en band rechts in één brede cel. */

.vriend-allertijden-tabel .vriend-score-punten {
    width: 58px;
}
.vriend-allertijden-tabel .vriend-score-normscorum {
    width: 48px;
}
.vriend-allertijden-tabel .vriend-album-band-kop,
.vriend-frequency-tabel .vriend-album-band-kop {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.vriend-allertijden-tabel .vriend-album-band-kop span:last-child,
.vriend-frequency-tabel .vriend-album-band-kop span:last-child { text-align: right; }
.vriend-allertijden-tabel .vriend-album-band,
.vriend-frequency-tabel .vriend-album-band { min-width: 0; }
.vriend-allertijden-tabel .vriend-album-band-regel,
.vriend-frequency-tabel .vriend-album-band-regel {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}
.vriend-allertijden-tabel .vriend-album-band-titel,
.vriend-frequency-tabel .vriend-album-band-titel {
    min-width: 0;
    white-space: nowrap;
}
.vriend-allertijden-tabel .vriend-album-band-naam,
.vriend-frequency-tabel .vriend-album-band-naam {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
    opacity: .78;
}

/* Frequency: de drie tellingen blijven compact. */
.vriend-frequency-tabel .num { width: 34px; }
.vriend-frequency-tabel .score {
    width: 42px;
    padding-left: 3px;
    padding-right: 3px;
}

.vriend-jaarnavigatie {
    --accent: var(--vriend-accent);
    --tabeltekst: #27313a;
}
.vriend-tabelkader { overflow-x: auto; border-radius: 10px; }
.vriend-wijzigingstabel .stijgers-wanneer {
    width: 132px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.vriend-wijzigingstabel .stijgers-verschil {
    width: 74px;
    text-align: right;
    font-size: 19px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.vriend-wijzigingstabel .fratsen-band { white-space: normal; }
.vriend-samenspel { display: grid; grid-template-columns: 1fr; gap: 8px; }
.vriend-samenspel-zijbalk {
    box-sizing: border-box;
    width: min(100%, 360px);
    display: grid;
    gap: 0;
    margin-top: 0;
    align-self: stretch;
}
.vriend-zijblok h3 {
    margin: 24px 0 10px;
    color: var(--vriend-accent);
    font-size: 21px;
    line-height: normal;
}
.vriend-zijtabel {
    width: 100%;
    font-size: 13px;
    line-height: 1.3;
}
.vriend-zijtabel th,
.vriend-zijtabel td { padding: 4px 5px; }
.vriend-zijtabel .zij-soort {
    width: 54px;
    font-weight: 700;
}
.vriend-zijtabel .jaar { width: 48px; }
.vriend-zijtabel .zij-vriend {
    width: 52px;
    text-align: right;
    font-weight: 700;
}
.vriend-zijtabel .zij-aantal {
    width: 50px;
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.vriend-zijtabel td.zij-vriend[data-vriend="HB"] { color: #e52320; }
.vriend-zijtabel td.zij-vriend[data-vriend="BH"] { color: #2a4b9b; }
.vriend-zijtabel td.zij-vriend[data-vriend="JK"] { color: #ef7d00; }
.vriend-zijtabel td.zij-vriend[data-vriend="GT"] { color: #66b32e; }
.vriend-tellingtabel th.zij-vriend,
.vriend-tellingtabel td.zij-vriend { text-align: left; }
.vriend-leeg { padding: 18px 0; font-style: italic; opacity: .7; }
@media (max-width: 820px) {
    .vriend-profiel { grid-template-columns: 1fr; padding-top: 14px; }
    .vriend-portret { grid-row: 1; position: static; }
    .vriend-portret-groot,
    .vriend-portret-met-samenspel .vriend-portret-groot,
    .vriend-portret-met-allertijden .vriend-portret-groot { max-width: min(76vw, 330px); max-height: min(52vh, 420px); }
    .vriend-samenspel-zijbalk,
    .vriend-allertijden-zijbalk { width: min(92vw, 360px); align-self: center; }
    .vriend-inhoud { grid-row: 2; }
    .vriend-keuzes { justify-content: center; }
}
@media (max-width: 560px) {
    .vriend-profiel { width: 100%; padding-left: 10px; padding-right: 10px; }
    .vriend-keuze { font-size: 12px; padding: 6px 9px; }
    .vriend-tabel { font-size: 13px; }
    .vriend-tabel th,.vriend-tabel td { padding: 5px 3px; }
    .vriend-tabel .band { width: 30%; font-size: .9em; }
    .vriend-tabel .score { width: 52px; }
    .vriend-frequency-tabel .score { width: 38px; }
    .vriend-allertijden-tabel .vriend-score-punten { width: 50px; }
    .vriend-allertijden-tabel .vriend-score-normscorum { width: 44px; }
    .vriend-allertijden-tabel .vriend-sorteerknop { font-size: 11px; padding-left: 2px; padding-right: 2px; }
    .vriend-allertijden-tabel .vriend-album-band-regel,
    .vriend-allertijden-tabel .vriend-album-band-kop,
    .vriend-frequency-tabel .vriend-album-band-regel,
    .vriend-frequency-tabel .vriend-album-band-kop {
        gap: 8px;
    }
    .vriend-allertijden-tabel .vriend-album-band-titel,
    .vriend-frequency-tabel .vriend-album-band-titel { white-space: normal; }
}
