@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg-deep: #08080a;
  --bg-surface: #101014;
  --bg-elevated: #1a1a20;
  --bg-hover: #25252d;

  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.35);

  --text-main: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --text-dim: var(--text-muted);
  --bg-card: var(--bg-elevated);
  --border: rgba(255, 255, 255, 0.07);
  --glass: rgba(255, 255, 255, 0.04);

  --font-primary: "inter", sans-serif;
  --player-height: 120px;
  --sidebar-w: 220px;
  --deck-gap: 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --slider-display: none;
}

[data-theme="light"] {
  --bg-deep: #f3f4f6;
  --bg-surface: #ffffff;
  --bg-elevated: #e5e7eb;
  --bg-hover: #d1d5db;

  --accent: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.25);

  --text-main: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  --text-dim: var(--text-muted);
  --bg-card: var(--bg-elevated);
  --border: rgba(0, 0, 0, 0.09);
  --glass: rgba(0, 0, 0, 0.03);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

*::-webkit-scrollbar {
  width: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-deep);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding-left: 220px;
  will-change: padding-left;
  transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-container.collapsed {
  padding-left: 76px;
  --sidebar-w: 76px;
}

.icon-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 220px;
  background-color: var(--bg-deep);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 100;
  will-change: width;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-rail.collapsed {
  width: 76px;
}

.icon-rail.collapsed .icon-desc {
  display: none;
}

.icon-rail.collapsed .rail-btn {
  width: 44px;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
}

.icon-rail.collapsed .rail-btn.active::before {
  left: -14px;
}

.icon-rail.collapsed.bottom-nav-group .rail-btn {
  width: 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
}

.icon-rail.collapsed .bottom-nav-group .rail-btn.active::before {
  left: -14px;
}

.icon-rail.collapsed .nav-group {
  padding: 0 8px;
}

#songSearch::placeholder {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.icon-rail.collapsed .rail-toggle {
  width: 44px;
  padding: 0;
  justify-content: center;
  margin: 0 auto;
}

.icon-rail.collapsed .rail-toggle i {
  transform: rotate(180deg);
}

.icon-rail.collapsed .rail-toggle .icon-desc {
  display: none;
}

.logo-inner {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.logo-inner:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px var(--accent-glow);
}

.logo {
  width: 50px;
  height: 30px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.2s;
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
  width: 100%;
  flex: 1;
  max-width: 220px;
}

.nav-group:last-of-type {
  flex: 0;
  padding-top: 8px;
  margin: 0 12px;
  padding-left: 0;
  padding-right: 0;
}

.bottom-nav-group {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
  width: 100%;
  flex: 1;
  max-width: 220px;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.bottom-nav-group .rail-btn {
  height: 100%;
  font-size: .8125rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
}

.bottom-nav-group::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  box-sizing: border-box;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background-color: var(--border);
}


.rail-btn {
  width: 80%;
  height: 44px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-family: var(--font-primary);
}

.rail-btn:hover {
  color: var(--text-main);
  background: var(--glass);
}

.rail-btn:focus {
  outline: none;
}

.rail-btn.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.rail-btn.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.rail-btn img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  pointer-events: none;
  color: var(--text-main);
}

.rail-btn i {
  width: 22px;
  font-size: 18px;
  flex-shrink: 0;
  text-align: center;
}

.rail-btn svg,
.rail-toggle svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 4px;
  pointer-events: none;
  fill: var(--text-muted);
}

.icon-desc {
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.rail-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 14px 8px;
  flex-shrink: 0;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rail-header-icon {
  width: auto;
  height: 15px;
  border-radius: 6px;
  flex-shrink: 0;
}

.rail-header-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.icon-rail.collapsed .rail-top-row {
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
}

.icon-rail.collapsed .rail-brand {
  flex-direction: column;
  gap: 0;
}

.icon-rail.collapsed .rail-header-text {
  display: none;
}

.rail-toggle {
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  width: 100%;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 4px;
}

.rail-toggle:hover {
  color: var(--text-main);
}

.rail-toggle:focus {
  border: none;
}

.rail-toggle i {
  width: 22px;
  font-size: 14px;
  flex-shrink: 0;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rail-toggle .rotated {
  rotate: 180;
}

.rail-toggle .icon-desc {
  font-size: 12px;
}

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}

.artist-page {
  display: none;
  flex-direction: column;
  flex: 1;
  padding: 40px 60px 80px;
  background: var(--bg-deep);
  overflow-y: auto;
  font-family: var(--font-primary);
  color: var(--text-main);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.artist-page::-webkit-scrollbar {
  display: none;
}

.artist-page h1,
.artist-page h2,
.artist-page h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.artist-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.artist-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-top: 40px;
}

.artist-page ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.artist-page li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.artist-page li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.artist-page .version-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.artist-page .date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: 12px;
}

.changelog {
  display: none;
  flex-direction: column;
  flex: 1;
  padding: 0;
  padding-bottom: 120px;
  overflow-y: auto;
  color: var(--text-main);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.changelog::-webkit-scrollbar {
  display: none;
}

.changelog h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
}

.changelog h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.changelog ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.changelog li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.changelog li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.changelog .version-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.changelog .date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 10px;
}

.main-header {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-deep);
  z-index: 10;
  position: relative;
  min-width: 0;
  width: 100%;
  margin: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.view-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.net-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.header-icon-btn:hover {
  color: var(--text-main);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.profile-circle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.profile-circle:hover {
  border-color: var(--accent);
  color: var(--text-main);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.profile-circle.logged-in {
  border-color: var(--accent);
  background: var(--accent);
  color: hsl(0, 0%, 100%);
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 160px;
  transition: flex 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  height: 40px;
}

.search-wrap:focus-within {
  flex: 1;
}

.search-wrap input {
  height: 100%;

  box-sizing: border-box;

  width: 100%;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  background-color: var(--bg-elevated);
  padding: 8px 14px 8px 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: 0.2s;
}

.search-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  left: 14px;
  pointer-events: none;
  background-color: var(--text-main);
  -webkit-mask-image: url('../icons/search.svg');
  mask-image: url('../icons/search.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;

  z-index: 1;
}


.search-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow);
}

.search-wrap input::placeholder {
  color: var(--text-muted);

}

.phone-search::placeholder {
  color: var(--text-muted);
  padding-left: 15px;
}

.search-wrap.in-search {
  width: 100%;
  max-width: 600px;
  padding-left: 0;
}

.search-wrap.in-search::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  left: 14px;
  pointer-events: none;
  background-color: var(--text-muted);
  -webkit-mask-image: url('../icons/search.svg');
  mask-image: url('../icons/search.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  z-index: 1;
}

.content-area {
  flex: 1;
  min-height: 0;
  padding: 24px 24px calc(24px + var(--player-height));
}

.content-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.content-layout.lyrics-open {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.section-label {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.main-content {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: var(--player-height);
}

.lyrics-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 16px;
  background: var(--bg-surface);
  padding: 20px;
  overflow: hidden;
  z-index: 5;
  font-size: 1rem;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.lyrics-panel.closed {
  display: none;
}

.lyrics-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: color 0.2s;
  padding: 4px;
}

.panel-close:hover {
  color: var(--text-main);
}

.lyrics-title {
  margin: 0;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
}

.lyrics-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  padding-right: 4px;
  scroll-behavior: auto;
}

.lyrics-container.rtl {
  direction: rtl;
}

.lyrics-line {
  color: var(--text-secondary);
  font-size: 1.6rem;
  line-height: 1.6;
  opacity: 0.6;
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
  padding: 6px 4px;
  border-radius: 4px;
  cursor: pointer;
  filter: blur(2px);
  transform: translateY(0) scale(0.98);
}

.lyrics-line:hover {
  filter: blur(0);
  opacity: 0.8;
}

