.playlist {
  box-sizing: border-box;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  container-type: inline-size;
  background:
          radial-gradient(circle at 8% 0%, rgba(37, 195, 175, 0.17), transparent 34%),
          radial-gradient(circle at 100% 10%, rgba(255, 79, 163, 0.09), transparent 28%),
          radial-gradient(circle at 65% 100%, rgba(157, 78, 221, 0.12), transparent 34%),
          linear-gradient(180deg, #171717 0%, #121313 100%);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 24px;
  padding: 28px;
  color: #f2f2f2;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow:
          0 24px 80px rgba(0, 0, 0, 0.34),
          inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Hero header */

.playlist-header {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 28px;
  align-items: center;

  margin-bottom: 30px;
  padding: 34px 32px;
  min-height: 320px;

  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 195, 175, 0.24), transparent 36%),
    radial-gradient(circle at 90% 18%, rgba(255, 79, 163, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(37, 195, 175, 0.16), rgba(141, 201, 236, 0.06) 44%, rgba(157, 78, 221, 0.14)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 48px rgba(0, 0, 0, 0.24);
}

.playlist-header::before {
  content: "";
  position: absolute;
  inset: auto -30px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 195, 175, 0.18), transparent 68%);
  pointer-events: none;
}

.playlist-header::after {
  content: "💕";
  position: absolute;
  right: 28px;
  bottom: 20px;
  z-index: 3;
  color: rgba(185, 255, 247, 0.34);
  font-size: 58px;
  line-height: 1;
  text-shadow:
    0 0 18px rgba(37, 195, 175, 0.34),
    0 0 34px rgba(255, 79, 163, 0.18);
  pointer-events: none;
}

.playlist-header-content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.playlist-title {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0;
  color: #e9ffff;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow:
    0 0 22px rgba(37, 195, 175, 0.24),
    0 2px 0 rgba(0, 0, 0, 0.22);
}

.playlist-title::before {
  content: "Siren Playlist";
  display: block;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 195, 175, 0.13);
  border: 1px solid rgba(37, 195, 175, 0.28);
  color: #9af5e9;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-shadow: none;
}

.playlist-subtitle {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 18px 0 0;
  color: #b8c4c3;
  font-size: 15px;
  line-height: 1.65;
}

.playlist-subtitle::after {
  content: "Rol · Drama · Personajes";
  display: block;
  width: fit-content;
  margin-top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7f8f4;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

/* Foto de Arikel */

.playlist-header-photo-wrap {
  position: relative;
  z-index: 2;
  width: 190px;
  justify-self: end;
}

.playlist-header-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 20%, rgba(37, 195, 175, 0.30), transparent 58%),
    radial-gradient(circle at 80% 85%, rgba(255, 79, 163, 0.22), transparent 58%);
  filter: blur(14px);
  opacity: 0.85;
  z-index: -1;
}

.playlist-header-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;

  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Overlay suave para integrar la foto al hero */
.playlist-header-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 34%),
    linear-gradient(135deg, rgba(37, 195, 175, 0.12), rgba(255, 79, 163, 0.08));
  pointer-events: none;
}

/* Responsive */

@media (max-width: 720px) {
  .playlist-header {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 30px 26px;
  }

  .playlist-header-photo-wrap {
    width: min(240px, 72%);
    justify-self: start;
    margin-top: 4px;
  }

  .playlist-title {
    font-size: 30px;
  }
}

@media (max-width: 460px) {
  .playlist-header {
    padding: 26px 22px;
  }

  .playlist-title {
    font-size: 25px;
    line-height: 1.08;
  }

  .playlist-subtitle {
    font-size: 14px;
  }

  .playlist-header-photo-wrap {
    width: 100%;
  }

  .playlist-header-photo {
    aspect-ratio: 16 / 10;
    object-position: center 24%;
  }
}

/* Filtros superiores */

.tag-filters {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 24px;
  padding: 48px 18px 18px;
  border-radius: 20px;
  background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.024));
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.04),
          0 14px 34px rgba(0, 0, 0, 0.18);
}

