/* ===========================================================
   AURA — player, overlays, admin, responsive
   =========================================================== */

/* ---------- PLAYER ---------- */
#player {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: var(--player-h);
  z-index: 40;
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  transition: transform 0.6s var(--ease), box-shadow 0.5s var(--ease);
}

#player::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.07) 50%, transparent 60%);
  background-size: 220% 100%;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

body.is-playing #player::after {
  opacity: 1;
  animation: sheen 7s linear infinite;
}

@keyframes sheen {
  to {
    background-position: -220% 0;
  }
}

/* now playing */
.np {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.np-art {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  position: relative;
  transition: transform 0.6s var(--ease);
}

body.is-playing .np-art {
  transform: scale(1.03);
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.np-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.np-art svg {
  width: 22px;
  height: 22px;
  opacity: 0.35;
}

.np-meta {
  min-width: 0;
  flex: 1;
}

.np-title {
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-artist {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-like {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: var(--text-faint);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  flex: 0 0 auto;
}

.np-like svg {
  width: 17px;
  height: 17px;
}

.np-like:hover {
  background: var(--surface-2);
  color: var(--text);
  transform: scale(1.14);
}

.np-like.liked {
  color: var(--accent);
  filter: drop-shadow(0 0 10px var(--glow));
  animation: heartPop 0.45s var(--ease);
}

@keyframes heartPop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}

/* transport */
.transport {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  width: 100%;
}

.transport-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tbtn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  flex: 0 0 auto;
}

.tbtn svg {
  width: 18px;
  height: 18px;
}

.tbtn:hover {
  color: var(--text);
  background: var(--surface-2);
  transform: scale(1.08);
}

.tbtn:active {
  transform: scale(0.92);
}

.tbtn.on {
  color: var(--accent);
  background: var(--surface-2);
}

.tbtn.on::after {
  content: '';
  position: absolute;
}

.play-main {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #ffffff, #d8d8e2);
  color: #05050a;
  box-shadow:
    0 12px 34px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 #fff,
    inset 0 -2px 8px rgba(0, 0, 0, 0.14);
  transition: all 0.4s var(--ease);
  margin: 0 6px;
  position: relative;
}

html[data-theme='light'] .play-main {
  background: linear-gradient(160deg, #17171d, #000);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.play-main svg {
  width: 21px;
  height: 21px;
}

.play-main:hover {
  transform: scale(1.09);
  box-shadow:
    0 18px 46px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 #fff;
}

.play-main:active {
  transform: scale(0.95);
}

.play-main .icon-pause {
  display: none;
}
body.is-playing .play-main .icon-play {
  display: none;
}
body.is-playing .play-main .icon-pause {
  display: block;
}

/* progress */
.progress-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
}

.time {
  font-size: 10.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
  text-align: center;
  font-weight: 500;
}

.seek {
  flex: 1;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  touch-action: none;
}

.seek-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.13);
  overflow: visible;
  transition: height 0.25s var(--ease);
}

html[data-theme='light'] .seek-track {
  background: rgba(0, 0, 0, 0.13);
}

.seek:hover .seek-track {
  height: 6px;
}

.seek-buffer {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.16);
  width: 0;
}

.seek-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--accent);
  width: 0;
  box-shadow: 0 0 12px var(--glow);
}

.seek-thumb {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.1);
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.25s var(--ease);
  pointer-events: none;
}

html[data-theme='light'] .seek-thumb {
  background: #0a0a0c;
  border-color: rgba(255, 255, 255, 0.4);
}

.seek:hover .seek-thumb,
.seek.active .seek-thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* right controls */
.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.volume-shell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vol-slider {
  width: 88px;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.vol-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.13);
  transition: height 0.25s var(--ease);
}

html[data-theme='light'] .vol-track {
  background: rgba(0, 0, 0, 0.13);
}

.vol-slider:hover .vol-track {
  height: 6px;
}

.vol-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--text-dim);
  width: 80%;
}

.vol-slider:hover .vol-fill {
  background: var(--accent);
}

/* ---------- queue panel ---------- */
#queue-panel {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: calc(var(--player-h) + 22px);
  width: 350px;
  z-index: 45;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 10px;
  transform: translateX(calc(100% + 30px));
  transition: transform 0.6s var(--ease);
}

#queue-panel.open {
  transform: none;
}

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 10px;
}

.queue-head h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  margin: 0;
}

.queue-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.queue-item {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.queue-item:hover {
  background: var(--surface);
}

.queue-item.current {
  background: var(--surface-2);
}

.queue-item img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: cover;
}

