:root {
  --bg: #08080c;
  --bg-2: #111118;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.085);
  --surface-active: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --accent: #fa2d55;
  --accent-2: #9333ea;
  --accent-grad: linear-gradient(135deg, #fa2d55 0%, #c026d3 55%, #7c3aed 100%);
  --green: #10b981;
  --sidebar-w: 240px;
  --player-h: 84px;
  --mobile-nav-h: 62px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select {
  font-family: inherit;
}

/* Custom slim scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 99px; }

.svg-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svg-icon.filled { fill: currentColor; stroke: none; }

/* App Layout */
.app-shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

/* Desktop Sidebar */
.sidebar {
  width: var(--sidebar-w);
  position: fixed;
  top: 0;
  right: 0;
  bottom: var(--player-h);
  background: rgba(14, 14, 20, 0.94);
  border-left: 1px solid var(--border);
  backdrop-filter: blur(24px);
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 10px 20px;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.lang-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: background 0.15s, color 0.15s;
}
.lang-btn:hover { background: var(--surface-hover); color: #fff; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-lang-btn { display: none; }

/* LTR Mirroring Support */
[dir="ltr"] .sidebar {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--border);
}

[dir="ltr"] .main {
  margin-right: 0;
  margin-left: var(--sidebar-w);
}

[dir="ltr"] .nav-item,
[dir="ltr"] .sidebar-user,
[dir="ltr"] .admin-table th,
[dir="ltr"] .admin-table td {
  text-align: left;
}

[dir="ltr"] .card-play-fab {
  left: auto;
  right: 8px;
}

[dir="ltr"] .back-chevron {
  transform: rotate(180deg);
}

[dir="ltr"] .lyric-line {
  transform-origin: left center;
}

/* Alphabetical Directory Grid & A-Z Jump Bar */
.alpha-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  padding: 8px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  direction: ltr;
  justify-content: center;
}

.alpha-jump {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.alpha-jump:hover,
.alpha-jump.active {
  background: rgba(250, 45, 85, 0.22);
  color: #fff;
}

.alpha-group {
  margin-bottom: 24px;
}

.alpha-letter {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent);
  padding: 6px 4px 10px;
  margin: 0 0 10px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 1px;
  direction: ltr;
  text-align: start;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 12px;
}

.cover-grid .artist-card,
.cover-grid .album-card {
  width: 100%;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(250, 45, 85, 0.28);
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  padding: 12px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
  text-align: right;
}

.nav-item:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-item.active {
  background: rgba(250, 45, 85, 0.14);
  color: #fff;
}

.nav-item.active .svg-icon {
  color: var(--accent);
}

.nav-spacer { flex: 1; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  width: 100%;
  text-align: right;
}

.sidebar-user:hover { background: var(--surface-hover); }

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

/* Main Workspace (Internal scroll container — prevents browser pull-to-refresh) */
.main {
  flex: 1;
  margin-right: var(--sidebar-w);
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: calc(20px + var(--safe-top)) 28px calc(var(--player-h) + 48px);
  min-width: 0;
}

/* Install App Banner & Steps */
.install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(250, 45, 85, 0.16), rgba(124, 58, 237, 0.18));
  border: 1px solid rgba(250, 45, 85, 0.35);
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.6;
}

.install-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.main-inner {
  max-width: 1240px;
  margin: 0 auto;
}

/* Top Header */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.greeting {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.4px;
}

.mobile-user-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Hero Spotlight Banner */
.hero-banner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  padding: 26px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #1b1629, #10121e);
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 204px;
  cursor: pointer;
}

.hero-bg {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(44px) saturate(1.4) brightness(0.42);
  transform: scale(1.1);
  z-index: 0;
}

.hero-art {
  position: relative;
  z-index: 1;
  width: 152px;
  height: 152px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
  background: #1c1c28;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
}

.hero-title {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 6px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-artist {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px;
}

/* Section Headers & Horizontal Carousels */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 14px;
}

.section-title {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.2px;
}

.link-btn {
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}
.link-btn:hover { color: var(--text); }

.carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar { height: 4px; }

