:root {
  --ink: #17284d;
  --paper: #fffaf0;
  --cream: #fff3cf;
  --blue: #2667ff;
  --sky: #8bd8f7;
  --red: #f04d50;
  --yellow: #ffd84d;
  --green: #49b889;
  --purple: #8659cf;
  --line: #17284d;
  --shadow: 7px 7px 0 var(--ink);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Trebuchet MS", "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
html.dialog-open,
html.dialog-open body { overflow: hidden; overscroll-behavior: none; }
html.dialog-open body { position: fixed; width: 100%; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -4rem;
  padding: .75rem 1rem;
  color: white;
  background: var(--ink);
  border-radius: 0 0 12px 12px;
}
.skip-link:focus { top: 0; }

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem clamp(1rem, 5vw, 4.5rem);
  background: var(--yellow);
  border-bottom: 3px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(1rem, 2vw, 1.25rem);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--red);
  border: 3px solid var(--line);
  border-radius: 50% 50% 45% 55%;
  transform: rotate(-7deg);
  box-shadow: 3px 3px 0 var(--ink);
}
.header-actions { display: flex; gap: .7rem; }
.button, .reset-button {
  min-height: 44px;
  padding: .7rem 1rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover, .reset-button:hover { transform: translate(-2px, -2px); }
.button-dark { color: white; background: var(--ink); box-shadow: 3px 3px 0 var(--red); }
.button-light { color: var(--ink); background: white; }

.intro {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  align-items: center;
  min-height: 545px;
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1.25rem, 7vw, 7rem);
  overflow: hidden;
  background: var(--sky);
  border-bottom: 3px solid var(--line);
}
.intro::before, .intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 3px solid var(--line);
}
.intro::before {
  width: 170px; height: 170px;
  left: -70px; bottom: -65px;
  background: var(--green);
  border-radius: 38% 62% 48% 52%;
}
.intro::after {
  width: 120px; height: 120px;
  right: -35px; top: 28px;
  background: var(--yellow);
  border-radius: 50%;
}
.eyebrow {
  margin: 0 0 .7rem;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.04; }
h1 { max-width: 760px; font-size: clamp(3rem, 7vw, 6.8rem); letter-spacing: -.055em; }
h1 span {
  display: inline-block;
  padding: 0 .12em .08em;
  color: white;
  background: var(--blue);
  border: 3px solid var(--line);
  border-radius: 20px 28px 17px 25px;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}
.intro-text { max-width: 700px; margin: 2rem 0; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; }
.intro-stats { display: flex; flex-wrap: wrap; gap: .8rem; }
.intro-stats div {
  min-width: 112px;
  padding: .8rem 1rem;
  background: rgba(255,255,255,.83);
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
}
.intro-stats strong, .intro-stats span { display: block; }
.intro-stats strong { font-size: 1.7rem; line-height: 1; }
.intro-stats span { margin-top: .25rem; font-size: .82rem; font-weight: 800; }

.book-scene { position: relative; min-height: 360px; }
.sun { position: absolute; top: 8%; right: 13%; width: 92px; height: 92px; background: var(--yellow); border: 3px solid var(--line); border-radius: 50%; box-shadow: 7px 7px 0 var(--red); }
.book { position: absolute; left: 5%; right: 0; bottom: 7%; display: flex; height: 230px; filter: drop-shadow(10px 12px 0 var(--ink)); transform: rotate(3deg); }
.book-page { position: relative; width: 50%; padding: 2.5rem 1.5rem; background: white; border: 3px solid var(--line); }
.book-left { border-radius: 65px 8px 12px 45px; transform: skewY(4deg); }
.book-right { border-radius: 8px 65px 45px 12px; transform: skewY(-4deg); }
.book-page span { display: block; margin-bottom: 1.5rem; color: var(--blue); font-size: clamp(1.8rem, 4vw, 3.3rem); font-weight: 900; text-align: center; }
.book-page i { display: block; height: 8px; margin: 14px 4%; background: var(--yellow); border: 2px solid var(--line); border-radius: 20px; }
.book-page i:nth-child(3) { width: 75%; background: var(--red); }
.book-page i:nth-child(4) { width: 88%; background: var(--green); }
.book-spine { position: absolute; z-index: 2; left: calc(50% - 3px); top: 2px; bottom: 1px; width: 6px; background: var(--ink); border-radius: 10px; }
.note { position: absolute; z-index: 3; display: grid; place-items: center; width: 62px; height: 62px; color: white; background: var(--purple); border: 3px solid var(--line); border-radius: 42% 58% 62% 38%; font-size: 2rem; font-weight: 900; box-shadow: 5px 5px 0 var(--ink); }
.note-one { left: 4%; top: 2%; transform: rotate(-13deg); }
.note-two { right: 0; bottom: 2%; color: var(--ink); background: var(--green); transform: rotate(12deg); }
.note-three { right: 39%; top: 22%; width: 48px; height: 48px; background: var(--red); transform: rotate(8deg); }

