:root {
  --bg: #140f0c;
  --bg-2: #1c1512;
  --surface: rgba(38, 28, 22, 0.72);
  --surface-solid: #241a15;
  --border: rgba(224, 164, 88, 0.16);
  --border-strong: rgba(224, 164, 88, 0.4);
  --text: #f6ead9;
  --text-dim: #c9b49c;
  --text-faint: #8f7a66;
  --gold: #e6a94e;
  --gold-soft: #f0c07a;
  --rose: #d97a5a;
  --accent: #e6a94e;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --radius: 22px;
  --radius-sm: 12px;
}

@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #e6a94e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -10%, #3a2415 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 100%, #2a1a22 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(640px 340px at 18% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(520px 320px at 88% 42%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  transition: background 0.8s ease, opacity 0.8s ease;
}
body.is-playing .bg-glow {
  background:
    radial-gradient(780px 420px at 22% 12%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 68%),
    radial-gradient(640px 400px at 92% 38%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(520px 360px at 50% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 72%);
}

/* ---------- Topbar ---------- */
.topbar-shell {
  position: sticky;
  top: 0;
  z-index: 5;
  width: 100%;
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.topbar-shell.is-scrolled {
  background: rgba(20, 15, 12, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 28px -18px rgba(0, 0, 0, 0.7);
}
.topbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
  transition: max-width 0.35s ease;
}
/* topbar acompanha a largura do conteúdo de cada rota */
body.route-detail .topbar { max-width: 760px; }
body.route-sobre .topbar { max-width: 42rem; }
.topbar__home {
  position: relative;
  flex: none;
  height: 42px;
  min-width: 42px;
  padding: 0 0.9rem 0 0.5rem;
  gap: 0.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.topbar__home svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: none;
}
.topbar__back-label {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  margin-left: 0.15rem;
  margin-right: 0.15rem;
}
body.route-home .topbar__home {
  display: none;
}
.topbar__home:hover {
  color: var(--accent);
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: scale(1.04);
}
.topbar__dedication {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  text-align: left;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.92rem, 2.4vw, 1.12rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--gold-soft);
  text-shadow: 0 0 22px color-mix(in srgb, var(--gold) 35%, transparent);
  text-wrap: balance;
  transition: opacity 0.2s ease;
}
body.route-detail .topbar__dedication,
body.route-sobre .topbar__dedication {
  opacity: 0.7;
}
.topbar__about {
  flex: none;
  height: 42px;
  padding: 0 0.95rem 0 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.3s ease;
}
.topbar__about svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}
.topbar__about:hover {
  color: var(--accent);
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: scale(1.04);
}
body.route-sobre .topbar__about {
  color: #2a1a10;
  border-color: transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 75%, #fff), var(--accent));
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, 0.75);
}
body.route-sobre .topbar__about:hover {
  color: #2a1a10;
  transform: scale(1.04);
}
@media (max-width: 480px) {
  body:not(.route-home) .topbar__back-label { display: none; }
  body:not(.route-home) .topbar__home {
    width: 42px;
    min-width: 42px;
    padding: 0;
    justify-content: center;
  }
}

/* ---------- View ---------- */
.view { position: relative; z-index: 1; }
.loading {
  text-align: center;
  color: var(--text-faint);
  padding: 3rem 1rem;
}
.sobre {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem 3.5rem;
}
.sobre__letter {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  animation: lyrics-in 0.45s ease both;
}
.sobre__title {
  margin: 0 0 0.35rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--gold-soft);
}
.sobre__letter p {
  margin: 0;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.75;
}
.sobre__closing {
  margin-top: 0.35rem;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--text);
}

/* ---------- Home toolbar + grid ---------- */
.home-toolbar {
  max-width: 1000px;
  margin: 0.85rem auto 0;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.home-search {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  padding: 0 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-search::placeholder { color: var(--text-faint); }
.home-search:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.home-toolbar__modes {
  display: flex;
  gap: 0.35rem;
  flex: none;
}
.view-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.view-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.view-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.view-toggle.is-active {
  color: #2a1a10;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 75%, #fff), var(--accent));
  border-color: transparent;
}
.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-faint);
  padding: 2.5rem 1rem;
  margin: 0;
}