.tag-filters {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: rgba(15, 18, 18, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.tag-filters-title {
  margin: 0;
  color: #8b9997;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-filters-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.tag-filters-main-toggle {
  font-size: 12px;
  color: #8b9997;
  opacity: 0.6;
  transition: transform 0.3s ease;
  transform: rotate(-90deg); /* Por defecto colapsado */
}

.tag-filters-content.is-collapsed-main {
  display: none;
}

.tag-filters-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tag-filters-block-title {
  margin: 0;
  color: #25c3af;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}

.tag-category {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tag-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.tag-category-title {
  margin: 0;
  color: #8b9997;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.tag-category-toggle {
  font-size: 10px;
  color: #8b9997;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.tag-category.is-collapsed .tag-category-tags {
  display: none;
}

.tag-category.is-collapsed .tag-category-toggle {
  transform: rotate(-90deg);
}

.tag-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Estilos especiales para MODE */
.tag-category-mode .tag-category-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

.tag-category-mode .tag-filter {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  font-size: 13px;
  border-width: 2px;
}

.tag-category-mode .tag-filter.is-active {
  background: rgba(37, 195, 175, 0.15);
  border-color: #25c3af;
  box-shadow: 0 0 15px rgba(37, 195, 175, 0.3);
}

.tag-filter {
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  background: rgba(255, 255, 255, 0.055);
  color: #cfcfcf;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 750;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
          background 0.18s ease,
          border-color 0.18s ease,
          color 0.18s ease,
          transform 0.18s ease,
          box-shadow 0.18s ease;
}

.tag-filter:hover {
  color: #ffffff;
  border-color: rgba(37, 195, 175, 0.40);
  background: rgba(37, 195, 175, 0.08);
  transform: translateY(-1px);
}

.tag-filter.is-active {
  background: rgba(37, 195, 175, 0.18);
  border-color: rgba(37, 195, 175, 0.58);
  color: #b9fff7;
  box-shadow:
          0 0 0 3px rgba(37, 195, 175, 0.07),
          0 0 18px rgba(37, 195, 175, 0.10),
          inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Filtros Activos */
.active-filters-zone {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.active-filters-count {
  font-size: 11px;
  color: #8b9997;
  font-weight: 700;
}

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.active-filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 79, 163, 0.1);
  border: 1px solid rgba(255, 79, 163, 0.3);
  border-radius: 999px;
  color: #ffb0d5;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.active-filter-chip:hover {
  background: rgba(255, 79, 163, 0.2);
}

.active-filter-chip .remove-icon {
  font-size: 14px;
  line-height: 1;
}

.btn-clear-all {
  background: none;
  border: none;
  color: #ff4fa3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.8;
}

.btn-clear-all:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Contador de resultados */
.results-counter {
  margin-bottom: 16px;
  font-size: 13px;
  color: #8b9997;
  font-weight: 600;
}

.results-counter span {
  color: #25c3af;
  font-weight: 800;
}

/* Ver más */
.btn-show-more {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: #8b9997;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-show-more:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.tag-filter.is-clear {
  color: #ffffff;
}

/* Reproductor / Now Playing */

.now-playing {
  --mood-accent: #25c3af;
  --mood-soft: rgba(37, 195, 175, 0.14);
  --mood-glow: rgba(37, 195, 175, 0.22);

  position: relative;
  overflow: hidden;
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 20px;
  background:
          radial-gradient(circle at 0% 50%, var(--mood-soft), transparent 42%),
          radial-gradient(circle at 100% 0%, rgba(255, 79, 163, 0.08), transparent 34%),
          linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.024)),
          #1c1f1f;
  border: 1px solid color-mix(in srgb, var(--mood-accent) 38%, transparent);
  color: #bfcaca;
  box-shadow:
          0 14px 34px rgba(0, 0, 0, 0.22),
          0 0 32px var(--mood-glow),
          inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.now-playing::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--mood-accent), #ff4fa3);
  box-shadow:
          0 0 18px var(--mood-glow),
          0 0 26px rgba(255, 79, 163, 0.16);
}

.now-playing.is-standby {
  --mood-accent: #25c3af;
  --mood-soft: rgba(37, 195, 175, 0.10);
  --mood-glow: rgba(37, 195, 175, 0.12);
  opacity: 0.92;
}

.now-playing-inner {
  position: relative;
  z-index: 1;
  display: block;
}

.now-playing-top {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.now-playing-cover {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  background: #222;
  box-shadow:
          0 12px 28px rgba(0, 0, 0, 0.28),
          0 0 24px var(--mood-glow);
}

.now-playing.is-standby .now-playing-cover {
  filter: saturate(0.78) brightness(0.84);
}

.now-playing-header {
  min-width: 0;
  margin-bottom: 0;
}

.now-playing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: color-mix(in srgb, var(--mood-accent) 72%, #ffffff);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 12px var(--mood-glow);
}

.now-playing-kicker::before {
  content: "▮▮▮";
  color: var(--mood-accent);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1px;
  animation: ari-equalizer-pulse 0.9s ease-in-out infinite alternate;
}

.now-playing.is-standby .now-playing-kicker::before {
  content: "···";
  animation: none;
  opacity: 0.6;
}

.now-playing-title {
  color: #9baaa8;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.now-playing-title strong {
  color: #e9ffff;
  font-weight: 900;
}

.now-playing.is-standby .now-playing-title strong {
  color: #b9cfcb;
}

.now-playing-next {
  margin-top: 5px;
  color: #768582;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.now-playing-next strong {
  color: #b6d2ce;
  font-weight: 850;
}

.now-playing-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 12px;
}

/* Play/Pause toggle, Next song y Shuffle toggle */

.play-pause-toggle,
.next-song,
.shuffle-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
          radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.14), transparent 42%),
          rgba(255, 255, 255, 0.06);
  color: #aebcba;
  font: inherit;
  cursor: pointer;
  box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.055),
          0 8px 18px rgba(0, 0, 0, 0.16);
  transition:
          background 0.18s ease,
          border-color 0.18s ease,
          color 0.18s ease,
          transform 0.18s ease,
          box-shadow 0.18s ease,
          filter 0.18s ease;
}

.play-pause-toggle::after,
.next-song::after,
.shuffle-toggle::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--mood-accent) 0%, transparent);
  opacity: 0;
  pointer-events: none;
  transition:
          opacity 0.18s ease,
          border-color 0.18s ease;
}

.play-pause-icon,
.next-icon,
.shuffle-icon {
  display: block;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
}

.play-pause-toggle:hover,
.next-song:hover,
.shuffle-toggle:hover {
  color: #ffffff;
  border-color: color-mix(in srgb, var(--mood-accent) 48%, transparent);
  background:
          radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 42%),
          color-mix(in srgb, var(--mood-accent) 12%, transparent);
  transform: translateY(-1px);
}

.play-pause-toggle:hover::after,
.next-song:hover::after,
.shuffle-toggle:hover::after {
  opacity: 1;
  border-color: color-mix(in srgb, var(--mood-accent) 22%, transparent);
}

.shuffle-toggle.is-active {
  color: #06110f;
  background:
          radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.32), transparent 40%),
          var(--mood-accent);
  border-color: color-mix(in srgb, var(--mood-accent) 80%, #ffffff);
  box-shadow:
          0 0 0 5px color-mix(in srgb, var(--mood-accent) 14%, transparent),
          0 0 24px var(--mood-glow),
          0 12px 26px color-mix(in srgb, var(--mood-accent) 20%, transparent),
          inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.play-pause-toggle:active,
.next-song:active,
.shuffle-toggle:active {
  transform: scale(0.94);
}

.play-pause-toggle {
  color: var(--mood-accent);
  background:
          radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 42%),
          rgba(255, 255, 255, 0.08);
  border-color: color-mix(in srgb, var(--mood-accent) 32%, transparent);
}

