/* Shared reset and the components every concept uses. Each concept sets the variables and restyles on top. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body { margin: 0; font-family: Poppins, system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, blockquote, figure { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* Platform badges */
.badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 14px; text-decoration: none; background: var(--badge-bg, rgba(255,255,255,.07)); border: 1px solid var(--badge-line, rgba(255,255,255,.14)); transition: transform .2s, border-color .2s, background .2s; }
.badge .ico { width: 26px; height: 26px; color: var(--pc); }
.badge span { display: grid; line-height: 1.15; } .badge small { font-size: .7rem; opacity: .7; } .badge b { font-weight: 600; font-size: .98rem; }
.badge:hover { transform: translateY(-3px); border-color: var(--pc); }
.iconlink { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--badge-line, rgba(255,255,255,.14)); transition: background .2s, color .2s, transform .2s; }
.iconlink:hover { background: var(--pc); color: #141414; transform: translateY(-3px); }

/* Chapter bar */
.cbar-track { display: flex; gap: 3px; height: 14px; }
.seg { min-width: 3px; padding: 0; border: 0; border-radius: 3px; background: var(--seg, rgba(255,255,255,.22)); transition: background .15s, transform .15s; }
.seg:hover, .seg:focus-visible { background: var(--accent); transform: scaleY(1.6); }
.cbar-label { margin-top: 10px; font-size: .88rem; color: var(--soft); min-height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Chapter list */
.chapters button { display: flex; gap: 16px; width: 100%; padding: 10px 12px; border: 0; background: none; text-align: left; border-radius: 8px; }
.chapters time { flex: 0 0 4.2em; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent-text, var(--accent)); }
.chapters button:hover { background: var(--hover); }
.chapters.hits { margin-top: 10px; font-size: .9rem; }
mark { background: var(--accent); color: #141414; padding: 0 .15em; border-radius: 3px; }

/* Video: thumbnail first, YouTube loads only after a click. */
.video-slot { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius, 16px); overflow: hidden; }
.video-slot iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-thumb { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.video-thumb:hover img { transform: scale(1.04); }
.playbtn { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%; background: var(--accent); color: #141414; display: grid; place-items: center; transition: transform .2s; box-shadow: 0 0 0 0 rgba(95,203,151,.5); animation: pulse 2.4s infinite; }
.playbtn svg { width: 40px; height: 40px; fill: currentColor; }
.video-thumb:hover .playbtn { transform: scale(1.1); }
@keyframes pulse { 70% { box-shadow: 0 0 0 26px rgba(95,203,151,0); } 100% { box-shadow: 0 0 0 0 rgba(95,203,151,0); } }

/* Sound: cover and a button, Spotify's own player loads on click. */
.audio-slot button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 18px 10px 10px; border-radius: 16px; border: 1px solid var(--badge-line, rgba(255,255,255,.14)); background: var(--badge-bg, rgba(255,255,255,.07)); text-align: left; transition: border-color .2s, transform .2s; }
.audio-slot button:hover { border-color: #1ED760; transform: translateY(-2px); }
.audio-slot img { border-radius: 10px; } .audio-slot span { display: grid; flex: 1; line-height: 1.3; } .audio-slot b { font-weight: 600; } .audio-slot small { opacity: .7; font-size: .8rem; }
.audio-slot .ico { width: 28px; height: 28px; color: #1ED760; }
.audio-slot iframe { width: 100%; border: 0; border-radius: 12px; display: block; }
.chapters.hits a { display: flex; gap: 16px; padding: 8px 12px; border-radius: 8px; text-decoration: none; } .chapters.hits a:hover { background: var(--hover); }

/* Search and topic chips */
.search { position: relative; }
.search input { width: 100%; padding: 18px 22px 18px 58px; font-size: 1.1rem; border-radius: 16px; border: 2px solid var(--line); background: var(--field); }
.search input:focus { border-color: var(--accent); outline: none; }
.search::before { content: ""; position: absolute; left: 22px; top: 50%; width: 15px; height: 15px; margin-top: -11px; border: 3px solid var(--accent-text, var(--accent)); border-radius: 50%; }
.search::after { content: ""; position: absolute; left: 38px; top: 50%; width: 9px; height: 3px; margin-top: 7px; background: var(--accent-text, var(--accent)); transform: rotate(45deg); border-radius: 2px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chips button { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: none; font-weight: 500; font-size: .93rem; }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #141414; }
.arch-count { margin: 28px 0 16px; color: var(--soft); font-size: .92rem; }
.arch-empty { padding: 40px 24px; border-radius: 16px; border: 1px dashed var(--line); }

/* Contact form */
.contact { display: grid; gap: 16px; }
.contact label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.contact input, .contact textarea { padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--field); width: 100%; }
.contact input:focus, .contact textarea:focus { border-color: var(--accent-text, var(--accent)); outline: none; }
.contact textarea { resize: vertical; }
.contact small { font-weight: 400; opacity: .7; }
.contact button { justify-self: start; padding: 14px 30px; border: 0; border-radius: 999px; background: var(--btn, var(--accent)); color: var(--btn-ink, #141414); font-weight: 600; }
.form-error { color: var(--error, #FF8A8C); font-weight: 500; }
.form-done { padding: 18px 20px; border-radius: 12px; background: var(--hover); }

/* Scroll reveal: each concept decides how things arrive, this only guarantees they end up visible. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
