:root {
  color-scheme: dark;
  --bg-gradient: radial-gradient(circle at 20% 10%, rgba(255, 47, 146, 0.55), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(0, 204, 255, 0.45), transparent 50%),
    radial-gradient(circle at 12% 80%, rgba(249, 155, 40, 0.4), transparent 52%),
    linear-gradient(140deg, #07040d 0%, #05030b 45%, #020106 100%);
  --glass: rgba(10, 8, 20, 0.8);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text-primary: #fdf6ff;
  --text-secondary: rgba(240, 225, 255, 0.72);
  --accent: #ff2f92;
  --accent-strong: #ff6fd8;
  --accent-alt: #00c6ff;
  --surface-hover: rgba(255, 255, 255, 0.12);
  --shadow-lg: 0 32px 90px rgba(10, 6, 30, 0.7);
  font-family: "DM Sans", "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #03010a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  background: #03010a;
  width: 100%;
  overflow-x: hidden;
}

.gradient-bg {
  position: fixed;
  inset: 0;
  background: var(--bg-gradient);
  filter: saturate(135%) brightness(110%);
  z-index: -2;
  animation: float 18s ease-in-out infinite alternate;
}

@keyframes float {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(0, -1%, 0);
  }
}

.page {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem) 6rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  overflow-x: clip;
}

.page > * {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero__panel,
.player-panel {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__panel {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  justify-content: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  line-height: 1.05;
}

.hero__heading {
  letter-spacing: -0.02em;
}

.station-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tagline {
  margin: 0;
  max-width: 52ch;
  color: var(--text-secondary);
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn__icon {
  display: inline-flex;
  font-size: 1.2rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #190820;
  box-shadow: 0 18px 45px rgba(255, 47, 146, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 65px rgba(255, 47, 146, 0.52);
}

.btn--ghost {
  border-color: rgba(0, 198, 255, 0.35);
  background: rgba(4, 6, 18, 0.6);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(0, 198, 255, 0.18);
}

.btn--ghost:hover {
  border-color: rgba(0, 198, 255, 0.55);
  background: rgba(4, 6, 18, 0.75);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(0, 198, 255, 0.32);
}

.hero__visual {
  position: relative;
  aspect-ratio: 3 / 4;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  width: 100%;
}

.hero__art {
  width: min(100%, 420px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.65), 0 0 45px rgba(255, 47, 146, 0.35),
    0 0 65px rgba(0, 198, 255, 0.28);
  background: radial-gradient(circle, rgba(3, 2, 12, 0.85), rgba(3, 1, 8, 0.95));
}

.player-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  backdrop-filter: blur(18px) saturate(140%);
  width: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

.player-panel__hint {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
}

.player {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px) saturate(160%);
  width: 100%;
  min-width: 0;
}

.player__now {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.now-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.now-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.now-card__upnext {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.now-card__timing {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.now-playing__art {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04) center/cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  overflow: hidden;
}

.now-playing__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 1, 10, 0.5), rgba(3, 2, 12, 0.2));
  pointer-events: none;
}

.now-playing__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.now-playing__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem 1rem;
  margin-top: 0.2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat__value {
  font-weight: 700;
}

.player__visualizer {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(0, 255, 255, 0.4);
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.08), transparent 38%),
    radial-gradient(circle at 80% 15%, rgba(255, 47, 146, 0.08), transparent 42%),
    #000000;
  min-height: clamp(220px, 30vw, 380px);
  overflow: hidden;
  box-shadow: inset 0 0 45px rgba(0, 255, 255, 0.08), 0 25px 60px rgba(0, 0, 0, 0.8);
}

.visualizer__toolbar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 255, 255, 0.4);
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.visualizer-mode-btn {
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(0, 255, 255, 0.12);
  color: #00ffff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.visualizer-mode-btn.is-active {
  background: rgba(0, 255, 255, 0.35);
  color: #000;
  box-shadow: 0 8px 18px rgba(0, 255, 255, 0.28);
}

.visualizer-mode-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 255, 255, 0.24);
}

.player__visualizer::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.16), rgba(0, 255, 255, 0));
  mix-blend-mode: lighten;
  pointer-events: none;
  opacity: 0.5;
}