.play-pause-icon {
  font-size: 18px;
  transform: translateX(1px);
}

.next-icon {
  font-size: 18px;
  transform: translateY(-1px);
}

.now-playing.is-playing .play-pause-toggle {
  background: var(--mood-accent);
  color: #06110f;
  border-color: color-mix(in srgb, var(--mood-accent) 80%, #ffffff);
  box-shadow:
          0 0 0 5px color-mix(in srgb, var(--mood-accent) 14%, transparent),
          0 0 24px var(--mood-glow),
          inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.now-playing.is-playing .play-pause-icon {
  transform: translateX(0);
}

.now-playing.is-shuffle .now-playing-next strong {
  color: #ffb7dd;
}

/* SoundCloud integrado */

.soundcloud-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.035),
          0 10px 24px rgba(0, 0, 0, 0.18);
}

.soundcloud-frame iframe {
  display: block;
  width: 100%;
  min-height: 96px;
  border: 0;
}

/* Lista */

.song-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.song-empty {
  padding: 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #aaa;
  text-align: center;
  font-size: 14px;
}

/* Card */

.song {
  --mood-accent: #25c3af;
  --mood-soft: rgba(37, 195, 175, 0.14);
  --mood-glow: rgba(37, 195, 175, 0.22);

  position: relative;
  border-radius: 20px;
  background:
          radial-gradient(circle at 0% 50%, var(--mood-soft), transparent 35%),
          linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
          #202020;
  border: 1px solid rgba(255, 255, 255, 0.075);
  overflow: hidden;
  box-shadow:
          0 12px 30px rgba(0, 0, 0, 0.20),
          inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition:
          background 0.18s ease,
          border-color 0.18s ease,
          transform 0.18s ease,
          box-shadow 0.18s ease;
}

.song::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
  transition:
          background 0.18s ease,
          box-shadow 0.18s ease;
}

.song:hover {
  background:
          radial-gradient(circle at 0% 50%, var(--mood-soft), transparent 42%),
          linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.024)),
          #242424;
  border-color: color-mix(in srgb, var(--mood-accent) 30%, rgba(255, 255, 255, 0.12));
  transform: translateY(-1px);
  box-shadow:
          0 18px 38px rgba(0, 0, 0, 0.26),
          0 0 26px color-mix(in srgb, var(--mood-accent) 8%, transparent),
          inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Moods */

.song.mood-dark {
  --mood-accent: #9d4edd;
  --mood-soft: rgba(157, 78, 221, 0.14);
  --mood-glow: rgba(157, 78, 221, 0.26);
}

.song.mood-chisparina {
  --mood-accent: #25c3af;
  --mood-soft: rgba(37, 195, 175, 0.15);
  --mood-glow: rgba(37, 195, 175, 0.26);
}

.song.mood-drama {
  --mood-accent: #ff4fa3;
  --mood-soft: rgba(255, 79, 163, 0.13);
  --mood-glow: rgba(255, 79, 163, 0.24);
}

.song.mood-default {
  --mood-accent: #25c3af;
  --mood-soft: rgba(37, 195, 175, 0.14);
  --mood-glow: rgba(37, 195, 175, 0.22);
}

/* Zona principal */

.song-main {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 112px;
  gap: 24px;
  min-height: 160px;
  align-items: stretch;
}

.cover {
  width: 160px;
  height: 160px;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  background: #333;
  display: block;
  box-shadow:
          14px 0 30px rgba(0, 0, 0, 0.18);
}

.song-info {
  position: relative;
  align-self: center;
  min-width: 0;
  padding: 30px 0 18px;
}

.song-info::before {
  content: "▮▮▮";
  position: absolute;
  left: 0;
  top: 13px;
  z-index: 2;
  color: var(--mood-accent);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(0);
  text-shadow: 0 0 10px var(--mood-glow);
  pointer-events: none;
}

.song.is-playing .song-info::before {
  opacity: 1;
  animation: ari-equalizer-pulse 0.9s ease-in-out infinite alternate;
}

.song-title {
  display: -webkit-box;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #e2e2e2;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.025em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.song-artist {
  margin: 5px 0 0;
  color: #858585;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 650;
}

/* Tags internos compactos */

.song-tags {
  display: block;
  margin-top: 13px;
  max-width: 100%;
  color: color-mix(in srgb, var(--mood-accent) 78%, #ffffff);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.005em;
  white-space: normal;
}

.song-tag {
  display: inline-block;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
}

.song-tag:not(:last-child)::after {
  content: " · ";
  margin: 0 4px;
  color: rgba(255, 255, 255, 0.28);
}

/* Botón Letra */

.lyrics-toggle {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d7d7d7;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.18s ease;
}

.lyrics-toggle::before {
  content: "+ ";
  color: var(--mood-accent);
  font-weight: 900;
  margin-right: 4px;
}

.song.is-lyrics-open .lyrics-toggle::before {
  content: "− ";
}

.lyrics-toggle:hover {
  color: var(--mood-accent);
}

/* Acciones */

.song-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  padding: 18px 22px 18px 0;
}

.song-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.song-description-btn,
.copy-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin: 0;
  border-radius: 999px;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition:
          background 0.18s ease,
          border-color 0.18s ease,
          color 0.18s ease,
          transform 0.18s ease,
          box-shadow 0.18s ease;
}

.song-description-btn {
  gap: 6px;
  width: auto;
  padding: 6px 12px;
  border: 1px solid rgba(141, 201, 236, 0.24);
  background: rgba(141, 201, 236, 0.075);
  color: #b9dff3;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.song-description-btn::before {
  content: "✧";
  color: var(--mood-accent);
  font-size: 12px;
  line-height: 1;
}

.song-description-btn:hover {
  color: #ffffff;
  background: color-mix(in srgb, var(--mood-accent) 15%, transparent);
  border-color: color-mix(in srgb, var(--mood-accent) 52%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mood-accent) 8%, transparent);
}