.grid {
  max-width: 1000px;
  margin: 0.85rem auto 0;
  padding: 0 1.25rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
  gap: 1.6rem 1.25rem;
  animation: lyrics-in 0.4s ease both;
}
.tile {
  position: relative;
  min-width: 0;
  container-type: inline-size;
}
.tile__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.8);
  transition: box-shadow 0.35s ease, outline-color 0.35s ease;
  outline: 1px solid transparent;
}
.tile__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.tile.is-current .tile__cover {
  outline-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.8), 0 0 44px -12px color-mix(in srgb, var(--accent) 55%, transparent);
}
.tile.is-playing .tile__cover {
  outline-color: color-mix(in srgb, var(--accent) 75%, transparent);
  box-shadow:
    0 14px 34px -14px rgba(0, 0, 0, 0.8),
    0 0 52px -8px color-mix(in srgb, var(--accent) 70%, transparent),
    0 0 80px -18px color-mix(in srgb, var(--accent) 40%, transparent);
  animation: cover-glow 2.6s ease-in-out infinite;
}
.tile__link {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tile.is-current .tile__link,
.tile.is-playing .tile__link { opacity: 1; }
.tile__play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent));
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s ease, background 0.4s ease;
  z-index: 2;
}
.tile__play:active { transform: scale(0.96); }
.tile__play svg { width: 22px; height: 22px; fill: #2a1a10; }
.tile__eq {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  flex-shrink: 0;
}
.tile__eq i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: bottom;
  animation: eq 0.9s ease-in-out infinite;
}
.tile__eq i:nth-child(2) { animation-delay: 0.25s; }
.tile__eq i:nth-child(3) { animation-delay: 0.5s; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}
@keyframes cover-glow {
  0%, 100% {
    box-shadow:
      0 14px 34px -14px rgba(0, 0, 0, 0.8),
      0 0 52px -8px color-mix(in srgb, var(--accent) 70%, transparent),
      0 0 80px -18px color-mix(in srgb, var(--accent) 40%, transparent);
  }
  50% {
    box-shadow:
      0 14px 34px -14px rgba(0, 0, 0, 0.8),
      0 0 64px -6px color-mix(in srgb, var(--accent) 85%, transparent),
      0 0 96px -14px color-mix(in srgb, var(--accent) 55%, transparent);
  }
}
/* Grade: mesmo equalizer da lista, canto inferior esquerdo da capa */
.grid:not(.is-list) .tile.is-playing .tile__eq {
  display: flex;
  position: absolute;
  left: 10px;
  top: calc(100cqw - 30px);
  z-index: 2;
  height: 16px;
  pointer-events: none;
}
.tile__info {
  padding-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}