.lyrics-line.active {
  opacity: 1;
  font-weight: 700;
  filter: blur(0);
  transform: translateY(0) scale(1);
  color: var(--text-main);
}

.lyrics-empty {
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.6;
  padding: 8px 4px;
  opacity: 1;
  filter: none;
  cursor: default;
  font-weight: 500;
}

.lyrics-container.rtl .lyrics-line {
  text-align: right;
}

.lyrics-container.rtl .lyrics-empty {
  text-align: right;
}

.lyrics-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 24px 0;
  cursor: default;
}

.lyrics-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  background: var(--bg-hover);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.lyrics-dots-interlude.active {
  transition: none;
}

.lyrics-dot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: var(--text-main);
  opacity: 0.9;
  transform-origin: left center;
  transform: scaleX(var(--fill, 0));
}

.lyrics-dot.active {
  transform: scale(1.1);
}

.rtl .lyrics-dot::before {
  left: auto;
  right: 0;
  transform-origin: right center;
}

.tabs-container {
  position: relative;
  width: 100%;
}

.tab-list {
  display: flex;
  position: relative;
  gap: 0;
}

.search-tab {
  background: none;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
  transition: color 0.2s ease;
  font-family: var(--font-primary);
  position: relative;
  letter-spacing: 0.3px;
}

.search-tab:hover {
  color: var(--text-secondary);
}

.search-tab.active {
  color: var(--accent);
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background-color: var(--accent);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
  width: 0;
  border-radius: 1px;
}

.search-tabs {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.section-empty {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0;
  grid-column: 1 / -1;
}

.artist-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 12px !important;
}

.song-card {
  padding: 14px;
  border-radius: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--glass);
  max-width: 240px;
}

.song-card:hover {
  background: var(--bg-elevated);
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.song-card.active {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-elevated));
  border-color: var(--accent);
}

.thumb-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg-hover);
  position: relative;
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.song-card:hover .thumb-wrap img {
  transform: scale(1.04);
}

.song-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.song-card p {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-card {
  padding: 14px;
  border-radius: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--glass);
  width: 200px;
}

.artist-card:hover {
  background: var(--bg-elevated);
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  box-shadow: 0 1px 3px var(--accent), 0 1px 2px var(--accent);
}

.artist-card.active {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-elevated));
  border-color: var(--accent);
}

.artist-card .thumb-wrap {
  border-radius: 50%;
  margin-bottom: 12px;
}

.artist-card .thumb-wrap img {
  border-radius: 50%;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 10px;
}

.song-card:hover .play-overlay,
.artist-card:hover .play-overlay {
  opacity: 1;
}

.scroll-row-wrap {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
}

.scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.scroll-row .song-card {
  flex: 0 0 auto;
  width: 160px;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s;
}

.scroll-row-wrap:hover .scroll-btn {
  display: flex;
}

.scroll-btn.prev {
  left: -12px;
}

.scroll-btn.next {
  right: -12px;
}

.ov-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.ov-btn:hover {
  transform: scale(1.1);
}

.artist-tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4px;
  width: 100%;
}

.artist-track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  border-bottom: 1px solid var(--border);
}

.artist-track-item:hover {
  background: var(--bg-hover);
}

.artist-track-item.active {
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-hover));
  border-color: var(--accent);
}

.artist-track-item.active .artist-track-title {
  color: var(--accent);
}

.artist-track-item img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--bg-hover);
}

.artist-track-item img[src=""],
.artist-track-item img:not([src]) {
  background-color: var(--bg-hover);
}

.artist-track-num {
  font-size: 12px;
  color: var(--text-muted);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 600;
}

.artist-track-info {
  flex: 1;
  min-width: 0;
}

.artist-track-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-track-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.artist-track-duration {
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.skeleton {
  background: var(--bg-hover);
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 6px;
}

@keyframes loading {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

.skel-title {
  height: 14px;
  width: 80%;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skel-sub {
  height: 11px;
  width: 50%;
  border-radius: 4px;
}

.song-card.loading .thumb-wrap span.skeleton {
  display: block;
  width: 100%;
  height: 100%;
}

.player-deck {
  background-color: color-mix(in srgb, var(--bg-elevated) 40%, transparent);
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w);
  right: 0;
  padding: 1rem 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  z-index: 3000;
  border-radius: 8px;
  margin: 0 24px 16px;
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px var(--bg-elevated);
  transition: background-color 0.3s ease-out, border-color 0.3s ease-out, transform 0.3s ease-out;
  height: 100px;
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0.1;
}

.deck-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.deck-left {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  min-width: 0;
  flex: 0 1 300px;
}

.deck-play-btn-wrap {
  display: none;
  align-items: center;
}

.deck-play-btn {
  width: 36px;
  height: 36px;
  font-size: 14px;
  background: var(--text-main);
  color: var(--bg-deep) !important;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.deck-play-btn:hover {
  transform: scale(1.05);
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.track-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  transition: box-shadow 0.3s ease;
}

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

.track-title {
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist:hover {
  color: var(--accent);
  text-decoration: underline;
}

.player-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 520px;
}

.controls-center {
  display: flex;
  align-items: center;
  gap: 16px;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--bg-deep);
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.play-btn-masked {
  -webkit-mask-image: url('../icons/play.svg');
  mask-image: url('../icons/play.svg');
}

.pause-btn-masked {
  -webkit-mask-image: url('../icons/pause.svg');
  mask-image: url('../icons/pause.svg');
}

.masked {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: var(--text-main);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.lyrics-btn {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: var(--text-secondary);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-image: url('../icons/lyrics.svg');
  mask-image: url('../icons/lyrics.svg');
}

.ctrl-btn:hover {
  color: var(--text-main);
}

.ctrl-btn.active {
  color: var(--accent);
}

.ctrl-btn.active:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.play-btn {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--text-main) !important;
  border-radius: 50%;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-btn:hover {
  transform: scale(1.04);
}

.time-display {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.mini-bar-bg {
  flex: 1;
  height: 3px;
  background: var(--bg-hover);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  transition: height 0.2s ease;
}

.mini-bar-bg:hover {
  height: 5px;
}

.mini-bar-fill {
  height: 100%;
  background: linear-gradient(90deg,
      var(--accent),
      color-mix(in srgb, var(--accent) 70%, white));
  width: 0%;
  border-radius: 2px;
  position: relative;
  transition: width 0.1s linear;
}

.mini-bar-fill::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--text-main);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mini-bar-bg:hover .mini-bar-fill::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.right-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 1 280px;
  min-width: 0;
}

.top-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 1 280px;
  min-width: 0;
}

.volume-area {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 110px;
  flex: 1;
  min-width: 0;
}

.vol-icon {
  font-size: 14px;
  color: var(--text-secondary);
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  background: var(--bg-hover);
}

.vol-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  display: var(--slider-display);
}

.vol-slider::-moz-range-track {
  width: 100%;
  height: 4px;
  border-radius: 2px;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-main);
  cursor: pointer;
  margin-top: -4px;
}

.vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-main);
  border: none;
  cursor: pointer;
}

.desktop-only {
  display: flex;
}

.search-heading {
  padding: 12px 0 18px;
}

.search-heading-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-heading h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.search-wrap.in-search {
  width: 100%;
}

.search-wrap.in-search input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrap.in-search input::placeholder {
  color: var(--text-muted);
}

.search-wrap.in-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.main-content {
  padding: 0 16px 24px;
}

.results-grid {
  gap: 12px;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.list-item:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.list-item.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-card));
}