.copy-link-btn {
  width: 30px;
  min-width: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.055);
  color: #cbd6d5;
  font-size: 13px;
}

.copy-link-btn:hover {
  color: #ffffff;
  background: color-mix(in srgb, var(--mood-accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--mood-accent) 46%, transparent);
  transform: translateY(-1px);
}

.copy-link-btn.is-copied {
  color: #06110f;
  background: var(--mood-accent);
  border-color: var(--mood-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mood-accent) 12%, transparent);
}

.play-btn {
  width: 56px;
  height: 56px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background:
          radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.28), transparent 36%),
          var(--mood-accent);
  color: #06110f;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow:
          0 10px 26px color-mix(in srgb, var(--mood-accent) 22%, transparent),
          inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
          filter 0.18s ease,
          box-shadow 0.18s ease,
          transform 0.18s ease;
}

.play-btn:hover {
  filter: brightness(1.08);
  transform: scale(1.04);
  box-shadow:
          0 14px 30px color-mix(in srgb, var(--mood-accent) 30%, transparent),
          0 0 0 6px color-mix(in srgb, var(--mood-accent) 12%, transparent),
          inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.play-btn:active {
  transform: scale(0.96);
}

/* Estado activo */

.song.is-playing {
  background:
          radial-gradient(circle at 0% 50%, var(--mood-soft), transparent 42%),
          radial-gradient(circle at 82% 20%, rgba(255, 79, 163, 0.10), transparent 28%),
          linear-gradient(180deg, color-mix(in srgb, var(--mood-accent) 11%, transparent), rgba(255, 255, 255, 0.018)),
          #1a2321;
  border-color: color-mix(in srgb, var(--mood-accent) 64%, transparent);
  box-shadow:
          0 0 0 1px color-mix(in srgb, var(--mood-accent) 16%, transparent),
          0 18px 42px color-mix(in srgb, var(--mood-accent) 12%, transparent),
          0 0 42px color-mix(in srgb, var(--mood-accent) 10%, transparent),
          inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.song.is-playing::before {
  background: linear-gradient(180deg, var(--mood-accent), #ff4fa3);
  box-shadow:
          0 0 18px var(--mood-glow),
          0 0 28px rgba(255, 79, 163, 0.18);
}

.song.is-playing .song-title {
  color: #efffff;
}

.song.is-playing .song-artist {
  color: #a4c2be;
}

.song.is-playing .song-tags {
  color: color-mix(in srgb, var(--mood-accent) 72%, #ffffff);
  text-shadow: 0 0 10px var(--mood-glow);
}

.song.is-playing .cover {
  box-shadow:
          14px 0 30px rgba(0, 0, 0, 0.20),
          0 0 34px var(--mood-glow);
}

.song.is-playing .play-btn {
  box-shadow:
          0 0 0 8px color-mix(in srgb, var(--mood-accent) 18%, transparent),
          0 0 24px color-mix(in srgb, var(--mood-accent) 32%, transparent),
          0 14px 34px color-mix(in srgb, var(--mood-accent) 26%, transparent),
          inset 0 1px 0 rgba(255, 255, 255, 0.30);
  animation: ari-play-glow 1.4s ease-in-out infinite alternate;
}

@keyframes ari-equalizer-pulse {
  from {
    opacity: 0.45;
    transform: translateY(1px);
  }

  to {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@keyframes ari-play-glow {
  from {
    box-shadow:
            0 0 0 6px color-mix(in srgb, var(--mood-accent) 12%, transparent),
            0 0 20px color-mix(in srgb, var(--mood-accent) 24%, transparent),
            0 14px 34px color-mix(in srgb, var(--mood-accent) 20%, transparent),
            inset 0 1px 0 rgba(255, 255, 255, 0.30);
  }

  to {
    box-shadow:
            0 0 0 10px color-mix(in srgb, var(--mood-accent) 20%, transparent),
            0 0 34px color-mix(in srgb, var(--mood-accent) 34%, transparent),
            0 14px 34px color-mix(in srgb, var(--mood-accent) 26%, transparent),
            inset 0 1px 0 rgba(255, 255, 255, 0.30);
  }
}

/* Bloque inferior de letra */

.now-playing-lyrics-container {
  margin-top: 10px;
}

.now-playing-toggles {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.now-playing-lyrics-toggle,
.now-playing-lore-toggle {
  flex: 1;
  display: block;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #d5d5d5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.now-playing-lyrics-toggle:hover,
.now-playing-lore-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: color-mix(in srgb, var(--mood-accent) 40%, transparent);
  color: #ffffff;
}

.now-playing-lyrics-toggle.is-active,
.now-playing-lore-toggle.is-active {
  background: color-mix(in srgb, var(--mood-accent) 15%, transparent);
  border-color: color-mix(in srgb, var(--mood-accent) 30%, transparent);
  color: var(--mood-accent);
}

.now-playing-lyrics,
.now-playing-lore {
  display: none;
  padding: 0 0 14px;
}

.now-playing-lyrics.is-expanded,
.now-playing-lore.is-expanded {
  display: block;
  animation: slideDownFade 0.3s ease-out;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.song-lyrics {
  padding: 10px 12px 14px;
}

.now-playing-lyrics pre::before {
  display: none;
}

.now-playing-lyrics-title {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--mood-accent);
  text-shadow: 0 0 15px color-mix(in srgb, var(--mood-accent) 30%, transparent);
}

.now-playing-lyrics pre,
.now-playing-lore pre,
.song-lyrics pre {
  position: relative;
  margin: 0;
  padding: 22px 24px 24px;
  border-left: 3px solid var(--mood-accent);
  border-radius: 16px;
  background:
          radial-gradient(circle at top left, var(--mood-soft), transparent 34%),
          linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.026));
  color: #d5d5d5;
  line-height: 1.72;
  white-space: pre-wrap;
  overflow: visible;
  overflow-x: visible;
  overflow-y: visible;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 14px;
  max-height: none;
  box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.035),
          0 10px 28px rgba(0, 0, 0, 0.16);
}

.now-playing-lyrics pre::before,
.now-playing-lore pre::before,
.song-lyrics pre::before {
  content: "Lyrics";
  display: block;
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mood-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--mood-accent) 28%, transparent);
  color: color-mix(in srgb, var(--mood-accent) 78%, #ffffff);
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.now-playing-lore pre::before {
  content: "Lore";
}


/* Modal de descripción */

.ari-modal-open {
  overflow: hidden;
}

.ari-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.ari-modal.is-open {
  display: flex;
}

.ari-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.ari-modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(70vh, 620px);
  overflow: auto;
  box-sizing: border-box;
  padding: 28px;
  border-radius: 18px;
  background:
          radial-gradient(circle at top left, rgba(37, 195, 175, 0.11), transparent 35%),
          #1d1d1d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  color: #f2f2f2;
}

.ari-modal-title {
  margin: 0 42px 16px 0;
  color: #8dc9ec;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
}

.ari-modal-text {
  margin: 0;
  color: #d2d2d2;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.ari-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition:
          background 0.18s ease,
          transform 0.18s ease;
}

.ari-modal-close:hover {
  background: rgba(37, 195, 175, 0.28);
  transform: scale(1.05);
}

/* Responsive */

@media (max-width: 620px) {
  .playlist {
    max-width: 100%;
    padding: 20px;
    border-radius: 20px;
  }

  .playlist-header {
    margin-bottom: 24px;
    padding: 28px 22px;
    border-radius: 20px;
  }

  .playlist-title {
    font-size: 25px;
  }

  .playlist-subtitle {
    margin-top: 16px;
    font-size: 14px;
  }

  .playlist-subtitle::after {
    font-size: 11px;
  }

  .tag-filters {
    margin: 0 0 20px;
    padding: 44px 14px 14px;
    gap: 8px;
  }

  .tag-filter {
    min-height: 28px;
    padding: 5px 11px;
    font-size: 11px;
  }

  .now-playing {
    margin: 0 0 20px;
    padding: 16px;
  }

  .now-playing-inner {
    display: block;
  }

  .now-playing-top {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 14px;
  }

  .now-playing-cover {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .now-playing-title {
    font-size: 12px;
  }

  .now-playing-next {
    font-size: 11px;
  }

  .shuffle-toggle {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .shuffle-icon {
    font-size: 19px;
  }

  .soundcloud-frame iframe {
    min-height: 96px;
  }

  .song-main {
    grid-template-columns: 126px minmax(0, 1fr) 72px;
    min-height: 126px;
    gap: 16px;
  }

  .cover {
    width: 126px;
    height: 126px;
  }

  .song-info {
    padding: 26px 0 16px;
  }

  .song-info::before {
    top: 10px;
    font-size: 10px;
  }

  .song-title {
    font-size: 16px;
  }

  .song-artist {
    font-size: 11px;
  }

  .song-tags {
    margin-top: 10px;
    font-size: 11px;
  }

  .lyrics-toggle {
    margin-top: 12px;
    font-size: 13px;
  }

  .song-actions {
    gap: 22px;
    padding: 12px 12px 12px 0;
  }

  .song-action-row {
    flex-direction: column;
    gap: 6px;
  }

  .song-description-btn {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 10px;
  }

  .copy-link-btn {
    width: 26px;
    min-width: 26px;
    min-height: 26px;
    font-size: 12px;
  }

  .play-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .song-lyrics {
    padding: 10px 12px 14px;
  }

  .song-lyrics pre {
    padding: 16px 17px 18px;
    font-size: 13px;
  }

  .ari-modal-panel {
    padding: 22px;
  }

  .ari-modal-title {
    font-size: 19px;
  }

  .ari-modal-text {
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .playlist {
    padding: 16px;
  }

  .playlist-header {
    padding: 24px 18px;
  }

  .playlist-title {
    font-size: 22px;
  }

  .now-playing {
    padding: 14px;
  }

  .now-playing-top {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }

  .now-playing-cover {
    width: 52px;
    height: 52px;
    border-radius: 11px;
  }

  .now-playing-kicker {
    font-size: 9px;
  }

  .now-playing-title {
    font-size: 12px;
  }

  .shuffle-toggle {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .shuffle-icon {
    font-size: 18px;
  }

  .song-main {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas:
      "cover info"
      "cover actions";
    min-height: 96px;
    gap: 14px;
  }

  .cover {
    grid-area: cover;
    width: 96px;
    height: 96px;
  }

  .song-info {
    grid-area: info;
    padding: 26px 12px 0 0;
  }

  .song-info::before {
    top: 10px;
    font-size: 9px;
  }

  .song-title {
    font-size: 15px;
  }

  .song-actions {
    grid-area: actions;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px 12px 0;
  }

  .song-action-row {
    flex-direction: row;
    gap: 8px;
  }

  .song-description-btn {
    order: 2;
  }

  .copy-link-btn {
    order: 3;
  }

  .play-btn {
    order: 1;
    width: 38px;
    height: 38px;
  }

  .song-lyrics {
    padding: 10px 12px 14px;
  }
}
/* =========================================================
   PATCH FINAL: títulos legibles + separación de LORE/LINK
   ========================================================= */

/* Más aire entre portada, texto y columna de acciones */
.song-main {
  grid-template-columns: 160px minmax(0, 1fr) 150px;
  gap: 30px;
}

/* Evita que el foro/tema herede justificación de texto */
.song-info,
.song-title,
.song-artist,
.song-tags,
.lyrics-toggle {
  text-align: left;
  text-align-last: left;
}

/* Títulos más naturales: sin espacios exagerados entre palabras */
.song-title {
  display: block;
  max-width: 100%;
  margin: 0;

  color: #e8e8e8;
  font-size: 21px;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.045em;
  word-spacing: normal;

  text-align: left;
  text-align-last: left;

  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;

  overflow: visible;
  text-overflow: clip;

  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

.song.is-playing .song-title {
  color: #efffff;
}

/* El artista queda más pegado al título, con mejor jerarquía */
.song-artist {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.2;
}

/* Tags un poco más abajo para que el bloque respire */
.song-tags {
  margin-top: 15px;
}

/* Acciones más separadas del título */
.song-actions {
  padding: 20px 28px 20px 0;
  gap: 30px;
}

.song-action-row {
  gap: 10px;
  justify-content: flex-end;
}

.song-description-btn,
.copy-link-btn {
  flex-shrink: 0;
}

.song-description-btn {
  min-width: 88px;
  padding-inline: 14px;
}

.copy-link-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
}

/* Ajuste de responsive para mantener equilibrio */
@media (max-width: 620px) {
  .song-main {
    grid-template-columns: 126px minmax(0, 1fr) 86px;
    gap: 18px;
  }

  .song-title {
    font-size: 17px;
    line-height: 1.06;
    letter-spacing: -0.035em;
  }

  .song-actions {
    padding: 12px 14px 12px 0;
    gap: 22px;
  }

  .song-description-btn {
    min-width: auto;
    padding-inline: 10px;
  }

  .copy-link-btn {
    width: 28px;
    min-width: 28px;
    height: 28px;
  }
}

@media (max-width: 430px) {
  .song-main {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas:
      "cover info"
      "cover actions";
  }

  .song-title {
    font-size: 15px;
    line-height: 1.08;
  }

  .song-actions {
    padding: 0 12px 12px 0;
  }
}

.song-artist-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;

  margin-top: 7px;
  color: #858585;
}

.song-artist-name {
  color: inherit;
}

.song-meta-separator {
  margin: 0 7px;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 800;
}

.song-cover-link {
  color: color-mix(in srgb, var(--mood-accent) 72%, #ffffff);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  transition:
          color 0.18s ease,
          text-shadow 0.18s ease;
}

.song-cover-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px var(--mood-glow);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.song-cover-link:focus-visible {
  outline: 2px solid var(--mood-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.song.is-playing .song-cover-link {
  color: color-mix(in srgb, var(--mood-accent) 82%, #ffffff);
}

/* =========================================================
   CARD REDESIGN: portada protagonista + acciones compactas
   ========================================================= */

.song-list {
  gap: 16px;
}

.song {
  --cover-min: 360px;

  border-radius: 30px;
  background:
    radial-gradient(circle at 4% 0%, rgba(255, 79, 122, 0.18), transparent 30%),
    radial-gradient(circle at 46% 22%, color-mix(in srgb, var(--mood-accent) 18%, transparent), transparent 34%),
    radial-gradient(circle at 98% 84%, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018) 48%, rgba(255, 255, 255, 0.036)),
    #111518;
  border: 1px solid color-mix(in srgb, var(--mood-accent) 20%, rgba(255, 255, 255, 0.10));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.36),
    0 0 52px color-mix(in srgb, var(--mood-accent) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.song::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: 34%;
  background:
    radial-gradient(circle at 0% 8%, rgba(255, 79, 122, 0.18), transparent 44%),
    radial-gradient(circle at 70% 78%, color-mix(in srgb, var(--mood-accent) 24%, transparent), transparent 54%);
  filter: blur(22px);
  opacity: 0.72;
  pointer-events: none;
}

.song::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), transparent 20%);
  opacity: 0.72;
}

.song:hover {
  background:
    radial-gradient(circle at 4% 0%, rgba(255, 79, 122, 0.22), transparent 32%),
    radial-gradient(circle at 46% 22%, color-mix(in srgb, var(--mood-accent) 22%, transparent), transparent 36%),
    radial-gradient(circle at 98% 84%, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.024) 48%, rgba(255, 255, 255, 0.042)),
    #14191d;
  border-color: color-mix(in srgb, var(--mood-accent) 42%, rgba(255, 255, 255, 0.14));
  box-shadow:
    0 34px 92px rgba(0, 0, 0, 0.42),
    0 0 64px color-mix(in srgb, var(--mood-accent) 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.song-mini-card {
  border-radius: 18px;
  cursor: pointer;
  background:
    radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--mood-accent) 11%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.044), rgba(255, 255, 255, 0.016)),
    #141719;
  border-color: color-mix(in srgb, var(--mood-accent) 14%, rgba(255, 255, 255, 0.08));
  box-shadow:
    0 9px 22px rgba(0, 0, 0, 0.22),
    0 0 18px color-mix(in srgb, var(--mood-accent) 5%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.song-mini-card::before {
  width: 42%;
  filter: blur(16px);
  opacity: 0.32;
}

.song-mini-card::after {
  opacity: 0.34;
}

.song-mini-card:hover {
  border-color: color-mix(in srgb, var(--mood-accent) 34%, rgba(255, 255, 255, 0.12));
  background:
    radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--mood-accent) 17%, transparent), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.020)),
    #171b1d;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.26),
    0 0 26px color-mix(in srgb, var(--mood-accent) 9%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.song-mini {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  min-height: 76px;
  padding: 0 12px 0 0;
}

.song-mini-cover {
  display: block;
  align-self: stretch;
  width: 76px;
  height: 100%;
  min-height: 76px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px 0 0 18px;
  border: 0;
  border-right: 1px solid color-mix(in srgb, var(--mood-accent) 34%, rgba(255, 255, 255, 0.12));
  background: #242424;
  box-shadow:
    10px 0 20px rgba(0, 0, 0, 0.18),
    8px 0 18px color-mix(in srgb, var(--mood-accent) 7%, transparent);
}

.song-mini-info {
  min-width: 0;
}

.song-mini-title {
  margin: 0;
  overflow: hidden;
  color: #f1f4f4;
  font-size: 17px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.026em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-mini-artist {
  margin: 5px 0 0;
  overflow: hidden;
  color: rgba(235, 242, 241, 0.48);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-mini .song-action-btn,
.song-mini .play-btn,
.song-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  width: auto;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.10), transparent 42%),
    rgba(255, 255, 255, 0.045);
  color: rgba(235, 242, 241, 0.72);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 820;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 8px 18px rgba(0, 0, 0, 0.14);
}

.song-mini .play-btn {
  color: #f1fffd;
  border-color: color-mix(in srgb, var(--mood-accent) 48%, rgba(255, 255, 255, 0.14));
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.14), transparent 42%),
    color-mix(in srgb, var(--mood-accent) 18%, rgba(255, 255, 255, 0.045));
}

.song-mini .play-btn-icon {
  width: 23px;
  height: 23px;
  min-width: 23px;
  font-size: 10px;
}

.song-expand-btn:hover,
.song-mini .song-action-btn:hover {
  color: #ffffff;
  border-color: color-mix(in srgb, var(--mood-accent) 42%, rgba(255, 255, 255, 0.12));
  transform: translateY(-1px);
}

.song-collapse-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  color: rgba(235, 242, 241, 0.76);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 10px 22px rgba(0, 0, 0, 0.20);
}