.catalogue { padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 5vw, 4.5rem) 6rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; max-width: 1380px; margin: 0 auto 2rem; }
.section-heading h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); letter-spacing: -.04em; }
.section-heading > p { max-width: 410px; margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 700; }
.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(160px, .8fr)) auto;
  align-items: end;
  gap: .9rem;
  max-width: 1380px;
  margin: 0 auto 2rem;
  padding: 1.15rem;
  background: var(--yellow);
  border: 3px solid var(--line);
  border-radius: 28px 20px 32px 22px;
  box-shadow: var(--shadow);
}
.filter-panel label > span:first-child { display: block; margin: 0 0 .35rem .15rem; font-size: .82rem; font-weight: 900; }
.filter-panel input, .filter-panel select {
  width: 100%;
  min-height: 49px;
  padding: .7rem .8rem;
  color: var(--ink);
  background: white;
  border: 2px solid var(--line);
  border-radius: 13px;
  outline: none;
}
.filter-panel input:focus, .filter-panel select:focus { box-shadow: 0 0 0 4px rgba(38,103,255,.25); }
.search-box { position: relative; display: block; }
.search-box > span { position: absolute; left: .85rem; top: .54rem; font-size: 1.45rem; font-weight: 900; }
.search-box input { padding-left: 2.5rem; }
.reset-button { color: var(--ink); background: white; white-space: nowrap; }
.login-menu-button { background: var(--yellow); color: var(--ink); border-color: var(--line); cursor: pointer; }
.auth-dialog { border: 0; padding: 0; background: transparent; }
.auth-dialog::backdrop { background: rgba(19,35,73,.72); backdrop-filter: blur(5px); }
.auth-card { position: relative; width: min(92vw, 460px); padding: 2rem; background: #8bd7ef; border: 3px solid var(--line); border-radius: 26px; box-shadow: 8px 8px 0 var(--ink); }
.auth-card h2 { margin-top: 0; font-size: 1.7rem; }
.auth-card label { display: grid; gap: .4rem; margin: 1rem 0; font-weight: 800; }
.auth-card input { width: 100%; padding: .8rem; border: 2px solid var(--line); border-radius: 12px; font: inherit; box-sizing: border-box; }
.auth-card .dialog-close { position: absolute; top: .7rem; right: .7rem; }
.access-gate {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(23, 40, 77, .25);
  backdrop-filter: blur(9px);
}
.access-gate[hidden] { display: none; }
.access-gate-card {
  width: min(100%, 650px);
  padding: clamp(1.4rem, 4vw, 2.8rem);
  color: var(--ink);
  text-align: center;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 30px 22px 34px 24px;
  box-shadow: 9px 9px 0 var(--ink);
}
.access-gate-card h2 { margin: .45rem 0 1rem; font-size: clamp(1.8rem, 4vw, 3rem); }
.access-gate-card p:not(.eyebrow) { margin: 0 auto 1.4rem; max-width: 510px; font-weight: 700; }
.access-gate-open { overflow: hidden; }
.guest-blurring .catalogue, .guest-blurring footer { filter: blur(var(--access-blur, 0px)); opacity: var(--access-dim, 1); transition: filter .12s linear, opacity .12s linear; }
.auth-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: var(--sky);
}
.auth-card {
  width: min(100%, 520px);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 28px 20px 32px 22px;
  box-shadow: var(--shadow);
}
.auth-card h1 { margin: .3rem 0 1.5rem; font-size: clamp(2rem, 6vw, 3.6rem); }
.auth-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-weight: 900; }
.auth-brand .brand-mark { width: 38px; height: 38px; }
.auth-card form { display: grid; gap: 1rem; }
.auth-card label, .account-panel label { display: grid; gap: .35rem; font-weight: 900; }
.auth-card input, .account-panel input {
  width: 100%;
  min-height: 48px;
  padding: .7rem .8rem;
  color: var(--ink);
  background: white;
  border: 2px solid var(--line);
  border-radius: 13px;
}
.auth-card > p:last-child { margin-bottom: 0; }
.account-main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) 0; }
.account-hero { margin-bottom: 2rem; padding: clamp(2rem, 5vw, 4rem); background: var(--yellow); border: 3px solid var(--line); border-radius: 28px 20px 32px 22px; box-shadow: var(--shadow); }
.account-hero h1 { margin: .35rem 0 .8rem; font-size: clamp(2.4rem, 7vw, 5.6rem); }
.account-hero p:last-child { max-width: 650px; margin: 0; font-size: 1.1rem; font-weight: 700; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.account-panel { padding: clamp(1.25rem, 3vw, 2.2rem); background: white; border: 3px solid var(--line); border-radius: 20px 28px 22px 26px; box-shadow: 5px 5px 0 var(--ink); }
.account-panel h2 { margin: .35rem 0 1.3rem; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.account-panel form { display: grid; gap: 1rem; }
.account-panel .button { justify-self: start; }
.account-next { margin-top: 1.3rem; background: var(--cream); }
.account-message { margin: 0 auto 1.3rem; padding: .9rem 1.1rem; border: 2px solid var(--line); border-radius: 14px; font-weight: 800; }
.account-message-success { background: #c9f4df; }
.account-message-error { background: #ffd4d4; }
.account-page footer { margin-top: 0; }
.license-list { display: grid; gap: .7rem; }
.license-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-top: 2px dashed rgba(23,40,77,.35); }
.license-row:first-child { border-top: 0; }
.license-row div { display: grid; gap: .15rem; }
.license-row strong { font-size: 1.05rem; }
.license-row span { font-size: .88rem; font-weight: 700; }
.license-status { color: var(--red); }
.license-note { margin-top: 1rem; padding: .7rem .85rem; background: var(--cream); border: 2px dashed var(--line); border-radius: 12px; font-weight: 800; }
.license-code-created { background: var(--yellow); font-size: 1.1rem; }
.license-code-created code { display: inline-block; margin-left: .35rem; padding: .2rem .5rem; color: white; background: var(--ink); border-radius: 8px; letter-spacing: .08em; }
.license-value { display: inline-block; width: fit-content; padding: .15rem .45rem; color: white; background: var(--ink); border-radius: 7px; letter-spacing: .08em; }
.results-bar { display: flex; justify-content: space-between; gap: 1rem; max-width: 1380px; margin: 0 auto 1.2rem; }
.results-bar p { margin: 0; font-size: 1.05rem; }
.results-bar > span { font-size: .9rem; font-weight: 800; }
.song-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; max-width: 1380px; margin: 0 auto; }
.song-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 3px solid var(--line);
  border-radius: 20px 30px 22px 26px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.song-card:hover { transform: translateY(-4px) rotate(-.2deg); box-shadow: 7px 9px 0 var(--ink); }
.song-card:focus-visible { outline: 5px solid var(--yellow); outline-offset: 5px; }
.card-top { display: flex; gap: .8rem; align-items: flex-start; padding: 1.25rem 1.25rem 1rem; }
.song-number { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; color: white; background: var(--card-color, var(--blue)); border: 2px solid var(--line); border-radius: 50% 45% 55% 42%; font-weight: 900; }
.song-card h3 { overflow-wrap: anywhere; font-size: 1.25rem; }
.artist { margin: .35rem 0 0; color: #405075; font-weight: 800; }
.card-body { padding: 0 1.25rem 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; }
.chip { display: inline-flex; align-items: center; min-height: 29px; padding: .24rem .6rem; background: var(--cream); border: 1.5px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 900; }
.chip.theme { background: #e8ddff; }
.details { display: grid; gap: .75rem; margin: 0; }
.details div { padding-top: .7rem; border-top: 1.5px dashed #aeb6c8; }
.details dt { margin-bottom: .15rem; font-size: .73rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.details dd { margin: 0; color: #344364; font-size: .93rem; font-weight: 600; }
.unclassified { margin: .2rem 0 0; color: #65708a; font-size: .88rem; font-style: italic; }
.card-cta { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: .75rem; border-top: 2px solid var(--line); font-size: .85rem; font-weight: 900; }
.card-cta span { color: var(--card-color); font-size: 1.35rem; line-height: 1; }
.empty-state { max-width: 650px; margin: 3rem auto; padding: 3rem 1.5rem; text-align: center; background: var(--sky); border: 3px solid var(--line); border-radius: 40px 24px; box-shadow: var(--shadow); }
.empty-state > span { display: block; font-size: 3rem; }
.empty-state h3 { margin-top: .5rem; font-size: 1.8rem; }
.empty-state p { margin: .7rem 0 1.5rem; }

footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem clamp(1rem, 5vw, 4.5rem); color: white; background: var(--ink); border-top: 3px solid var(--line); }
footer p { margin: 0; font-weight: 800; }
footer span { color: var(--yellow); }

.song-dialog {
  width: min(1180px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  border: 0;
}
.song-dialog::backdrop { background: rgba(12, 25, 50, .76); backdrop-filter: blur(6px); animation: backdrop-in .25s ease-out; }
.song-dialog[open] { animation: dialog-in .38s cubic-bezier(.2,.8,.2,1); }
.dialog-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(430px, 1.4fr) minmax(170px, .7fr);
  align-items: end;
  gap: 1rem;
  min-height: min(760px, calc(100dvh - 2rem));
  padding: 3rem 1.2rem 1.2rem;
  overflow: hidden;
  background: linear-gradient(to bottom, #63c58a 0 72%, #168245 72%);
  border: 3px solid var(--line);
  border-radius: 34px 24px 36px 26px;
  box-shadow: 12px 14px 0 rgba(0,0,0,.3);
}
.dialog-stage::after { content: ""; position: absolute; inset: 72% 0 0; background-image: radial-gradient(circle, rgba(255,255,255,.12) 0 4px, transparent 5px); background-size: 25px 25px; pointer-events: none; }
.dialog-close { position: absolute; z-index: 10; top: .8rem; right: .8rem; display: grid; place-items: center; width: 46px; height: 46px; color: var(--ink); background: white; border: 3px solid var(--line); border-radius: 50%; font-size: 2rem; font-weight: 900; line-height: 1; box-shadow: 4px 4px 0 var(--ink); }
.dialog-close:hover { transform: rotate(6deg); }
.sound-wave { position: absolute; top: 18%; display: flex; align-items: center; justify-content: space-evenly; gap: clamp(5px, .65vw, 12px); width: 19%; height: 40%; padding: 0 1.5%; opacity: .58; }
.sound-wave i { display: block; flex: 1 1 13px; max-width: 18px; height: var(--h); background: #14804a; border-radius: 999px; }
.sound-wave-left { left: 0; }
.sound-wave-right { right: 0; }
.brain-side { position: relative; z-index: 2; align-self: end; min-width: 0; }
.brain-side img { display: block; width: 100%; max-height: 265px; object-fit: contain; object-position: bottom; border-radius: 30px 30px 18px 18px; }
.brain-side-left img { clip-path: polygon(14% 18%, 30% 18%, 40% 7%, 56% 3%, 74% 5%, 91% 17%, 100% 34%, 100% 100%, 0 100%, 0 32%); }
.brain-side-right img { clip-path: polygon(0 25%, 8% 14%, 26% 8%, 48% 8%, 60% 18%, 70% 18%, 76% 12%, 100% 12%, 100% 100%, 0 100%); }
.speech-bubble { position: relative; z-index: 2; min-height: 94px; display: grid; place-items: center; margin-bottom: -12px; padding: 1rem; background: white; border: 3px solid #050505; border-radius: 45% 45% 42% 40% / 40% 42% 35% 38%; box-shadow: 4px 5px 0 rgba(0,0,0,.18); font-family: "Comic Sans MS", "Trebuchet MS", sans-serif; font-size: clamp(.82rem, 1.4vw, 1.05rem); font-weight: 700; text-align: center; transform: rotate(-2deg); }
.speech-bubble::before,
.speech-bubble::after { content: ""; position: absolute; width: 0; height: 0; }
.speech-bubble::before { z-index: -1; right: 17%; bottom: -31px; border-left: 24px solid transparent; border-right: 8px solid transparent; border-top: 34px solid #050505; transform: rotate(-7deg); }
.speech-bubble::after { right: calc(17% + 4px); bottom: -23px; border-left: 19px solid transparent; border-right: 6px solid transparent; border-top: 28px solid white; transform: rotate(-7deg); }
.brain-side-right .speech-bubble { transform: rotate(2deg); }
.brain-side-right .speech-bubble::before { right: auto; left: 17%; border-right-width: 24px; border-left-width: 8px; transform: rotate(7deg); }
.brain-side-right .speech-bubble::after { right: auto; left: calc(17% + 4px); border-right-width: 19px; border-left-width: 6px; transform: rotate(7deg); }
.player-card { position: relative; z-index: 3; align-self: center; display: flex; flex-direction: column; min-height: min(690px, calc(100dvh - 5rem)); max-height: calc(100dvh - 4rem); padding: 1.2rem; overflow: hidden auto; background: color-mix(in srgb, var(--player-accent, var(--sky)) 58%, white); border: 4px solid #050505; border-radius: 25px 25px 18px 18px; box-shadow: 8px 8px 0 rgba(0,0,0,.28); }
.player-heading { text-align: center; }
.player-heading p { margin: 0; color: rgba(23,40,77,.62); font-size: .75rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.player-heading span { display: block; font-size: .9rem; font-weight: 900; }
.lyrics-panel { flex: 1; min-height: 270px; margin: 1rem 0; padding: clamp(1.1rem, 3vw, 2rem); overflow: auto; background: rgba(23,40,77,.23); border-radius: 24px 30px 18px 26px; }
.lyrics-label-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.lyrics-label-row h3 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.lyrics-label-row span { padding: .25rem .55rem; background: rgba(255,255,255,.72); border-radius: 999px; font-size: .7rem; font-weight: 900; }
#lyricsText { margin: 0; color: white; font-size: clamp(1.1rem, 2.1vw, 1.55rem); font-weight: 900; line-height: 1.45; white-space: pre-line; }
.player-meta { display: flex; align-items: center; gap: .8rem; }
.album-placeholder { display: grid; place-items: center; flex: 0 0 auto; width: 58px; height: 58px; color: white; background: var(--player-accent, var(--blue)); border: 2px solid var(--line); border-radius: 15px; font-size: 1.8rem; box-shadow: 3px 3px 0 var(--ink); }
.player-meta h2 { margin: 0; font-size: clamp(1.2rem, 2.6vw, 1.75rem); line-height: 1.1; }
.player-meta p { margin: .25rem 0 0; font-weight: 800; opacity: .72; }
.spotify-embed { width: 100%; min-height: 152px; margin: .9rem 0 .35rem; overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.34); }
.spotify-embed iframe { display: block; width: 100%; min-height: 152px; border: 0; }
.progress-wrap { margin-top: 1rem; }
.progress-track { height: 10px; overflow: hidden; background: var(--ink); border: 2px solid var(--ink); border-radius: 99px; }
.progress-track span { display: block; width: 0; height: 100%; background: #20bf60; transition: width .25s ease; }
.time-row { display: flex; justify-content: space-between; margin-top: .25rem; font-size: .72rem; font-weight: 900; }
.player-controls { display: flex; align-items: center; justify-content: center; gap: clamp(.35rem, 1.4vw, 1rem); margin-top: .5rem; }
.player-controls button { display: grid; place-items: center; min-width: 60px; min-height: 54px; padding: .45rem; color: var(--ink); background: transparent; border: 0; border-radius: 16px; font-weight: 900; }
.player-controls button:hover, .player-controls button:focus-visible { background: rgba(255,255,255,.55); outline: 3px solid var(--ink); }
.player-controls button span { font-size: 1.35rem; line-height: 1; }
.player-controls button small { margin-top: .25rem; font-size: .68rem; font-weight: 900; }
.player-controls .play-control { width: 74px; height: 74px; color: #050505; background: #20bf60; border: 3px solid #050505; border-radius: 50%; box-shadow: 4px 4px 0 rgba(0,0,0,.25); }
.player-controls .play-control:hover, .player-controls .play-control:focus-visible { background: #32d873; }
.connection-status { margin: .7rem 0 0; padding: .5rem; background: rgba(255,255,255,.65); border: 1.5px dashed var(--ink); border-radius: 12px; font-size: .72rem; font-weight: 900; text-align: center; }

@keyframes dialog-in { from { opacity: 0; transform: translateY(35px) scale(.94) rotate(-1deg); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1080px) {
  .intro { grid-template-columns: 1fr .72fr; }
  .filter-panel { grid-template-columns: 1.4fr 1fr 1fr; }
  .reset-button { grid-column: span 1; }
  .song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header { align-items: flex-start; }
  .header-actions { flex-direction: column; }
  .header-actions .button { min-height: 38px; padding: .48rem .7rem; font-size: .82rem; }
  .intro { grid-template-columns: 1fr; padding-top: 3.2rem; }
  .book-scene { min-height: 300px; }
  .section-heading, .results-bar, footer { align-items: flex-start; flex-direction: column; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .song-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .song-dialog { width: min(680px, calc(100% - 1rem)); }
  .dialog-stage { display: block; min-height: auto; padding: 3.7rem .7rem .7rem; overflow: auto; background: #63c58a; }
  .player-card { min-height: calc(100dvh - 5.5rem); max-height: none; }
  .brain-side { display: none; }
  .sound-wave { display: none; }
}
@media (max-width: 480px) {
  .brand span:last-child { max-width: 120px; line-height: 1.1; }
  .filter-panel { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .book { height: 190px; }
  .book-page { padding: 2rem .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .site-header, .intro, .filter-panel, .header-actions, .reset-button, footer, .song-dialog { display: none !important; }
  .catalogue { padding: 0; }
  .section-heading { margin-bottom: 1rem; }
  .song-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .song-card { break-inside: avoid; box-shadow: none; }
}