.list-num {
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.list-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.list-info {
  flex: 1;
  min-width: 0;
}

.list-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-channel {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-duration {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: auto;
}

.dotted {
  color: var(--text-muted);
  font-size: 1rem;
  padding: 4px;
}

.recent-search-item {
  margin-bottom: 8px;
}

.ov-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ov-btn .icon-mask {
  background-color: var(--text-main);
}

@keyframes ctxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ctx-menu {
  position: fixed;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  animation: ctxFadeIn 0.15s ease;
}

.rail-btn[title="Search"] {
  display: none;
}

@media (max-width: 480px) {

  .rail-btn[title="Recents"],
  .rail-btn[title="Changelog"],
  .rail-btn[title="Mobile"] {
    display: none;
  }

  .rail-btn[title="Search"] {
    display: block;
  }

  .play-btn-masked,
  .pause-btn-masked {
    width: 20px;
    height: 20px;
    background-color: var(--text-main);
  }

  .rail-header-icon {
    display: none;
  }

  .ctx-menu {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
    animation: ctxSlideUp 0.25s ease;
  }

  .ctx-menu::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    margin: 4px auto 12px;
  }

  @keyframes ctxSlideUp {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.2s ease;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  width: 360px;
  max-width: 90vw;
  position: relative;
  animation: modalSlideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-sm {
  width: 300px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--glass);
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.modal h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

.modal input,
.modal textarea {
  display: flex;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 14px;
  box-sizing: border-box;
  font-family: var(--font-primary);
  outline: none;
  transition: border-color 0.15s;
}

.modal input:focus,
.modal textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.edit-pl-form {
  display: flex;
  flex-direction: column;
}

.edit-pl-image-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.edit-pl-image-preview {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.edit-pl-image-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.edit-pl-image-label:hover {
  background: var(--accent);
  color: #fff;
}

.edit-pl-remove-image {
  font-size: 11px;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.edit-pl-remove-image:hover {
  background: var(--bg-hover);
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: var(--bg-surface);
  border-radius: 10px;
  overflow: hidden;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.auth-tab.active {
  background: var(--accent);
  color: #fff;
}

.auth-submit {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.15s, transform 0.15s;
}

.auth-submit:hover {
  opacity: 0.9;
}

.auth-submit:active {
  transform: scale(0.98);
}

.auth-error {
  color: #f87171;
  font-size: 12px;
  margin: 8px 0 0;
  min-height: 18px;
}

.ctx-item {
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: none;
  color: var(--text-main);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.1s;
}

.ctx-item:hover {
  background: var(--bg-hover);
}

.ctx-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.list-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  width: 100%;
}

.list-item-wrap {
  position: relative;
  border-radius: 10px;
}

.list-item-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 56px;
  right: 16px;
  height: 1px;
  background: var(--border);
  opacity: 0.4;
}

.list-item-wrap:last-child::after {
  display: none;
}

.recent-search {
  grid-column: 1 / -1;
}

.list-item {
  display: grid;
  grid-template-columns: 32px 44px 1fr 80px 28px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: transparent;
  transition: background 0.15s ease;
  cursor: pointer;
  width: 100%;
  position: relative;
  z-index: 1;
  border: 1px solid transparent;
}

.list-item:hover {
  background: var(--bg-elevated);
  border-color: var(--border);
}

.list-item.active {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
}

.list-item.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.list-item.dragging {
  transition: none;
  opacity: 0.5;
}

.list-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.list-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  gap: 2px;
}

.list-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.list-channel {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-channel .artist-link {
  color: inherit;
  cursor: pointer;
}

.list-channel .artist-link:hover {
  color: var(--accent);
}

.list-duration {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  background: var(--glass);
  padding: 2px 8px;
  border-radius: 6px;
  justify-self: center;
  width: fit-content;
  font-variant-numeric: tabular-nums;
}

.list-num {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  width: 20px;
  margin: 0 auto;
}

.list-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}

.list-item:hover .list-remove {
  opacity: 1;
}

.list-remove:hover {
  color: #ef4444;
}

.dotted {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  opacity: 0;
}

.list-item:hover .dotted {
  opacity: 1;
}

.dotted:hover {
  background: var(--glass);
  color: var(--text-main);
}

.queue-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--glass);
  border-radius: 10px;
  gap: 12px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
  grid-column: 1 / -1;
}

.queue-item:hover {
  background: var(--bg-elevated);
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
}

.queue-item img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  flex-shrink: 0;
}

.queue-item-info {
  flex: 1;
  min-width: 0;
}

.queue-item-info h3 {
  font-size: 14px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-info p {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.queue-item-actions button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.queue-item-actions button:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

.optional-desc {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
  font-weight: 700;
}

.version {
  color: var(--accent);
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.settings {
  display: none;
  flex-direction: column;
  flex: 1;
  padding: 0;
  padding-bottom: 120px;
  background: var(--bg-deep);
  overflow-y: auto;
  font-family: var(--font-primary);
  color: var(--text-main);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  scrollbar-width: none;
  width: 100%;
}

.settings::-webkit-scrollbar {
  display: none;
}

.settings-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

#settingsTabs {
  margin-bottom: 24px;
}

.settings-tab-content {
  display: none;
  padding: 8px 0 16px;
}

.settings-tab-content.active {
  display: block;
}

.settings-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 16px 16px;
  margin-bottom: 20px;
}

.settings-section:last-of-type {
  margin-bottom: 0;
}

.settings-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.setting-item:last-of-type {
  border-bottom: none;
}

.setting-item label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.setting-item select,
.setting-item input[type="color"],
.setting-item input[type="text"] {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 13px;
  font-family: var(--font-primary);
  padding: 8px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.setting-item select:hover,
.setting-item input[type="color"]:hover,
.setting-item input[type="text"]:hover {
  border-color: var(--accent);
}

.setting-item select:focus,
.setting-item input[type="color"]:focus,
.setting-item input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}

.setting-item select {
  min-width: 160px;
}

.setting-item input[type="color"] {
  width: 44px;
  height: 34px;
  padding: 2px;
}

.setting-item input[type="text"] {
  cursor: text;
  min-width: 180px;
}

.settings-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font-primary);
  padding: 8px 16px;
  cursor: pointer;
  margin-top: 8px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.settings-btn:hover {
  border-color: var(--accent);
  color: var(--text-main);
  background: var(--bg-hover);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
}

.switch input:checked+.slider {
  background: var(--accent);
  border-color: var(--accent);
}

.switch input:focus-visible+.slider {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent);
}

.switch input:checked+.slider::before {
  transform: translateX(20px);
  background: #fff;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.shortcut-item:last-of-type {
  border-bottom: none;
}

.shortcut-item span {
  font-size: 14px;
  color: var(--text-secondary);
}

.shortcut-key {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font-primary);
  color: var(--text-main);
  cursor: pointer;
  min-width: 90px;
  text-align: center;
  transition: border-color 0.15s;
  user-select: none;
}

.shortcut-key:hover {
  border-color: var(--accent);
}

.shortcut-key.recording {
  border-color: var(--accent);
  background: var(--accent-glow);
  animation: pulse-border 1s infinite;
}