.song-collapse-btn:hover {
  color: #ffffff;
  border-color: color-mix(in srgb, var(--mood-accent) 44%, rgba(255, 255, 255, 0.14));
}

.song-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 56px);
  min-height: auto;
  align-items: stretch;
  padding: clamp(24px, 4vw, 44px);
}

.song-cover-frame {
  position: relative;
  align-self: stretch;
  min-width: 0;
}

.song-cover-frame::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 2% 16%, rgba(255, 79, 122, 0.34), transparent 42%),
    radial-gradient(circle at 94% 52%, color-mix(in srgb, var(--mood-accent) 46%, transparent), transparent 58%);
  filter: blur(16px);
  opacity: 0.92;
  pointer-events: none;
}

.cover {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--mood-accent) 62%, rgba(255, 255, 255, 0.18));
  background: #242424;
  box-shadow:
    -18px 0 44px rgba(255, 79, 122, 0.14),
    18px 0 46px color-mix(in srgb, var(--mood-accent) 22%, transparent),
    0 30px 68px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.song-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 10px 0;
}

.song-info {
  align-self: auto;
  padding: 0;
}

.song-info::before {
  display: none;
}

.song.is-playing .song-info::before {
  display: none;
}

.song-title {
  display: block;
  max-width: 100%;
  margin: 0;
  overflow: visible;
  color: #f1f4f4;
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.038em;
  text-wrap: balance;
  text-shadow:
    0 0 26px rgba(255, 255, 255, 0.045),
    0 3px 0 rgba(0, 0, 0, 0.34);
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

.song.is-playing .song-title {
  color: #efffff;
  text-shadow:
    0 0 18px color-mix(in srgb, var(--mood-accent) 22%, transparent),
    0 2px 0 rgba(0, 0, 0, 0.32);
}

.song-artist,
.song-artist-meta {
  margin: 0;
}

.song-artist-meta {
  display: block;
  margin-top: 20px;
}

.song-artist {
  color: rgba(235, 242, 241, 0.50);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.song-source {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  margin-top: 18px;
  color: color-mix(in srgb, var(--mood-accent) 86%, #ffffff);
  font-size: 20px;
  line-height: 1.34;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.song-source-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--mood-accent) 28%, transparent), transparent 64%),
    rgba(255, 255, 255, 0.045);
  color: var(--mood-accent);
  font-size: 12px;
  letter-spacing: 1px;
  text-shadow: 0 0 14px var(--mood-glow);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 22px color-mix(in srgb, var(--mood-accent) 14%, transparent);
}

