﻿/* index.css - estilos globales */

@font-face {
  font-family: 'Shift Pro';
  src: url('Shift Pro.otf') format('opentype');
  font-display: swap;
}

:root {
  --bg: #0b0c10;
  --card-bg: #11131a;
  --accent: #06f7e4;
  --accent-soft: rgba(6, 247, 228, 0.16);
  --text-main: #f8fafc;
  --text-muted: #aeb7c6;
  --border-soft: rgba(255, 255, 255, 0.06);
  --radius-card: 16px;
  --shadow-soft: 0 18px 36px rgba(0, 0, 0, 0.45);
  --font-heading: 400 26px/normal 'Shift Pro', 'Segoe UI', sans-serif;
  --font-body: 400 24px/normal 'Oooh Baby', cursive;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: var(--font-body);
  background: radial-gradient(circle at 20% -10%, #1c1f2b 0, rgba(28, 31, 43, 0) 32%),
    radial-gradient(circle at 80% 0%, rgba(6, 247, 228, 0.12) 0, rgba(6, 247, 228, 0) 32%),
    linear-gradient(160deg, #0b0c10, #10131b 60%, #0b0c10 100%);
  color: var(--text-main);
  padding-bottom: 108px;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 960px;
  padding: 24px;
  margin: 32px auto;
  background: rgba(17, 19, 26, 0.82);
  backdrop-filter: blur(22px);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.back-button {
  border: none;
  background: transparent !important;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f8fafc;
  box-shadow: none !important;
  transition: transform 0.12s ease;
}

.back-button:hover {
  transform: translateX(-2px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font: var(--font-heading);
  margin: 0;
}


.brand-logo {
  height: 62px;
  width: auto;
  display: block;
}
.header-row--brand {
  position: relative;
  justify-content: flex-end;
  margin-bottom: 18px;
  min-height: 56px;
}

.header-row--brand .page-title-group {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  width: max-content;
  pointer-events: auto;
}

.header-row--brand .header-actions {
  margin-left: auto;
}

.brand-word {
  margin: 0;
  color: #ffffff;
  text-align: center;
}

.brand-word .brand-letter {
  color: #ffffff;
  transition: color 1s ease;
}

.brand-word .brand-letter.is-accent {
  color: var(--accent);
}

.cards-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

/* --- Song list (tipo Spotify) --- */
.song-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.card {
  border-radius: var(--radius-card);
  padding: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: none;
  position: relative;
  overflow: hidden;
}

.song-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 10px;
  box-shadow: none;
  position: relative;
  cursor: pointer;
}

.song-cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: none;
  box-shadow: none;
}

.song-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.song-cover__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
}

.song-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.card-title,
.song-title,
.version-name,
.song-link {
  margin: 0;
  color: #f8fafc;
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
  font-size: 24px!important;
}

.song-album {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-actions {
  color: var(--text-muted);
}

.card-meta {
  color: var(--text-muted);
}

.empty-state {
  margin-top: 24px;
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: #b7f0c9;
  margin-top: 8px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2563eb;
}

.audio-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eff6ff, #fef3c7);
  border: 1px solid rgba(59, 130, 246, 0.12);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.audio-card h2 {
  margin: 0 0 8px 0;
}

audio {
  width: 100%;
  margin-top: 8px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  outline: none;
  cursor: pointer;
  background: #111827;
  color: #f9fafb;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease;
}

.download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.5);
  background: #020617;
}

.download-btn span:first-child {
}

.loading,
.error {
  margin-top: 24px;
  color: var(--text-muted);
}

.error {
  color: #b91c1c;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #4b5563;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.page-title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.small-muted {
  color: var(--text-muted);
}