.player__visualizer::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 45deg, rgba(0, 255, 255, 0.14), rgba(255, 47, 146, 0.12), rgba(0, 255, 255, 0.14));
  filter: blur(70px) saturate(140%);
  opacity: 0.65;
  mix-blend-mode: screen;
  animation: aurora-shift 18s linear infinite;
  pointer-events: none;
}

.visualizer__canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 255, 255, 0.08), rgba(0, 0, 0, 0.92)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9));
}

.visualizer__hint {
  position: absolute;
  left: 1.5rem;
  bottom: 1.25rem;
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #baf9ff;
  font-weight: 700;
  text-shadow: 0 0 18px rgba(0, 255, 255, 0.55);
}

.now-playing__label {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}

.now-playing__title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.now-playing__artist {
  margin: 0;
  color: var(--text-secondary);
}

.player__controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.controls--core {
  justify-content: space-between;
  gap: 0.75rem;
}

.controls__volume {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 198, 255, 0.35);
  background: rgba(0, 198, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 198, 255, 0.12);
}

.volume-slider {
  width: 120px;
  background: transparent;
  cursor: pointer;
  accent-color: var(--accent);
}

.volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  margin-top: -5px;
  box-shadow: 0 0 0 4px rgba(255, 47, 146, 0.22);
}

.volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 4px rgba(255, 47, 146, 0.22);
}

.icon-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(0, 198, 255, 0.35);
  background: rgba(0, 198, 255, 0.08);
  color: var(--text-primary);
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.icon-btn--text {
  width: auto;
  min-width: 96px;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(0, 198, 255, 0.16);
  border-color: rgba(0, 198, 255, 0.55);
}

.icon-btn--lg {
  width: 72px;
  height: 72px;
  font-size: 1.65rem;
  background: linear-gradient(135deg, rgba(255, 47, 146, 0.28), rgba(0, 198, 255, 0.4));
  border-color: rgba(255, 47, 146, 0.45);
}

.share-feedback {
  min-width: 0;
  font-size: 0.95rem;
  color: var(--accent);
  margin-left: 0.25rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.share-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.advanced {
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 0.35rem 0.35rem 0.75rem;
  background: rgba(12, 10, 24, 0.7);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.advanced__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.advanced__summary::-webkit-details-marker {
  display: none;
}

.advanced__summary::before {
  content: "▼";
  display: inline-flex;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.advanced[open] .advanced__summary::before {
  transform: rotate(-180deg);
}

.advanced__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.25rem;
  width: 100%;
  min-width: 0;
}

.icon-btn--active {
  background: linear-gradient(135deg, rgba(255, 47, 146, 0.7), rgba(0, 198, 255, 0.55));
  border-color: rgba(255, 47, 146, 0.85);
  color: #190820;
}

.progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.progress__bar {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  overflow: visible;
  touch-action: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.progress__bar:hover,
.progress__bar:focus-visible {
  outline: none;
  background: rgba(0, 198, 255, 0.22);
  box-shadow: 0 0 0 4px rgba(0, 198, 255, 0.18);
}

.progress__fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.1s linear;
}

.progress__handle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(255, 47, 146, 0.26), 0 6px 18px rgba(12, 10, 24, 0.45);
  border: 2px solid rgba(12, 10, 28, 0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.progress__handle.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75);
  box-shadow: none;
}

.progress__handle::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
}

.progress__bar:hover .progress__handle,
.progress__bar:active .progress__handle,
.progress__bar:focus-visible .progress__handle {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 0 6px rgba(0, 198, 255, 0.24), 0 10px 24px rgba(12, 10, 24, 0.55);
}

