/* A compact player between the brand and the navigation links. */
#header::before { opacity: 1; background: rgba(11, 16, 38, .94); }
.nav { gap: 14px; }
.brand, .nav-menu, .nav-actions { flex-shrink: 0; }
.nav-menu { gap: 20px; font-size: .9rem; white-space: nowrap; }
.nav-actions { position: relative; z-index: 61; display: flex; align-items: center; gap: 12px; }
.theme-player {
  position: relative; display: grid; flex: 1; min-width: 0; max-width: 520px;
  grid-template-columns: minmax(110px, 1fr) auto 74px auto;
  grid-template-rows: 20px 18px;
  align-items: center;
  column-gap: 8px; row-gap: 0;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(255, 216, 107, .27);
  border-radius: 14px;
  background: radial-gradient(ellipse at 0 0, rgba(255, 216, 107, .1), transparent 55%), linear-gradient(110deg, #19203e, #141b38);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}
.theme-art { display: none; }
.theme-song { min-width: 0; display: flex; align-items: center; gap: 6px; grid-column: 1; grid-row: 1; }
.theme-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: .65rem; font-weight: 700; letter-spacing: .07em; line-height: 1.5; text-transform: uppercase; }
.theme-song .theme-eyebrow { order: 2; flex-shrink: 0; }
#theme-eyebrow { display: none; }
.theme-language { padding: 0 5px; border: 1px solid rgba(255, 216, 107, .25); border-radius: 99px; font-size: .5rem; letter-spacing: 0; white-space: nowrap; }
.theme-song h2 { min-width: 0; font-family: var(--font-display); font-size: .8rem; font-weight: 500; line-height: 1.4; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[lang="en"] .theme-song h2 { font-family: "Fredoka", var(--font-body); }
.theme-caption { display: none; }
.theme-player.is-playing .theme-song h2 { color: var(--gold); }
.theme-player.has-error .theme-caption { display: block; position: absolute; z-index: 3; top: calc(100% + 8px); left: 0; width: 100%; padding: 10px 12px; border: 1px solid #9d686d; border-radius: 10px; background: #221b31; color: #ffb5a5; font-size: .72rem; line-height: 1.6; }
.theme-transport, .theme-volume { display: flex; align-items: center; gap: 6px; }
.theme-transport { grid-column: 2; grid-row: 1 / 3; }
.theme-volume { grid-column: 3; grid-row: 1 / 3; gap: 0; }
.theme-lyrics-button { grid-column: 4; grid-row: 1 / 3; }
.theme-button, .theme-icon-button {
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .035); color: var(--text);
  padding: 9px 12px; font-size: .78rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.theme-button:hover, .theme-icon-button:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 216, 107, .5); }
.theme-button svg, .theme-icon-button svg { width: 18px; height: 18px; flex-shrink: 0; }
.theme-button svg[hidden], .theme-icon-button svg[hidden] { display: none; }
.theme-play { border-color: transparent; color: #271f31; background: linear-gradient(115deg, var(--gold), #ffb979); min-width: 78px; }
.theme-play:hover { color: #271f31; background: linear-gradient(115deg, #ffe69a, #ffcb9c); }
.theme-stop { padding-inline: 9px; }
.theme-stop svg { width: 14px; height: 14px; }
.theme-icon-button { width: 40px; flex-shrink: 0; padding: 9px; border-color: transparent; background: transparent; }
.theme-player .theme-button, .theme-player .theme-icon-button { min-height: 36px; padding: 6px 8px; border-radius: 9px; font-size: .65rem; gap: 4px; }
.theme-player .theme-play { min-width: 56px; }
.theme-player .theme-stop { width: 30px; padding-inline: 6px; }
#theme-stop-label { display: none; }
.theme-player .theme-icon-button { width: 32px; padding: 6px; }
.theme-player .theme-lyrics-button svg { display: none; }
.theme-player .theme-lyrics-button { min-width: 40px; }
.theme-timeline { display: grid; grid-column: 1; grid-row: 2; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 6px; min-width: 0; }
.theme-timeline output { font-size: .55rem; color: var(--muted); font-variant-numeric: tabular-nums; }
#theme-duration { text-align: right; grid-column: 3; grid-row: 1; }
#theme-seek { grid-column: 2; grid-row: 1; }
.theme-range {
  --fill: 0%;
  display: block; width: 100%; min-width: 0; height: 26px; padding: 0; margin: 0;
  appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; accent-color: var(--gold);
}
.theme-range::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(to right, var(--gold) var(--fill), #4b536e var(--fill)); }
.theme-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border: 0; border-radius: 50%; background: #ffe6a1; box-shadow: 0 0 0 3px rgba(255, 216, 107, .12); }
.theme-range::-moz-range-track { height: 4px; border-radius: 99px; background: #4b536e; }
.theme-range::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--gold); }
.theme-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #ffe6a1; }
.theme-range:disabled { opacity: .45; cursor: default; }
.theme-volume .theme-range { --fill: 65%; }
.theme-timeline .theme-range { height: 18px; }
.theme-player :focus-visible, .theme-lyrics-dialog :focus-visible, .nav-actions :focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
.theme-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.theme-lyrics-dialog {
  width: min(620px, calc(100% - 28px)); max-height: min(800px, 88svh);
  margin: auto; padding: 0; color: var(--text); background: #111832;
  border: 1px solid rgba(255, 216, 107, .3); border-radius: 24px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .65); overflow: hidden;
}
.theme-lyrics-dialog[open] { display: flex; flex-direction: column; }
.theme-lyrics-dialog::backdrop { background: rgba(3, 6, 18, .8); backdrop-filter: blur(6px); }
.theme-lyrics-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 26px 12px; flex-shrink: 0; }
.theme-lyrics-heading h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; margin-top: 4px; }
.theme-lyrics-note { color: var(--muted); font-size: .76rem; padding: 0 26px 18px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.theme-lyrics-lines { padding: 12px 20px 28px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; scrollbar-color: #5f6686 #111832; }
.theme-lyrics-section { font-size: .65rem; color: var(--muted); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin: 25px 10px 8px; }
.theme-lyric-line { display: block; width: 100%; min-height: 44px; padding: 10px; color: #c0c6df; background: transparent; border: 1px solid transparent; border-radius: 10px; text-align: left; font-size: .95rem; line-height: 1.6; white-space: pre-line; }
.theme-lyric-line:hover { background: rgba(255, 255, 255, .045); color: white; }
.theme-lyric-line[aria-current="true"] { color: var(--gold); background: rgba(255, 216, 107, .09); border-color: rgba(255, 216, 107, .16); }
.theme-lyrics-footer { display: flex; align-items: center; gap: 12px; padding: 16px 26px; border-top: 1px solid var(--line); flex-shrink: 0; }
#theme-lyrics-position { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.theme-follow { margin-left: auto; font-size: .7rem; }
.theme-follow[aria-pressed="true"] { color: var(--gold); border-color: rgba(255, 216, 107, .35); }
body:has(.theme-lyrics-dialog[open]) { overflow: hidden; }
@media (max-width: 1100px) {
  :root { --site-top-h: 130px; }
  .nav { height: auto; display: grid; grid-template-columns: 1fr auto auto; grid-template-rows: 68px auto; column-gap: 16px; row-gap: 0; padding-bottom: 10px; }
  .brand { grid-column: 1; grid-row: 1; }
  .nav-menu { grid-column: 2; grid-row: 1; }
  .nav-actions { grid-column: 3; grid-row: 1; }
  .theme-player { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; }
}
@media (max-width: 767px) {
  :root { --site-top-h: 184px; }
  .nav { grid-template-columns: 1fr auto; column-gap: 8px; }
  .nav-menu { margin: 0; }
  .nav-actions { grid-column: 2; gap: 4px; }
  .lang-opt { padding-inline: 10px; }
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 30px; height: 30px; }
  .brand { gap: 6px; }
  .theme-player { grid-template-columns: auto minmax(60px, 1fr) 60px; grid-template-rows: 44px 44px; column-gap: 6px; row-gap: 0; padding: 5px 8px; border-radius: 12px; }
  .theme-song { grid-column: 1 / 3; grid-row: 1; }
  .theme-player .theme-button, .theme-player .theme-icon-button { min-height: 44px; }
  .theme-player .theme-play { min-width: 62px; }
  .theme-lyrics-button { grid-column: 3; grid-row: 1; }
  .theme-transport { grid-column: 1; grid-row: 2; }
  .theme-volume { grid-column: 3; grid-row: 2; }
  .theme-timeline { grid-column: 2; grid-row: 2; }
  .theme-player .theme-range { height: 32px; }
  .theme-lyrics-heading { padding: 20px 18px 10px; }
  .theme-lyrics-note { padding: 0 18px 14px; }
  .theme-lyrics-lines { padding-inline: 10px; }
  .theme-lyrics-footer { padding: 12px 16px; gap: 8px; }
  .theme-follow { padding-inline: 9px; }
}
@media (max-width: 380px) {
  .theme-timeline { grid-template-columns: auto minmax(0, 1fr); }
  #theme-duration { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-player *, .theme-lyrics-dialog * { transition: none; scroll-behavior: auto; }
}