.album-block {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.album-title {
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 8px auto 0;
  text-align: center;
  width: 100%;
}

/* --- Player (barra fija + pantalla completa) --- */
.player-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  margin-top: 10px;
  height: 78px;
  background: linear-gradient(90deg, #0845aa 0%, #031c44 100%);
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 20;
  overflow: hidden;
}

.player-bar__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #06f7e4;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.player-bar.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.player-bar__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.player-bar__title {
  flex: 1;
  margin-inline-start: 10px;
  line-height: 1.15;
  padding-inline-end: 0.18em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-bar__subtitle {
  color: rgba(248, 250, 252, 0.76);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-bar__controls {
  margin-inline-start: auto;
  margin-inline-end: 10px;
  display: flex;
  align-items: center;
}

.player-btn {
  border: none;
  outline: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.player-btn img {
  width: 22px;
  height: 22px;
  display: block;
}

.player-btn--lg img {
  width: 30px;
  height: 30px;
}

.player-btn:hover {
  transform: translateY(-1px) scale(1.02);
  background: rgba(255, 255, 255, 0.22);
}

.player-bar .player-btn {
  background: transparent;
}

.player-bar .player-btn:hover {
  background: transparent;
}

.player-bar .player-btn img {
  width: 33px;
  height: 33px;
}

.player-btn--lg {
  width: 64px;
  height: 64px;
}

.player-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 22% 18%, rgba(59, 130, 246, 0.18), transparent 42%),
    radial-gradient(circle at 82% 0%, rgba(59, 130, 246, 0.2), transparent 45%),
    linear-gradient(160deg, #0b1224, #0f1b37 48%, #020617 100%);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 30;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

.player-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.player-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
}

.player-overlay__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 6px 20px 12px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.player-overlay__title {
  color: #f8fafc;
  max-width: 90vw;
  line-height: 1.15;
  padding-inline-end: 0.18em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#overlay-main-title {
  font-size: 1.5em;
  margin-top: 20px;
}

.player-overlay__subtitle {
  color: rgba(226, 232, 240, 0.74);
  max-width: 80vw;
  line-height: 1.15;
  padding-inline-end: 0.18em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-overlay__subtitle:empty {
  display: none;
}

.player-overlay__art {
  width: min(563.2px, 77.44vw);
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.player-overlay__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-progress {
  width: min(660px, 84vw);
  max-width: 100%;
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-progress input[type='range'] {
  width: 100%;
  margin: 0;
  accent-color: #06f7e4;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 12px;
  cursor: pointer;
}

.player-progress input[type='range']::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.35);
}

.player-progress input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #06f7e4;
  border: 0;
  margin-top: -4px;
}

.player-progress input[type='range']::-moz-range-track {
  height: 2px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.35);
}

.player-progress input[type='range']::-moz-range-progress {
  height: 2px;
  border-radius: 999px;
  background: #06f7e4;
}

.player-progress input[type='range']::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #06f7e4;
  border: 0;
}

.player-progress__times {
  display: flex;
  justify-content: space-between;
  color: rgba(226, 232, 240, 0.68);
  font-size: 0.5em;
}

.player-overlay__footer {
  padding: 0 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  width: 48px;
  height: 48px;
}

.player-overlay .player-btn,
.player-overlay .player-btn:hover {
  background: transparent;
}

.player-overlay .player-btn {
  width: 88px;
  height: 88px;
}

.player-overlay .player-btn img {
  width: 44px;
  height: 44px;
}

.player-overlay .player-btn--lg,
.player-overlay .player-btn--ghost {
  width: 88px;
  height: 88px;
}

.player-overlay #overlay-play,
.player-overlay #overlay-back,
.player-overlay #overlay-forward {
  width: 88px;
  height: 88px;
}

.player-overlay #overlay-play img,
.player-overlay #overlay-back img,
.player-overlay #overlay-forward img {
  width: 66px;
  height: 66px;
}

.player-overlay #overlay-close,
.player-overlay #overlay-close:hover {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.player-overlay #overlay-close:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.4);
}

.player-overlay #overlay-close .icon-button__icon {
  font-size: 18px;
  line-height: 1;
}

.player-overlay__lyrics {
  padding: 0 22px 28px;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.player-overlay__lyrics-title {
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72);
}

.player-overlay__lyrics-body {
  padding: 0;
  color: #e5e7eb;
  font-size: 1.2em;
  white-space: normal;
  word-break: break-word;
  background: transparent;
  border: none;
  border-radius: 0;
  max-height: none;
  overflow: visible;
  box-shadow: none;
  text-align: center;
}
.pill + .player-bar {
  margin-top: 48px;
}

@media (max-width: 640px) {
  .page {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .player-bar {
    height: 74px;
    padding: 10px 14px;
  }

  .player-overlay__title {
    max-width: 100%;
    white-space: normal;
  }
}

/* Header actions */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.header-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.4);
}

.icon-button__icon {
}

#pwa-action-btn {
  display: none !important;
}

button[aria-label='Instalar'] {
  display: none !important;
}

/* Ocultar sÃ³lo el botÃ³n de instalar en modo app, mantener el de subir */
@media all and (display-mode: standalone), all and (display-mode: fullscreen), all and (display-mode: minimal-ui), all and (display-mode: window-controls-overlay) {
  #pwa-action-btn {
    display: none !important;
  }
}

/* Fallback: ocultar cualquier antiguo flotante de descarga si persistiera en cachÃ© */
.pwa-actions {
  display: none !important;
}