.qi-title {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qi-artist {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- modal ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(20px) saturate(120%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 100%;
  max-width: 420px;
  border-radius: var(--r-lg);
  padding: 32px 30px 28px;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.5s var(--ease);
  max-height: 90dvh;
  overflow-y: auto;
}

.overlay.open .modal {
  transform: none;
}

.modal.wide {
  max-width: 640px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text-dim);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 2;
}

.modal-close:hover {
  color: var(--text);
  background: var(--surface-3);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.auth-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 30px;
  margin: 0 0 6px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.auth-sub {
  color: var(--text-faint);
  font-size: 12.5px;
  margin: 0 0 24px;
  line-height: 1.6;
}

.field {
  margin-bottom: 13px;
  position: relative;
}

.field label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 7px;
  font-weight: 600;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.35s var(--ease);
}

.field input:focus {
  border-color: var(--stroke-strong);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.field input::placeholder {
  color: var(--text-faint);
}

.auth-switch {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 18px;
}

.auth-switch button {
  background: none;
  border: none;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  font-size: 12.5px;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.form-error {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12.5px;
  color: var(--text);
  margin-bottom: 13px;
  display: none;
  line-height: 1.5;
}

.form-error.show {
  display: block;
  animation: rise 0.35s var(--ease);
}

.modal .btn {
  width: 100%;
  margin-top: 8px;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  margin-bottom: 22px;
}

.tab {
  flex: 1;
  height: 38px;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  font-family: inherit;
}

.tab.active {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* ---------- admin ---------- */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.stat-card {
  border-radius: var(--r-md);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  filter: blur(16px);
}

html[data-theme='light'] .stat-card::after {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), transparent 70%);
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 10px;
}

.stat-value {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat-note {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 8px;
}

.table-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 26px;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

table.data thead th {
  text-align: left;
  padding: 13px 14px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  border-bottom: 1px solid var(--stroke);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.02);
}

table.data tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
}

html[data-theme='light'] table.data tbody td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

table.data tbody tr {
  transition: background 0.25s var(--ease);
}

table.data tbody tr:hover {
  background: var(--surface);
}

table.data tbody tr:last-child td {
  border-bottom: none;
}

.u-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.u-cell .avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 11px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text-dim);
  white-space: nowrap;
}

.badge.admin {
  background: var(--accent);
  color: var(--accent-contra);
  border-color: var(--accent);
}

.badge.banned {
  text-decoration: line-through;
  opacity: 0.6;
}

.badge.online {
  color: var(--text);
  border-color: var(--stroke-strong);
}

.mini-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: inherit;
  white-space: nowrap;
}

.mini-btn:hover {
  color: var(--text);
  background: var(--surface-3);
  border-color: var(--stroke-strong);
  transform: translateY(-1px);
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 420px;
  overflow-y: auto;
}

.feed-item {
  display: flex;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 12px;
  align-items: flex-start;
  transition: background 0.25s var(--ease);
}

.feed-item:hover {
  background: var(--surface);
}

.feed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  margin-top: 6px;
  flex: 0 0 auto;
}

.feed-item.k-register .feed-dot,
.feed-item.k-login .feed-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--glow);
}

.feed-body {
  flex: 1;
  min-width: 0;
}

.feed-who {
  font-weight: 650;
  font-size: 12px;
}

.feed-what {
  color: var(--text-faint);
  margin-top: 2px;
  line-height: 1.45;
  word-break: break-word;
  font-size: 11.5px;
}

.feed-time {
  font-size: 10px;
  color: var(--text-faint);
  white-space: nowrap;
  margin-top: 2px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 90px;
  padding: 8px 0;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.bar {
  width: 100%;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.85));
  min-height: 3px;
  transition: height 0.8s var(--ease), filter 0.3s var(--ease);
  transform-origin: bottom;
  animation: barGrow 0.9s var(--ease) both;
}

html[data-theme='light'] .bar {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.75));
}

.bar-col:hover .bar {
  filter: brightness(1.4);
}

@keyframes barGrow {
  from {
    transform: scaleY(0);
  }
}

.bar-label {
  font-size: 8.5px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ---------- live ticker ---------- */
.live-people {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 230px;
  overflow-y: auto;
}

.live-person {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 7px 9px;
  border-radius: 10px;
  transition: background 0.25s var(--ease);
}

.live-person:hover {
  background: var(--surface);
}

.lp-eq {
  margin-left: auto;
  flex: 0 0 auto;
}

/* ---------- toast ---------- */
#toasts {
  position: fixed;
  bottom: calc(var(--player-h) + 26px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: 92vw;
}

.toast {
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 9px;
  animation: toastIn 0.45s var(--ease);
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.toast.out {
  animation: toastOut 0.35s var(--ease) forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
}

/* ---------- mobile nav ---------- */
#mobilenav {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 60;
  height: 58px;
  border-radius: 20px;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
}

.mnav-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s var(--ease);
  font-family: inherit;
  position: relative;
}