@keyframes pulse-border {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@media (hover: none) and (pointer: coarse) {

  .ctrl-btn,
  .rail-btn,
  .song-card,
  .list-item,
  .settings-btn,
  .ctx-item {
    cursor: default;
  }

  .album-track-ctx {
    opacity: 1;
  }

  .artist-album-overlay {
    opacity: 1;
  }

  .album-play-btn,
  .album-shuffle-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .dotted {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column-reverse;
    min-height: 100vh;
    padding-left: 0;
    --sidebar-w: 0px;
    --player-height: 190px;
  }

  .app-container.collapsed {
    padding-left: 0;
  }

  .icon-rail,
  .icon-rail.collapsed {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72px;
    border-right: none;
    background: rgba(15, 16, 20, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.22);
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 14px env(safe-area-inset-bottom, 0px);
    z-index: 100;
  }

  .rail-btn {
    width: 52px;
    min-width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    font-size: 16px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
    isolation: isolate;
  }

  .rail-btn:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .rail-btn.active {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.18);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
  }

  .rail-btn .icon-desc {
    display: none;
  }

  .rail-btn.active::before {
    display: none;
  }

  .rail-toggle,
  .rail-logo {
    display: none;
  }

  .nav-group {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    margin: 0;
  }

  .rail-top-row {
    display: none;
  }

  .top-nav-group {
    display: flex;
    position: static;
    bottom: auto;
    left: auto;
    width: auto;
    flex-direction: row;
    gap: 2px;
    padding: 0;
    flex: none;
    max-width: none;
    margin-bottom: 0;
    margin-top: 0;
    align-items: center;
  }

  .bottom-nav-group {
    position: static;
    bottom: auto;
    left: auto;
    width: auto;
    display: flex;
    flex-direction: row;
    gap: 2px;
    padding: 0;
    flex: none;
    max-width: none;
    margin-bottom: 0;
    margin-top: 0;
  }

  .bottom-nav-group .rail-btn {
    height: 100%;
    font-size: .8125rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
  }

  .bottom-nav-group::after {
    display: none;
  }

  .main-header {
    height: 60px;
    padding: 0 16px;
    gap: 10px;
  }

  .header-center {
    display: none;
  }

  .view-title {
    font-size: 18px;
  }

  .search-wrap {
    flex: 1;
  }

  .search-wrap.in-search {
    flex: 1;
    min-width: 0;
  }

  .content-area {
    padding: 18px 16px 18px;
  }

  .settings,
  .changelog,
  .credits,
  .donate,
  .mobile {
    padding-bottom: 190px;
  }

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

  .song-card {
    border-radius: 18px;
  }

  .song-card:hover {
    transform: translateY(-2px);
  }

  .now-playing {
    width: auto;
  }

  .player-controls {
    max-width: none;
  }

  .player-deck {
    bottom: 72px;
    margin: 0 14px 14px;
    padding: 0 18px;
  }

  .right-controls {
    width: auto;
  }

  .volume-area {
    display: none;
  }

  .list-item {
    grid-template-columns: 32px 40px 1fr 60px 32px;
    gap: 12px;
  }

  .content-layout.lyrics-open {
    grid-template-columns: 1fr;
  }

  .lyrics-panel {
    position: fixed;
    inset: 0;
    z-index: 300;
    border-radius: 0;
    padding: 64px 24px 100px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .search-wrap::before {
    width: 20px;
    height: 20px;
  }

  .app-container {
    flex-direction: column-reverse;
    min-height: 100vh;
    padding-left: 0;
    --sidebar-w: 0px;
    --player-height: 160px;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .app-container.collapsed {
    padding-left: 0;
  }

  .pl-options-dropdown {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
  }

  .icon-rail {
    order: 999 !important;
  }

  .icon-rail,
  .icon-rail.collapsed {
    display: flex;
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    border-right: none !important;
    border-top: 1px solid var(--border) !important;
    background: #101014 !important;
    backdrop-filter: blur(24px) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
    z-index: 100 !important;
    margin: 0;
  }

  .icon-rail.collapsed .rail-btn {
    width: auto;
    padding: 0;
    justify-content: center;
  }

  .rail-btn {
    font-size: 16px;
    border-radius: 12px;
    padding: 0;
    justify-content: center;
    isolation: isolate;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }

  .icon-rail .nav-group {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    gap: 2px !important;
  }

  .rail-btn.active {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 15%, transparent);
  }

  .rail-btn.active::before {
    display: none;
  }

  .rail-btn .icon-desc {
    display: none;
  }

  .rail-toggle,
  .rail-logo {
    display: none;
  }

  .nav-group {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    padding: 0;
    gap: 2px;
  }

  .nav-group:last-of-type {
    display: none;
  }

  .main-header {
    height: 56px;
    padding: 0 12px;
    gap: 8px;
  }

  .header-left {
    flex: 0 1 auto;
  }

  .header-center {
    display: none;
  }

  .header-right {
    gap: 6px;
  }

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

  .header-icon-btn,
  .profile-circle {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .search-wrap {
    flex: 1;
    min-width: 100px;
    max-width: none;
  }

  .search-wrap.in-search {
    flex: 1;
    min-width: 0;
  }

  .search-wrap input {
    font-size: 12px;
    padding: 6px 10px 6px 30px;
    border-radius: 8px;
  }

  .search-icon {
    left: 10px;
    font-size: 12px;
  }

  .content-area {
    padding: 14px 12px 80px;
  }

  .results-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .song-card {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
  }

  .song-card .thumb-wrap {
    margin-bottom: 0;
    border-radius: 0;
  }

  .song-card h3 {
    font-size: 12px;
    padding: 8px 10px 2px;
    margin: 0;
    line-height: 1.3;
  }

  .song-card p {
    font-size: 11px;
    padding: 0 10px 10px;
    margin: 0;
  }

  .list-item {
    grid-template-columns: 28px 40px 1fr auto auto;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .list-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .list-title {
    font-size: 13px;
    line-height: 1.3;
  }

  .list-channel {
    font-size: 11px;
  }

  .list-duration {
    font-size: 11px;
    color: var(--text-muted);
  }

  .dotted {
    opacity: 1;
  }

  .player-deck {
    bottom: 72px;
    height: 72px;
    padding: 0 16px;
    margin: 0 8px 8px;
    background: rgba(20, 20, 26, 0.97);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  .deck-inner {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
  }

  .deck-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
  }

  .deck-play-btn-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .deck-play-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
    background: var(--text-main);
    color: var(--text-main) !important;
    box-shadow: 0 0 16px var(--accent-glow);
  }

  .now-playing {
    width: auto;
    flex: 1;
    min-width: 0;
    gap: 8px;
  }

  .track-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }

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

  .track-title {
    font-size: 13px;
  }

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

  .player-controls {
    display: none;
  }

  .controls {
    display: none;
  }

  .right-controls {
    flex: 0 0 auto;
    gap: 2px;
  }

  .right-controls .ctrl-btn {
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
  }

  .volume-area {
    display: none;
  }

  .lyrics-container {
    font-size: 1rem;
  }

  .lyrics-line {
    font-size: 1.2rem;
  }

  .lyrics-panel {
    display: none !important;
  }

  .settings,
  .changelog,
  .credits,
  .donate,
  .mobile {
    padding: 24px 16px 160px;
  }

  .settings-title,
  .credits-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .settings-section {
    padding: 4px 12px 12px;
    margin-bottom: 16px;
  }

  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .setting-item select {
    width: 100%;
  }

  .shortcut-key {
    min-width: 80px;
  }

  .artist-hero {
    padding: 16px 16px 20px;
    min-height: auto;
    align-items: center;
    gap: 14px;
  }

  .artist-hero-bg {
    filter: blur(40px) brightness(0.2);
  }

  .artist-hero-img {
    position: relative;
    left: auto;
    bottom: auto;
    width: 120px;
    height: 120px;
    margin-bottom: 0;
  }

  .artist-hero-placeholder {
    position: relative;
    left: auto;
    bottom: auto;
    width: 120px;
    height: 120px;
    font-size: 48px;
    margin-bottom: 0;
  }

  .artist-hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  .artist-hero-name {
    font-size: 1.25rem;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .artist-hero-stats {
    text-align: center;
  }

  .artist-hero-socials {
    justify-content: center;
  }

  .artist-hero-actions {
    justify-content: center;
  }

  .search-tabs {
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
  }

  .search-tabs::-webkit-scrollbar {
    display: none;
  }

  .search-tab {
    font-size: 13px;
    padding: 10px 16px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .search-heading {
    padding: 10px 16px 12px;
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
  }

  .search-heading h1 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
  }

  .search-wrap.in-search input {
    padding: 12px 16px 12px 40px;
    border-radius: 14px;
    font-size: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .search-wrap.in-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
    outline: none;
  }

  .search-wrap.in-search::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    left: 14px;
    pointer-events: none;
    background-color: var(--text-muted);
    -webkit-mask-image: url('../icons/search.svg');
    mask-image: url('../icons/search.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    z-index: 1;
  }

  .list-grid {
    gap: 2px;
    padding: 0;
  }

  .list-item-wrap::after {
    left: 78px;
  }

  .artist-section {
    padding: 0 8px;
  }

  .artist-section-title {
    font-size: 1.2rem;
  }

  .artist-albums-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .artist-album-info {
    padding: 6px 8px 8px;
  }

  .artist-album-title {
    font-size: 11px;
  }

  .artist-tracks-grid {
    grid-template-columns: 1fr;
  }

  .artist-track-item {
    padding: 8px 10px;
    gap: 8px;
  }

  .artist-track-item img {
    width: 36px;
    height: 36px;
  }

  .artist-track-title {
    font-size: 12px;
  }

  .artist-track-meta {
    font-size: 11px;
  }

  .artist-track-duration {
    font-size: 11px;
  }

  .modal {
    padding: 20px;
    max-height: 85vh;
    overflow-y: auto;
  }
}

.full-player {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--bg-deep);
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.full-player.open {
  display: flex;
  opacity: 1;
}

.fp-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  position: relative;
  flex-shrink: 0;
}

.fp-header span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.fp-close-btn {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 20px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.fp-close-btn:hover {
  background: var(--bg-hover);
}

.fp-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 32px;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
}

.fp-art {
  width: min(65vw, 300px);
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

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

.fp-info {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.fp-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.fp-artist {
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-progress {
  width: 100%;
  max-width: 400px;
}

.fp-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.fp-progress-bar:hover {
  height: 6px;
}

.fp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg,
      var(--accent),
      color-mix(in srgb, var(--accent) 70%, white));
  width: 0%;
  border-radius: 2px;
  position: relative;
  transition: width 0.1s linear;
}

.fp-progress-fill::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--text-main);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}