/* Dialog upload */
dialog#upload-dialog {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: none;
  border-radius: 0;
  padding: 0;
  background: rgba(17, 19, 26, 0.96);
  color: var(--text-main);
  box-shadow: none;
  backdrop-filter: blur(20px);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.dialog-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
  position: relative;
}

.dialog-header h2 {
  margin: 50px 0 20px;
  text-align: center;
  letter-spacing: 0.06em;
}

#close-upload {
  position: absolute;
  right: 0;
  top: 0;
  transform: none;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
}

#upload-form .field {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 30px;
}

#upload-form .field > span {
  font: var(--font-body);
}

#upload-form {
  height: 100%;
  overflow-y: auto;
  padding: 16px 26px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  max-width: 620px;
  margin: 0 auto;
}

#upload-form .field[hidden] {
  display: none !important;
}

#upload-form input,
#upload-form select {
  width: 100%;
  padding: 13px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font: 400 16px/1.25 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

#upload-form .file-upload {
  position: relative;
  width: 100%;
}

#upload-form .file-upload input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

#upload-form .file-upload__button {
  width: 100%;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  padding: 15px 12px;
  text-align: center;
  cursor: pointer;
  font: 500 15px/1.2 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

#upload-form .file-upload__button:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

#upload-form .file-upload__button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#upload-form .file-upload.has-file .file-upload__button {
  border-style: solid;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

#upload-form .custom-select {
  position: relative;
}

#upload-form .custom-select__toggle {
  width: 100%;
  text-align: left;
  padding: 13px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  font: 400 16px/1.25 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

#upload-form .custom-select__toggle::after {
  content: '▾';
  float: right;
  color: var(--text-muted);
}

#upload-form .custom-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #141821;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  padding: 6px;
}

#upload-form .song-combobox {
  position: relative;
}

#upload-form .song-options-menu {
  max-height: min(42dvh, 320px);
  overflow-y: auto;
}

#upload-form .custom-select__option {
  display: flex;
  align-items: center;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-main);
  font: 400 16px/1.25 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

#upload-form .custom-select__option:hover {
  background: rgba(255, 255, 255, 0.06);
}

#upload-form .custom-select__option.is-selected {
  color: var(--accent);
}

#upload-form .song-option {
  justify-content: flex-start;
}

#upload-form .song-option--create {
  color: var(--text-main);
}

#upload-form .song-option__plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  margin-right: 8px;
  flex-shrink: 0;
}

#upload-form .song-option--empty {
  color: var(--text-muted);
  padding: 8px 10px;
}

.warning {
  background: rgba(234, 179, 8, 0.14);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #facc15;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 6px 0 10px;
  display: none;
}

.warning-inline {
  display: none;
  color: #facc15;
  margin-top: 6px;
}

.dialog-actions {
  display: block;
  padding: 0;
  margin: 30px 0 0;
}

.dialog-actions button {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 16px 14px;
  cursor: pointer;
  font: 400 22px/1 'Shift Pro', 'Segoe UI', sans-serif;
  letter-spacing: 0.04em;
}

#submit-upload {
  background: var(--accent);
  color: #0b0c10;
}

.hint {
  color: var(--text-muted);
  margin: 4px 0 0;
}

.progress {
  position: relative;
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 4px;
}

.progress__bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--accent);
  transition: width 0.15s ease;
}

.progress__text {
  display: block;
  text-align: right;
  color: var(--text-muted);
  margin-top: 2px;
}

/* new-index.html */
body.new-index {
  margin: 0;
  padding-bottom: 0;
  font-family: "Oooh Baby", cursive;
  color: var(--text-main);
  background:
    radial-gradient(circle at 20% -10%, #1c1f2b 0, rgba(28, 31, 43, 0) 32%),
    radial-gradient(circle at 80% 0%, rgba(6, 247, 228, 0.12) 0, rgba(6, 247, 228, 0) 32%),
    linear-gradient(160deg, #0b0c10, #10131b 60%, #0b0c10 100%);
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

body.new-index h1,
body.new-index h2,
body.new-index h3 {
  font-weight: 400;
}

body.new-index #app {
  width: 100%;
  margin: 0;
  padding: 18px 16px 30px;
  height: 100dvh;
  display: flex;
  overflow: hidden;
}

body.new-index .page {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.new-index .page-scroll-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 120px;
  scrollbar-gutter: stable;
}

body.new-index .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  margin-bottom: 16px;
}

body.new-index .header-row--brand {
  position: relative;
  margin-bottom: 22px;
  min-height: 72px;
  padding: 0 16px;
}

body.new-index .header-row--brand .page-title-group {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  pointer-events: auto;
}

body.new-index .brand-word {
  margin: 0;
  color: #ffffff;
  font-family: 'Shift Pro', 'Segoe UI', sans-serif;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
}

#nav-home {
  cursor: pointer;
}