.song-cover-link {
  color: color-mix(in srgb, var(--mood-accent) 86%, #ffffff);
}

.song-cover-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-shadow: 0 0 14px var(--mood-glow);
}

.song-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-height: none;
  overflow: hidden;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.60);
  font-size: 16px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.006em;
  text-shadow: none;
}

.song-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  max-width: 100%;
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.050);
  color: rgba(235, 242, 241, 0.60);
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 10px 20px rgba(0, 0, 0, 0.10);
}

.song-tag:not(:last-child)::after {
  content: "";
  margin: 0;
}

.song-actions {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.song-action-row {
  display: contents;
}

.song-action-btn,
.lyrics-toggle,
.song-description-btn,
.copy-link-btn,
.play-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 58px;
  height: 58px;
  width: auto;
  margin: 0;
  padding: 0 22px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.10), transparent 42%),
    rgba(255, 255, 255, 0.045);
  color: rgba(235, 242, 241, 0.68);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: -0.018em;
  text-transform: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 10px 22px rgba(0, 0, 0, 0.14);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.lyrics-toggle::before,
.song-description-btn::before {
  content: none;
}

.song-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--mood-accent) 78%, #ffffff);
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 0 10px var(--mood-glow);
}

.song-action-btn:hover,
.lyrics-toggle:hover,
.song-description-btn:hover,
.copy-link-btn:hover,
.play-btn:hover {
  color: #ffffff;
  border-color: color-mix(in srgb, var(--mood-accent) 46%, rgba(255, 255, 255, 0.12));
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.14), transparent 42%),
    color-mix(in srgb, var(--mood-accent) 12%, rgba(255, 255, 255, 0.045));
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--mood-accent) 8%, transparent),
    0 14px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.copy-link-btn.is-copied {
  color: #06110f;
  background: var(--mood-accent);
  border-color: var(--mood-accent);
}