.fp-progress-bar:hover .fp-progress-fill::after {
  opacity: 1;
}

.fp-progress-time {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.fp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  max-width: 400px;
}

.fp-ctrl {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.fp-ctrl:hover {
  color: var(--text-main);
  transform: scale(1.1);
}

.fp-ctrl.active {
  color: var(--accent);
}

.fp-play-btn {
  width: 60px;
  height: 60px;
  background: var(--text-main);
  color: var(--bg-deep) !important;
  border-radius: 50%;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.fp-play-btn:hover {
  transform: scale(1.06);
  background: var(--text-main);
}

.fp-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.fp-volume input[type="range"] {
  flex: 1;
  height: 4px;
  appearance: none;
  background: var(--bg-hover);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.fp-volume input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--text-main);
  border-radius: 50%;
}

.fp-extra-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}

.fp-extra-controls .fp-ctrl {
  width: 42px;
  height: 42px;
  background: var(--bg-hover);
}

.fp-lyrics {
  display: none;
  flex-shrink: 0;
  max-height: 40vh;
  overflow-y: auto;
  padding: 0 32px 24px;
  scrollbar-width: none;
}

.full-player.lyrics-visible .fp-lyrics {
  display: block;
}

.fp-lyrics::-webkit-scrollbar {
  display: none;
}

.fp-lyrics-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
}

.fp-lyrics-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.fp-lyrics-container .lyrics-line {
  font-size: 1.3rem;
  padding: 6px 0;
}