.mnav-item svg {
  width: 19px;
  height: 19px;
  transition: transform 0.35s var(--ease);
}

.mnav-item.active {
  color: var(--text);
}

.mnav-item.active svg {
  transform: translateY(-1px) scale(1.08);
}

.mnav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 22px;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
}

/* ---------- mini player mobile ---------- */
#miniplayer {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 76px;
  z-index: 55;
  height: 62px;
  border-radius: 18px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  transform: translateY(140%);
  transition: transform 0.55s var(--ease);
}

#miniplayer.show {
  transform: none;
}

#miniplayer img,
#miniplayer .mp-ph {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--surface-2);
}

.mp-ph {
  display: grid;
  place-items: center;
}
.mp-ph svg {
  width: 16px;
  height: 16px;
  opacity: 0.4;
}

.mp-meta {
  flex: 1;
  min-width: 0;
}

.mp-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.mp-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
}

.mp-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-contra);
  cursor: pointer;
  flex: 0 0 auto;
}
.mp-btn svg {
  width: 17px;
  height: 17px;
}

/* ---------- fullscreen player ---------- */
#fullscreen {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 36px;
  background: var(--bg-deep);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
  overflow-y: auto;
}

#fullscreen.open {
  opacity: 1;
  pointer-events: auto;
}

#fullscreen .fs-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  filter: blur(90px) saturate(140%);
  opacity: 0.34;
  transform: scale(1.2);
  z-index: -1;
  transition: background-image 0.9s var(--ease);
}

html[data-theme='light'] #fullscreen .fs-bg {
  opacity: 0.2;
}

.fs-head {
  width: 100%;
  max-width: 460px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  flex: 0 0 auto;
}

.fs-label {
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
}

.fs-art {
  width: min(74vw, 340px);
  aspect-ratio: 1;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  margin-bottom: 30px;
  position: relative;
  flex: 0 0 auto;
  background: var(--surface-2);
}

.fs-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.is-playing .fs-art {
  animation: floatArt 6s var(--ease-in-out) infinite alternate;
}

@keyframes floatArt {
  from {
    transform: translateY(0) rotate(0deg);
  }
  to {
    transform: translateY(-9px) rotate(0.6deg);
  }
}

.fs-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 27px;
  text-align: center;
  margin: 0 0 6px;
  max-width: 92vw;
  line-height: 1.15;
}

.fs-artist {
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
  margin: 0 0 30px;
}

.fs-controls {
  width: 100%;
  max-width: 460px;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  #player {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1.2fr) auto;
    gap: 12px;
    padding: 0 14px;
  }
  .vol-slider {
    width: 62px;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --player-h: 0px;
  }

  body {
    overflow: hidden;
  }

  #app {
    grid-template-columns: 1fr;
    padding: 10px;
    padding-bottom: 146px;
    gap: 0;
  }

  #sidebar {
    display: none;
  }

  #main {
    border-radius: 26px;
  }

  #topbar {
    padding: 12px 14px;
    gap: 9px;
    position: sticky;
    top: 0;
    backdrop-filter: blur(20px);
  }

  #view {
    padding: 4px 14px 24px;
  }

  #player {
    display: none;
  }

  #miniplayer {
    display: flex;
  }

  #mobilenav {
    display: flex;
  }

  .hero {
    padding: 28px 22px;
    min-height: 210px;
    border-radius: 26px;
  }

  .hero h1 {
    font-size: clamp(30px, 8.6vw, 44px);
  }

  .hero p {
    font-size: 13px;
    margin-bottom: 18px;
  }

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

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 11px;
  }

  .card {
    padding: 10px;
    border-radius: 18px;
  }

  .track-row {
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    padding: 7px 8px;
  }

  .track-idx {
    display: none;
  }

  .track-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .track-dur {
    display: none;
  }

  .track-like {
    opacity: 1;
  }

  #queue-panel {
    top: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 146px;
  }

  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .stat-value {
    font-size: 25px;
  }

  .table-wrap {
    overflow-x: auto;
  }

  table.data {
    min-width: 620px;
  }

  #toasts {
    bottom: 152px;
  }

  .modal {
    padding: 26px 20px 22px;
    border-radius: 26px;
  }

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

  .chips {
    padding-bottom: 8px;
  }
}

@media (max-width: 400px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    padding: 22px 17px;
  }
}

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