/* Square Album Card */
.album-card {
  width: 162px;
  flex-shrink: 0;
  scroll-snap-align: start;
  cursor: pointer;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.album-card:hover {
  background: var(--surface-hover);
  border-color: var(--border);
}

.album-art-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a26;
  margin-bottom: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.album-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-play-fab {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(250, 45, 85, 0.45);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s;
}

.album-card:hover .card-play-fab,
.album-card.playing .card-play-fab {
  opacity: 1;
  transform: translateY(0);
}

.card-title {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.card-sub {
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Circular Artist Card */
.artist-card {
  width: 132px;
  flex-shrink: 0;
  text-align: center;
  cursor: pointer;
  padding: 10px 6px;
  border-radius: 16px;
  transition: background 0.18s;
}

.artist-card:hover { background: var(--surface); }

.artist-avatar {
  width: 104px;
  height: 104px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #27273a, #171724);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
}

.artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Track Rows (Apple Music / Spotify Clean List) */
.track-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.14s;
}

.track-row:hover {
  background: var(--surface);
}

.track-row.playing {
  background: rgba(250, 45, 85, 0.11);
}

.track-row.playing .row-title {
  color: var(--accent);
}

.row-art-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1a26;
}

.row-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eq-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 13px;
}

.track-row.playing .eq-overlay { display: flex; }

.eq-bar {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: eqPulse 0.75s ease-in-out infinite alternate;
}
.eq-bar:nth-child(2) { animation-delay: 0.2s; }
.eq-bar:nth-child(3) { animation-delay: 0.42s; }

@keyframes eqPulse {
  from { height: 5px; }
  to { height: 18px; }
}

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

.row-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Search Bar & Segmented Controls */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #161622;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 14px;
  margin-bottom: 16px;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.search-box:focus-within {
  border-color: rgba(250, 45, 85, 0.6);
  box-shadow: 0 0 0 3px rgba(250, 45, 85, 0.14);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14.5px;
  padding: 13px 10px;
  outline: none;
  min-width: 0;
}

.search-box .svg-icon { color: var(--text-3); }

.segmented {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 18px;
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--text-2);
  padding: 7px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.seg-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Buttons & Inputs */
.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s, opacity 0.15s;
}
.btn:active { transform: scale(0.96); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-grad { background: var(--accent-grad); color: #fff; }
.btn-surface { background: var(--surface-hover); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: rgba(239, 68, 68, 0.16); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-hover); color: #fff; }
.icon-btn.liked { color: var(--accent); }

.input {
  width: 100%;
  background: #161622;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.input:focus { border-color: var(--accent); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
}

/* Artist Detail Header */
.artist-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border);
  background: #151521;
}

.artist-hero-art {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* Browse Grid (Directory / Playlists) */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
}

.browse-tile {
  padding: 16px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  font-size: 14px;
  font-weight: 700;
}
.browse-tile:hover { background: var(--surface-hover); transform: translateY(-2px); }

/* Liked Songs Banner */
.liked-hero {
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(250, 45, 85, 0.32), rgba(124, 58, 237, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

/* Desktop Bottom Player Bar */
.player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--player-h);
  padding: 0 20px;
  background: rgba(15, 15, 22, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(28px);
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  align-items: center;
  gap: 16px;
}

.player-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  cursor: pointer;
}

.player-track img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #1b1b28;
  flex-shrink: 0;
}

.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.player-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
}

.play-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #09090d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s;
}
.play-circle:active { transform: scale(0.93); }

.scrub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  font-size: 11px;
  color: var(--text-3);
  direction: ltr;
}

.scrub-row input[type="range"] {
  flex: 1;
  height: 4px;
  accent-color: #fff;
  cursor: pointer;
}

.player-extras {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.vol-slider {
  width: 86px;
  accent-color: #fff;
  direction: ltr;
}

/* Mobile Floating Mini Player (Hidden on Desktop) */
.mini-player {
  display: none;
}

/* Fullscreen Now Playing Sheet (Mobile & Desktop Expand) */
.np-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #0b0b12;
  transform: translateY(105%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.np-sheet.open {
  transform: translateY(0);
}

.np-sheet-bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(1.5) brightness(0.32);
  transform: scale(1.15);
  z-index: 0;
}

.np-sheet-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: calc(14px + var(--safe-top)) 24px calc(22px + var(--safe-bottom));
  overflow: hidden;
}