#nav-home:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

body.new-index .header-actions {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
  margin-left: 0;
  z-index: 2;
}

body.new-index .header-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  min-width: 38px;
  z-index: 2;
}

body.new-index .icon-button,
body.new-index .back-button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.22);
}

body.new-index #upload-trigger.icon-button {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

body.new-index .back-button {
  background: rgba(255, 255, 255, 0.08) !important;
}

body.new-index .icon-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

body.new-index .albums-heading {
  width: 100%;
  max-width: 360px;
  margin: 50px auto 50px;
  font-family: 'Oooh Baby', cursive;
  font-size: 40px;
  line-height: 1;
  color: var(--text-main);
  text-align: center;
}

body.new-index .backing-tracks-heading {
  margin-top: 80px;
  margin-bottom: 50px;
}

body.new-index .album-swiper {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto 12px;
  overflow: visible;
}

body.new-index .instrument-swiper {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 587 / 1162;
  height: auto;
  margin: 0 auto 12px;
  overflow: visible;
}

body.new-index .swiper-slide {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
  background: #131722;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  height: 100%;
}

body.new-index .album-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #202634;
}

body.new-index .instrument-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #202634;
}

body.new-index .album-cover--placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-family: 'Shift Pro', 'Segoe UI', sans-serif;
  font-size: 56px;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(140deg, #223046, #1a1d26 70%);
}

body.new-index .song-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 30px;
}

body.new-index .album-detail-header {
  margin-bottom: 18px;
}

body.new-index .album-detail-cover {
  width: min(58vw, 250px);
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  margin: 8px auto 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  background: #202634;
}

body.new-index .album-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.new-index .album-detail-title {
  margin: 0;
  font-size: clamp(24px, 6.6vw, 44px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-align: center;
  max-width: calc(100vw - 36px);
  margin-inline: auto;
  overflow-wrap: anywhere;
  font-family: 'Shift Pro', 'Segoe UI', sans-serif;
  margin-bottom: 60px
}

body.new-index .song-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 2px 10px;
  border-radius: 10px;
  background: transparent;
  border: none;
  width: fit-content;
  margin: 0 auto;
}

body.new-index .song-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

body.new-index .song-title,
body.new-index .version-name {
  margin: 0;
  font-size: clamp(28px, 5.2vw, 44px);
  font-weight: 400;
  line-height: 1.08;
  text-align: center;
  color: var(--text-main);
}

body.new-index .song-link {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  cursor: pointer;
  color: inherit;
}

body.new-index .version-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
  width: 100%;
  max-width: 720px;
  padding-inline: 28px;
  box-sizing: border-box;
  margin-inline: auto;
}

body.new-index .song-detail-title {
  margin-top: 50px;
}

body.new-index .version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 0;
  box-sizing: border-box;
}

body.new-index .version-row--playable {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

body.new-index .version-row--playable:hover {
  opacity: 0.86;
}

body.new-index .version-row--disabled {
  cursor: default;
  opacity: 0.75;
}

body.new-index .version-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

body.new-index .version-name {
  text-align: left;
  font-size: clamp(18px, 3.3vw, 28px);
  line-height: 1.15;
}

body.new-index .version-row.is-playing .version-name {
  color: #06f7e4;
}

body.new-index .version-date {
  margin: 0;
  font-size: 75%;
  line-height: 1;
  text-align: left;
  color: var(--text-muted);
}

body.new-index .version-download-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  background-image: url('download-icon.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  text-decoration: none;
  font-size: 0;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

body.new-index .version-download-btn:hover {
  opacity: 0.78;
  transform: translateY(-1px);
}

body.new-index .version-download-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

body.new-index .song-actions {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  opacity: 0.95;
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

body.new-index .song-actions:hover {
  transform: scale(1.06);
}

body.new-index .song-actions:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.new-index .song-actions img {
  width: 100%;
  height: 100%;
  display: block;
}

body.new-index .loading,
body.new-index .error,
body.new-index .empty {
  margin: 24px 0;
  color: var(--text-muted);
  text-align: center;
  font-size: 15px;
}

body.new-index .error {
  color: #ff8f8f;
}

@media (max-width: 640px) {
  body.new-index #app {
    padding: 14px 12px 24px;
  }

  body.new-index .album-swiper {
    max-width: 320px;
  }

  body.new-index .instrument-swiper {
    max-width: 260px;
  }

  body.new-index .version-row {
    padding: 12px 0;
  }

  body.new-index .version-list {
    padding-inline: 20px;
  }

  body.new-index .version-download-btn {
    width: 22px;
    height: 22px;
  }
}