.progress__time {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.player__enhancements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.control-card {
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1rem 1.25rem 1.25rem;
  background: rgba(8, 6, 16, 0.65);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.control-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.control-card__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.control-card__title {
  margin: 0.15rem 0 0;
  font-size: 1.1rem;
}

.control-card__hint {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 22ch;
}

.control-card__header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.control-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem 1rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.control-card__grid--eq {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.slider-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
}

.slider-field__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.slider-field__input {
  grid-column: 1 / -1;
  accent-color: var(--accent);
  width: 100%;
}

.slider-field__value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.btn--sm {
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
}

.player__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.filter-panel__field {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-panel__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}

.filter-panel__select {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 8, 20, 0.78);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  appearance: none;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0, 198, 255, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.filter-panel__select:focus-visible {
  border-color: rgba(0, 198, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.25);
}


.filter-panel__reset {
  margin-left: auto;
  white-space: nowrap;
}

.playlist__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.playlist__header h3 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
}

.playlist__hint {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.playlist {
  --playlist-count: 4;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  max-height: min(62vh, calc(var(--playlist-count, 1) * 84px + 16px));
  overflow: auto;
  padding-right: 0.5rem;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 198, 255, 0.45) rgba(255, 255, 255, 0.08);
  transition: max-height 0.25s ease;
}

.playlist::before,
.playlist::after {
  content: "";
  position: sticky;
  left: 0;
  right: 0;
  height: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.playlist::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(5, 4, 12, 0.92), transparent);
}

.playlist::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(5, 4, 12, 0.92), transparent);
}

.playlist--scrollable::after {
  opacity: 1;
}

.playlist--scrolled::before {
  opacity: 1;
}

.playlist--at-end::after {
  opacity: 0;
}

.playlist::-webkit-scrollbar {
  width: 8px;
}

.playlist::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 198, 255, 0.75), rgba(255, 47, 146, 0.7));
  border-radius: 999px;
}

.playlist__item {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  background: rgba(10, 8, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.playlist__item:hover {
  transform: translateY(-2px);
  background: rgba(16, 12, 30, 0.9);
  border-color: rgba(0, 198, 255, 0.35);
  box-shadow: 0 16px 32px rgba(0, 198, 255, 0.18);
}

.playlist__item.is-active {
  background: linear-gradient(135deg, rgba(255, 47, 146, 0.25), rgba(0, 198, 255, 0.28));
  border-color: rgba(255, 47, 146, 0.65);
  box-shadow: 0 20px 34px rgba(255, 47, 146, 0.24);
}

.playlist__item.is-dragging {
  opacity: 0.5;
  transform: scale(0.99);
}

.playlist__item.is-drop-before::before,
.playlist__item.is-drop-after::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  box-shadow: 0 0 12px rgba(255, 47, 146, 0.5);
}

.playlist__item.is-drop-before::before {
  top: 0;
}

.playlist__item.is-drop-after::after {
  bottom: 0;
}

.playlist__drag-handle {
  font-size: 1rem;
  color: rgba(233, 229, 255, 0.5);
  cursor: grab;
  user-select: none;
}

.playlist__item:active .playlist__drag-handle {
  cursor: grabbing;
}

.playlist__index {
  width: 30px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: rgba(233, 229, 255, 0.54);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.playlist__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.playlist__title {
  font-size: 1rem;
  margin: 0;
}

.playlist__artist {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.playlist__duration {
  font-variant-numeric: tabular-nums;
  color: rgba(233, 229, 255, 0.54);
}

@media (max-width: 768px) {
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero__panel {
    order: 1;
    gap: 1rem;
  }

  .hero__visual {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .player-panel {
    padding: 1.1rem;
  }

  .now-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .now-card__timing {
    align-items: center;
  }

  .now-playing__art {
    width: min(80vw, 320px);
    height: min(80vw, 320px);
    margin: 0 auto;
  }

  .player {
    gap: 2rem;
  }

  .controls {
    gap: 0.9rem;
  }

  .controls--core {
    flex-direction: column;
  }

  .controls__volume {
    width: 100%;
    justify-content: center;
  }

  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-panel__reset {
    width: 100%;
    justify-content: center;
  }

  .visualizer__toolbar {
    position: static;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .icon-btn {
    width: 52px;
    height: 52px;
  }

  .icon-btn--lg {
    width: 70px;
    height: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.site-footer {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 0 0;
}

.site-footer__heading {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-footer__link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.site-footer__icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
}

.site-footer__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.site-footer__label {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-footer__credit {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.site-footer__credit a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}

.site-footer__credit a:hover {
  text-decoration: underline;
}

@keyframes aurora-shift {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: rotate(180deg) scale(1.05);
    opacity: 0.75;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.45;
  }
}

@media (max-width: 600px) {
  .site-footer__link {
    width: 100%;
    justify-content: center;
  }
}