.tile__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.14rem;
  line-height: 1.25;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Hover só em desktop — no mobile o 1.º toque na capa abre o link */
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__cover img { transform: scale(1.05); }
  .tile:hover .tile__link { opacity: 1; }
  .tile__play:hover { transform: scale(1.08); }
  .tile__title:hover { color: color-mix(in srgb, var(--accent) 70%, #fff); }
}
.tile__meta {
  font-size: 0.78rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- List mode ---------- */
.grid.is-list {
  grid-template-columns: 1fr;
  gap: 0.55rem;
  max-width: 1000px;
}
.grid.is-list .tile {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.45rem 0.85rem 0.45rem 0.45rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.grid.is-list .tile.is-current {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 0 28px -12px color-mix(in srgb, var(--accent) 50%, transparent);
}
.grid.is-list .tile.is-playing .tile__cover {
  animation: none;
}
.grid.is-list .tile__cover {
  width: 64px;
  height: 64px;
  aspect-ratio: auto;
  border-radius: 10px;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.7);
}
.grid.is-list .tile__link {
  background: none;
  opacity: 0;
}
.grid.is-list .tile__play {
  width: 34px;
  height: 34px;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.grid.is-list .tile.is-playing .tile__play,
.grid.is-list .tile.is-current .tile__play { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .grid.is-list .tile:hover {
    background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
    border-color: var(--border);
  }
  .grid.is-list .tile:hover .tile__cover img { transform: none; }
  .grid.is-list .tile:hover .tile__play { opacity: 1; }
}
@media (hover: none) {
  .grid.is-list .tile__play { opacity: 1; }
}
.grid.is-list .tile__play svg { width: 16px; height: 16px; }
.grid.is-list .tile__play .ico-play { transform: translateX(1px); }
.grid.is-list .tile.is-playing .tile__eq {
  display: flex;
  height: 16px;
  margin-right: 0.15rem;
}
.grid.is-list .tile__info {
  padding-top: 0;
}
.grid.is-list .tile__title { font-size: 1.05rem; }

/* ---------- Detail ---------- */
.detail {
  max-width: 760px;
  margin: 0.85rem auto 0;
  padding: 0 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  animation: lyrics-in 0.4s ease both;
}
.detail__hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}
.detail__hero.is-current .detail__title {
  color: color-mix(in srgb, var(--accent) 55%, var(--text));
}
.detail__cover {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.85);
  outline: 1px solid transparent;
  transition: outline-color 0.35s ease, box-shadow 0.45s ease;
}
.detail__cover.is-active {
  outline-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow:
    0 18px 40px -16px rgba(0, 0, 0, 0.85),
    0 0 40px -12px color-mix(in srgb, var(--accent) 45%, transparent);
}
.detail__cover.is-playing {
  outline-color: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow:
    0 20px 44px -14px rgba(0, 0, 0, 0.88),
    0 0 56px -8px color-mix(in srgb, var(--accent) 70%, transparent),
    0 0 90px -20px color-mix(in srgb, var(--accent) 45%, transparent);
}
.detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #2a1a10;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent));
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease, background 0.4s ease;
}
.cover-play:hover { transform: scale(1.08); }
.cover-play:active { transform: scale(0.96); }
.cover-play svg {
  width: 20px;
  height: 20px;
  fill: #2a1a10;
}
.cover-play .ico-play { transform: translateX(1px); }

.ico-pause { display: none; }
.tile.is-playing .ico-play,
.detail__cover.is-playing .ico-play,
.mini.is-playing .mini__btn--play .ico-play { display: none; }
.tile.is-playing .ico-pause,
.detail__cover.is-playing .ico-pause,
.mini.is-playing .mini__btn--play .ico-pause { display: block; }

.detail__meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}
.detail__title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.detail__desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 36em;
}