.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.sheet-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  overflow: hidden;
}

.sheet-art-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 6px 0 18px;
}

.sheet-art {
  width: min(76vw, 310px);
  height: min(76vw, 310px);
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s ease;
}

.sheet-art.paused {
  transform: scale(0.88);
}

/* Synced Lyrics Panel */
.sheet-lyrics {
  flex: 1;
  overflow-y: auto;
  padding: 16px 6px;
  display: none;
  flex-direction: column;
  gap: 14px;
  mask-image: linear-gradient(transparent, #000 10%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 88%, transparent);
}

.lyric-line {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: color 0.22s, transform 0.22s;
  transform-origin: right center;
}

.lyric-line.active {
  color: #fff;
  transform: scale(1.04);
}

.sheet-queue {
  flex: 1;
  overflow-y: auto;
  display: none;
  padding: 6px 0;
}

.sheet-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-title {
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-artist {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
}

.sheet-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 14px 0 18px;
  direction: ltr;
}

.sheet-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #08080c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.sheet-footer-tabs {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.sheet-tab-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 99px;
}
.sheet-tab-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }

.modal {
  width: 100%;
  max-width: 420px;
  background: #14141e;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal.video-modal { max-width: 820px; }
.modal video { width: 100%; border-radius: 14px; background: #000; max-height: 68vh; }

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* NotParty Live Room */
.room-code-display {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 8px;
  text-align: center;
  padding: 18px;
  border-radius: 16px;
  background: rgba(250, 45, 85, 0.12);
  border: 1px dashed rgba(250, 45, 85, 0.45);
  margin: 14px 0;
  direction: ltr;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  box-shadow: 0 0 10px var(--green);
}

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th, .admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.pill-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--surface-hover);
  color: var(--text-2);
}
.pill-tag.admin { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
.pill-tag.vip { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }

/* Toast */
.toast {
  position: fixed;
  top: calc(16px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(24, 24, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 120;
  display: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.empty-state {
  text-align: center;
  padding: 42px 16px;
  color: var(--text-3);
  font-size: 14px;
}

/* Mobile Tab Bar (Hidden on Desktop) */
.mobile-nav { display: none; }

@media (max-width: 860px) {
  .sidebar { display: none; }
  .player-bar { display: none; }
  .mobile-user-btn { display: inline-flex; }
  .mobile-lang-btn { display: inline-flex; }
  [dir="ltr"] .main { margin-left: 0; }
  .cover-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }

  .main {
    margin-right: 0;
    padding: calc(16px + var(--safe-top)) 16px calc(var(--mobile-nav-h) + var(--safe-bottom) + 96px);
  }

  .greeting { font-size: 22px; }

  .hero-banner {
    padding: 18px;
    gap: 14px;
    min-height: 156px;
  }
  .hero-art { width: 108px; height: 108px; border-radius: 13px; }
  .hero-title { font-size: 18px; }
  .hero-artist { font-size: 13px; margin-bottom: 12px; }

  .album-card { width: 144px; padding: 8px; }
  .artist-card { width: 112px; }
  .artist-avatar { width: 88px; height: 88px; }

  .mini-player {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(var(--mobile-nav-h) + var(--safe-bottom) + 8px);
    height: 60px;
    padding: 8px 10px;
    border-radius: 15px;
    background: rgba(24, 24, 34, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(26px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    z-index: 45;
    overflow: hidden;
    cursor: pointer;
  }

  .mini-player.hidden { display: none; }

  .mini-player img {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    object-fit: cover;
    background: #1a1a26;
    flex-shrink: 0;
  }

  .mini-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.08);
    direction: ltr;
  }

  .mini-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.25s linear;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--mobile-nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(12, 12, 18, 0.94);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(24px);
    z-index: 50;
  }

  .mobile-nav button {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-3);
    font-size: 10.5px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
  }
  .mobile-nav button.active { color: var(--accent); }
}