@media (min-width: 481px) {
  .full-player {
    max-width: 460px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    border-radius: 20px;
    top: 40px;
    bottom: 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .full-player.open {
    transform: translateX(-50%) scale(1);
  }

  .fp-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 4999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .fp-backdrop.open {
    display: block;
    opacity: 1;
  }
}

@media (max-width: 1145px) {
  .controls {
    display: none;
  }
}

@media (max-width: 480px) {
  .full-player {
    border-radius: 0;
  }

  .fp-body {
    padding: 12px 20px;
    gap: 12px;
  }

  .fp-art {
    width: min(55vw, 220px);
  }

  .fp-title {
    font-size: 1.1rem;
  }

  .fp-controls {
    gap: 22px;
  }

  .fp-play-btn {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .fp-ctrl {
    font-size: 18px;
    width: 38px;
    height: 38px;
  }

  .fp-lyrics {
    padding: 0 20px 16px;
    max-height: 35vh;
  }

  .fp-lyrics-container .lyrics-line {
    font-size: 1.1rem;
  }
}

@media (min-width: 481px) {
  .full-player {
    max-width: 460px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    border-radius: 20px;
    top: 40px;
    bottom: 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .full-player.open {
    transform: translateX(-50%) scale(1);
  }

  .fp-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 4999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .fp-backdrop.open {
    display: block;
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .full-player {
    border-radius: 0;
  }

  .fp-body {
    padding: 12px 20px;
    gap: 12px;
  }

  .fp-art {
    width: min(55vw, 220px);
  }

  .fp-title {
    font-size: 1.1rem;
  }

  .fp-controls {
    gap: 22px;
  }

  .fp-play-btn {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .fp-ctrl {
    font-size: 18px;
    width: 38px;
    height: 38px;
  }

  .fp-lyrics {
    padding: 0 20px 16px;
    max-height: 35vh;
  }

  .fp-lyrics-container .lyrics-line {
    font-size: 1.1rem;
  }
}

.artist-hero {
  position: relative;
  width: 100%;
  min-height: 320px;
  padding: 40px 24px 40px 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 16px;
  margin-bottom: 16px;
}

.artist-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(60px) brightness(0.25);
  transform: scale(1.3);
}

.artist-hero-img {
  position: absolute;
  left: 24px;
  bottom: 40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  z-index: 1;
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.artist-hero-placeholder {
  position: absolute;
  left: 24px;
  bottom: 40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  font-weight: 800;
  color: white;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.artist-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.artist-hero-name {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: white;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  overflow-wrap: break-word;
  max-width: 100%;
}

.artist-hero-stats {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.artist-hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.artist-hero-actions button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.artist-hero-actions button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 25px var(--accent-glow);
}

.artist-hero-actions button.dark-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.artist-hero-actions button.dark-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

@media (min-width: 481px) and (max-width: 900px) {
  .artist-hero {
    padding: 40px 20px 40px 200px;
  }

  .artist-hero-img,
  .artist-hero-placeholder {
    width: 160px;
    height: 160px;
  }

  .artist-hero-placeholder {
    font-size: 64px;
  }

  .artist-hero-name {
    font-size: 2.2rem;
  }
}

.artist-section {
  width: 100%;
  margin-bottom: 32px;
  padding: 0 4px;
}

.artist-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.discography-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.discography-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--accent);
}

.discog-entry {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.discog-header {
  display: flex;
  gap: 16px;
  padding: 16px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.discog-header:hover {
  background: var(--glass);
}

.discog-cover {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.discog-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discog-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.discog-year {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.discog-tracks {
  display: flex;
  flex-direction: column;
}

.discog-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.discog-track:hover {
  background: var(--bg-hover);
}

.discog-track-num {
  width: 24px;
  text-align: right;
  color: var(--text-dim);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.discog-track-name {
  flex: 1;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discog-track-duration {
  color: var(--text-dim);
  font-size: 0.85rem;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.album-spotify-hero {
  display: flex;
  padding: 24px 0 20px;
  align-items: flex-end;
}

.album-spotify-inner {
  display: flex;
  gap: 24px;
  align-items: flex-end;
}

.album-art-wrap {
  flex-shrink: 0;
}

.album-art-wrap img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  background: var(--bg-hover);
}

.album-meta-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 6px;
}

.album-type-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

.album-spotify-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -1px;
}

.album-spotify-artist {
  font-size: 14px;
  font-weight: 600;
}

.album-spotify-artist .artist-link {
  color: var(--text-main);
}

.album-spotify-artist .artist-link:hover {
  text-decoration: underline;
  color: var(--accent);
}

.album-spotify-meta {
  display: flex;
  gap: 4px;
  font-size: 13px;
  color: var(--text-dim);
}

.album-spotify-meta span+span::before {
  content: "·";
  margin-right: 4px;
}

.album-spotify-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 8px 0 20px;
}

.album-spotify-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.album-spotify-play:hover {
  transform: scale(1.06);
  box-shadow: 0 0 20px var(--accent-glow);
}

.album-spotify-shuffle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.album-spotify-shuffle:hover {
  color: var(--text-main);
}

.album-track-header {
  display: grid;
  grid-template-columns: 32px 1fr 60px 24px;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.album-track-header-duration {
  text-align: right;
}

.album-track-list {
  display: flex;
  flex-direction: column;
}

.album-track-row {
  display: grid;
  grid-template-columns: 32px 1fr 60px 24px;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  align-items: center;
}

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

.album-track-row.active {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
}

.album-track-num {
  color: var(--text-muted);
  font-size: 14px;
  text-align: right;
}

.album-track-row:hover .album-track-num,
.album-track-row.active .album-track-num {
  color: var(--text-main);
}

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

.album-track-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.album-track-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-track-artist {
  font-size: 12px;
  color: var(--text-dim);
}

.album-track-artist .artist-link:hover {
  text-decoration: underline;
  color: var(--text-main);
}

.album-track-duration {
  font-size: 13px;
  color: var(--text-dim);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.artist-tag {
  cursor: pointer;
  color: var(--text-dim);
  font-size: 12px;
}

.album-track-ctx {
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-track-row:hover .album-track-ctx {
  opacity: 1;
}

.album-track-ctx:hover {
  color: var(--text-main);
}

@media (max-width: 480px) {
  .album-spotify-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .album-art-wrap img {
    width: 160px;
    height: 160px;
  }

  .album-spotify-title {
    font-size: 1.6rem;
  }

  .album-spotify-meta {
    justify-content: center;
  }

  .album-spotify-actions {
    justify-content: center;
  }
}

.artist-link {
  cursor: pointer;
  color: inherit;
  font-size: 0.8rem;
}

.artist-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.artist-albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  width: 100%;
}

.artist-album-card {
  background: var(--glass);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--border);
}

.artist-album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.artist-album-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background-color: var(--bg-hover);
}

.artist-album-info {
  padding: 10px 12px 12px;
}

.artist-album-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-album-artist {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.artist-album-year {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.artist-album-cover-wrap {
  position: relative;
  overflow: hidden;
}

.artist-album-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.artist-album-card:hover .artist-album-overlay {
  opacity: 1;
}

.album-play-btn,
.album-shuffle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-play-btn:hover,
.album-shuffle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--accent-glow);
}

.singles-section {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: -8px;
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  margin-right: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.back-btn:hover {
  color: var(--text-main);
  background: var(--glass);
}

.credits {
  display: none;
  flex: 1;
  padding: 0;
  padding-bottom: 120px;
  overflow-y: auto;
  max-width: 720px;
  margin: 0 auto;
}

.credits::-webkit-scrollbar {
  display: none;
}

.credits-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

.credits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credits-section {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.credits-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent);
}

.credits-section p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.credits-section ul {
  list-style: none;
  padding: 0;
}

.credits-section li {
  padding: 6px 0 6px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
}

.credits-section li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  opacity: 0.85;
}

.add-to-pl-btn {
  width: 100%;
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.add-to-pl-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.playlist-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14px;
  color: var(--text-main);
  background: transparent;
  border: none;
  text-align: left;
  width: 100%;
}

.playlist-picker-item:hover {
  background: var(--bg-hover);
}

.playlist-picker-item i {
  width: 20px;
  text-align: center;
  color: var(--accent);
  font-size: 16px;
}

.playlist-picker-empty {
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
  padding: 24px 0;
}

.add-song-preview {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.add-song-preview:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--accent-glow);
}

.add-song-add {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  font-weight: 500;
}

.add-song-add:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.add-song-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  color: var(--text-dim);
  font-size: 13px;
}

.pl-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.pl-options-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  margin-top: 4px;
}

.pl-options-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.pl-options-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  min-width: 160px;
  padding: 6px;
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.pl-options-dropdown.show {
  display: flex;
  background: var(--bg-card);
}

.pl-options-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  background: none;
  color: var(--text-main);
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
  width: 100%;
  text-align: left;
}

.pl-options-dropdown button:hover {
  background: var(--bg-hover);
}

.pl-options-dropdown .pl-opt-del {
  color: #ef4444;
}

.pl-options-dropdown .pl-opt-del:hover {
  background: rgba(239, 68, 68, 0.1);
}

.pl-options-dropdown button i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.pl-options-wrap {
  position: relative;
}

@media (min-width: 481px) {
  .player-deck {
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .artist-hero {
    padding: 16px 16px 20px;
    min-height: auto;
    align-items: center;
    gap: 14px;
  }

  .artist-hero-bg {
    filter: blur(40px) brightness(0.2);
  }

  .artist-hero-img {
    position: relative;
    left: auto;
    bottom: auto;
    width: 120px;
    height: 120px;
    margin-bottom: 0;
  }

  .artist-hero-placeholder {
    position: relative;
    left: auto;
    bottom: auto;
    width: 120px;
    height: 120px;
    font-size: 48px;
    margin-bottom: 0;
  }

  .artist-hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  .artist-hero-name {
    font-size: 1.25rem;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .artist-hero-stats {
    text-align: center;
  }

  .artist-hero-actions {
    justify-content: center;
    position: relative;
    z-index: 1;
  }
}

.offline-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--bg-hover);
  margin-bottom: 4px;
}

.offline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.offline-item:hover {
  background: var(--bg-hover);
}

.offline-item-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.offline-item-info {
  flex: 1;
  min-width: 0;
}

.offline-item-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offline-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.offline-item-del {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  font-size: 13px;
  flex-shrink: 0;
}

.offline-item-del:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.offline-spinner {
  color: var(--accent);
  font-size: 14px;
}

.offline-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

.offline-clear-btn {
  padding: 5px 12px;
  font-size: 11px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

.offline-clear-btn:hover {
  background: var(--accent);
  color: #fff;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 1000, "GRAD" 0, "opsz" 24;
  font-weight: 500;
  font-size: 30px;
}

#__vconsole {
  top: 0 !important;
  bottom: auto !important;
}

.downloaded-icon {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--accent);
  font-size: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text);
}

.svg-check {
  width: 20px;
  height: 20px;
}

.check-path {
  stroke: text;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 8px var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 20px var(--accent-glow);
  }
}

.animate-enter {
  animation: fadeInUp 0.35s ease both;
}

.animate-enter-fast {
  animation: fadeIn 0.2s ease both;
}

.results-grid .song-card,
.artist-albums-grid .artist-album-card {
  animation: fadeInUp 0.35s ease both;
}

.results-grid .song-card:nth-child(1),
.artist-albums-grid .artist-album-card:nth-child(1) {
  animation-delay: 0s;
}

.results-grid .song-card:nth-child(2),
.artist-albums-grid .artist-album-card:nth-child(2) {
  animation-delay: 0.04s;
}

.results-grid .song-card:nth-child(3),
.artist-albums-grid .artist-album-card:nth-child(3) {
  animation-delay: 0.08s;
}

.results-grid .song-card:nth-child(4),
.artist-albums-grid .artist-album-card:nth-child(4) {
  animation-delay: 0.12s;
}