.play-btn {
  padding: 0 26px 0 18px;
  color: #f1fffd;
  border-color: color-mix(in srgb, var(--mood-accent) 50%, rgba(255, 255, 255, 0.14));
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.14), transparent 42%),
    color-mix(in srgb, var(--mood-accent) 18%, rgba(255, 255, 255, 0.045));
}

.play-btn-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  background: var(--mood-accent);
  color: #06110f;
  font-size: 14px;
  line-height: 1;
  box-shadow:
    0 0 18px color-mix(in srgb, var(--mood-accent) 38%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.play-btn-text {
  display: inline-block;
}

.play-btn:hover {
  filter: none;
  transform: translateY(-1px);
}

.play-btn:active,
.song-action-btn:active {
  transform: scale(0.97);
}

.song.is-playing {
  background:
    radial-gradient(circle at 4% 0%, rgba(255, 79, 122, 0.24), transparent 32%),
    radial-gradient(circle at 46% 22%, color-mix(in srgb, var(--mood-accent) 28%, transparent), transparent 38%),
    radial-gradient(circle at 98% 84%, rgba(255, 255, 255, 0.07), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--mood-accent) 11%, transparent), rgba(255, 255, 255, 0.026) 48%, rgba(255, 255, 255, 0.042)),
    #121b1e;
  border-color: color-mix(in srgb, var(--mood-accent) 58%, rgba(255, 255, 255, 0.16));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--mood-accent) 18%, transparent),
    0 34px 92px rgba(0, 0, 0, 0.42),
    0 0 64px color-mix(in srgb, var(--mood-accent) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.song.is-playing .cover {
  border-color: color-mix(in srgb, var(--mood-accent) 64%, rgba(255, 255, 255, 0.16));
  box-shadow:
    0 26px 62px rgba(0, 0, 0, 0.48),
    0 0 42px var(--mood-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.song.is-playing .song-tags {
  color: rgba(255, 255, 255, 0.62);
  text-shadow: none;
}

.song.is-playing .play-btn {
  animation: none;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--mood-accent) 10%, transparent),
    0 0 24px color-mix(in srgb, var(--mood-accent) 24%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.song-lyrics {
  position: relative;
  z-index: 1;
  padding: 0 clamp(20px, 3vw, 30px) clamp(20px, 3vw, 30px);
}

@media (max-width: 980px) {
  .song-main {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 24px;
  }

  .cover {
    border-radius: 24px;
  }

  .song-body {
    padding: 0;
  }

  .song-title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .song-actions {
    margin-top: 28px;
    padding-top: 24px;
  }
}

@media (max-width: 430px) {
  .song-main {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: none;
    padding: 16px;
  }

  .song-cover-frame,
  .cover,
  .song-info,
  .song-actions {
    grid-area: auto;
  }

  .song-title {
    font-size: 30px;
    line-height: 1.04;
  }

  .song-artist,
  .song-artist-meta {
    font-size: 15px;
  }

  .song-source {
    gap: 10px;
    font-size: 15px;
  }

  .song-source-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 10px;
  }

  .song-tags {
    gap: 9px;
    margin-top: 22px;
    font-size: 13px;
  }

  .song-tag {
    min-height: 31px;
    padding: 0 12px;
  }

  .song-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 20px 0 0;
  }

  .song-action-btn,
  .lyrics-toggle,
  .song-description-btn,
  .copy-link-btn,
  .play-btn {
    width: 100%;
    min-height: 48px;
    height: 48px;
    padding: 0 12px;
    font-size: 14px;
  }

  .play-btn {
    grid-column: span 2;
  }
}

@container (max-width: 980px) {
  .song-main {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }

  .cover {
    border-radius: 24px;
  }

  .song-body {
    padding: 0;
  }

  .song-title {
    font-size: clamp(28px, 6.6cqw, 40px);
    line-height: 1.03;
  }

  .song-artist-meta {
    margin-top: 12px;
  }

  .song-artist {
    font-size: 17px;
  }

  .song-source {
    gap: 10px;
    margin-top: 12px;
    font-size: clamp(14px, 2.8cqw, 17px);
  }

  .song-source-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 9px;
  }

  .song-tags {
    gap: 6px;
    margin-top: 18px;
    font-size: 12px;
  }

  .song-tag {
    min-height: 24px;
    padding: 0 9px;
  }

  .song-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
  }

  .song-action-btn,
  .lyrics-toggle,
  .song-description-btn,
  .copy-link-btn,
  .play-btn {
    width: 100%;
    min-height: 38px;
    height: 38px;
    gap: 5px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: 12px;
  }

  .song-action-icon {
    font-size: 12px;
  }

  .play-btn {
    padding: 0 7px 0 5px;
  }

  .play-btn-icon {
    width: 23px;
    height: 23px;
    min-width: 23px;
    font-size: 10px;
  }
}

