/* Muzidesk player */
:root {
	--koraal: #D1432F; --koraal-hover: #B8392A; --zalmroze: #FFC2B3; --blush: #FFF1EC; --wit: #FFFFFF;
	--aubergine: #2A1E2E; --aubergine-2: #3A2C3F; --zacht: #5E5058; --lijn: #F0CFC4; --rand: #9A8590; --ok: #2E6B4F;
	--display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--safe-b: env(safe-area-inset-bottom, 0px);
	--safe-t: env(safe-area-inset-top, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--blush); color: var(--aubergine); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; min-height: 100dvh; }
h1, h2 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: 20px; }
p { margin: 0; }
a { color: var(--aubergine); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--koraal); outline-offset: 2px; border-radius: 8px; }

.a-app { max-width: 820px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.a-boot { padding: 40px; text-align: center; color: var(--zacht); }
.a-center { padding: calc(48px + var(--safe-t)) 24px 48px; display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 440px; margin: 0 auto; }
.a-center h1 { font-size: 30px; }
.a-login .a-form { width: 100%; text-align: left; }

.a-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + var(--safe-t)) 20px 12px; background: var(--blush); }
.a-brand { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; }
.a-top__right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.a-company { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.a-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #E6F1EB; color: var(--ok); }
.a-status.is-off { background: var(--zalmroze); color: var(--aubergine); }
.a-status--admin { background: var(--aubergine); color: var(--wit); }
.a-card select[data-as] { font: 16px var(--sans); padding: 11px 12px; border: 1.5px solid var(--rand); border-radius: 10px; background: var(--wit); min-height: 44px; width: 100%; }

.a-main { flex: 1; padding: 8px 16px calc(150px + var(--safe-b)); display: grid; gap: 16px; align-content: start; outline: none; }
.a-card { background: var(--wit); border-radius: 22px; padding: 20px; display: grid; gap: 12px; }
.a-card--soft { background: var(--zalmroze); }
.a-card--dark { background: var(--aubergine); color: var(--wit); }
.a-muted { color: var(--zacht); }
.a-card--dark .a-muted { color: #EBDDE2; }
.a-small { font-size: 14px; }
.a-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.a-alert { background: var(--zalmroze); padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.a-tag { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--zalmroze); vertical-align: middle; }

/* Player */
.a-player { background: var(--koraal); color: var(--wit); border-radius: 26px; padding: 26px 22px; display: grid; gap: 10px; }
.a-title { font-size: clamp(30px, 7vw, 44px); line-height: 1.05; }
.a-sub { font-size: 17px; }
.a-eq { display: flex; align-items: flex-end; gap: 5px; height: 48px; margin: 6px 0; }
.a-eq span { display: block; width: 8px; height: 48px; border-radius: 4px; background: var(--wit); transform-origin: bottom; animation: aEq 1s ease-in-out infinite; }
.a-eq span:nth-child(2) { animation-delay: .2s; } .a-eq span:nth-child(3) { animation-delay: .45s; } .a-eq span:nth-child(4) { animation-delay: .1s; }
.a-eq span:nth-child(5) { animation-delay: .6s; } .a-eq span:nth-child(6) { animation-delay: .3s; } .a-eq span:nth-child(7) { animation-delay: .75s; }
.a-eq.is-paused span { animation-play-state: paused; }
@keyframes aEq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.a-progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,.35); overflow: hidden; }
.a-progress span { display: block; height: 100%; width: 0; background: var(--wit); border-radius: 999px; }
.a-progress--thin { background: var(--blush); height: 5px; }
.a-progress--thin span { background: var(--koraal); }
.a-time { font-size: 13px; }
.a-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 6px; }
.a-round { width: 52px; height: 52px; border-radius: 999px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.a-round--big { width: 72px; height: 72px; background: var(--wit); }
.a-round--small { width: 44px; height: 44px; background: var(--wit); }
.a-player .a-round:focus-visible { outline-color: var(--wit); }

.a-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.a-chip { min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--aubergine); background: transparent; font-weight: 600; font-size: 15px; cursor: pointer; }
.a-chip[aria-pressed="true"] { background: var(--aubergine); color: var(--wit); }

.a-slots { display: grid; gap: 8px; }
.a-slot { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.a-slot input, .a-slot select, .a-field input, .a-buy select { font: 16px var(--sans); color: var(--aubergine); padding: 11px 12px; border: 1.5px solid var(--rand); border-radius: 10px; background: var(--wit); width: 100%; min-height: 44px; }
.a-icon-btn { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--blush); display: grid; place-items: center; cursor: pointer; }