.results-grid .song-card:nth-child(5),
.artist-albums-grid .artist-album-card:nth-child(5) {
  animation-delay: 0.16s;
}

.results-grid .song-card:nth-child(6),
.artist-albums-grid .artist-album-card:nth-child(6) {
  animation-delay: 0.2s;
}

.results-grid .song-card:nth-child(7),
.artist-albums-grid .artist-album-card:nth-child(7) {
  animation-delay: 0.24s;
}

.results-grid .song-card:nth-child(8),
.artist-albums-grid .artist-album-card:nth-child(8) {
  animation-delay: 0.28s;
}

.results-grid .song-card:nth-child(n + 9),
.artist-albums-grid .artist-album-card:nth-child(n + 9) {
  animation-delay: 0.32s;
}

.list-grid .list-item-wrap {
  animation: fadeIn 0.25s ease both;
}

.list-grid .list-item-wrap:nth-child(1) {
  animation-delay: 0s;
}

.list-grid .list-item-wrap:nth-child(2) {
  animation-delay: 0.03s;
}

.list-grid .list-item-wrap:nth-child(3) {
  animation-delay: 0.06s;
}

.list-grid .list-item-wrap:nth-child(4) {
  animation-delay: 0.09s;
}

.list-grid .list-item-wrap:nth-child(5) {
  animation-delay: 0.12s;
}

.list-grid .list-item-wrap:nth-child(n + 6) {
  animation-delay: 0.15s;
}

.artist-hero {
  animation: scaleIn 0.4s ease both;
}

.album-spotify-hero {
  animation: fadeInUp 0.35s ease both;
}

.artist-section {
  animation: slideInRight 0.35s ease both;
}

.player-deck {
  animation: fadeInUp 0.3s ease both;
}

.full-player.open .fp-body {
  animation: scaleIn 0.3s ease both;
}

.full-player {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--bg-deep);
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.full-player.open {
  display: flex;
  opacity: 1;
}

.fp-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 12px;
  position: relative;
  flex-shrink: 0;
  gap: 12px;
}

.fp-header .fp-title-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.fp-header .fp-artist-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.fp-close-btn {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.fp-close-btn:hover {
  background: var(--bg-hover);
}

.fp-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 32px 32px;
  gap: 24px;
  min-height: 0;
  overflow-y: auto;
  padding-top: 8px;
}

.fp-art {
  width: min(75vw, 340px);
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

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

.fp-info {
  width: 100%;
  max-width: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fp-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-artist {
  font-size: 1rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-progress {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fp-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-hover);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.fp-progress-bar:hover {
  height: 6px;
}

.fp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg,
      var(--accent),
      color-mix(in srgb, var(--accent) 70%, white));
  width: 0%;
  border-radius: 3px;
  position: relative;
  transition: width 0.1s linear;
}

.fp-progress-fill::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--text-main);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}

.fp-progress-bar:hover .fp-progress-fill::after {
  opacity: 1;
}

.fp-progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.fp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  max-width: 420px;
}

.fp-ctrl {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.fp-ctrl:hover {
  color: var(--text-main);
  transform: scale(1.05);
  background: var(--glass);
}

.fp-ctrl.active {
  color: var(--accent);
}

.fp-play-btn {
  width: 64px;
  height: 64px;
  background: var(--text-main);
  color: var(--bg-deep) !important;
  border-radius: 50%;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.fp-play-btn:hover {
  transform: scale(1.04);
  background: var(--text-main);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.fp-volume {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  padding: 4px 0;
}

.fp-volume i {
  font-size: 18px;
  color: var(--text-secondary);
}

.fp-volume input[type="range"] {
  flex: 1;
  height: 6px;
  appearance: none;
  background: var(--bg-hover);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.fp-volume input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--text-main);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

.fp-volume input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.fp-volume input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--text-main);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.fp-extra-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  justify-content: center;
}

.fp-extra-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-extra-btn:hover {
  color: var(--text-main);
  background: var(--glass);
}

.fp-extra-btn.active {
  color: var(--accent);
}

@media (max-width: 480px) {
  .full-player {
    border-radius: 0;
  }

  .fp-body {
    padding: 0 16px 20px;
    gap: 16px;
  }

  .fp-art {
    width: min(60vw, 240px);
  }

  .fp-title {
    font-size: 1.2rem;
  }

  .fp-artist {
    font-size: 0.9rem;
  }

  .fp-controls {
    gap: 24px;
  }

  .fp-play-btn {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .fp-ctrl {
    font-size: 18px;
    width: 40px;
    height: 40px;
  }

  .fp-header .fp-title-text {
    font-size: 14px;
    max-width: 140px;
  }

  .fp-header .fp-artist-text {
    font-size: 12px;
    max-width: 140px;
  }
}

@media (min-width: 481px) {
  .full-player {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    border-radius: 20px;
    top: 40px;
    bottom: 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-deep);
  }

  .full-player.open {
    transform: translateX(-50%) scale(1);
  }

  .fp-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 4999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .fp-backdrop.open {
    display: block;
    opacity: 1;
  }
}

.donate,
.mobile {
  display: none;
  flex-direction: column;
  flex: 1;
  padding: 0;
  padding-bottom: 120px;
  background: var(--bg-deep);
  overflow-y: auto;
  font-family: var(--font-primary);
  color: var(--text-main);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  scrollbar-width: none;
  justify-content: center;
  align-items: center;
}

.donation-card {
  background-color: var(--bg-deep);
  color: var(--text-main);
  max-width: 450px;
  width: 100%;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-sizing: border-box;
}

.donation-card h2 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 700;
}

.donation-card .description {
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 25px;
}

.goal-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--bg-surface);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  text-align: left;
}

.goal-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
}

.goal-header .percentage {
  color: var(--accent);
}

.progress-bar-bg {
  background-color: var(--bg-elevated);
  border-radius: 10px;
  height: 8px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  background-color: var(--accent);
  height: 100%;
  width: 0%;
  transition: width 0.5s ease-out;
}