@container (max-width: 520px) {
  .song-mini {
    grid-template-columns: 60px minmax(0, 1fr) auto auto;
    gap: 8px;
    min-height: 60px;
    padding: 0 10px 0 0;
  }

  .song-mini-cover {
    width: 60px;
    height: 100%;
    min-height: 60px;
    border-radius: 18px 0 0 18px;
  }

  .song-mini-title {
    font-size: 14px;
  }

  .song-mini-artist {
    font-size: 11px;
  }

  .song-mini .song-action-btn,
  .song-mini .play-btn,
  .song-expand-btn {
    height: 32px;
    min-height: 32px;
    padding: 0 7px;
    border-radius: 9px;
    font-size: 11px;
  }

  .song-mini .play-btn-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    font-size: 9px;
  }

  .song-mini .play-btn-text {
    display: none;
  }

  .song-main {
    padding: 16px;
  }

  .song-title {
    font-size: clamp(24px, 8cqw, 31px);
  }

  .song-artist {
    font-size: 14px;
  }

  .song-source {
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
  }

  .song-source-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 8px;
  }

  .song-tags {
    gap: 5px;
    margin-top: 16px;
    font-size: 11px;
  }

  .song-tag {
    min-height: 22px;
    padding: 0 8px;
  }

  .song-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 16px 0 0;
  }

  .song-action-btn,
  .lyrics-toggle,
  .song-description-btn,
  .copy-link-btn,
  .play-btn {
    width: 100%;
    min-height: 34px;
    height: 34px;
    padding: 0 4px;
    font-size: 11px;
  }

  .play-btn {
    grid-column: auto;
  }
}