.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--aubergine); background: transparent; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }
.a-btn--primary { background: var(--koraal); border-color: var(--koraal); color: var(--wit); }
.a-btn--primary:disabled { opacity: .5; cursor: default; }
.a-btn--small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.a-btn--block { width: 100%; }
.a-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.a-form { display: grid; gap: 12px; }
.a-field { display: grid; gap: 6px; }
.a-field span { font-size: 14px; font-weight: 600; }
.a-check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.a-check input, .a-row--check input { width: 20px; height: 20px; accent-color: var(--koraal); flex-shrink: 0; }

.a-list { display: grid; gap: 8px; }
.a-row { background: var(--wit); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a-card .a-row { background: var(--blush); }
.a-row__main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.a-row__actions { display: flex; gap: 8px; align-items: center; }
.a-row--btn { display: grid; text-align: left; border: 0; width: 100%; cursor: pointer; gap: 2px; }
.a-row--check { cursor: pointer; }
.a-price { font-family: var(--display); font-weight: 600; font-size: 18px; white-space: nowrap; }
.a-buy { grid-template-columns: 1fr auto auto; align-items: center; }
.a-buy strong { display: block; font-family: var(--display); font-size: 24px; }
.a-buy select { width: auto; }

.a-h1 { font-size: 34px; }
.a-dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.a-dl dt { font-weight: 600; }
.a-dl dd { margin: 0; }

.a-day summary { cursor: pointer; padding: 8px 0; }
.a-day ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.a-day li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; }

.a-mini { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + var(--safe-b)); width: min(788px, calc(100% - 32px)); background: var(--aubergine); color: var(--wit); border-radius: 18px; padding: 10px 12px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 20; }
.a-mini div { display: grid; min-width: 0; }
.a-mini strong, .a-mini span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-mini span { font-size: 13px; color: #EBDDE2; }

.a-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--wit); padding: 6px 8px calc(8px + var(--safe-b)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; box-shadow: 0 -1px 0 var(--lijn); }
.a-nav button { min-height: 56px; border: 0; background: transparent; display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--zacht); cursor: pointer; border-radius: 12px; }
.a-nav button[aria-current="page"] { color: var(--koraal); }

.a-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(150px + var(--safe-b)); background: var(--aubergine); color: var(--wit); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; z-index: 40; max-width: calc(100% - 32px); text-align: center; }
.a-toast.is-bad { background: #A33224; }

@media (min-width: 720px) {
	.a-main { padding-left: 24px; padding-right: 24px; }
	.a-player { padding: 34px; }
}
@media (prefers-reduced-motion: reduce) { .a-eq span { animation: none; transform: scaleY(.6); } }
.a-pending { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.a-pending li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(42,30,46,.12); }

/* Tracks en eigen playlists */
.a-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a-round--toggle[aria-pressed="false"] { opacity: .45; }
.a-chip--own { border-style: dashed; }
.a-tracks { display: grid; gap: 2px; max-height: 420px; overflow-y: auto; margin: 0 -8px; padding: 0 8px; }
.a-track { display: flex; align-items: center; gap: 8px; border-radius: 12px; }
.a-track.is-current { background: var(--blush); box-shadow: inset 3px 0 0 var(--koraal); }
.a-track__play { flex: 1; min-width: 0; display: grid; text-align: left; border: 0; background: transparent; padding: 10px 8px; cursor: pointer; border-radius: 12px; }
.a-track__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-track.is-current .a-track__title { color: var(--koraal); }
.a-checklist { display: grid; gap: 2px; }
.a-checkrow { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 4px; border-radius: 10px; cursor: pointer; }
.a-checkrow input { width: 20px; height: 20px; accent-color: var(--koraal); }
.a-checkrow[hidden] { display: none; }
.a-field input[type="search"], .a-field input[data-name] { width: 100%; }
.a-sheet { position: fixed; inset: 0; z-index: 50; background: rgba(42,30,46,.45); display: flex; align-items: flex-end; justify-content: center; }
.a-sheet__panel { width: min(560px, 100%); max-height: 80vh; overflow-y: auto; background: var(--wit); border-radius: 22px 22px 0 0; padding: 22px 20px calc(20px + var(--safe-b)); display: grid; gap: 12px; }
.a-row--btn:disabled { opacity: .5; cursor: default; }