.goal-footer {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.btn {
  display: block;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px;
  border-radius: 25px;
  margin-bottom: 12px;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn-kofi {
  background-color: var(--accent);
  color: var(--text-main);
}

img {
  display: flex;
}

.play-now {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask-image: url('../icons/play.svg');
  mask-image: url('../icons/play.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.rail-btn>div:first-child {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: var(--text-secondary);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.rail-btn .home {
  -webkit-mask-image: url('../icons/home.svg');
  mask-image: url('../icons/home.svg');
}

.rail-btn .search {
  -webkit-mask-image: url('../icons/search.svg');
  mask-image: url('../icons/search.svg');
}

.rail-btn .recents {
  -webkit-mask-image: url('../icons/recents.svg');
  mask-image: url('../icons/recents.svg');
}

.rail-btn .library {
  -webkit-mask-image: url('../icons/library.svg');
  mask-image: url('../icons/library.svg');
}

.rail-btn .changelog-icon {
  -webkit-mask-image: url('../icons/changelog.svg');
  mask-image: url('../icons/changelog.svg');
}

.rail-btn .donate-icon {
  -webkit-mask-image: url('../icons/donate.svg');
  mask-image: url('../icons/donate.svg');
}

.rail-btn .settings-icon {
  -webkit-mask-image: url('../icons/settings.svg');
  mask-image: url('../icons/settings.svg');
}

.rail-btn .credits-icon {
  -webkit-mask-image: url('../icons/credits.svg');
  mask-image: url('../icons/credits.svg');
}

.rail-btn .mobile-icon {
  -webkit-mask-image: url('../icons/mobile.svg');
  mask-image: url('../icons/mobile.svg');
}

.ctx-item .queue,
.ctx-item .add,
.ctx-item .download,
.ctx-item .trash {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: #ffffff;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.ctx-item .queue {
  -webkit-mask-image: url('../icons/queue.svg');
  mask-image: url('../icons/queue.svg');
}

.ctx-item .add {
  -webkit-mask-image: url('../icons/add.svg');
  mask-image: url('../icons/add.svg');
}

.ctx-item .download {
  -webkit-mask-image: url('../icons/download.svg');
  mask-image: url('../icons/download.svg');
}

.ctx-item .trash {
  -webkit-mask-image: url('../icons/trash.svg');
  mask-image: url('../icons/trash.svg');
}

.ctx-item .share-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: #ffffff;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-image: url('../icons/share.svg');
  mask-image: url('../icons/share.svg');
}

.ctx-submenu {
  padding: 2px 0;
}

@media (hover: hover) and (pointer: fine) {
  .ctx-submenu {
    position: absolute;
    left: 100%;
    top: -6px;
    min-width: 160px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10001;
  }

  .ctx-item {
    position: relative;
  }
}

.ctx-submenu .ctx-item {
  padding-left: 32px;
  font-size: 12px;
}


.ctx-item .add-to-playlist-icon {
  -webkit-mask-image: url('./icons/addToPlaylist.svg');
  mask-image: url('./icons/addToPlaylist.svg');
}

.ctx-item .icon-mask .cast {
  -webkit-mask-image: url('./icons/cast.svg');
  mask-image: url('./icons/cast.svg');
}

.cast {
  background-color: var(--text-secondary);
  color: var(--text-secondary);
}

.cast-btn {
  color: var(--text-secondary);
  width: 20px;
  height: 20px;
}

.play-next {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask-image: url('../icons/play-next.svg');
  mask-image: url('../icons/play-next.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.icon-mask {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: var(--text-secondary);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  vertical-align: middle;
}

.icon-mask-strong {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: var(--bg-deep);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  vertical-align: middle;
}

.icon-control {
  background-color: var(--bg-deep);
}

.icon-play {
  -webkit-mask-image: url('../icons/play.svg');
  mask-image: url('../icons/play.svg');
}

.icon-pause {
  -webkit-mask-image: url('../icons/pause.svg');
  mask-image: url('../icons/pause.svg');
}

.icon-clock {
  -webkit-mask-image: url('../icons/clock.svg');
  mask-image: url('../icons/clock.svg');
  background-color: var(--text-muted);
}

.icon-shuffle {
  -webkit-mask-image: url('../icons/shuffle.svg');
  mask-image: url('../icons/shuffle.svg');
}

.icon-skip-back {
  -webkit-mask-image: url('../icons/skip-back.svg');
  mask-image: url('../icons/skip-back.svg');
}

.icon-skip-forward {
  -webkit-mask-image: url('../icons/skip-forward.svg');
  mask-image: url('../icons/skip-forward.svg');
}

.icon-play-next {
  -webkit-mask-image: url('../icons/play-next.svg');
  mask-image: url('../icons/play-next.svg');
}

.icon-repeat {
  -webkit-mask-image: url('../icons/repeat.svg');
  mask-image: url('../icons/repeat.svg');
}

.icon-heart {
  -webkit-mask-image: url('../icons/heart.svg');
  mask-image: url('../icons/heart.svg');
}

.icon-heart-fill {
  -webkit-mask-image: url('../icons/heart-fill.svg');
  mask-image: url('../icons/heart-fill.svg');
}

.icon-cast {
  -webkit-mask-image: url('../icons/cast.svg');
  mask-image: url('../icons/cast.svg');
}

.icon-add-to-playlist {
  -webkit-mask-image: url('../icons/addToPlaylist.svg');
  mask-image: url('../icons/addToPlaylist.svg');
}

.icon-queue {
  -webkit-mask-image: url('../icons/queue.svg');
  mask-image: url('../icons/queue.svg');
}

.icon-volume {
  -webkit-mask-image: url('../icons/volume-2.svg');
  mask-image: url('../icons/volume-2.svg');
}

.icon-arrow-left {
  -webkit-mask-image: url('../icons/arrow-left.svg');
  mask-image: url('../icons/arrow-left.svg');
}

.scroll-btn .icon-arrow-left,
.scroll-btn .icon-arrow-right {
  background-color: var(--text-main);
}

.scroll-btn.prev {
  background-color: var(--bg-elevated);
}

.icon-arrow-right {
  -webkit-mask-image: url('../icons/arrow-right.svg');
  mask-image: url('../icons/arrow-right.svg');
}

.scroll-btn.next {
  background-color: var(--bg-elevated);
}

.icon-home {
  -webkit-mask-image: url('../icons/home.svg');
  mask-image: url('../icons/home.svg');
}

.icon-user {
  -webkit-mask-image: url('../icons/user.svg');
  mask-image: url('../icons/user.svg');
}

.icon-chevron-down {
  -webkit-mask-image: url('../icons/chevron-down.svg');
  mask-image: url('../icons/chevron-down.svg');
}

.icon-x-circle {
  -webkit-mask-image: url('../icons/x-circle.svg');
  mask-image: url('../icons/x-circle.svg');
}

.icon-wifi {
  -webkit-mask-image: url('../icons/wifi.svg');
  mask-image: url('../icons/wifi.svg');
}

.icon-music {
  -webkit-mask-image: url('../icons/music.svg');
  mask-image: url('../icons/music.svg');
}

.icon-camera {
  -webkit-mask-image: url('../icons/camera.svg');
  mask-image: url('../icons/camera.svg');
}

.icon-add {
  -webkit-mask-image: url('../icons/add.svg');
  mask-image: url('../icons/add.svg');
}

.icon-download {
  -webkit-mask-image: url('../icons/download.svg');
  mask-image: url('../icons/download.svg');
}

.icon-check {
  -webkit-mask-image: url('../icons/check.svg');
  mask-image: url('../icons/check.svg');
}

.icon-info {
  -webkit-mask-image: url('../icons/info.svg');
  mask-image: url('../icons/info.svg');
}

.icon-ellipsis {
  -webkit-mask-image: url('../icons/ellipsis.svg');
  mask-image: url('../icons/ellipsis.svg');
}

.icon-pencil {
  -webkit-mask-image: url('../icons/pencil.svg');
  mask-image: url('../icons/pencil.svg');
}

.icon-grip {
  -webkit-mask-image: url('../icons/grip.svg');
  mask-image: url('../icons/grip.svg');
}

.icon-trash {
  -webkit-mask-image: url('../icons/trash.svg');
  mask-image: url('../icons/trash.svg');
}

.icon-lyrics {
  -webkit-mask-image: url('../icons/lyrics.svg');
  mask-image: url('../icons/lyrics.svg');
}

img[src$=".svg"] {
  filter: brightness(0) invert(1);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent);
  color: var(--text-main);
  border: none;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  user-select: none;
  margin-left: 10px;
  margin-top: 18px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.download-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.download-btn.disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
}

.recent-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 0.3fr);
  gap: 8px;
  grid-column: 1/-1;
  margin-bottom: 20px;
}

.recent-quick-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  min-height: 48px;
  overflow: hidden;
}

.recent-quick-card:hover {
  background: var(--bg-elevated);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.recent-quick-card img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-hover);
}

.recent-quick-card .rq-fallback {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
}

.recent-quick-card .rq-label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

@media (max-width: 800px) {
  .recent-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.translation-dropdown {
  color-scheme: dark;
  border: transparent;
  width: 10rem;
  height: auto;
  padding: 8px 20px;
  color: var(--text-main);
  border-radius: 60px;
  cursor: pointer;
  background-color: var(--bg-elevated);
  font-size: 0.85rem;
  appearance: auto;
  -webkit-appearance: auto;
  margin: 4px 0;
  outline: none;
}

.translation-dropdown:focus {
  border-color: var(--accent);
}

option {
  background-color: var(--bg-deep);
  color: var(--text-main);
}