/* ---------- Versions ---------- */
.versions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.versions__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-faint);
}
.versions__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.28rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
}
.version {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  background: transparent;
  border: 0;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.version:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.version.is-active {
  color: #2a1a10;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent));
  font-weight: 600;
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}

/* ---------- Lyrics panel ---------- */
.detail__panel {
  padding: 1.35rem 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.detail__panel-label {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-faint);
}
.detail__tabs {
  display: flex;
  gap: 0.25rem;
  margin: -0.25rem 0 1.15rem;
  padding: 0.28rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
}
.detail__tab {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  background: transparent;
  border: 0;
  padding: 0.55rem 1.05rem;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.detail__tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.detail__tab.is-active {
  color: #2a1a10;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent));
  font-weight: 600;
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.lyrics {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.lyrics[hidden],
.explain[hidden] { display: none; }

/* ---------- Lyrics ---------- */
@keyframes lyrics-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.lyric-part { display: flex; flex-direction: column; gap: 1.05rem; }
.lyric-part[hidden] { display: none; }
.lyric-part:not([hidden]) + .lyric-part:not([hidden]) {
  border-top: 1px dashed var(--border);
  padding-top: 1.05rem;
}
.lyric-block { display: flex; flex-direction: column; gap: 0.3rem; }
.lyric-tag {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.lyric-tag em {
  font-style: normal;
  color: var(--text-faint);
  font-weight: 500;
  margin-left: 0.4rem;
}
.lyric-block p {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--text);
}
.line {
  display: block;
  border-radius: 8px;
  padding: 0.12rem 0.6rem;
  margin: 0 -0.6rem;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.lyrics.is-syncing .line { color: var(--text-dim); }
.line.is-singing {
  color: #fff8ee;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: inset 3px 0 0 0 var(--accent);
  text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 30%, transparent);
}
.lyric-block--note { opacity: 0.75; }
.lyric-note {
  font-style: italic;
  color: var(--text-faint);
  font-size: 0.9rem;
}

/* ---------- Explanation ---------- */
.explain {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  animation: lyrics-in 0.35s ease both;
}
.explain-h {
  margin: 0.6rem 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--gold-soft);
}
.explain-h:first-child { margin-top: 0; }
.explain-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-left: 2px solid var(--border-strong);
  padding-left: 0.9rem;
}
.explain-quote {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  color: var(--gold-soft);
  font-size: 1rem;
  line-height: 1.5;
}
.explain-quote::before { content: "\201C"; }
.explain-quote::after { content: "\201D"; }
.explain-text {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
}
.explain-text em { color: var(--gold-soft); font-style: italic; }
.explain-outro {
  margin: 0.5rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px dashed var(--border);
  font-family: "Fraunces", Georgia, serif;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Mini-player ---------- */
body.has-mini {
  padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
}
.mini {
  position: fixed;
  left: max(0.65rem, env(safe-area-inset-left, 0px));
  right: max(0.65rem, env(safe-area-inset-right, 0px));
  bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  z-index: 10;
  background: rgba(20, 15, 12, 0.55);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.85);
  animation: mini-in 0.35s ease both;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.45s ease;
}
.mini.is-playing {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow:
    0 14px 40px -14px rgba(0, 0, 0, 0.85),
    0 0 36px -10px color-mix(in srgb, var(--accent) 55%, transparent);
}
@keyframes mini-in {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.mini__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  width: auto;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  pointer-events: none;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}
.mini__progress::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--accent) 75%, #fff),
    var(--accent));
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: width 0.15s linear, background 0.35s ease;
}
.mini.is-playing .mini__progress::after {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--accent) 85%, #fff),
    var(--accent));
}
.mini__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.7rem 1.1rem 0.75rem;
}
.mini__open {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
}
.mini__cover {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.8);
}
.mini__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.1rem;
}
.mini__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini__open:hover .mini__title { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.mini__sub {
  font-size: 0.74rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini__time {
  font-size: 0.74rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.mini__controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
}
.mini__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text-dim);
  transition: color 0.2s ease, transform 0.15s ease;
}
.mini__btn:hover { color: var(--text); }
.mini__btn svg { width: 22px; height: 22px; fill: currentColor; }
.mini__btn--play {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent));
  color: #2a1a10;
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 60%, transparent);
}
.mini__btn--play:hover { color: #2a1a10; transform: scale(1.06); }
.mini__btn--play svg { fill: #2a1a10; }
.mini__btn--play .ico-play { transform: translateX(1px); }

/* ---------- Responsive ---------- */
@media (max-width: 620px) {
  .detail__hero {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    justify-items: center;
    text-align: center;
  }
  .detail__cover {
    width: min(220px, 58vw);
  }
  .detail__meta { align-items: center; }
  .detail__desc { max-width: none; }
  .versions { align-items: center; }
  .versions__list {
    justify-content: center;
    gap: 0.25rem;
    padding: 0.2rem;
  }
  .version {
    font-size: 0.8rem;
    padding: 0.4rem 0.65rem;
  }
  .detail__tabs { margin-left: auto; margin-right: auto; }
  .detail__panel {
    padding: 1.1rem 1rem 1.25rem;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 0.9rem;
  }
  .grid.is-list { grid-template-columns: 1fr; }
  .tile__play { width: 40px; height: 40px; }
  .tile__play svg { width: 18px; height: 18px; }
  .tile__title { font-size: 1rem; }
  .mini__time { display: none; }
  .mini__inner { gap: 0.6rem; padding: 0.55rem 0.85rem 0.6rem; }
  body.has-mini {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
