:root {
  color-scheme: light dark;
  --font-family: 'Inter', 'Noto Sans', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans HK',
    'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Hebrew', 'Noto Sans Arabic', 'Noto Sans Devanagari',
    'Noto Sans Bengali', 'Noto Sans Thai', 'Noto Sans Tamil', 'Noto Sans Telugu',
    'Noto Sans Gujarati', 'Noto Sans Kannada', 'Noto Sans Malayalam', 'Noto Sans Sinhala',
    'Noto Sans Khmer', 'Noto Sans Lao', 'Noto Sans Myanmar', 'Noto Sans Georgian',
    'Noto Sans Armenian', 'Noto Sans Ethiopic', system-ui, -apple-system, blinkmacsystemfont,
    'Segoe UI', roboto, sans-serif;
  --font-family-ja: 'Inter', 'Noto Sans', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic',
    meiryo, 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans HK',
    'Noto Sans Hebrew', 'Noto Sans Arabic', 'Noto Sans Devanagari', 'Noto Sans Bengali',
    'Noto Sans Thai', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Gujarati',
    'Noto Sans Kannada', 'Noto Sans Malayalam', 'Noto Sans Sinhala', 'Noto Sans Khmer',
    'Noto Sans Lao', 'Noto Sans Myanmar', 'Noto Sans Georgian', 'Noto Sans Armenian',
    'Noto Sans Ethiopic', system-ui, -apple-system, blinkmacsystemfont, 'Segoe UI', roboto,
    sans-serif;
  --font-size-scale: 100%;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 3.75rem;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --spacing-xs: var(--space-1);
  --spacing-sm: var(--space-2);
  --spacing-md: var(--space-4);
  --spacing-lg: var(--space-6);
  --spacing-xl: var(--space-8);
  --spacing-2xl: var(--space-12);
  --spacing-3xl: var(--space-16);
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  --radius: var(--radius-md);
  --player-bar-height-desktop: 90px;
  --player-bar-height-mobile: 130px;
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 70px;
  --duration-instant: 0ms;
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-fast: var(--duration-fast) var(--ease-in-out);
  --transition-normal: var(--duration-normal) var(--ease-in-out);
  --transition-slow: var(--duration-slow) var(--ease-in-out);
  --transition: var(--transition-normal);
  --shadow-none: none;
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  --shadow-glow: 0 0 20px rgb(var(--highlight-rgb) / 0.5);
  --z-hide: -1;
  --z-base: 0;
  --z-docked: 10;
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-banner: 1200;
  --z-overlay: 1300;
  --z-modal: 1400;
  --z-popover: 1500;
  --z-tooltip: 1600;
  --z-toast: 1700;
  --btn-height-sm: 32px;
  --btn-height-md: 40px;
  --btn-height-lg: 48px;
  --btn-padding-sm: var(--space-2) var(--space-3);
  --btn-padding-md: var(--space-3) var(--space-4);
  --btn-padding-lg: var(--space-4) var(--space-6);
  --input-height: 40px;
  --input-padding: var(--space-3) var(--space-4);
  --card-padding: var(--space-4);
  --card-gap: var(--space-4);
  --card-radius: var(--radius-lg);
  --modal-padding: var(--space-6);
  --modal-radius: var(--radius-xl);
  --modal-max-width-sm: 400px;
  --modal-max-width-md: 500px;
  --modal-max-width-lg: 600px;
  --modal-max-width-xl: 800px;
  --cover-filter: blur(50px) brightness(0.4);
  --cover-radius: var(--radius-md);
  --color-danger: #ef4444;
  --color-danger-hover: #dc2626;
  --color-success: #10b981;
  --color-success-hover: #059669;
  --color-warning: #f59e0b;
  --color-warning-hover: #d97706;
  --color-info: #3b82f6;
  --color-info-hover: #2563eb;
}
:root[data-theme='monochrome'] {
  color-scheme: dark;
  --background: #0a0a0a;
  --foreground: #f5f5f5;
  --card: #141414;
  --card-foreground: #f5f5f5;
  --primary: #f5f5f5;
  --primary-foreground: #0a0a0a;
  --secondary: #1f1f1f;
  --secondary-foreground: #e0e0e0;
  --muted: #1f1f1f;
  --muted-foreground: #a0a0a0;
  --border: #2a2a2a;
  --input: #1f1f1f;
  --ring: #f5f5f5;
  --highlight: #f5f5f5;
  --highlight-rgb: 245, 245, 245;
  --active-highlight: var(--highlight);
  --explicit-badge: #f5f5f5;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --background: #0a0a0a;
  --foreground: #ededed;
  --card: #1a1a1a;
  --card-foreground: #ededed;
  --primary: #3b82f6;
  --primary-foreground: #fff;
  --secondary: #2a2a2a;
  --secondary-foreground: #ededed;
  --muted: #2a2a2a;
  --muted-foreground: #a0a0a0;
  --border: #2a2a2a;
  --input: #2a2a2a;
  --ring: #3b82f6;
  --highlight: #3b82f6;
  --highlight-rgb: 59, 130, 246;
  --active-highlight: #3b82f6;
  --explicit-badge: #750a0a;
}
:root[data-theme='ocean'] {
  color-scheme: dark;
  --background: #0c1821;
  --foreground: #e0f4ff;
  --card: #1b2838;
  --card-foreground: #e0f4ff;
  --primary: #06b6d4;
  --primary-foreground: #0c1821;
  --secondary: #1e3a52;
  --secondary-foreground: #e0f4ff;
  --muted: #1e3a52;
  --muted-foreground: #94c5e0;
  --border: #1e3a52;
  --input: #1e3a52;
  --ring: #06b6d4;
  --highlight: #06b6d4;
  --highlight-rgb: 6, 182, 212;
  --active-highlight: #06b6d4;
  --explicit-badge: #f43f5e;
}
:root[data-theme='purple'] {
  color-scheme: dark;
  --background: #0f0514;
  --foreground: #f3e8ff;
  --card: #1e0a2e;
  --card-foreground: #f3e8ff;
  --primary: #a855f7;
  --primary-foreground: #fff;
  --secondary: #2d1545;
  --secondary-foreground: #f3e8ff;
  --muted: #2d1545;
  --muted-foreground: #c4b5fd;
  --border: #2d1545;
  --input: #2d1545;
  --ring: #a855f7;
  --highlight: #a855f7;
  --highlight-rgb: 168, 85, 247;
  --active-highlight: #a855f7;
  --explicit-badge: #ec4899;
}
:root[data-theme='forest'] {
  color-scheme: dark;
  --background: #0a1409;
  --foreground: #e8f5e9;
  --card: #1a2e1a;
  --card-foreground: #e8f5e9;
  --primary: #22c55e;
  --primary-foreground: #0a1409;
  --secondary: #2d4a2d;
  --secondary-foreground: #e8f5e9;
  --muted: #2d4a2d;
  --muted-foreground: #86efac;
  --border: #2d4a2d;
  --input: #2d4a2d;
  --ring: #22c55e;
  --highlight: #22c55e;
  --highlight-rgb: 34, 197, 94;
  --active-highlight: #22c55e;
  --explicit-badge: #f59e0b;
}
:root[data-theme='mocha'] {
  color-scheme: dark;
  --background: #1e1e2e;
  --foreground: #cdd6f4;
  --card: #313244;
  --card-foreground: #9399b2;
  --primary: #89b4fa;
  --primary-foreground: #313244;
  --secondary: #45475a;
  --secondary-foreground: #9399b2;
  --muted: #313244;
  --muted-foreground: #a6adc8;
  --border: #313244;
  --input: #45475a;
  --ring: #89b4fa;
  --highlight: #89b4fa;
  --highlight-rgb: 180, 190, 254;
  --active-highlight: #b4befe;
  --explicit-badge: #f9e2af;
}
:root[data-theme='machiatto'] {
  color-scheme: dark;
  --background: #24273a;
  --foreground: #cad3f5;
  --card: #363a4f;
  --card-foreground: #939ab7;
  --primary: #8aadf4;
  --primary-foreground: #363a4f;
  --secondary: #494d64;
  --secondary-foreground: #6e738d;
  --muted: #363a4f;
  --muted-foreground: #a5adcb;
  --border: #363a4f;
  --input: #494d64;
  --ring: #8aadf4;
  --highlight: #8aadf4;
  --highlight-rgb: 183, 189, 248;
  --active-highlight: #b7bdf8;
  --explicit-badge: #eed49f;
}
:root[data-theme='frappe'] {
  color-scheme: dark;
  --background: #303446;
  --foreground: #c6d0f5;
  --card: #414559;
  --card-foreground: #949cbb;
  --primary: #8caaee;
  --primary-foreground: #313244;
  --secondary: #51576d;
  --secondary-foreground: #a5adce;
  --muted: #414559;
  --muted-foreground: #a5adce;
  --border: #414559;
  --input: #45475a;
  --ring: #8caaee;
  --highlight: #8caaee;
  --highlight-rgb: 186, 187, 241;
  --active-highlight: #babbf1;
  --explicit-badge: #e5c890;
}
:root[data-theme='latte'] {
  color-scheme: light;
  --background: #eff1f5;
  --foreground: #4c4f69;
  --card: #ccd0da;
  --card-foreground: #7c7f93;
  --primary: #1e66f5;
  --primary-foreground: #ccd0da;
  --secondary: #bcc0cc;
  --secondary-foreground: #9ca0b0;
  --muted: #ccd0da;
  --muted-foreground: #6c6f85;
  --border: #ccd0da;
  --input: #bcc0cc;
  --ring: #fdfdfd;
  --highlight: #1e66f5;
  --highlight-rgb: 114, 135, 253;
  --active-highlight: #7287fd;
  --explicit-badge: #df8e1d;
}
:root[data-theme='white'] {
  color-scheme: light;
  --background: #f5f5f5;
  --foreground: #1a1a1a;
  --card: #e8e8e8;
  --card-foreground: #1a1a1a;
  --primary: #1a1a1a;
  --primary-foreground: #f5f5f5;
  --secondary: #ddd;
  --secondary-foreground: #2a2a2a;
  --muted: #e0e0e0;
  --muted-foreground: #555;
  --border: #ccc;
  --input: #e0e0e0;
  --ring: #1a1a1a;
  --highlight: #1a1a1a;
  --highlight-rgb: 26, 26, 26;
  --active-highlight: var(--highlight);
  --explicit-badge: #1a1a1a;
  --cover-filter: blur(50px) brightness(1.6) opacity(0.35);
}
*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-family, 'Inter', sans-serif) !important;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  overflow: hidden;
  font-size: var(--font-size-scale, 100%);
}
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-family, 'Inter', sans-serif) !important;
  overflow: hidden;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  height: 100%;
  position: fixed;
  width: 100%;
}
kbd {
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-sm);
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}
.m-0 {
  margin: var(--space-0);
}
.m-1 {
  margin: var(--space-1);
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}
svg {
  display: block;
  vertical-align: middle;
}
img {
  max-width: 100%;
  display: block;
  background-color: var(--muted);
  border: none;
}
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  outline: none;
  transition: all var(--transition-fast);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgb(var(--highlight-rgb) / 0.2);
}
span {
  display: inline-block;
}
li {
  list-style: none;
}
ul {
  padding: 0;
  margin: 0;
}
.p-1 {
  padding: var(--space-1);
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.flex-wrap {
  flex-wrap: wrap;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-container {
  display: grid;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  grid-template: 'main' 1fr 'player' auto / 1fr;
}
.sidebar {
  grid-area: sidebar;
  min-height: 0;
  background-color: var(--background);
  border-right: 1px solid var(--border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sidebar-nav.main {
  flex: 1;
  flex-shrink: 0;
}
.sidebar-bottom-container {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.sidebar-nav-bottom {
  margin-top: auto;
  padding-top: 1rem;
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  background: var(--background);
  position: relative;
}
.sidebar-nav-bottom:before {
  content: '';
  display: block;
  height: 0.5rem;
  margin-top: -0.5rem;
}
.main-content {
  grid-area: main;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--spacing-xl);
  scroll-behavior: smooth;
  position: relative;
  padding-bottom: 160px !important;
}
#page-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  z-index: 0;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  -webkit-mask-image: linear-gradient(to bottom, #000, #000c 40%, #0000);
  mask-image: linear-gradient(to bottom, #000, #000c 40%, #0000);
  filter: var(--cover-filter);
  pointer-events: none;
}
#page-background.active {
  opacity: 1;
}
:root[data-theme='white'] #page-background {
  -webkit-mask-image: linear-gradient(to bottom, #000, #0000);
  mask-image: linear-gradient(to bottom, #000, #0000);
}
.now-playing-bar {
  grid-area: player;
  padding: var(--spacing-sm) var(--spacing-md);
  display: grid;
  grid-template-columns: 1fr 0.9fr 1fr;
  align-items: center;
  gap: var(--spacing-sm);
  z-index: 2100;
  width: calc(100% - 24px) !important;
  left: 12px !important;
  bottom: 80px !important;
  border-radius: var(--radius);
  position: fixed !important;
  background-color: color-mix(in srgb, var(--card) 85%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2xl);
  transition: all var(--transition-normal) var(--ease-out-back);
  height: var(--player-bar-height-desktop);
  animation: slide-up var(--transition-slow) var(--ease-out-back);
}
:root[data-theme='white'] .now-playing-bar {
  background-color: color-mix(in srgb, var(--card) 80%, transparent);
  border-color: #0000001a;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.sidebar-logo-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.sidebar-logo .app-logo {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.sidebar-logo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
#sidebar-toggle {
  padding: 0;
  flex-shrink: 0;
}
.sidebar-nav ul {
  list-style: none;
}
.sidebar-nav .nav-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  font-weight: 500;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
  cursor: pointer;
}
.search-bar svg.search-icon {
  width: 20px;
  height: 20px;
}
.sidebar-nav .nav-item a:hover {
  background-color: var(--secondary);
  color: var(--foreground);
  transform: translate(4px);
}
.sidebar-nav .nav-item a.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.sidebar-nav .nav-item a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.sidebar-nav.bottom {
  margin: 0;
  padding: 0;
}
.sidebar-nav.bottom .nav-item a {
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
}
.sidebar-nav.bottom .nav-item a svg {
  width: 17px;
  height: 17px;
}
.pinned-items-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted-foreground);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
#pinned-items-nav {
  margin-top: auto;
  min-height: 0;
  flex: 1 1 auto;
  margin-bottom: 0;
  padding-bottom: 0;
  overflow: visible;
}
#pinned-items-list .nav-item a {
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}
#pinned-items-list .nav-item a .pinned-item-cover {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  object-fit: cover;
}
#pinned-items-list .nav-item a .pinned-item-cover.artist {
  border-radius: var(--radius-full);
}
#pinned-items-list .nav-item a .pinned-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.pinned-item-collage {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
}
.pinned-item-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--muted);
}
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #00000080;
  z-index: 2150;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.main-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  gap: var(--spacing-md);
  position: relative;
  z-index: 1000;
  width: 100%;
}
.header-account-control {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}
#header-account-dropdown {
  left: auto;
  right: 0;
}
#header-account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-account-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.navigation-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.nav-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.nav-btn:hover {
  background-color: var(--secondary);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}
.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.hamburger-menu {
  display: none;
  background: transparent;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: background-color var(--transition);
}
.hamburger-menu:hover {
  background-color: var(--secondary);
}
.search-bar {
  width: auto;
  max-width: 100%;
  min-width: 0;
  flex: 1;
}
.search-bar input {
  font-size: 1rem;
  transition:
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}
.search-bar,
.track-list-search-container {
  position: relative;
  display: flex;
  align-items: center;
}
.search-bar svg.search-icon,
.track-list-search-container svg.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}
.search-bar input,
.track-list-search-input {
  width: 100%;
  padding: 0.75rem 2.5rem;
  background-color: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  transition:
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}
.search-bar input:focus,
.track-list-search-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgb(var(--highlight-rgb) / 0.2);
}
.search-clear-btn {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  z-index: 1;
}
body.has-page-background .search-bar input {
  background-color: var(--background);
}
body.has-page-background .track-item:hover {
  background-color: var(--track-hover-bg, var(--secondary));
  transform: scale(1.005);
}
.search-history {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 300px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: var(--shadow-xl);
  margin-top: -1px;
  animation: slide-up var(--transition-fast) var(--ease-out-back);
  transform-origin: top;
}
.search-history-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: background var(--transition);
}
.search-history-item:hover {
  background: var(--secondary);
}
.search-history-item .query-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-history-item .delete-history-btn {
  padding: 4px;
  color: var(--muted-foreground);
  opacity: 0.5;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-history-item .delete-history-btn:hover {
  opacity: 1;
  color: #ef4444;
}
.search-history-clear-all {
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--primary);
  cursor: pointer;
  border-top: 1px solid var(--border);
  transition: background var(--transition);
}
.search-history-clear-all:hover {
  background: var(--secondary);
}
input[type='search']::-webkit-search-cancel-button {
  appearance: none;
  display: none;
}
.page {
  display: none;
  position: relative;
  z-index: 1;
}
.page.active {
  display: block;
  animation: fade-in-slide-up var(--transition-normal) var(--ease-out-back);
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fade-in-slide-up {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scale-in {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  70% {
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes slide-in {
  0% {
    opacity: 0;
    transform: translate(20px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}
@keyframes slide-out {
  0% {
    opacity: 1;
    transform: translate(0);
  }
  to {
    opacity: 0;
    transform: translate(20px);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes heart-beat {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(0.95);
  }
  to {
    transform: scale(1);
  }
}
@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.content-section {
  margin-bottom: var(--spacing-2xl);
}
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}
.section-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-md);
}
.section-header-row .section-title {
  margin-bottom: 0;
}
.search-tabs {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.search-tabs::-webkit-scrollbar {
  display: none;
}
.search-tab {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  padding: var(--spacing-sm) var(--spacing-lg);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
  position: relative;
}
.search-tab:hover {
  color: var(--foreground);
  background-color: rgb(var(--highlight-rgb), 0.05);
}
.search-tab:active {
  transform: translateY(1px);
}
.search-tab.active {
  color: var(--foreground);
  border-bottom-color: var(--highlight);
}
.search-tab-content {
  display: none;
}
.search-tab-content.active {
  display: block;
  animation: fade-in-slide-up 0.4s var(--ease-out-back);
}
.settings-tabs {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.settings-tab {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  padding: var(--spacing-sm) var(--spacing-lg);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
  position: relative;
}
.settings-tab:hover {
  color: var(--foreground);
  background-color: rgb(var(--highlight-rgb), 0.05);
}
.settings-tab:active {
  transform: translateY(1px);
}
.settings-tab.active {
  color: var(--foreground);
  border-bottom-color: var(--highlight);
}
.settings-tab-content {
  display: none;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
}
.settings-tab-content.active {
  display: block;
  animation: fade-in-slide-up 0.4s var(--ease-out-back);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}
.card {
  display: block;
  background-color: var(--card);
  padding: var(--spacing-md);
  border-radius: var(--radius);
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-normal);
  position: relative;
  border: 1px solid transparent;
}
.card:hover {
  background-color: var(--secondary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}
.card-image-wrapper {
  position: relative;
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-normal);
  aspect-ratio: 1;
}
.card:hover .card-image-wrapper {
  box-shadow: var(--shadow-xl);
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--transition-slow);
}
.card:hover .card-image {
  transform: scale(1.05);
}
.card-like-btn {
  position: absolute;
  right: 2%;
  top: 2%;
}
.card-menu-btn {
  position: absolute;
  left: 2%;
  top: 2%;
}
.card-like-btn,
.card-menu-btn,
.edit-playlist-btn,
.delete-playlist-btn {
  background: #0006 !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast),
    background-color var(--transition-fast) !important;
  z-index: 10;
  color: #fff !important;
  border: 1px solid rgb(255, 255, 255, 0.1) !important;
  cursor: pointer;
}
.card-like-btn:hover,
.card-menu-btn:hover,
.edit-playlist-btn:hover,
.delete-playlist-btn:hover {
  background: #000000b3 !important;
  transform: scale(1.1) rotate(5deg) !important;
  border-color: #ffffff4d !important;
}
.card:hover .card-like-btn,
.card:hover .card-menu-btn,
.card-like-btn.active,
.card:hover .edit-playlist-btn,
.card:hover .delete-playlist-btn {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.05s;
}
.card-like-btn.active {
  color: #ef4444 !important;
}
.edit-playlist-btn {
  position: absolute;
  top: 2%;
  right: 2%;
}
.delete-playlist-btn {
  position: absolute;
  top: 2%;
  left: 2%;
}
.delete-playlist-btn:hover {
  color: #ef4444 !important;
}
.card-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  padding: 0;
}
.card-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
}
.card.artist .card-image {
  border-radius: var(--radius-full);
}
.card-image-wrapper .explicit-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}
.card-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-subtitle {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.heart-icon {
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}
.like-btn:hover .heart-icon {
  color: #ef4444;
}
.heart-icon.filled {
  color: #ef4444;
  fill: #ef4444;
  stroke: #ef4444;
  animation: heart-beat 0.4s var(--ease-elastic);
}
.track-item:hover .like-btn {
  opacity: 1;
}
.like-btn.active .heart-icon {
  color: #ef4444;
  fill: #ef4444;
}
.explicit-badge {
  background-color: var(--secondary);
  color: var(--muted-foreground);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.3rem;
  border-radius: var(--radius-xs);
  margin-left: 0.5rem;
  vertical-align: middle;
  line-height: 1;
}
.quality-hires {
  border: 1px solid var(--secondary);
  color: var(--muted-foreground);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.3rem;
  border-radius: var(--radius-xs);
  margin-left: 0.5rem;
  vertical-align: middle;
  line-height: 1;
}
.quality-atmos {
  border: 1px solid var(--secondary);
  color: var(--muted-foreground);
  padding: 0.15rem 0.3rem;
  border-radius: var(--radius-xs);
  margin-left: 0.5rem;
  vertical-align: middle;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.quality-atmos svg {
  height: 0.6rem;
  width: auto;
}
.track-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#home-recommended-songs,
#artist-detail-tracks,
#playlist-detail-recommended {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 2px var(--spacing-xl);
}
#artist-detail-in-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(580px, 1fr));
  gap: 2px var(--spacing-xl);
}
#artist-detail-in-library[hidden] {
  display: none;
}
.library-source {
  color: var(--muted-foreground);
  font-size: inherit;
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
  cursor: pointer;
}
.library-artist-flex {
  display: flex;
  align-items: center;
  gap: 0.35em;
  min-width: 0;
}
.library-artist-name,
.library-year,
.library-source-label {
  flex-shrink: 0;
  white-space: nowrap;
}
.library-source-link {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  transition: color var(--transition);
}
.library-source:hover .library-source-link {
  color: var(--highlight);
  text-decoration: underline;
}
@media (max-width: 1100px) {
  #home-recommended-songs,
  #artist-detail-tracks,
  #artist-detail-in-library,
  #playlist-detail-recommended {
    grid-template-columns: 1fr;
  }
}
.album-content-layout {
  display: block;
}
.album-content-layout:after {
  content: '';
  display: table;
  clear: both;
}
@media (min-width: 1200px) {
  #album-detail-tracklist {
    float: left;
    width: 55%;
    margin-right: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
  }
  .album-content-layout .content-section {
    margin-top: 0 !important;
    margin-bottom: var(--spacing-2xl);
  }
  .album-content-layout .content-section .card-grid {
    display: block;
    gap: 0;
  }
  .album-content-layout .content-section .card-grid .card {
    display: inline-block;
    vertical-align: top;
    width: 155px;
    margin: 0 var(--spacing-md) var(--spacing-md) 0;
    white-space: normal;
  }
  .album-content-layout .content-section .card-grid .card.compact {
    display: inline-flex;
    vertical-align: top;
    width: 220px;
    margin-right: var(--spacing-sm);
  }
  .album-content-layout .section-title {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-md);
    clear: none;
  }
}
.track-list-header {
  display: grid;
  grid-template-columns: 40px 1fr 80px 48px;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
  color: var(--muted-foreground);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--spacing-xs);
}
.track-list-header .duration-header {
  justify-self: flex-end;
}
.is-editable .track-list-header .duration-header {
  padding-right: 1.5rem;
}
.track-item {
  display: grid;
  grid-template-columns: 40px 1fr 60px auto;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  align-items: center;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
}
.track-item.no-duration {
  grid-template-columns: 40px 1fr auto;
}
.track-item.no-duration .track-item-duration {
  display: none;
}
.track-item.no-duration.track-item--inline-like {
  grid-template-columns: 40px 1fr auto auto;
}
.track-item:hover {
  background-color: var(--secondary);
  transform: scale(1.005);
}
.track-item:active {
  transform: scale(0.99);
}
.track-item.playing {
  background-color: rgb(var(--highlight-rgb), 0.15);
  border-left: 3px solid var(--highlight);
  padding-left: calc(var(--spacing-sm) - 3px);
}
.track-item.playing .track-item-details .title {
  color: var(--highlight);
}
.track-item.video-track-item {
  gap: var(--spacing-xl);
}
.track-item.unavailable {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(1);
}
.track-item.unavailable .title,
.track-item.unavailable .artist,
.track-item.unavailable .track-item-duration {
  color: var(--muted-foreground);
}
.track-item.dragging {
  opacity: 0.5;
  z-index: 2000;
  pointer-events: auto;
}
.track-checkbox {
  display: none;
  width: 18px;
  height: 18px;
  cursor: pointer;
  color: var(--muted-foreground);
  flex-shrink: 0;
  transition: color var(--transition-fast);
  position: absolute;
  left: 8px;
  z-index: 1;
}
.multi-select-mode .track-checkbox,
body.multi-select-mode .track-checkbox {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.track-checkbox:hover {
  color: var(--foreground);
}
.track-checkbox.checked {
  color: var(--primary);
}
.track-item.selected {
  background-color: rgb(var(--highlight-rgb), 0.1);
}
body.multi-select-mode .track-item {
  cursor: default;
  padding-left: 36px;
}
body.multi-select-mode .track-item:hover {
  transform: none;
}
.selection-bar {
  display: none;
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translate(-50%);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 12px 20px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1000;
  box-shadow: 0 4px 20px #0000004d;
  gap: 12px;
  align-items: center;
}
.selection-bar.visible {
  display: flex;
}
.selection-bar .selection-count {
  color: var(--primary-foreground);
}
.selection-bar .selection-actions {
  display: flex;
  gap: 8px;
}
.selection-bar button {
  background: transparent;
  border: 1px solid var(--primary-foreground);
  color: var(--primary-foreground);
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background var(--transition-fast);
}
.selection-bar button:hover {
  background: #fff3;
}
.track-number {
  color: var(--muted-foreground);
  text-align: center;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.track-item-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  min-width: 0;
}
.track-item-cover {
  width: 40px;
  height: 40px;
  background-color: var(--muted);
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.track-item-details {
  min-width: 0;
}
.track-item-details .title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-items: center;
}
.track-item-details .artist {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-item--inline-like {
  grid-template-columns: 40px 1fr auto 3.25rem auto;
}
.track-item-inline-like {
  display: flex;
  align-items: center;
  justify-content: center;
}
.track-row-like-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}
.track-row-like-btn:hover {
  color: var(--foreground);
  transform: scale(1.08);
}
.track-row-like-btn.active {
  color: #ef4444;
}
.track-item-duration {
  color: var(--muted-foreground);
  justify-self: flex-end;
  font-variant-numeric: tabular-nums;
}
.track-item-actions {
  justify-self: flex-end;
  display: flex;
  align-items: center;
  min-width: 40px;
  justify-content: flex-end;
}
.track-menu-btn {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 10;
}
.track-item:hover .track-menu-btn {
  opacity: 1;
  padding: 0.5rem;
  margin: 0;
}
.track-menu-btn:hover {
  background-color: rgb(var(--highlight-rgb), 0.2);
  color: var(--foreground);
}
.track-action-btn.active {
  opacity: 1;
}
.track-action-btn {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.track-action-btn:hover {
  background-color: rgb(var(--highlight-rgb), 0.2);
  color: var(--foreground);
}
.detail-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
}
.detail-header-image {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  background-color: var(--muted);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.3s ease-in-out;
}
.detail-header-cover-container {
  position: relative;
  flex-shrink: 0;
}
.detail-header-collage {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  background-color: var(--muted);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.detail-header-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  background-color: var(--muted);
}
.detail-header-image.loading {
  opacity: 0.3;
}
.detail-header-image.artist {
  border-radius: var(--radius-full);
}
.detail-header-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.detail-header-banner video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  display: block;
}
#page-artist .detail-header {
  position: relative;
  padding: 12rem 3rem 4rem;
  border-radius: 0;
  overflow: hidden;
  margin-top: -8rem;
  margin-left: calc(var(--spacing-xl) * -1);
  margin-right: calc(var(--spacing-xl) * -1);
  margin-bottom: var(--spacing-xl);
  min-height: 550px;
  display: flex;
  align-items: flex-end;
}
@media (max-width: 1024px) {
  #page-artist .detail-header {
    margin-top: -7rem;
    margin-left: calc(var(--spacing-lg) * -1);
    margin-right: calc(var(--spacing-lg) * -1);
    padding: 10rem 2rem 3rem;
    min-height: 450px;
  }
}
@media (max-width: 768px) {
  #page-artist .detail-header {
    margin-top: -6rem;
    margin-left: calc(var(--spacing-md) * -1);
    margin-right: calc(var(--spacing-md) * -1);
    padding: 8rem 1rem 2rem;
    min-height: 400px;
  }
}
@media (max-width: 480px) {
  #page-artist .detail-header {
    margin-top: -5rem;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 5rem 1rem 2rem;
    min-height: 300px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }
  #page-artist .detail-header-image {
    width: 140px;
    height: 140px;
    border-width: 3px;
  }
  #page-artist .detail-header-info .title {
    font-size: 2rem;
    justify-content: center;
    gap: 0.5rem;
  }
  #page-artist .detail-header-info .meta {
    justify-content: center;
    font-size: 0.85rem;
  }
  #page-artist .detail-header-actions {
    justify-content: center;
    margin-top: 1rem;
  }
  #page-artist .artist-bio {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.85rem;
    line-height: 1.4;
  }
}
.detail-header-banner:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(0, 0, 0, 0.4) 0%,
    rgb(0, 0, 0, 0) 40%,
    rgb(0, 0, 0, 0.2) 70%,
    var(--background) 100%
  );
  z-index: 1;
}
#page-artist .detail-header-image {
  width: 200px;
  height: 200px;
  border: 4px solid var(--background);
  box-shadow: 0 12px 32px #0009;
  z-index: 2;
}
#page-artist .detail-header-info {
  z-index: 2;
  text-shadow: 0 2px 15px rgb(0, 0, 0, 0.7);
}
.detail-header-info .type {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.detail-header-info .title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  min-width: 0;
}
.detail-header-info .title.long-title {
  font-size: 2.5rem;
}
.detail-header-info .title.very-long-title {
  font-size: 1.75rem;
}
.artist-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: 1rem;
}
.artist-tag {
  background-color: var(--secondary);
  color: var(--muted-foreground);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}
.detail-header-info .meta {
  color: var(--muted-foreground);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.detail-header-info .meta a {
  color: var(--foreground);
  text-decoration: none;
  transition: color var(--transition);
}
.detail-header-info .meta a:hover {
  color: var(--highlight);
}
.artist-bio {
  color: var(--muted-foreground);
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 600px;
  display: block;
  overflow: hidden;
  transition: color var(--transition);
}
.artist-bio:hover {
  color: var(--foreground);
}
.artist-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--secondary);
  color: var(--muted-foreground);
  transition: all var(--transition-fast);
}
.social-link:hover {
  background-color: var(--highlight);
  color: var(--background);
  transform: translateY(-2px);
}
.social-link svg {
  width: 18px;
  height: 18px;
}
.bio-link {
  color: var(--highlight) !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  pointer-events: auto !important;
}
.bio-link:hover {
  color: var(--primary) !important;
  text-decoration: none !important;
}
.bio-read-more {
  display: block;
  color: var(--highlight);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}
.bio-read-more:hover {
  color: var(--primary);
}
.bio-source {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.6;
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.detail-header-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.detail-header-actions .btn-primary,
.detail-header-actions .btn-secondary {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#page-party-detail .detail-header-actions .btn-primary,
#page-party-detail .detail-header-actions .btn-secondary {
  width: auto;
  height: auto;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
}
#page-party-detail .detail-header-actions .btn-primary span,
#page-party-detail .detail-header-actions .btn-secondary span {
  display: inline;
}
.detail-header-actions .card-menu-btn,
.detail-header-actions #album-menu-btn {
  position: static !important;
  opacity: 1 !important;
  transform: none !important;
}
.detail-header-actions .btn-primary span,
.detail-header-actions .btn-secondary span {
  display: none;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
  box-shadow: var(--shadow-sm);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
  filter: brightness(1.1);
}
.btn-primary:active {
  transform: scale(0.96) translateY(0);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-primary svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.btn-primary:hover svg {
  transform: scale(1.1);
}
.btn-secondary {
  padding: 0.5rem 1rem;
  background-color: var(--secondary);
  color: var(--foreground);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8333rem;
  transition: all var(--transition);
}
.btn-secondary:hover {
  background-color: var(--muted);
  filter: brightness(1.1);
}
.btn-secondary:active {
  transform: scale(0.98);
}
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-secondary.danger {
  background: #ef4444;
  color: #fff;
}
.btn-secondary.danger:hover {
  background: #dc2626;
}
.modal-actions .btn-secondary {
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
}
.settings-list {
  max-width: 800px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.settings-group {
  border-bottom: 1px solid var(--border);
  padding: var(--spacing-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.settings-group .setting-item {
  border-bottom: none;
  padding: 0;
}
.sidebar-settings-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-settings-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0;
}
.sidebar-settings-section .sidebar-settings-section-label + .setting-item {
  margin-top: var(--spacing-sm);
}
.sidebar-settings-section .setting-item + .setting-item {
  margin-top: var(--spacing-md);
}
.setting-item {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--border);
  gap: var(--spacing-lg);
  min-width: 0;
}
.setting-item.sidebar-setting-item {
  align-items: center;
  gap: var(--spacing-md);
  cursor: grab;
}
.setting-item.sidebar-setting-item:before {
  content: '';
  width: 14px;
  height: 16px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: inline-block;
  background-image: radial-gradient(currentcolor 1.2px, transparent 1.3px);
  background-size: 6px 6px;
  background-position: center;
  background-repeat: repeat;
  color: var(--muted-foreground);
}
.setting-item.sidebar-setting-item .info {
  flex: 1;
  min-width: 0;
}
.setting-item.sidebar-setting-item .toggle-switch {
  flex-shrink: 0;
}
.setting-item.sidebar-setting-item.dragging {
  opacity: 0.6;
  cursor: grabbing;
}
.setting-item .info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.setting-item .label {
  font-weight: 500;
}
.setting-item .description {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}
.setting-item .info.setting-details {
  width: 100%;
  display: block;
}
.setting-item .info.setting-details .description {
  font-size: 0.8rem;
}
.setting-item select,
.setting-item input[type='number'] {
  background-color: var(--input);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  appearance: auto;
}
.setting-item input[type='number'] {
  width: 100px;
}
.setting-item input[type='range'] {
  width: 120px;
  accent-color: var(--accent);
  appearance: none;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  outline: none;
}
.setting-item input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.setting-item input[type='range']::-webkit-slider-thumb:hover {
  background: var(--highlight);
}
.playback-speed-control {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}
.playback-speed-slider {
  appearance: none;
  width: 150px;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  outline: none;
}
.playback-speed-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.playback-speed-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.playback-speed-number-input {
  width: 80px;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--input);
  color: var(--foreground);
  text-align: center;
  font-size: 0.9rem;
}
.playback-speed-unit {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  min-width: 1rem;
}
.playback-speed-number-input:focus {
  outline: none;
  border-color: var(--primary);
}
.playback-speed-number-input::-webkit-outer-spin-button,
.playback-speed-number-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}
.template-input {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem;
  background-color: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.9rem;
}
.template-input:focus {
  outline: none;
  border-color: var(--ring);
}
.font-settings-container {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.font-settings-container .info {
  width: 100%;
}
.font-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 500px;
}
.font-type-select {
  width: 100%;
  padding: 0.5rem;
  background-color: var(--input);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.font-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.font-section select,
.font-input {
  width: 100%;
  padding: 0.5rem;
  background-color: var(--input);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.font-name-input {
  margin-top: 0.25rem;
}
.font-file-input {
  padding: 0.5rem;
  background-color: var(--input);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
}
.font-file-input::file-selector-button {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  margin-right: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background-color var(--transition-fast);
}
.font-file-input::file-selector-button:hover {
  background-color: var(--secondary-hover);
}
.uploaded-fonts-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.uploaded-font-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.uploaded-font-item .font-name {
  flex: 1;
  color: var(--foreground);
}
.uploaded-font-item .font-actions {
  display: flex;
  gap: 0.5rem;
}
.font-size-control {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}
.font-size-slider {
  appearance: none;
  width: 150px;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  outline: none;
}
.font-size-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.font-size-slider::-webkit-slider-thumb:hover {
  background: var(--highlight);
}
.font-size-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: background-color var(--transition-fast);
}
.font-size-slider::-moz-range-thumb:hover {
  background: var(--highlight);
}
.font-size-number-input {
  width: 60px;
  padding: 0.4rem 0.5rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.9rem;
  text-align: center;
  transition: border-color var(--transition-fast);
}
.font-size-number-input:hover {
  border-color: var(--primary);
}
.font-size-number-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgb(var(--highlight-rgb), 0.2);
}
.font-size-number-input::-webkit-outer-spin-button,
.font-size-number-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}
.font-size-number-input[type='number'] {
  appearance: textfield;
}
.font-size-unit {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-left: -0.25rem;
}
#font-size-reset {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}
.uploaded-font-item .btn-icon {
  padding: 0.25rem 0.5rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.uploaded-font-item .btn-icon:hover {
  background-color: var(--secondary-hover);
}
.uploaded-font-item .btn-delete {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}
.uploaded-font-item .btn-delete:hover {
  background-color: var(--destructive-hover);
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--secondary);
  transition: background-color var(--transition-normal);
  border-radius: var(--radius-2xl);
  box-shadow: inset 0 2px 4px #0000001a;
}
.slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: var(--foreground);
  transition: transform var(--transition-spring, 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275));
  border-radius: var(--radius-full);
  box-shadow: 0 2px 4px #0003;
}
input:checked + .slider {
  background-color: var(--primary);
}
input:checked + .slider:before {
  transform: translate(16px);
  background-color: var(--primary-foreground);
  box-shadow: -2px 2px 4px #0000001a;
}
.toggle-switch:hover .slider:before {
  transform: scale(1.1);
}
.toggle-switch:hover input:checked + .slider:before {
  transform: translate(16px) scale(1.1);
}
.toggle-switch input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}
.toggle-switch input:disabled + .slider:before {
  box-shadow: none;
  transform: translate(0);
}
.toggle-switch input:disabled:checked + .slider:before {
  transform: translate(16px);
}
.toggle-switch:hover input:disabled + .slider:before {
  transform: translate(0);
}
.toggle-switch:hover input:disabled:checked + .slider:before {
  transform: translate(16px);
}
.track-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.track-info .cover {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background-color: var(--muted);
  object-fit: cover;
  flex-shrink: 0;
}
.track-info .details {
  min-width: 0;
}
.track-info .details .title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color var(--transition);
}
.track-info .details .title:hover {
  color: var(--highlight);
}
.track-info .details .album {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color var(--transition);
}
.track-info .details .album:hover {
  color: var(--highlight);
}
.track-info .details .artist {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
  display: block;
  max-width: 100%;
}
.track-info .details .artist:hover {
  color: var(--highlight);
  transform: translate(2px);
}
#radio-loading-indicator {
  display: none;
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translate(-50%);
  background: var(--background-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  align-items: center;
  gap: 10px;
  z-index: 100;
  white-space: nowrap;
  animation: radio-slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#radio-loading-indicator .animate-spin {
  width: 14px;
  height: 14px;
  border: 2px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
}
#radio-loading-indicator span {
  font-weight: 500;
}
@keyframes radio-slide-up {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%);
  }
}
.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}
.player-controls.waveform-loaded {
  gap: 0.1rem;
  margin-bottom: 0.3rem;
}
.player-controls .buttons {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}
.player-controls .buttons button {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    color var(--transition-fast),
    background-color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.player-controls .buttons button:hover {
  transform: scale(1.1);
}
.player-controls .buttons button:active {
  transform: scale(0.9);
  color: var(--foreground);
  background-color: var(--secondary);
}
@media (hover: hover) {
  .player-controls .buttons button:hover {
    color: var(--foreground);
    background-color: var(--secondary);
  }
}
.player-controls .buttons button.active {
  color: var(--active-highlight);
}
.player-controls .buttons button#repeat-btn.repeat-one:after {
  content: '1';
  position: absolute;
  font-size: 0.5rem;
  font-weight: 700;
}
.player-controls .buttons .play-pause-btn {
  background-color: var(--primary);
  color: var(--primary-foreground);
  width: 36px;
  height: 36px;
}
@media (hover: hover) {
  .player-controls .buttons .play-pause-btn:hover {
    transform: scale(1.05);
    background-color: var(--primary);
    color: var(--primary-foreground);
  }
}
.player-controls .buttons .play-pause-btn:active {
  transform: scale(0.95);
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.player-controls .progress-container {
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  order: -1;
}
.player-controls .progress-container span {
  min-width: 40px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
#current-time {
  text-align: right;
}
.progress-bar,
.volume-bar {
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}
.progress-bar {
  flex-grow: 1;
  height: 6px;
  background-color: var(--secondary);
  border-radius: var(--radius-xs);
}
.progress-bar:hover {
  height: 8px;
}
.progress-bar .progress-fill {
  width: 0;
  height: 100%;
  background-color: var(--muted-foreground);
  border-radius: var(--radius-xs);
  transition: background-color 0.2s ease;
  position: relative;
  pointer-events: none;
}
.progress-bar:hover .progress-fill {
  background-color: var(--highlight);
}
.progress-bar:hover .progress-fill:after,
.progress-bar:active .progress-fill:after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--highlight);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 4px #0000004d;
}
.progress-bar.has-waveform.waveform-loaded {
  height: 28px;
}
.progress-bar.has-waveform.waveform-loaded .progress-fill {
  background-color: var(--primary);
}
.progress-bar.has-waveform.waveform-loaded .progress-fill:after {
  display: none;
}
.volume-controls {
  display: flex;
  justify-content: center !important;
  align-items: flex-end !important;
  gap: 0.5rem !important;
  flex-direction: column !important;
  overflow: hidden;
}
.volume-controls button {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0.25rem;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (hover: hover) {
  .volume-controls button:hover {
    color: var(--foreground);
    background-color: var(--secondary);
  }
}
.volume-controls button:active {
  color: var(--foreground);
  background-color: var(--secondary);
}
.volume-controls .volume-bar {
  width: 100px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: var(--radius-xs);
}
.volume-controls .volume-bar:hover {
  height: 6px;
}
.volume-controls .volume-bar .volume-fill {
  width: var(--volume-level, 70%);
  height: 100%;
  background-color: var(--muted-foreground);
  border-radius: var(--radius-xs);
  transition: background-color 0.2s ease;
  position: relative;
  pointer-events: none;
}
.volume-controls .volume-bar:hover .volume-fill {
  background-color: var(--highlight);
}
.volume-controls .volume-bar:hover .volume-fill:after,
.volume-controls .volume-bar:active .volume-fill:after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--highlight);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 4px #0000004d;
}
#sleep-timer-btn {
  position: relative;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition);
}
#sleep-timer-btn:hover {
  color: var(--highlight);
}
#sleep-timer-btn.active {
  color: var(--primary);
  text-shadow: 0 0 8px rgb(var(--highlight-rgb), 0.5);
}
#sleep-timer-btn svg {
  width: 20px;
  height: 20px;
}
#sleep-timer-btn span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#context-menu,
#sort-menu,
#export-playlist-menu,
#eq-node-context-menu,
#eq-empty-context-menu {
  display: none;
  position: fixed;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  min-width: 160px;
  transform-origin: top left;
  animation: scale-in var(--transition-fast) var(--ease-out-back);
}
#context-menu ul,
#sort-menu ul,
#export-playlist-menu ul,
#eq-node-context-menu ul,
#eq-empty-context-menu ul {
  list-style: none;
}
#context-menu li,
#sort-menu li,
#export-playlist-menu li,
#eq-node-context-menu li,
#eq-empty-context-menu li {
  padding: 0.5rem 0.75rem;
  margin-right: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}
#sort-menu li.sort-active {
  font-weight: 700;
}
#context-menu li:hover,
#sort-menu li:hover,
#export-playlist-menu li:hover,
#eq-node-context-menu li:hover,
#eq-empty-context-menu li:hover {
  background-color: var(--secondary);
  transform: translate(4px);
  color: var(--foreground);
}
#context-menu li.separator,
#eq-node-context-menu li.separator {
  height: 1px;
  background-color: var(--border);
  margin: 0.5rem 0;
  padding: 0;
  cursor: default;
  pointer-events: none;
}
#context-menu li.separator:hover,
#eq-node-context-menu li.separator:hover {
  background-color: var(--border);
  transform: none;
}
#eq-node-context-menu li.eq-ctx-active {
  color: var(--primary);
  font-weight: 600;
}
.blocked-items-list {
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
}
.blocked-items-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
}
.blocked-items-list li:hover {
  background: var(--secondary);
}
.blocked-items-list .item-info {
  flex: 1;
  min-width: 0;
}
.blocked-items-list .item-name {
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blocked-items-list .item-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.blocked-items-list .unblock-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}
.blocked-items-list .unblock-btn:hover {
  background: var(--secondary);
}
.track-item.blocked {
  opacity: 0.4;
  filter: grayscale(100%);
}
.track-item.blocked .track-item-info {
  text-decoration: line-through;
}
.card.blocked {
  opacity: 0.4;
  filter: grayscale(100%);
}
.card.blocked .card-title,
.card.blocked .card-subtitle {
  text-decoration: line-through;
}
.queue-track-item.blocked {
  opacity: 0.4;
  filter: grayscale(100%);
}
.queue-track-item.blocked .track-item-details {
  text-decoration: line-through;
}
#fullscreen-cover-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s ease;
  overflow: hidden;
  background-color: #0b0d11;
  padding-bottom: max(env(safe-area-inset-bottom), 1.5rem);
  --fullscreen-drag-progress: 0;
  --fs-accent-rgb: var(--highlight-rgb);
}
#fullscreen-cover-overlay:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgb(255 255 255 / 0.035), transparent 58%),
    linear-gradient(180deg, #06080c1f, #06080c57);
  z-index: -1;
  transition: opacity 0.65s ease;
  opacity: calc(1 - (var(--fullscreen-drag-progress, 0) * 0.32));
}
#fullscreen-cover-overlay:after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 22%, rgb(var(--fs-accent-rgb) / 0.28), transparent 36%),
    radial-gradient(circle at 82% 18%, rgb(255 255 255 / 0.09), transparent 28%),
    linear-gradient(135deg, #0a0d127a, #0a0d1233 38%, rgb(var(--fs-accent-rgb) / 0.12));
  opacity: calc(0.36 - (var(--fullscreen-drag-progress, 0) * 0.26));
  pointer-events: none;
  z-index: 0;
  transition:
    opacity 0.65s ease,
    background 0.65s ease;
}
#visualizer-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  filter: blur(8px) saturate(0.9) brightness(0.8);
  transform: scale(1.03);
  opacity: 0.8;
  transition:
    opacity 0.65s ease,
    filter 0.65s ease,
    transform 0.65s ease;
}
#visualizer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fullscreen-cover-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
  padding: 1rem;
  overflow: hidden;
  transform: translateY(var(--fullscreen-drag-offset, 0));
  opacity: calc(1 - (var(--fullscreen-drag-progress, 0) * 0.16));
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
  will-change: transform, opacity;
}
#fullscreen-dismiss-handle {
  position: absolute;
  top: calc(0.75rem + env(safe-area-inset-top));
  left: 50%;
  width: 3.25rem;
  height: 1rem;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  transform: translate(-50%);
  z-index: 14;
  display: none;
  cursor: grab;
  touch-action: none;
}
#fullscreen-dismiss-handle:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3rem;
  height: 0.3rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: #ffffff47;
  box-shadow: 0 2px 12px #00000040;
}
#fullscreen-cover-overlay.fullscreen-dragging .fullscreen-cover-content {
  transition: none;
}
#fullscreen-cover-overlay.fullscreen-dismissing .fullscreen-cover-content {
  transform: translateY(calc(100% + 3rem));
  opacity: 0;
}
#toggle-ui-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--background);
  border: none;
  color: var(--foreground);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.3s ease,
    transform 0.2s ease,
    right 0.3s ease;
  z-index: 10;
  opacity: 0.5;
  pointer-events: auto;
}
#toggle-ui-btn:hover {
  opacity: 0.8;
  transform: scale(1.05);
}
#toggle-ui-btn.active {
  color: var(--primary);
  opacity: 0.8;
}
#fullscreen-cover-overlay.ui-hidden #toggle-ui-btn {
  opacity: 0;
  pointer-events: none;
}
#fullscreen-cover-overlay.ui-hidden #toggle-ui-btn.visible {
  opacity: 0.5;
  pointer-events: auto;
}
.fullscreen-lyrics-toggle {
  position: absolute;
  top: 1rem;
  right: 4.5rem;
  background: #00000080;
  border: none;
  color: #fff;
  padding: 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    all 0.2s ease,
    right 0.3s ease;
}
.fullscreen-lyrics-toggle:hover {
  background: #000000b3;
  transform: scale(1.1);
}
.fullscreen-lyrics-toggle.active {
  background: var(--primary);
}
#toggle-fullscreen-lyrics-mobile-btn {
  display: none;
  position: absolute;
  top: calc(0.85rem + env(safe-area-inset-top));
  right: calc(0.9rem + env(safe-area-inset-right));
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: #090c1252;
  color: #ffffffc2;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 14;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}
#toggle-fullscreen-lyrics-mobile-btn.active {
  background: #ffffff1f;
  color: #fffffff5;
}
#toggle-fullscreen-lyrics-mobile-btn:hover {
  transform: scale(1.04);
}
#close-fullscreen-cover-btn {
  position: absolute;
  top: 1rem;
  right: 8rem;
  background-color: var(--background);
  border: none;
  color: var(--foreground);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.2s,
    right 0.3s ease;
  z-index: 10;
  opacity: 0.5;
}
#close-fullscreen-cover-btn:hover {
  opacity: 0.8;
}
#fullscreen-cover-overlay.ui-hidden .fullscreen-main-view,
#fullscreen-cover-overlay.ui-hidden .fullscreen-controls,
#fullscreen-cover-overlay.ui-hidden #fullscreen-next-track {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
#fullscreen-cover-overlay.ui-hidden .fullscreen-lyrics-toggle,
#fullscreen-cover-overlay.ui-hidden .fullscreen-top-actions {
  opacity: 0;
  pointer-events: none;
}
#fullscreen-cover-overlay.ui-hidden:before,
#fullscreen-cover-overlay.ui-hidden:after {
  opacity: 0;
}
#fullscreen-cover-overlay.ui-hidden #visualizer-container {
  filter: none;
  transform: none;
  opacity: 1;
}
#fullscreen-cover-overlay:not(.ui-hidden) .fullscreen-main-view,
#fullscreen-cover-overlay:not(.ui-hidden) .fullscreen-controls,
#fullscreen-cover-overlay:not(.ui-hidden) #fullscreen-next-track {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.5s ease;
}
#fullscreen-cover-overlay.controls-idle .fullscreen-track-info,
#fullscreen-cover-overlay.controls-idle .fullscreen-controls,
#fullscreen-cover-overlay.controls-idle #fullscreen-next-track,
#fullscreen-cover-overlay.controls-idle #toggle-ui-btn,
#fullscreen-cover-overlay.controls-idle .fullscreen-lyrics-toggle,
#fullscreen-cover-overlay.controls-idle .fullscreen-top-actions {
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#fullscreen-cover-overlay.controls-idle #fullscreen-cover-image {
  transform: translateY(4rem);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#fullscreen-cover-overlay:not(.controls-idle) #fullscreen-cover-image {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#fullscreen-cover-overlay.controls-idle .fullscreen-controls {
  transform: translateY(1.5rem);
}
#fullscreen-cover-overlay.controls-idle .fullscreen-track-info {
  transform: translateY(0.5rem);
}
#fullscreen-cover-overlay.controls-idle #toggle-ui-btn,
#fullscreen-cover-overlay.controls-idle .fullscreen-lyrics-toggle,
#fullscreen-cover-overlay.controls-idle .fullscreen-top-actions {
  transform: translateY(-0.5rem);
}
#fullscreen-cover-overlay:not(.controls-idle) .fullscreen-track-info,
#fullscreen-cover-overlay:not(.controls-idle) .fullscreen-controls,
#fullscreen-cover-overlay:not(.controls-idle) #fullscreen-next-track,
#fullscreen-cover-overlay:not(.controls-idle) #toggle-ui-btn,
#fullscreen-cover-overlay:not(.controls-idle) .fullscreen-lyrics-toggle,
#fullscreen-cover-overlay:not(.controls-idle) .fullscreen-top-actions {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#fullscreen-cover-overlay.controls-idle {
  cursor: none;
}
#fullscreen-cover-image {
  max-width: 55vw;
  max-height: 45vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px #00000080;
  object-fit: contain;
  margin-bottom: 1rem;
  z-index: 1;
}
#fullscreen-cover-overlay.fullscreen-cover-no-round #fullscreen-cover-image {
  border-radius: 0;
}
#fullscreen-cover-overlay.visualizer-active #fullscreen-cover-image {
  box-shadow:
    0 25px 60px #0009,
    0 10px 30px #0006,
    0 0 100px #0000004d;
}
.fullscreen-track-info {
  text-align: center;
  z-index: 1;
  max-width: 90%;
  background-color: color-mix(in srgb, var(--card) 40%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px #0006;
}
#fullscreen-track-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
  overflow-wrap: break-word;
}
#fullscreen-track-artist {
  font-size: 1.25rem;
  color: color-mix(in srgb, var(--foreground), transparent 40%);
  font-weight: 500;
  transition:
    color 0.2s,
    text-decoration 0.2s;
}
#fullscreen-track-artist:hover {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}
#fullscreen-next-track {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--foreground), transparent 40%);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0;
}
#fullscreen-next-track.animate-in {
  animation: fade-in 0.5s ease 0.2s forwards;
}
#fullscreen-next-track .label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  opacity: 0.8;
}
#fullscreen-next-track .value {
  font-weight: 500;
  color: var(--foreground);
}
.fullscreen-controls {
  width: 100%;
  max-width: 600px;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
}
.fullscreen-progress-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  color: var(--foreground);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.fullscreen-progress-container .progress-bar {
  flex: 1;
  height: 6px;
  background: #fff3;
  border-radius: var(--radius-xs);
  cursor: pointer;
  position: relative;
  transition: height 0.2s ease;
}
.fullscreen-progress-container .progress-bar:hover {
  height: 8px;
}
.fullscreen-progress-container .progress-fill {
  height: 100%;
  background: var(--foreground);
  border-radius: var(--radius-xs);
  width: 0%;
  transition: width 0.1s ease;
  position: relative;
  pointer-events: none;
}
.fullscreen-progress-container .progress-bar:hover .progress-fill {
  background: var(--highlight);
}
.fullscreen-progress-container .progress-bar:hover .progress-fill:after,
.fullscreen-progress-container .progress-bar:active .progress-fill:after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--highlight);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 4px #0000004d;
}
.fullscreen-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.fullscreen-buttons button {
  background: transparent;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast);
}
.fullscreen-buttons button:hover {
  background: #ffffff1a;
  transform: scale(1.15) rotate(0);
}
.fullscreen-buttons button:active {
  transform: scale(0.95);
}
.fullscreen-buttons #fs-play-pause-btn {
  width: 64px;
  height: 64px;
  background: var(--foreground);
  color: var(--background);
  border-radius: var(--radius-full);
}
.fullscreen-buttons #fs-play-pause-btn:hover {
  transform: scale(1.05);
  background: var(--foreground);
}
.fullscreen-buttons button.active {
  color: var(--primary);
}
.fullscreen-volume-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  position: relative;
}
.fs-volume-btn {
  background: transparent;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
}
.fs-volume-btn:hover {
  background: #ffffff1a;
  transform: scale(1.1);
}
.fs-volume-btn.muted {
  color: var(--muted-foreground);
}
.fs-volume-bar {
  width: 150px;
  height: 6px;
  background-color: #fff3;
  border-radius: var(--radius-xs);
  cursor: pointer;
  position: relative;
  transition: height 0.2s ease;
}
.fs-volume-bar:hover {
  height: 8px;
}
.fs-volume-fill {
  height: 100%;
  background-color: var(--foreground);
  border-radius: var(--radius-xs);
  width: var(--fs-volume-level, 70%);
  transition: width 0.1s ease;
  position: relative;
  pointer-events: none;
}
.fs-volume-bar:hover .fs-volume-fill {
  background-color: var(--highlight);
}
.fs-volume-bar:hover .fs-volume-fill:after,
.fs-volume-bar:active .fs-volume-fill:after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--highlight);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 4px #0000004d;
}
@media (max-width: 768px) {
  .fullscreen-volume-container {
    gap: 0.75rem;
  }
  .fs-volume-bar {
    width: 120px;
  }
}
.fullscreen-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.75rem;
}
.queue-track-item {
  display: grid;
  grid-template-columns: 32px 1fr auto auto auto;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
  border-radius: var(--radius);
  cursor: grab;
  transition: all var(--transition);
  margin-bottom: 2px;
}
.queue-track-item .queue-like-btn {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.2;
}
.queue-track-item:hover .queue-like-btn {
  opacity: 1;
}
.queue-track-item .queue-like-btn:hover {
  background-color: rgb(var(--highlight-rgb), 0.2);
  color: var(--foreground);
}
.queue-track-item .queue-like-btn.active {
  color: #ef4444;
}
.queue-track-item .queue-like-btn.active svg {
  fill: #ef4444;
  color: #ef4444;
}
.queue-track-item:active {
  cursor: grabbing;
}
.queue-track-item:hover {
  background-color: var(--secondary);
}
.queue-track-item.playing {
  background-color: rgb(var(--highlight-rgb), 0.15);
  border-left: 3px solid var(--highlight);
  padding-left: calc(var(--spacing-sm) - 3px);
}
.queue-track-item .drag-handle {
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}
.queue-track-item .queue-remove-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  color: var(--foreground);
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.2;
}
.queue-track-item:hover .queue-remove-btn {
  opacity: 1;
}
.queue-track-item .queue-remove-btn:hover {
  background-color: var(--background);
  color: var(--foreground);
}
.queue-track-item .queue-remove-btn svg {
  width: 20px;
  height: 20px;
}
.placeholder-text {
  padding: 2rem 1rem;
  color: var(--muted-foreground);
}
.placeholder-text.loading {
  animation: pulse 1.5s infinite ease-in-out;
}
.skeleton {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--muted) 50%, var(--secondary) 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 2s infinite ease-in-out;
  border-radius: var(--radius);
}
.skeleton-track {
  display: grid;
  grid-template-columns: 40px 1fr 60px 40px;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
}
.skeleton-track.no-duration {
  grid-template-columns: 40px 1fr 40px;
}
.skeleton-track.no-duration .skeleton-track-duration {
  display: none;
}
.skeleton-track-number {
  width: 24px;
  height: 20px;
  margin: 0 auto;
}
.skeleton-track-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  min-width: 0;
}
.skeleton-track-cover {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}
.skeleton-track-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}
.skeleton-track-title {
  height: 16px;
  width: 60%;
  max-width: 200px;
}
.skeleton-track-artist {
  height: 14px;
  width: 40%;
  max-width: 150px;
}
.skeleton-track-duration {
  width: 40px;
  height: 14px;
}
.skeleton-track-actions {
  width: 24px;
  height: 24px;
  justify-self: flex-end;
}
.skeleton-card {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: var(--spacing-md);
}
.skeleton-card-image {
  width: 100%;
  aspect-ratio: 1/1;
  margin-bottom: var(--spacing-md);
  border-radius: calc(var(--radius) - 4px);
}
.skeleton-card.artist .skeleton-card-image {
  border-radius: var(--radius-full);
}
.skeleton-card-title {
  height: 18px;
  width: 80%;
  margin-bottom: var(--spacing-xs);
}
.skeleton-card-subtitle {
  height: 14px;
  width: 60%;
}
#api-instance-list {
  list-style: none;
  margin-bottom: 1rem;
}
#api-instance-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: var(--secondary);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}
#api-instance-list li .instance-url {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}
#api-instance-list li .controls {
  display: flex;
  gap: 0.5rem;
}
#api-instance-list li button {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition:
    transform var(--transition-fast),
    color var(--transition-fast),
    background-color var(--transition-fast);
}
#api-instance-list li button:hover {
  color: var(--foreground);
  background-color: var(--muted);
  transform: scale(1.15);
}
#api-instance-list li button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.theme-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.theme-option {
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  font-weight: 500;
}
.theme-option:hover {
  border-color: var(--highlight);
  background-color: var(--secondary);
}
.theme-option.active {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.custom-theme-editor {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--secondary);
  border-radius: var(--radius);
  display: none;
}
.custom-theme-editor.show {
  display: block;
}
.theme-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.theme-color-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.theme-color-input label {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}
.theme-color-input input[type='color'] {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.theme-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.about-content {
  padding: 2rem 0;
  max-width: 800px;
  margin: 0 auto;
}
.about-description {
  color: var(--foreground);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.about-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.about-footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}
.about-footer .version {
  color: var(--foreground);
  font-weight: 600;
}
.about-footer .license {
  color: var(--muted-foreground);
}
.about-footer .disclaimer {
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: var(--secondary);
  border-radius: var(--radius);
  border-left: 3px solid var(--muted-foreground);
}
#download-notifications {
  position: fixed;
  bottom: calc(max(env(safe-area-inset-bottom), 0px) + 12px);
  right: 20px;
  z-index: 20000;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.download-task {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  animation: slide-in 0.3s ease;
  min-width: 300px;
}
.download-cancel:hover {
  background: var(--secondary) !important;
  color: var(--foreground) !important;
}
#lastfm-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.desktop-only {
  display: flex;
}
#cast-btn {
  position: relative;
}
#cast-btn.available {
  color: var(--highlight);
}
#cast-btn.available:before {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background-color: var(--highlight);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}
#cast-btn.connected {
  color: #10b981;
}
#cast-btn.connected:after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: var(--radius-full);
}
#download-current-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.offline-notification,
.update-notification {
  position: fixed;
  bottom: 130px;
  right: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 350px;
  animation: slide-in 0.3s ease;
}
.offline-notification svg {
  flex-shrink: 0;
  color: #f59e0b;
}
.update-notification {
  flex-direction: column;
  align-items: stretch;
}
.update-notification-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.update-notification-actions .btn-icon {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.update-notification-actions .btn-icon:hover {
  background: var(--secondary);
  color: var(--foreground);
  border-color: var(--foreground);
}
.close-shortcuts {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.close-shortcuts:hover {
  background: var(--secondary);
  color: var(--foreground);
}
.shortcuts-content {
  padding: 1rem;
}
.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.shortcut-item:last-child {
  border-bottom: none;
}
.customize-shortcuts-content {
  padding: 1rem;
}
.shortcut-hint {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.customize-shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.customize-shortcut-item:last-child {
  border-bottom: none;
}
.customize-shortcut-item .shortcut-description {
  flex: 1;
}
.customize-shortcut-item .shortcut-key {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.customize-shortcut-item kbd {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-family: inherit;
  min-width: 28px;
  text-align: center;
}
.customize-shortcut-item kbd.recording {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
.customize-shortcut-item .shortcut-btn {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.customize-shortcut-item:hover .shortcut-btn {
  opacity: 1;
}
.customize-shortcut-item .shortcut-btn:hover {
  color: var(--foreground);
}
.customize-shortcuts-actions {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-top: 1px solid var(--border);
}
.close-customize-shortcuts {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.close-customize-shortcuts:hover {
  background: var(--secondary);
  color: var(--foreground);
}
#playlist-detail-description,
#mix-detail-description {
  color: var(--foreground);
  font-size: 0.9rem;
}
#playlist-detail-tracklist {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#playlist-detail-tracklist .track-list-header,
#mix-detail-tracklist .track-list-header {
  display: grid;
  grid-template-columns: 40px 1fr 3.25rem 80px auto;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
  color: var(--muted-foreground);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--spacing-xs);
}
#playlist-detail-tracklist .track-list-header .duration-header,
#mix-detail-tracklist .track-list-header .duration-header {
  justify-self: flex-end;
}
@supports (padding-top: env(safe-area-inset-top)) {
  .now-playing-bar {
    padding-bottom: max(var(--spacing-sm), env(safe-area-inset-bottom));
  }
  .main-content,
  .sidebar {
    padding-top: max(var(--spacing-md), env(safe-area-inset-top));
  }
  .sidebar {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .side-panel {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}
.side-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--side-panel-width, 600px);
  max-width: 90vw;
  background: var(--card);
  border-left: 1px solid var(--border);
  z-index: 2050;
  display: flex;
  flex-direction: column;
  transform: translate(100%);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
  box-shadow: none;
  container-type: inline-size;
  container-name: sidepanel;
}
@container sidepanel (min-width: 500px) {
  .panel-content am-lyrics {
    --lyplus-font-size-base: 36px;
  }
}
@container sidepanel (min-width: 700px) {
  .panel-content am-lyrics {
    --lyplus-font-size-base: 42px;
  }
}
@container sidepanel (min-width: 900px) {
  .panel-content am-lyrics {
    --lyplus-font-size-base: 52px;
    --lyplus-padding-line: 16px;
  }
}
@container sidepanel (min-width: 1100px) {
  .panel-content am-lyrics {
    --lyplus-font-size-base: 64px;
    --lyplus-padding-line: 24px;
  }
}
.side-panel-resizer {
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
  z-index: 10;
  background: transparent;
  transition: background-color 0.2s ease;
}
.side-panel-resizer:hover,
.side-panel-resizer:active {
  background-color: var(--brand);
}
.side-panel.active {
  transform: translate(0);
  box-shadow: var(--shadow-xl);
}
.side-panel[data-view='lyrics'],
.side-panel[data-view='queue'] {
  background: color-mix(in srgb, var(--card) 60%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgb(255, 255, 255, 0.1);
}
.panel-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  padding-left: 0.5rem;
}
.panel-controls {
  display: flex;
  gap: 0.5rem;
}
.lyrics-timing-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: auto;
  padding-right: 0.5rem;
  border-right: 1px solid var(--border);
}
.lyrics-timing-display {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  min-width: 3.5rem;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}
.lyrics-timing-controls .btn-icon {
  padding: 0.4rem;
  width: 28px;
  height: 28px;
}
.lyrics-timing-controls .btn-icon:hover {
  background: var(--secondary);
  color: var(--primary);
}
.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  padding-bottom: calc(var(--player-bar-height-desktop) + 2rem);
  scroll-behavior: smooth;
}
.btn-icon {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-icon:hover {
  background: var(--secondary);
  color: var(--foreground);
}
.lyrics-loading,
.lyrics-error {
  text-align: center;
  padding: 2rem;
  color: var(--muted-foreground);
}
.card.compact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  min-height: 60px;
}
.card.compact .card-image-wrapper {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.card.artist.compact .card-image-wrapper {
  width: 40px;
  height: 40px;
}
.card.compact .card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card.compact .card-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card.compact .card-subtitle {
  margin: 0;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted-foreground);
}
.card.compact .card-play-btn {
  right: 0.5rem;
  top: 25%;
  width: 36px !important;
  height: 36px !important;
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  box-shadow: var(--shadow-md);
  transition: opacity 0.2s ease;
}
.card.compact .card-like-btn {
  width: 24px !important;
  height: 24px !important;
  top: 0;
  right: 0;
}
.card.compact:hover .card-like-btn {
  opacity: 1;
}
.card.compact.user-playlist .edit-playlist-btn,
.card.compact.user-playlist .delete-playlist-btn {
  display: none !important;
}
.now-playing-bar .cover {
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.now-playing-bar .cover:hover {
  transform: scale(1.05);
}
.now-playing-bar .cover:after {
  content: '🎵';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000b3;
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 1.5rem;
}
.now-playing-bar .cover:hover:after {
  opacity: 1;
}
.now-playing-bar .artist .artist-link {
  cursor: pointer;
  transition: color var(--transition);
}
.now-playing-bar .artist .artist-link:hover {
  color: var(--highlight);
  text-decoration: underline;
}
.track-item .artist .artist-link {
  cursor: pointer;
  transition: color var(--transition);
}
.track-item .artist .artist-link:hover {
  color: var(--highlight);
  text-decoration: underline;
}
.player-actions-row,
.volume-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.player-actions-row button,
.volume-slider-row button {
  display: flex;
  align-items: center;
  justify-content: center;
}
img:not([src]) {
  content: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
  background-color: var(--muted);
}
.card-play-btn {
  position: absolute;
  bottom: 2%;
  right: 2%;
  background: var(--highlight) !important;
  border-radius: 50% !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 20;
  color: var(--background) !important;
  border: none !important;
  box-shadow: var(--shadow-md);
}
.card:hover .card-play-btn {
  opacity: 1;
  transform: translateY(0);
}
.card-play-btn:hover {
  transform: scale(1.1) translateY(0) !important;
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}
.custom-appwrite-endpoint,
.custom-appwrite-project {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
}
.custom-appwrite-endpoint.visible,
.custom-appwrite-project.visible {
  display: flex;
}
.account-content {
  padding: 1rem 0;
}
.fullscreen-main-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#fullscreen-cover-overlay.is-video-mode .fullscreen-cover-content {
  align-items: stretch;
}
#fullscreen-cover-overlay.is-video-mode .fullscreen-main-view {
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding: 2rem 2rem max(1.5rem, env(safe-area-inset-bottom));
  pointer-events: none;
  background: linear-gradient(to top, rgb(0, 0, 0, 0.6) 0%, rgb(0, 0, 0, 0.2) 15%, transparent 40%);
}
#fullscreen-cover-overlay.is-video-mode .fullscreen-track-info {
  text-align: center;
  background: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: min(500px, 90vw);
  margin: 0;
  pointer-events: auto;
}
#fullscreen-cover-overlay.is-video-mode #fullscreen-track-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgb(0, 0, 0, 0.8);
  margin-bottom: 0.1rem;
}
#fullscreen-cover-overlay.is-video-mode #fullscreen-track-artist {
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgb(0, 0, 0, 0.8);
  opacity: 0.7;
}
#fullscreen-cover-overlay.is-video-mode .fullscreen-controls {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  width: 100%;
  max-width: 500px;
  margin: 0.75rem auto 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: none;
  box-shadow: none;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
  pointer-events: auto;
  z-index: 100;
}
#fullscreen-cover-overlay.is-video-mode .fullscreen-buttons {
  gap: 1.25rem;
}
#fullscreen-cover-overlay.is-video-mode .fullscreen-buttons button {
  width: 28px;
  height: 28px;
  padding: 0.25rem;
}
#fullscreen-cover-overlay.is-video-mode .fullscreen-buttons button svg {
  width: 18px;
  height: 18px;
}
#fullscreen-cover-overlay.is-video-mode .fullscreen-buttons #fs-play-pause-btn {
  width: 40px;
  height: 40px;
}
#fullscreen-cover-overlay.is-video-mode .fullscreen-progress-container {
  gap: 0.75rem;
  font-size: 0.75rem;
}
#fullscreen-cover-overlay.is-video-mode .fullscreen-volume-container {
  display: none;
}
#fullscreen-cover-overlay.is-video-mode .fs-quality-btn {
  display: flex !important;
  width: 28px;
  height: 28px;
  padding: 0.25rem;
}
#fullscreen-cover-overlay.is-video-mode .fs-quality-btn svg {
  width: 18px;
  height: 18px;
}
#fullscreen-cover-overlay.is-video-mode .fs-quality-label {
  display: none;
}
.fs-quality-btn {
  background: transparent;
  border: none;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
  position: relative;
}
.fs-quality-btn:hover {
  opacity: 1;
  background: #ffffff1a;
}
.fullscreen-volume-container {
  position: relative;
}
.fs-quality-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: #141414;
  border: 1px solid rgb(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px;
  min-width: 120px;
  box-shadow: 0 4px 20px #00000080;
  z-index: 1000;
  margin-bottom: 8px;
}
.fs-quality-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.fs-quality-option:hover {
  background: #ffffff1a;
}
.fs-quality-option.active {
  background: var(--primary);
  color: #fff;
}
#fullscreen-cover-overlay.ui-hidden .fullscreen-main-view,
#fullscreen-cover-overlay.ui-hidden .fullscreen-controls,
#fullscreen-cover-overlay.ui-hidden #fullscreen-next-track,
#fullscreen-cover-overlay.ui-hidden .fullscreen-lyrics-toggle,
#fullscreen-cover-overlay.ui-hidden #close-fullscreen-cover-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
#fullscreen-cover-overlay.is-video-mode.ui-hidden .fullscreen-controls {
  transform: translateY(100px);
}
#fullscreen-cover-overlay.is-video-mode.ui-hidden .fullscreen-main-view {
  transform: translateY(0);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #0009;
  transition: opacity var(--transition-normal);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #000000b3;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: -1;
}
.modal-content {
  background: var(--card);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  animation: scale-in 0.2s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-content.wide {
  max-width: 600px;
}
.modal-content.extra-wide {
  max-width: 1000px;
}
.modal-content.medium {
  max-width: 500px;
}
.email-auth-modal-content {
  padding: 1.5rem;
}
.email-auth-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.email-auth-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.email-auth-modal-close {
  flex-shrink: 0;
}
.email-auth-input {
  width: 100%;
  margin-bottom: 0.65rem;
}
.email-auth-password-block {
  margin-bottom: 0.65rem;
}
.email-auth-password-block .email-auth-input {
  margin-bottom: 0;
}
.email-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.email-auth-actions .email-auth-submit {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  box-sizing: border-box;
}
.email-auth-actions .btn-primary.email-auth-submit {
  border: 1px solid var(--primary);
}
.email-auth-actions .btn-secondary.email-auth-submit {
  border: 1px solid var(--border);
  background-color: var(--secondary);
  color: var(--foreground);
}
.email-auth-forgot-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.35rem;
  margin-left: 0;
  padding: 0;
  background: none;
  border: none;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.email-auth-forgot-link:hover {
  color: var(--foreground);
}
#page-library .library-header {
  margin-bottom: var(--spacing-xl);
}
#page-library .library-header h2 {
  margin: 0;
}
#page-library #my-playlists-container {
  margin-bottom: var(--spacing-lg);
}
#page-library #my-playlists-container .library-create-dashed-card {
  order: 1;
}
#page-library .library-create-dashed-card {
  display: block;
  width: 100%;
  min-width: 0;
  padding: var(--spacing-md);
  margin: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  background-color: var(--card);
  -webkit-tap-highlight-color: transparent;
}
#page-library .library-create-dashed-art {
  position: relative;
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  background: var(--secondary);
  box-shadow: var(--shadow-md);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-normal);
}
#page-library .library-create-dashed-card:hover .library-create-dashed-art {
  border-color: var(--highlight);
  box-shadow: var(--shadow-xl);
}
#page-library .library-create-dashed-card .card-info {
  padding: 0;
}
#page-library .library-create-dashed-card .card-title {
  margin-bottom: 0;
}
.library-liked-tracks-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}
.library-liked-search.track-list-search-container {
  width: 100%;
}
.library-liked-tracks-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.library-liked-tracks-toolbar-actions .btn-secondary {
  display: flex;
}
.library-liked-view-btn.active {
  color: var(--highlight);
  background: rgb(var(--highlight-rgb) / 0.12);
}
@media (min-width: 720px) {
  .library-liked-tracks-toolbar {
    flex-direction: row;
    align-items: center;
  }
  .library-liked-search.track-list-search-container {
    flex: 1;
    min-width: 200px;
    max-width: 420px;
  }
}
.modal-list {
  margin: 1rem 0;
  max-height: 200px;
  overflow-y: auto;
}
.modal-option {
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-option:hover {
  background: var(--secondary);
}
.modal-option.already-contains {
  opacity: 0.6;
  cursor: default;
}
.modal-option.already-contains:hover {
  background: transparent;
}
.modal-option:last-child {
  border-bottom: none;
}
.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
.timer-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.timer-option {
  text-align: center;
}
#playlist-modal {
  animation: fade-in 0.1s ease-in;
}
.csv-import-progress {
  position: fixed;
  bottom: 120px;
  right: 3%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 10001;
  max-width: 400px;
  min-width: 350px;
  animation: slide-in 0.3s ease;
}
.csv-import-progress .progress-header {
  margin-bottom: 1rem;
}
.csv-import-progress .progress-header h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
}
.csv-import-progress .progress-warning {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}
.csv-import-progress .progress-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.csv-import-progress .current-track {
  font-size: 0.9rem;
  color: var(--foreground);
  font-weight: 500;
  min-height: 1.2rem;
}
.csv-import-progress .progress-bar {
  width: 100%;
  height: 8px;
  background: var(--secondary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.csv-import-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--highlight));
  border-radius: var(--radius-sm);
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
}
.csv-import-progress .progress-fill:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgb(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% {
    transform: translate(-100%);
  }
  to {
    transform: translate(100%);
  }
}
.csv-import-progress .progress-text {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  text-align: center;
}
.csv-import-progress .progress-text span {
  font-weight: 600;
  color: var(--foreground);
}
.missing-tracks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.missing-tracks-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.025em;
}
.close-missing-tracks {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.close-missing-tracks:hover {
  background: var(--secondary);
  color: var(--foreground);
}
.missing-tracks-content {
  padding: 2rem;
}
.missing-tracks-content p {
  margin-bottom: 2rem;
  line-height: 1.7;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 400;
}
.missing-tracks-list h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.01em;
}
.missing-tracks-list ul {
  list-style: none;
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--secondary);
}
.missing-tracks-list li {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
}
.missing-tracks-list li:last-child {
  border-bottom: none;
}
.missing-tracks-list li:nth-child(2n) {
  background: #ffffff05;
}
.missing-tracks-actions {
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.missing-tracks-actions .btn-secondary {
  min-width: 100px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.mobile-only {
  display: none !important;
}
@media (max-width: 768px) {
  .mobile-only {
    display: flex !important;
  }
  .desktop-only {
    display: none !important;
  }
  #cast-btn {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  #cast-btn:hover {
    background: transparent !important;
    transform: none !important;
  }
  #cast-btn svg {
    width: 20px !important;
    height: 20px !important;
  }
  .now-playing-bar .player-controls {
    position: relative !important;
    padding-bottom: 50px !important;
  }
  .player-controls.waveform-loaded {
    gap: 0;
  }
}
@media (min-width: 1440px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
@media (min-width: 1920px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .now-playing-bar {
    grid-template-columns: minmax(150px, 1fr) 1fr auto;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }
  .volume-controls,
  .desktop-only {
    display: flex;
  }
}
@media (max-width: 1024px) {
  .app-container {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--spacing-md);
  }
  .detail-header-info .title {
    font-size: 3rem;
  }
  .detail-header-info .title.long-title {
    font-size: 2rem;
  }
  .detail-header-info .title.very-long-title {
    font-size: 1.35rem;
  }
  .main-content {
    padding: var(--spacing-lg);
  }
  .now-playing-bar {
    width: calc(96% - 160px) !important;
    left: calc(160px + 2%);
  }
}
@media (max-width: 768px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }
  body {
    position: static;
  }
  .player-controls .progress-container {
    order: -1;
    max-width: none;
    font-size: 0.75rem;
    gap: 0.5rem;
  }
  #fullscreen-cover-overlay {
    padding-bottom: 0;
  }
  #fullscreen-cover-image {
    max-height: 45vh;
    margin-bottom: 1.5rem;
  }
  .fullscreen-main-view {
    padding-top: 4rem;
  }
  #fullscreen-track-title {
    font-size: 1.5rem;
  }
  #fullscreen-track-artist {
    font-size: 1rem;
  }
  .app-container {
    grid-template: 'header' auto 'main' 1fr 'player' auto / 1fr;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .main-content {
    padding: var(--spacing-md);
    grid-area: main;
    overflow-y: visible;
    overflow-x: hidden;
    min-width: 0;
  }
  .main-header {
    grid-area: header;
    margin-bottom: var(--spacing-md);
    padding-top: env(safe-area-inset-top);
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    transform: translate(-100%);
    z-index: 2200;
    transition:
      transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.3s ease;
  }
  .sidebar.is-open {
    transform: translate(0);
    box-shadow: 0 0 20px #00000080;
  }
  .hamburger-menu,
  #sidebar-overlay.is-visible {
    display: block;
  }
  .search-bar {
    max-width: none;
    width: auto;
  }
  .content-section {
    margin-bottom: var(--spacing-xl);
    max-width: 100%;
    overflow-x: hidden;
  }
  .section-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
  }
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--spacing-md);
  }
  #page-library .search-tabs,
  #page-library .library-header {
    flex-wrap: wrap;
  }
  #page-library .library-create-dashed-card {
    margin: 0 !important;
  }
  .detail-header {
    flex-direction: row;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
  }
  .detail-header-image,
  .detail-header-collage {
    width: 120px;
    height: 120px;
  }
  .detail-header-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .detail-header-info .title {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  .detail-header-info .title.long-title {
    font-size: 1.35rem;
  }
  .detail-header-info .title.very-long-title {
    font-size: 1.25rem;
  }
  .detail-header-info .meta {
    font-size: 0.85rem;
    gap: 0.35rem;
    margin-top: 0.25em;
  }
  .detail-header-actions {
    margin-top: 0.5em;
  }
  .now-playing-bar {
    grid-template: 'track controls' auto 'progress progress' auto / 1fr auto;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    height: var(--player-bar-height-mobile);
  }
  .now-playing-bar .track-info {
    grid-area: track;
    min-width: 0;
  }
  .track-info {
    gap: var(--spacing-sm);
  }
  .track-info .cover {
    width: 48px;
    height: 48px;
  }
  .track-info .details {
    min-width: 0;
    flex: 1;
  }
  .track-info .details .title {
    font-size: 0.9rem;
  }
  .track-info .details .artist {
    font-size: 0.75rem;
  }
  .now-playing-bar .volume-controls {
    grid-area: controls;
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
  }
  .now-playing-bar .player-controls {
    grid-area: progress;
    width: 100%;
  }
  .player-controls .buttons {
    justify-content: center;
    gap: var(--spacing-lg);
    padding: 0 15%;
  }
  .player-controls .buttons button {
    width: 28px;
    height: 28px;
  }
  .player-controls .buttons .play-pause-btn {
    width: 32px;
    height: 32px;
  }
  .desktop-only {
    display: none !important;
  }
  .volume-controls button:not(.desktop-only) {
    display: flex;
  }
  #download-notifications {
    bottom: calc(max(env(safe-area-inset-bottom), 0px) + 10px);
    right: 10px;
    left: 10px;
    max-width: none;
  }
  .track-menu-btn {
    opacity: 1;
  }
  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }
  .setting-item:has(.toggle-switch) {
    flex-direction: row;
    align-items: center;
    width: 100%;
  }
  .setting-item:has(.toggle-switch) .info {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .setting-item:has(.toggle-switch) .label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .setting-item:has(.toggle-switch) .description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .setting-item:has(.toggle-switch) .toggle-switch {
    margin-left: auto;
  }
  .setting-item .info {
    width: 100%;
  }
  .template-input {
    max-width: none;
    font-size: 0.85rem;
  }
  .track-item {
    grid-template-columns: 36px 1fr auto auto;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
  }
  .track-item.track-item--inline-like {
    grid-template-columns: 36px minmax(0, 1fr) auto minmax(2.5rem, auto) auto;
  }
  .track-item-info {
    gap: var(--spacing-sm);
    min-width: 0;
    overflow: hidden;
  }
  .track-item-cover {
    width: 36px;
    height: 36px;
  }
  .track-item-details {
    min-width: 0;
    overflow: hidden;
  }
  .track-item-duration {
    text-align: right;
    white-space: nowrap;
  }
  .track-menu-btn svg {
    width: 18px;
    height: 18px;
  }
  .track-action-btn {
    padding: 0.25rem;
  }
  .queue-track-item {
    grid-template-columns: 24px 1fr 40px 32px 32px;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
  }
  .queue-track-item .drag-handle {
    width: 24px;
  }
  .queue-track-item .drag-handle svg {
    width: 14px;
    height: 14px;
  }
  .queue-track-item .track-item-cover {
    width: 36px;
    height: 36px;
  }
  .queue-track-item .queue-like-btn,
  .queue-track-item .queue-remove-btn {
    padding: 0.5rem;
    width: 32px;
    height: 32px;
  }
  .sidebar-nav .nav-item a {
    padding: 1rem 0.75rem;
  }
  .offline-notification,
  .update-notification {
    left: 10px;
    right: 10px;
    max-width: none;
    bottom: 10px;
  }
  .side-panel {
    width: 100vw;
    max-width: 100vw;
    bottom: 0;
  }
  .side-panel-resizer {
    display: none;
  }
  .panel-content {
    padding-bottom: calc(var(--player-bar-height-mobile) + 2rem);
  }
  .fullscreen-cover-content {
    flex-direction: column;
  }
  .csv-import-progress {
    bottom: 145px;
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: 0;
  }
  .missing-tracks-modal {
    width: 95%;
    max-height: 90vh;
    margin: 1rem;
  }
  .missing-tracks-header,
  .missing-tracks-content,
  .missing-tracks-actions {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .missing-tracks-header {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
  }
  .missing-tracks-content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .missing-tracks-actions {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }
  .missing-tracks-list ul {
    max-height: 250px;
  }
  .missing-tracks-header h3 {
    font-size: 1.25rem;
  }
  .missing-tracks-content p {
    font-size: 0.95rem;
  }
  .missing-tracks-list li {
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
  }
  .mobile-only {
    display: flex !important;
  }
}
@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--spacing-sm);
  }
  .section-title {
    font-size: 1.25rem;
  }
  #page-library .search-tabs {
    flex-wrap: wrap;
    gap: var(--spacing-xs);
  }
  #page-library .search-tab {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.85rem;
    flex: 1;
    min-width: auto;
    white-space: nowrap;
  }
  #page-library .library-header {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
  }
  #page-library .library-header h2 {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  #page-library .library-create-dashed-card {
    margin: 0 !important;
  }
  .detail-header-info .title {
    font-size: 1.25rem;
  }
  .detail-header-info .title.long-title {
    font-size: 1.1rem;
  }
  .detail-header-info .title.very-long-title {
    font-size: 0.9rem;
  }
  .search-tab {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
  }
  .player-controls .buttons {
    gap: 0.25rem;
  }
  .player-controls .buttons button {
    width: 24px;
    height: 24px;
  }
  .player-controls .buttons button svg {
    width: 16px;
    height: 16px;
  }
  .player-controls .buttons .play-pause-btn {
    width: 28px;
    height: 28px;
  }
  .player-controls .buttons .play-pause-btn svg {
    width: 18px;
    height: 18px;
  }
  .volume-controls button {
    padding: 0.25rem;
    min-width: 28px;
    min-height: 28px;
  }
  .volume-controls button svg {
    width: 16px;
    height: 16px;
  }
  .track-item {
    grid-template-columns: 32px 1fr 40px auto;
    gap: 0.375rem;
    padding: var(--spacing-xs);
  }
  .track-item.track-item--inline-like {
    grid-template-columns: 32px minmax(0, 1fr) auto minmax(2.25rem, auto) auto;
  }
  .track-number {
    width: 32px;
  }
  .track-item-cover {
    width: 32px;
    height: 32px;
  }
  .track-item-details .title {
    font-size: 0.85rem;
  }
  .track-item-details .artist,
  .track-item-duration {
    font-size: 0.75rem;
  }
  .track-menu-btn {
    padding: 0.25rem;
  }
  .track-menu-btn svg {
    width: 16px;
    height: 16px;
  }
  .queue-track-item {
    grid-template-columns: 20px 1fr 36px 32px 32px;
    gap: 0.375rem;
    padding: 0.5rem;
  }
  .queue-track-item .drag-handle {
    width: 20px;
  }
  .queue-track-item .track-item-cover,
  .queue-track-item .queue-like-btn,
  .queue-track-item .queue-remove-btn {
    width: 32px;
    height: 32px;
  }
  .player-actions-row {
    gap: 0.25rem;
  }
}
@media (max-width: 360px) {
  .player-controls .buttons {
    justify-content: space-between;
    width: 100%;
  }
  #shuffle-btn,
  #repeat-btn {
    display: none;
  }
}
@media (display-mode: window-controls-overlay) {
  .app-container {
    margin-top: env(titlebar-area-height, 0);
  }
  .main-header {
    -webkit-app-region: drag;
  }
  .main-header * {
    -webkit-app-region: no-drag;
  }
  .sidebar {
    padding-top: max(1.5rem, env(titlebar-area-height, 0));
  }
}
@media (hover: hover) {
  .card.compact .card-play-btn {
    opacity: 0;
  }
  .card.compact:hover .card-play-btn {
    opacity: 1;
  }
}
@media (hover: none) {
  .track-menu-btn,
  .queue-track-item .queue-remove-btn {
    opacity: 1;
  }
  .card.compact .card-like-btn {
    display: none !important;
  }
}
@media (hover: none) and (pointer: coarse) {
  .card-image-wrapper {
    overflow: visible;
  }
  .card:not(.artist) .card-image-wrapper .card-image,
  .card:not(.artist) .card-image-wrapper .card-collage {
    clip-path: inset(0 round var(--radius));
  }
  .main-content {
    padding: var(--spacing-sm);
    grid-area: main;
    overflow-x: hidden;
    min-width: 0;
  }
  .progress-bar:not(.waveform-loaded),
  .volume-bar {
    height: 8px;
  }
  .progress-bar .progress-fill:after,
  .volume-bar .volume-fill:after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--highlight);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 6px #0000004d;
  }
  button {
    min-height: 36px;
    min-width: 36px;
  }
  .track-item {
    grid-template-columns: 32px 1fr 32px auto;
  }
  .track-item.track-item--inline-like {
    grid-template-columns: 32px minmax(0, 1fr) auto minmax(2.25rem, auto) auto;
  }
  .player-controls .buttons button {
    min-height: 36px;
    min-width: 36px;
  }
  .card:hover {
    transform: none !important;
  }
  .card-like-btn {
    opacity: 1 !important;
    top: -0.25em !important;
    right: -0.25em !important;
    transform: none !important;
  }
  .card-play-btn {
    opacity: 1 !important;
    bottom: -0.25em !important;
    right: -0.25em !important;
    transform: none !important;
  }
}
body:has(#fullscreen-cover-overlay:not([style*='display: none'])) .now-playing-bar {
  width: 96% !important;
  left: 2% !important;
}
@media (max-width: 768px) {
  .now-playing-bar {
    width: 96% !important;
    left: 2%;
  }
}
#custom-tooltip {
  position: fixed;
  background: var(--card);
  color: var(--card-foreground);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.1s ease;
  white-space: nowrap;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  will-change: transform, opacity;
}
.genius-annotation-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0009;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade-in 0.2s ease;
}
.genius-annotation-modal .genius-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ffff64;
}
.genius-annotation-modal .genius-line {
  font-style: italic;
  color: #ffff64;
  font-weight: 600;
  margin-right: 1rem;
}
.genius-annotation-modal .close-genius {
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.genius-modal-content {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}
.genius-annotation-modal .genius-body {
  overflow-y: auto;
}
.annotation-item {
  margin-bottom: 1.5rem;
}
.annotation-text {
  line-height: 1.6;
}
.active-genius svg path:first-child {
  fill: #ffff64;
}
.genius-annotated {
  background-color: #ffff641a;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}
.genius-annotated:hover {
  background-color: #ffff6433;
}
.genius-multi-start {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.genius-multi-mid {
  border-radius: 0;
}
.genius-multi-end {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
@media (min-width: 769px) {
  body.sidebar-collapsed .app-container {
    grid-template-columns: 1fr;
  }
  body.sidebar-collapsed .sidebar-logo span,
  body.sidebar-collapsed .sidebar-nav span {
    display: none;
  }
  body.sidebar-collapsed .sidebar-logo {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }
  body.sidebar-collapsed .sidebar-nav .nav-item a {
    justify-content: center;
    padding: 0.75rem 0;
  }
  body.sidebar-collapsed .pinned-items-header,
  body.sidebar-collapsed #pinned-items-list .nav-item a .pinned-item-name {
    display: none;
  }
  body.sidebar-collapsed #pinned-items-list .nav-item a {
    justify-content: center;
  }
  body.sidebar-collapsed .now-playing-bar {
    width: calc(96% - 80px) !important;
    left: calc(80px + 2%);
  }
  body.sidebar-collapsed #sidebar-toggle {
    margin-left: 0 !important;
  }
}
#page-track .detail-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  gap: 2rem;
}
#page-track .detail-header-image {
  width: 350px;
  height: 350px;
  box-shadow: 0 30px 60px #00000080;
}
#page-track .detail-header-info {
  align-items: center;
  width: 100%;
}
#page-track .detail-header-info .title {
  justify-content: center;
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}
#page-track .detail-header-info .meta {
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0.8;
}
#page-track .detail-header-actions {
  justify-content: center;
  margin-top: 2rem;
}
#page-track .section-title {
  text-align: center;
}
@media (max-width: 768px) {
  #page-track .detail-header {
    padding: 2rem 1rem;
  }
  #page-track .detail-header-image {
    width: 200px;
    height: 200px;
  }
  #page-track .detail-header-info .title {
    font-size: 1.75rem;
  }
}
.tracker-modal .track-item.loading {
  opacity: 0.7;
  pointer-events: none;
}
.tracker-modal .track-item.loading .track-number {
  color: var(--highlight);
}
@media (max-width: 768px) {
  .tracker-modal .modal-content {
    height: 90vh !important;
    max-height: 90vh !important;
    padding: 1rem !important;
  }
  .tracker-modal .detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem !important;
  }
  .tracker-modal .detail-header-image {
    width: 80px !important;
    height: 80px !important;
  }
  .tracker-modal .detail-header-info .title {
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem;
  }
  .tracker-modal .detail-header-info .meta {
    max-height: 60px;
    overflow-y: auto;
    display: block;
    font-size: 0.85rem;
  }
  .tracker-modal .detail-header-actions .btn-secondary {
    width: auto !important;
    height: auto !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 2rem !important;
  }
  #tracker-filters {
    padding: 0 0 0.5rem !important;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .tracker-modal .detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
  .tracker-modal .detail-header-image {
    width: 100px !important;
    height: 100px !important;
  }
  .tracker-modal .detail-header-info .title {
    font-size: 1.5rem !important;
  }
  .tracker-modal .detail-header-info .meta {
    max-height: 80px;
    overflow-y: auto;
    display: block;
  }
}
body:has(#side-panel.active) .fullscreen-main-view {
  transition:
    flex 0.3s ease,
    padding-right 0.3s ease,
    margin-right 0.3s ease;
  padding-right: 600px;
}
body:has(#side-panel.active) .fullscreen-lyrics-toggle {
  right: calc(600px + 4.5rem);
}
body:has(#side-panel.active) #close-fullscreen-cover-btn {
  right: calc(600px + 1rem);
}
@media (max-width: 1200px) {
  body:has(#side-panel.active) .fullscreen-main-view {
    padding-right: 50vw;
  }
  body:has(#side-panel.active) .fullscreen-lyrics-toggle {
    right: calc(50vw + 4.5rem);
  }
  body:has(#side-panel.active) #close-fullscreen-cover-btn {
    right: calc(50vw + 1rem);
  }
}
@media (max-width: 768px) {
  body:has(#side-panel.active) .fullscreen-main-view {
    padding-right: 0;
  }
  body:has(#side-panel.active) .fullscreen-lyrics-toggle,
  body:has(#side-panel.active) #close-fullscreen-cover-btn {
    display: none;
  }
}
@media (max-width: 480px) {
  .player-controls .buttons {
    gap: 1.25rem;
  }
}
@media (max-width: 480px) {
  .player-controls .buttons button svg {
    width: 25px;
    height: 25px;
  }
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
  border: 2px solid var(--background);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--input);
}
::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}
.modal.active .modal-content {
  animation: pop-in var(--transition-normal) var(--ease-out-back);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border);
}
.nav-item a {
  position: relative;
  overflow: hidden;
}
.nav-item a:active {
  transform: scale(0.97);
}
.graphic-eq-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.graphic-eq-config-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}
.graphic-eq-config-row label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--foreground);
}
.geq-config-input {
  width: 70px;
  padding: 4px 6px;
  border: 1px solid var(--border-color, #444);
  border-radius: 4px;
  background: var(--bg-secondary, #222);
  color: inherit;
  font-size: 0.85rem;
}
.graphic-eq-preset-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}
.graphic-eq-preset-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
}
.graphic-eq-preset-select {
  flex: 1;
  padding: 8px 12px;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.85rem;
}
.graphic-eq-bands {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2px;
  padding: var(--spacing-md) var(--spacing-sm);
  background: #00000026;
  border-radius: var(--radius);
  min-height: 240px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.graphic-eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.graphic-eq-band-value {
  font-size: 0.65rem;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-height: 14px;
  opacity: 0.7;
}
.graphic-eq-band-slider-wrap {
  position: relative;
  height: 160px;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.graphic-eq-band-slider-wrap input[type='range'] {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 28px;
  height: 100%;
  accent-color: var(--foreground);
  cursor: pointer;
  margin: 0;
  padding: 0;
}
.graphic-eq-band-label {
  font-size: 0.6rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  text-align: center;
  letter-spacing: -0.02em;
}
.graphic-eq-bottom-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}
.graphic-eq-preamp {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex: 1;
}
.graphic-eq-preamp-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.graphic-eq-preamp-slider {
  flex: 1;
  height: 4px;
  accent-color: var(--highlight);
}
.graphic-eq-preamp-value {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  min-width: 45px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .graphic-eq-bands {
    min-height: 180px;
  }
  .graphic-eq-band-slider-wrap {
    height: 130px;
    width: 22px;
  }
  .graphic-eq-band-label,
  .graphic-eq-band-value {
    font-size: 0.5rem;
  }
  .graphic-eq-bottom-row {
    gap: var(--spacing-sm);
  }
  .graphic-eq-preamp {
    min-width: 0;
    flex-basis: 100%;
  }
}
.equalizer-container {
  margin-top: var(--spacing-md);
  padding: var(--spacing-lg);
  background: linear-gradient(145deg, var(--card), rgb(var(--highlight-rgb), 0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 1px #ffffff0d;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}
.autoeq-mode-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}
.autoeq-mode-toggle {
  display: flex;
  flex: 1;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.eq-howto-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--highlight);
  background: rgb(var(--highlight-rgb), 0.12);
  color: var(--highlight);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.eq-howto-btn:hover {
  border-color: var(--highlight);
  color: var(--primary-foreground);
  background: var(--highlight);
}
.eq-howto-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(var(--highlight-rgb), 0.03);
  padding: var(--spacing-md);
  position: relative;
  animation: fade-slide-in 0.2s ease;
}
@keyframes fade-slide-in {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.eq-howto-close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: var(--muted-foreground);
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.eq-howto-close:hover {
  color: var(--foreground);
  background: rgb(var(--highlight-rgb), 0.1);
}
.eq-howto-tab h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 var(--spacing-sm) 0;
}
.eq-howto-tab ol {
  margin: 0;
  padding-left: 1.4em;
  font-size: 0.78rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}
.eq-howto-tab ol b {
  color: var(--foreground);
}
.eq-howto-tip {
  margin: var(--spacing-sm) 0 0;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgb(var(--highlight-rgb), 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 500;
}
.autoeq-mode-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}
.autoeq-mode-btn:hover {
  color: var(--foreground);
}
.autoeq-mode-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
}
.autoeq-graph-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.autoeq-graph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}
.autoeq-graph-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.autoeq-graph-legend {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.7rem;
  color: var(--muted-foreground);
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.legend-original .legend-dot {
  background: #3b82f6;
}
.legend-target .legend-dot {
  background: color-mix(in srgb, var(--foreground) 50%, transparent);
  border: 1px dashed color-mix(in srgb, var(--foreground) 30%, transparent);
}
.legend-corrected .legend-dot {
  background: #f472b6;
}
.autoeq-graph-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  background: color-mix(in srgb, var(--background) 25%, #111);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.autoeq-response-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.autoeq-auto-preamp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-xs) 0;
}
.autoeq-auto-preamp-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.toggle-switch-sm {
  transform: scale(0.75);
  transform-origin: right center;
}
.autoeq-controls-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.autoeq-control-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}
.autoeq-control-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 600;
}
.autoeq-select-wrapper {
  display: flex;
  gap: var(--spacing-xs);
}
.autoeq-select-wrapper select {
  flex: 1;
  padding: 0.6rem 0.75rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.autoeq-select-wrapper select:hover {
  border-color: var(--primary);
}
.autoeq-select-wrapper select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgb(var(--highlight-rgb), 0.2);
}
.autoeq-settings-btn {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.autoeq-settings-btn:hover {
  border-color: var(--primary);
  color: var(--foreground);
}
.autoeq-controls-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--spacing-sm);
}
.autoeq-control-mini {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}
.autoeq-control-mini select {
  padding: 0.6rem 0.5rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.autoeq-control-mini select:hover {
  border-color: var(--primary);
}
.autoeq-control-mini select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgb(var(--highlight-rgb), 0.2);
}
.autoeq-actions-row {
  display: flex;
  gap: var(--spacing-sm);
  align-items: stretch;
}
.autoeq-download-btn {
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.autoeq-download-btn:hover {
  border-color: var(--primary);
  color: var(--foreground);
}
.autoeq-run-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  color: var(--primary-foreground);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}
.autoeq-run-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.autoeq-run-btn:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px rgb(var(--highlight-rgb), 0.3);
}
.autoeq-status {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-style: italic;
}
.autoeq-status.error {
  color: var(--destructive);
}
.autoeq-status.success {
  color: var(--primary);
}
.autoeq-saved-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.autoeq-saved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgb(var(--highlight-rgb), 0.04);
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}
.autoeq-saved-header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}
.autoeq-saved-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.autoeq-saved-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-full);
}
.autoeq-saved-header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}
.autoeq-profile-name-input {
  width: 140px;
  padding: 0.35rem 0.6rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.8rem;
  transition: border-color var(--transition-fast);
}
.autoeq-profile-name-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgb(var(--highlight-rgb), 0.2);
}
.autoeq-save-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}
.autoeq-collapse-btn {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}
.autoeq-collapse-btn.collapsed {
  transform: rotate(180deg);
}
.autoeq-saved-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.autoeq-profile-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.autoeq-profile-card:last-child {
  border-bottom: 1px solid var(--border);
}
.autoeq-profile-card:hover {
  border-color: var(--primary);
  background: rgb(var(--highlight-rgb), 0.06);
}
.autoeq-profile-card.active {
  border-color: var(--primary);
  background: rgb(var(--highlight-rgb), 0.08);
}
.autoeq-profile-preview {
  width: 100%;
  height: 100px;
  display: block;
  background: #00000040;
}
.autoeq-profile-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
}
.autoeq-profile-active-icon {
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.7rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.autoeq-profile-card.active .autoeq-profile-active-icon {
  display: flex;
}
.autoeq-profile-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
}
.autoeq-profile-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  width: 100%;
  padding-left: 0;
  margin-left: 0;
}
.autoeq-profile-card.active .autoeq-profile-meta {
  padding-left: calc(22px + var(--spacing-sm));
}
.autoeq-profile-delete {
  position: absolute;
  bottom: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(var(--highlight-rgb), 0.1);
  border: none;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  font-size: 1rem;
}
.autoeq-profile-delete:hover {
  background: var(--destructive);
  color: var(--destructive-foreground);
}
.autoeq-profile-card:hover .autoeq-profile-delete,
.autoeq-profile-card:focus-within .autoeq-profile-delete {
  opacity: 1;
  pointer-events: auto;
}
.autoeq-database-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.autoeq-database-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
}
.autoeq-database-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}
.autoeq-database-subtitle {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  display: block;
}
.autoeq-database-count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-weight: 500;
}
.autoeq-database-search {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0 var(--spacing-md) var(--spacing-md);
}
.autoeq-database-search svg {
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.autoeq-database-search input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.85rem;
  transition: border-color var(--transition-fast);
}
.autoeq-database-search input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgb(var(--highlight-rgb), 0.2);
}
.autoeq-database-content {
  display: flex;
  position: relative;
}
.autoeq-database-list {
  flex: 1;
  max-height: 400px;
  overflow-y: auto;
}
.autoeq-database-alpha-index {
  width: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 400px;
  overflow: hidden;
}
.autoeq-database-alpha-index button {
  width: 18px;
  height: 16px;
  font-size: 0.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 0;
  line-height: 1;
}
.autoeq-database-alpha-index button:hover {
  color: var(--primary);
  background: rgb(var(--highlight-rgb), 0.1);
}
.autoeq-db-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-top: 1px solid rgb(var(--highlight-rgb), 0.05);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.autoeq-db-item:hover {
  background: rgb(var(--highlight-rgb), 0.08);
}
.autoeq-db-item svg {
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.autoeq-db-item-info {
  flex: 1;
  min-width: 0;
}
.autoeq-db-item-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.autoeq-db-item-meta {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  display: block;
}
.autoeq-db-item-chevron {
  color: var(--muted-foreground);
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform var(--transition-fast);
}
.autoeq-db-item.expanded .autoeq-db-item-chevron {
  transform: rotate(90deg);
}
.autoeq-db-sub-list {
  display: none;
  padding-left: var(--spacing-lg);
  background: rgb(var(--highlight-rgb), 0.02);
}
.autoeq-db-sub-list.visible {
  display: block;
}
.autoeq-db-sub-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-md);
  border-top: 1px solid rgb(var(--highlight-rgb), 0.03);
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  transition: all var(--transition-fast);
}
.autoeq-db-sub-item:hover {
  background: rgb(var(--highlight-rgb), 0.08);
  color: var(--foreground);
}
.autoeq-db-sub-item .sub-source {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: rgb(var(--highlight-rgb), 0.08);
  color: var(--muted-foreground);
}
.autoeq-database-list::-webkit-scrollbar {
  width: 6px;
}
.autoeq-database-list::-webkit-scrollbar-track {
  background: transparent;
}
.autoeq-database-list::-webkit-scrollbar-thumb {
  background: rgb(var(--highlight-rgb), 0.2);
  border-radius: 3px;
}
.autoeq-database-list::-webkit-scrollbar-thumb:hover {
  background: rgb(var(--highlight-rgb), 0.4);
}
.autoeq-filters-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.autoeq-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgb(var(--highlight-rgb), 0.04);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background var(--transition-fast);
}
.autoeq-filters-header:hover {
  background: rgb(var(--highlight-rgb), 0.08);
}
.autoeq-filters-content {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.autoeq-preset-row {
  display: flex;
  gap: var(--spacing-sm);
}
.autoeq-preset-row .autoeq-control-group {
  flex: 1;
}
.autoeq-preset-row select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.autoeq-preset-row select:hover {
  border-color: var(--primary);
}
.autoeq-preset-row select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgb(var(--highlight-rgb), 0.2);
}
.autoeq-parametric-profiles {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.autoeq-parametric-profiles .autoeq-saved-header {
  padding: var(--spacing-xs) var(--spacing-md);
}
.autoeq-filters-actions {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  align-items: center;
}
.autoeq-filters-actions button {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}
.autoeq-preamp-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}
.autoeq-preamp-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--foreground);
  min-width: 55px;
}
.autoeq-preamp-slider {
  flex: 1;
  height: 6px;
  appearance: none;
  background: var(--border);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.autoeq-preamp-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.autoeq-preamp-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.autoeq-preamp-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
}
.autoeq-preamp-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  min-width: 50px;
  text-align: right;
}
.autoeq-bands-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.autoeq-band-control {
  padding: 0.4rem 0.6rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.autoeq-band-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.autoeq-band-number {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted-foreground);
  min-width: 1rem;
  text-align: center;
  opacity: 0.6;
}
.autoeq-type-select,
.autoeq-channel-select {
  padding: 0.15rem 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--background);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}
.autoeq-type-select:hover,
.autoeq-channel-select:hover {
  border-color: var(--primary);
}
.autoeq-type-select:focus,
.autoeq-channel-select:focus {
  border-color: var(--ring);
}
.autoeq-band-param {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}
.autoeq-band-param-label {
  font-size: 0.65rem;
  color: var(--muted-foreground);
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.7;
}
.autoeq-band-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.autoeq-band-sliders {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.autoeq-band-slider {
  flex: 1;
  height: 4px;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.autoeq-band-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.autoeq-band-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}
.autoeq-band-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
}
.speaker-eq-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.speaker-eq-header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.speaker-eq-config-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}
.speaker-config-select {
  padding: 0.5rem 0.75rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.speaker-config-select:hover {
  border-color: var(--primary);
}
.speaker-channel-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.speaker-channel-tab {
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}
.speaker-channel-tab:hover {
  border-color: var(--primary);
  color: var(--foreground);
}
.speaker-channel-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}
.speaker-channel-tab.has-data:after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
}
.speaker-channel-tab.active.has-data:after {
  background: var(--primary-foreground);
}
.speaker-eq-controls {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: rgb(var(--highlight-rgb), 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.speaker-eq-measurement-row {
  display: flex;
  gap: var(--spacing-sm);
  align-items: flex-end;
  flex-wrap: wrap;
}
.speaker-measurement-status {
  flex: 1;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  padding: 0.5rem 0.75rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.speaker-measurement-status.loaded {
  color: #4ade80;
  border-color: #4ade804d;
}
.speaker-eq-params-row {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  align-items: flex-end;
}
.speaker-eq-slider-control {
  flex: 1;
  min-width: 120px;
}
.speaker-eq-slider-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}
.speaker-eq-slider-row input[type='range'] {
  flex: 1;
}
.speaker-eq-slider-value {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  min-width: 45px;
  text-align: right;
}
.speaker-eq-slider-value.bass {
  color: #22d3ee;
}
.speaker-eq-slider-value.room {
  color: #f59e0b;
}
.speaker-eq-section .autoeq-control-label.bass {
  color: #22d3ee;
}
.speaker-eq-section .autoeq-control-label.room {
  color: #f59e0b;
}
.speaker-measure-btn {
  color: #f472b6;
}
.speaker-measure-btn:hover {
  background: #f472b626;
}
.speaker-measure-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.speaker-eq-actions-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}
.speaker-all-btn {
  background: var(--surface-2) !important;
  color: var(--foreground) !important;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  flex: 0 0 auto;
  width: auto;
}
.speaker-all-btn:hover {
  background: var(--surface-3) !important;
  border-color: var(--primary);
}
.speaker-saved-section {
  margin-top: var(--spacing-sm);
}
@media (max-width: 768px) {
  .equalizer-container {
    padding: var(--spacing-md);
  }
  .autoeq-graph-wrapper {
    height: 220px;
  }
  .autoeq-controls-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .autoeq-database-list {
    max-height: 300px;
  }
}
@media (max-width: 480px) {
  .autoeq-graph-wrapper {
    height: 180px;
  }
  .autoeq-graph-header,
  .autoeq-saved-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .autoeq-saved-header-right {
    width: 100%;
  }
  .autoeq-profile-name-input {
    flex: 1;
    width: auto;
  }
}
.track-list-search-container {
  margin: 1rem 0;
}
.track-list-search-input {
  font-size: 0.95rem;
}
#custom-tooltip.visible {
  opacity: 1;
}
.profile-header-container {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile-banner {
  width: 100%;
  height: 400px;
  background-color: var(--secondary);
  background-size: cover;
  background-position: center;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, #0000);
  mask-image: linear-gradient(to bottom, #000 50%, #0000);
}
.profile-info-section {
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 250px;
  width: 100%;
  max-width: 800px;
}
.profile-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--background);
  background-color: var(--card);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-2xl);
  margin-bottom: 1.5rem;
}
.profile-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#profile-display-name {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgb(0, 0, 0, 0.5);
}
.profile-username {
  color: var(--muted-foreground);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  background: #0000004d;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  border: 1px solid var(--border);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-about {
  margin-top: 0.5rem;
  max-width: 600px;
  line-height: 1.6;
  font-size: 1.05rem;
  color: var(--foreground);
}
.profile-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}
.profile-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.profile-link:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .profile-info-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    gap: 1rem;
  }
  .profile-banner {
    height: 150px;
    margin-bottom: -50px;
  }
  .profile-avatar {
    width: 100px;
    height: 100px;
  }
  #profile-display-name {
    font-size: 2rem;
  }
  .profile-actions {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}
.status-picker-container {
  position: relative;
}
.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: var(--shadow-lg);
}
.search-result-item {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover {
  background: var(--secondary);
}
.search-result-item img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-title {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-subtitle {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  z-index: 2000;
  min-width: 200px;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 0.25rem;
}
.dropdown-menu.active {
  display: flex;
  animation: scale-in 0.1s ease-out;
}
.dropdown-menu button {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}
.theme-card-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.theme-card-preview-header {
  height: 30%;
  border-bottom: 1px solid var(--border);
}
.theme-card-preview-body {
  flex: 1;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.theme-card-preview-line {
  height: 4px;
  border-radius: 2px;
  width: 100%;
  opacity: 0.5;
}
.theme-editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--secondary);
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.theme-editor-toolbar .color-picker-group,
.theme-editor-toolbar .style-picker-group {
  display: flex;
  gap: 0.25rem;
}
.theme-editor-toolbar select {
  height: 24px;
  padding: 0 4px;
  font-size: 0.75rem;
  background-color: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--foreground);
  cursor: pointer;
}
.theme-editor-toolbar input[type='color'] {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
}
#theme-upload-css {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  max-width: 100%;
}
#theme-preview-window {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  height: 400px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  overflow: hidden;
  resize: both;
  display: flex;
  flex-direction: column;
}
.home-header-tabs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.home-tab {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.home-tab:hover {
  color: var(--foreground);
}
.home-tab.active {
  color: var(--foreground);
  border-bottom-color: var(--highlight);
}
.home-view {
  animation: fade-in 0.3s ease;
}
#command-palette-overlay {
  position: fixed;
  inset: 0;
  background: #0009;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: min(10vh, 120px);
  animation: cmdk-overlay-in 0.15s ease-out;
}
@keyframes cmdk-overlay-in {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes cmdk-scale-in {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.command-palette {
  width: 100%;
  max-width: 640px;
  margin: 0 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 16px 70px #0000007f,
    0 0 0 1px #ffffff0d inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(60vh, 480px);
  animation: cmdk-scale-in 0.15s ease-out;
}
.command-palette-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.command-palette-search-icon {
  flex-shrink: 0;
  color: var(--muted-foreground);
}
#command-palette-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 400;
  color: var(--foreground);
  outline: none;
}
#command-palette-input::placeholder {
  color: var(--muted-foreground);
}
.command-palette-kbd {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 500;
  color: var(--muted-foreground);
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  line-height: 1.4;
}
.command-palette-results {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 8px;
}
.cmdk-group + .cmdk-group {
  margin-top: 4px;
}
.cmdk-group-heading {
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  -webkit-user-select: none;
  user-select: none;
}
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius, 8px);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: background 80ms ease;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}
.cmdk-item:hover,
.cmdk-item[data-selected='true'] {
  background: var(--secondary);
}
.cmdk-item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  color: var(--muted-foreground);
}
.cmdk-item-icon img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.cmdk-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cmdk-item-label {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmdk-item-description {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmdk-item-shortcut {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.cmdk-item-shortcut kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 10px;
  font-family: inherit;
  font-weight: 500;
  color: var(--muted-foreground);
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  line-height: 1;
}
.cmdk-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
.cmdk-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  color: var(--muted-foreground);
  font-size: 0.8rem;
}
.cmdk-loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--foreground);
  border-radius: 50%;
  animation: cmdk-spin 0.6s linear infinite;
}
@keyframes cmdk-spin {
  to {
    transform: rotate(360deg);
  }
}
.command-palette-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--muted-foreground);
}
.command-palette-hint {
  display: flex;
  align-items: center;
  gap: 4px;
}
.command-palette-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 4px;
  font-size: 10px;
  font-family: inherit;
  font-weight: 500;
  color: var(--muted-foreground);
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
}
@media (max-width: 640px) {
  #command-palette-overlay {
    padding-top: 0;
    align-items: flex-start;
  }
  .command-palette {
    max-width: 100%;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: none;
  }
  .command-palette-footer {
    display: none;
  }
}
.video-card .card-image-container {
  aspect-ratio: 16 / 9 !important;
  margin-bottom: var(--spacing-sm);
}
.video-card .card-image {
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
}
.video-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #000000b3;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  z-index: 5;
}
#fullscreen-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #000;
  display: none;
  justify-content: center;
  align-items: center;
}
#fullscreen-video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.search-tab[data-tab='videos'] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.party-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.party-content-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}
@media (max-width: 1024px) {
  .party-content-layout {
    grid-template-columns: 1fr;
  }
}
.party-indicator-card {
  position: fixed;
  bottom: calc(var(--player-bar-height-desktop) + 1.5rem);
  right: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-right: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 280px;
}
.party-indicator-card:hover {
  background: var(--secondary);
}
.party-indicator-content {
  flex: 1;
  min-width: 0;
  text-align: right;
}
.party-indicator-label {
  color: var(--muted-foreground);
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 2px;
}
.party-indicator-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.party-indicator-count {
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 24px;
  text-align: center;
  order: -1;
}
@media (max-width: 768px) {
  .party-indicator-card {
    bottom: calc(var(--player-bar-height-mobile) + 1rem);
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}
.chat-msg {
  margin-bottom: 0.5rem;
  animation: fade-in 0.2s ease-out;
}
@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.member-item {
  transition: transform 0.2s ease;
}
.member-item:hover {
  transform: scale(1.02);
}
.about-contributors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.about-contributors div {
  width: calc(20% - 10px);
  min-width: 150px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  overflow: hidden;
  background: var(--card);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.about-contributors div:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.about-contributors a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.about-contributors img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.about-contributors span {
  color: var(--foreground);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  display: block;
  word-break: break-word;
}
.about-contributors .contrib {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 400;
}
@media (max-width: 768px) {
  .about-contributors div {
    width: calc(33.33% - 12px);
    padding: 15px;
  }
}
@media (max-width: 480px) {
  .about-contributors {
    gap: 8px;
  }
  .about-contributors div {
    width: calc(50% - 8px);
    min-width: 0;
    padding: 12px;
  }
  .about-contributors span {
    font-size: 13px;
  }
  .about-contributors .contrib {
    font-size: 11px;
  }
}
#fullscreen-cover-overlay .fullscreen-shell {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
}
#fullscreen-cover-overlay .fullscreen-main-view {
  --fs-media-column-size: minmax(340px, 430px);
  --fs-lyrics-column-size: minmax(520px, 760px);
  width: min(1480px, 100%);
  height: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: var(--fs-media-column-size) var(--fs-lyrics-column-size);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 7vh, 5rem) clamp(3rem, 6vw, 5rem) clamp(3rem, 6vh, 4rem);
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
  transition:
    grid-template-columns 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    gap 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
#fullscreen-cover-overlay .fullscreen-media-column,
#fullscreen-cover-overlay .fullscreen-lyrics-pane {
  min-height: 0;
}
#fullscreen-cover-overlay .fullscreen-media-column {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  justify-self: center;
  transform: none;
  transition:
    width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
}
#fullscreen-cover-overlay .fullscreen-artwork-card {
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 80px #00000042;
}
#fullscreen-cover-overlay #fullscreen-cover-image {
  width: 100%;
  height: 100%;
  margin: 0;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 18px;
  transform: none !important;
}
#fullscreen-cover-overlay .fullscreen-track-info {
  width: min(420px, 100%);
  display: block;
  text-align: left;
  max-width: none;
  padding: 0.15rem 0 0;
  background: none;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
#fullscreen-cover-overlay .fullscreen-track-text {
  min-width: 0;
}
#fullscreen-cover-overlay #fullscreen-track-title {
  margin: 0;
  font-size: clamp(1.15rem, 1.5vw, 1.42rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
#fullscreen-cover-overlay #fullscreen-track-artist {
  margin: 0.12rem 0 0;
  font-size: 0.94rem;
  color: #ffffffbd;
}
#fullscreen-cover-overlay #toggle-fullscreen-lyrics-btn,
#fullscreen-cover-overlay .fullscreen-lyrics-toggle {
  display: flex;
}
#fullscreen-cover-overlay .fullscreen-actions {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
#fullscreen-cover-overlay .fullscreen-actions .btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  color: #ffffffbd;
  background: transparent;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}
#fullscreen-cover-overlay .fullscreen-actions .btn-icon:hover {
  color: #fffffff5;
  background: #ffffff14;
  transform: scale(1.03);
}
#fullscreen-cover-overlay #fullscreen-next-track {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  color: #ffffff8f;
}
#fullscreen-cover-overlay #fullscreen-next-track .label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#fullscreen-cover-overlay #fullscreen-next-track .value {
  font-size: 0.84rem;
  color: #ffffffbd;
}
#fullscreen-cover-overlay .fullscreen-top-actions {
  position: absolute;
  top: 1.25rem;
  left: calc(1.5rem + env(safe-area-inset-left));
  right: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 12;
}
#fullscreen-cover-overlay .fullscreen-top-actions button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0;
  background: #090c1257;
  color: #ffffffb8;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
}
#fullscreen-cover-overlay .fullscreen-top-actions #fs-visualizer-btn {
  order: 3;
}
#fullscreen-cover-overlay .fullscreen-top-actions #toggle-fullscreen-lyrics-btn,
#fullscreen-cover-overlay .fullscreen-top-actions #fs-visualizer-btn,
#fullscreen-cover-overlay .fullscreen-top-actions #close-fullscreen-cover-btn {
  position: static;
  inset: auto;
  margin: 0;
  opacity: 1;
}
#fullscreen-cover-overlay .fullscreen-top-actions #toggle-fullscreen-lyrics-btn {
  order: 2;
}
#fullscreen-cover-overlay .fullscreen-top-actions #toggle-fullscreen-lyrics-btn.active {
  color: #fffffff5;
  background: #ffffff1f;
}
#fullscreen-cover-overlay .fullscreen-top-actions #close-fullscreen-cover-btn {
  order: 1;
}
#fullscreen-cover-overlay.ui-hidden .fullscreen-top-actions,
#fullscreen-cover-overlay.ui-hidden .fullscreen-top-actions button,
#fullscreen-cover-overlay.ui-hidden .fullscreen-top-actions #close-fullscreen-cover-btn,
#fullscreen-cover-overlay.ui-hidden .fullscreen-top-actions #fs-visualizer-btn {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
#fullscreen-cover-overlay #toggle-ui-btn {
  top: 1.25rem;
  left: calc(2.7rem + env(safe-area-inset-left) + 120px);
  right: auto;
  width: 40px;
  height: 40px;
  background: #090c1257;
  color: #ffffffb8;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 1;
  z-index: 12;
}
#fullscreen-cover-overlay .fullscreen-controls {
  width: min(420px, 100%);
  margin-top: 0;
  align-items: center;
  gap: 0.85rem;
  position: relative;
}
#fullscreen-cover-overlay .fullscreen-buttons {
  width: 100%;
  justify-content: center;
  gap: 0.4rem;
}
#fullscreen-cover-overlay .fullscreen-buttons button {
  width: 40px;
  height: 40px;
  color: #ffffffb8;
  border-radius: 999px;
  padding: 0;
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
}
#fullscreen-cover-overlay .fullscreen-buttons button:hover {
  color: #fffffff0;
  background: #ffffff14;
  transform: scale(1.04);
}
#fullscreen-cover-overlay .fullscreen-buttons button.active {
  color: rgb(var(--fs-accent-rgb) / 0.98);
}
#fullscreen-cover-overlay .fullscreen-buttons #fs-play-pause-btn {
  width: 54px;
  height: 54px;
  background: #fffffff5;
  color: #0b0f15eb;
  box-shadow: 0 12px 28px #0003;
}
#fullscreen-cover-overlay .fullscreen-buttons #fs-play-pause-btn:hover {
  background: #fff;
  transform: scale(1.02);
}
#fullscreen-cover-overlay .fullscreen-volume-container {
  width: 238px;
  max-width: 100%;
  align-self: center;
  justify-content: center;
  margin-top: 0.2rem;
  margin-inline: auto;
  position: relative;
}
#fullscreen-cover-overlay .fs-visualizer-btn,
#fullscreen-cover-overlay .fs-volume-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  color: #ffffff9e;
}
#fullscreen-cover-overlay .fs-visualizer-btn:hover,
#fullscreen-cover-overlay .fs-volume-btn:hover {
  background: transparent;
  color: #ffffffe6;
}
#fullscreen-cover-overlay .fs-visualizer-btn.active {
  color: rgb(var(--fs-accent-rgb) / 0.96);
}
#fullscreen-cover-overlay .fs-volume-btn {
  position: absolute;
  left: -2.5rem;
  top: 50%;
  transform: translateY(-50%);
}
#fullscreen-cover-overlay .fs-volume-btn:hover {
  transform: translateY(-50%);
}
#fullscreen-cover-overlay .fs-volume-bar {
  width: 238px;
  height: 4px;
  background: #ffffff3d;
  margin-inline: auto;
}
#fullscreen-cover-overlay .fs-volume-bar:hover {
  height: 4px;
}
#fullscreen-cover-overlay .fs-volume-fill,
#fullscreen-cover-overlay .fullscreen-progress-container .progress-fill {
  background: #ffffffeb;
}
#fullscreen-cover-overlay .fullscreen-progress-container {
  color: #ffffff9e;
  font-size: 0.78rem;
}
#fullscreen-cover-overlay .fullscreen-progress-container .progress-bar {
  height: 4px;
  background: #fff3;
}
#fullscreen-cover-overlay .fullscreen-progress-container .progress-bar:hover {
  height: 4px;
}
#fullscreen-cover-overlay .fullscreen-progress-container .progress-bar:hover .progress-fill,
#fullscreen-cover-overlay .fs-volume-bar:hover .fs-volume-fill {
  background: rgb(var(--fs-accent-rgb) / 0.94);
}
#fullscreen-cover-overlay .fullscreen-progress-container .progress-bar:hover .progress-fill:after,
#fullscreen-cover-overlay .fullscreen-progress-container .progress-bar:active .progress-fill:after,
#fullscreen-cover-overlay .fs-volume-bar:hover .fs-volume-fill:after,
#fullscreen-cover-overlay .fs-volume-bar:active .fs-volume-fill:after {
  width: 10px;
  height: 10px;
  box-shadow: 0 4px 12px #00000047;
}
#fullscreen-cover-overlay .fullscreen-lyrics-pane {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  min-width: 0;
  opacity: 1;
  transform: translate(0);
  transition:
    opacity 0.24s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}
#fullscreen-cover-overlay .fullscreen-lyrics-shell,
#fullscreen-cover-overlay .fullscreen-lyrics-content,
#fullscreen-cover-overlay .fullscreen-lyrics-content am-lyrics {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
#fullscreen-cover-overlay .fullscreen-lyrics-shell {
  width: min(860px, 100%);
  min-height: 0;
  margin-left: 0;
}
#fullscreen-cover-overlay .fullscreen-lyrics-content {
  min-height: 0;
  height: 100%;
  position: relative;
  padding-left: clamp(0.5rem, 1.6vw, 1.5rem);
  -webkit-mask-image: none;
  mask-image: none;
  overflow: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#fullscreen-cover-overlay .fullscreen-lyrics-content::-webkit-scrollbar {
  display: none;
}
#fullscreen-cover-overlay .fullscreen-lyrics-content am-lyrics {
  --am-lyrics-highlight-color: #f6f4ef;
  --lyrics-scroll-padding-top: 18%;
  --lyplus-blur-amount: 0.16em;
  --lyplus-blur-amount-near: 0.085em;
  height: 100%;
  width: 100%;
  font-family:
    SF Pro Display,
    Inter,
    Noto Sans,
    Noto Sans SC,
    Noto Sans TC,
    Noto Sans HK,
    Noto Sans JP,
    Noto Sans KR,
    Noto Sans Hebrew,
    Noto Sans Arabic,
    Noto Sans Devanagari,
    Noto Sans Bengali,
    Noto Sans Thai,
    Noto Sans Tamil,
    Noto Sans Telugu,
    Noto Sans Gujarati,
    Noto Sans Kannada,
    Noto Sans Malayalam,
    Noto Sans Sinhala,
    Noto Sans Khmer,
    Noto Sans Lao,
    Noto Sans Myanmar,
    Noto Sans Georgian,
    Noto Sans Armenian,
    Noto Sans Ethiopic,
    system-ui,
    sans-serif;
  --lyplus-font-size-base: clamp(34px, 3vw, 52px);
  --lyplus-padding-line: 8px;
  --lyplus-text-color: rgb(246, 244, 239, 0.08);
  --lyplus-active-color: #f6f4ef;
  line-height: 1.32;
  letter-spacing: -0.04em;
  font-weight: 600;
  isolation: isolate;
}
#fullscreen-cover-overlay .fullscreen-lyrics-content:after {
  content: none;
}
#fullscreen-cover-overlay .fullscreen-lyrics-empty,
#fullscreen-cover-overlay .fullscreen-lyrics-content .lyrics-loading,
#fullscreen-cover-overlay .fullscreen-lyrics-content .lyrics-error {
  padding: clamp(5rem, 14vh, 7rem) 0 0 clamp(2rem, 5vw, 4.5rem);
  background: none;
  border: 0;
}
#fullscreen-cover-overlay.lyrics-unavailable .fullscreen-lyrics-pane {
  opacity: 0.55;
}
#fullscreen-cover-overlay.lyrics-hidden .fullscreen-main-view {
  --fs-media-column-size: minmax(420px, 760px);
  --fs-lyrics-column-size: minmax(0, 0fr);
  width: min(760px, 100%);
  gap: 0;
}
#fullscreen-cover-overlay.lyrics-hidden .fullscreen-media-column {
  justify-self: center;
  width: min(520px, 100%);
  transform: translate(clamp(2rem, 4vw, 3.5rem));
}
#fullscreen-cover-overlay.lyrics-hidden .fullscreen-lyrics-pane {
  opacity: 0;
  transform: translate(2rem);
  visibility: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #fullscreen-cover-overlay .fullscreen-main-view,
  #fullscreen-cover-overlay .fullscreen-media-column,
  #fullscreen-cover-overlay .fullscreen-lyrics-pane {
    transition: none !important;
  }
}
#fullscreen-cover-overlay.queue-panel-active .fullscreen-main-view {
  grid-template-columns: 1fr;
  width: min(760px, 100%);
}
#fullscreen-cover-overlay.queue-panel-active .fullscreen-media-column {
  justify-self: center;
  transform: none;
}
#fullscreen-cover-overlay.queue-panel-active .fullscreen-lyrics-pane {
  display: none;
}
@media (max-width: 980px) {
  #fullscreen-cover-overlay .fullscreen-main-view {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(760px, 100%);
    gap: 1.25rem;
    align-items: stretch;
    padding: calc(5rem + env(safe-area-inset-top)) clamp(1rem, 4vw, 1.75rem)
      calc(1.5rem + env(safe-area-inset-bottom));
  }
  #fullscreen-cover-overlay .fullscreen-media-column {
    justify-self: center;
    transform: none;
    width: min(100%, 620px);
  }
  #fullscreen-cover-overlay .fullscreen-lyrics-pane {
    display: flex;
    width: min(100%, 620px);
    justify-self: center;
    min-height: min(48vh, 440px);
  }
  #fullscreen-cover-overlay .fullscreen-lyrics-shell {
    width: 100%;
    margin-left: 0;
  }
  #fullscreen-cover-overlay .fullscreen-lyrics-content {
    padding-left: 0;
  }
}
@media (max-width: 768px) {
  #fullscreen-cover-overlay {
    --fs-mobile-top-btn-size: 42px;
    --fs-mobile-top-btn-gap: 0.6rem;
    --fs-mobile-top-btn-left: calc(1rem + env(safe-area-inset-left));
  }
  #fullscreen-cover-overlay .fullscreen-cover-content {
    padding: 0 calc(0.9rem + env(safe-area-inset-right)) calc(0.9rem + env(safe-area-inset-bottom))
      calc(0.9rem + env(safe-area-inset-left));
  }
  #fullscreen-dismiss-handle {
    display: block;
  }
  #fullscreen-cover-overlay .fullscreen-top-actions {
    display: flex;
    top: calc(0.85rem + env(safe-area-inset-top));
    left: auto;
    right: calc(3.85rem + env(safe-area-inset-right));
    gap: 0;
  }
  #fullscreen-cover-overlay .fullscreen-lyrics-toggle,
  #fullscreen-cover-overlay #close-fullscreen-cover-btn,
  #fullscreen-cover-overlay #toggle-ui-btn {
    display: none !important;
  }
  #toggle-fullscreen-lyrics-mobile-btn {
    display: flex;
  }
  #fullscreen-cover-overlay .fullscreen-top-actions #toggle-fullscreen-lyrics-btn {
    display: none !important;
  }
  #fullscreen-cover-overlay .fullscreen-top-actions #fs-visualizer-btn {
    display: flex !important;
    width: 38px;
    height: 38px;
  }
  #fullscreen-cover-overlay .fullscreen-main-view {
    width: 100%;
    height: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    grid-template-columns: minmax(78px, 92px) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: 'art info' 'lyrics lyrics' 'controls controls';
    gap: 1rem 0.9rem;
    padding: calc(4.45rem + env(safe-area-inset-top)) 0 calc(0.8rem + env(safe-area-inset-bottom));
  }
  #fullscreen-cover-overlay .fullscreen-media-column {
    display: contents;
    width: auto;
    min-width: 0;
  }
  #fullscreen-cover-overlay .fullscreen-artwork-card {
    grid-area: art;
    width: 100%;
    max-width: 92px;
    box-sizing: border-box;
    border-radius: 12px;
    align-self: start;
    margin-left: 0.95rem;
    box-shadow: 0 20px 48px #00000057;
  }
  #fullscreen-cover-overlay #fullscreen-cover-image {
    border-radius: 12px;
  }
  #fullscreen-cover-overlay .fullscreen-track-info {
    grid-area: info;
    width: 100%;
    min-width: 0;
    align-self: center;
    display: grid;
    gap: 0.3rem;
    padding-top: 0.2rem;
    padding-left: 0.95rem;
  }
  #fullscreen-cover-overlay .fullscreen-track-text {
    display: grid;
    gap: 0.14rem;
  }
  #fullscreen-cover-overlay #fullscreen-track-title {
    font-size: clamp(1.1rem, 4.7vw, 1.34rem);
    line-height: 1.04;
  }
  #fullscreen-cover-overlay #fullscreen-track-artist {
    margin-top: 0;
    font-size: 0.92rem;
    color: #ffffffb3;
  }
  #fullscreen-cover-overlay .fullscreen-actions,
  #fullscreen-cover-overlay #fullscreen-next-track {
    display: none !important;
  }
  #fullscreen-cover-overlay .fullscreen-lyrics-pane {
    grid-area: lyrics;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    min-width: 0;
    box-sizing: border-box;
    justify-self: stretch;
  }
  #fullscreen-cover-overlay .fullscreen-lyrics-shell {
    min-height: 0;
    position: relative;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    overflow: visible;
  }
  #fullscreen-cover-overlay .fullscreen-lyrics-content {
    height: 100%;
    padding: 0 0 0.2rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
      180deg,
      transparent 0%,
      black 10%,
      black 88%,
      transparent 100%
    );
    mask-image: linear-gradient(180deg, transparent 0%, black 10%, black 88%, transparent 100%);
  }
  #fullscreen-cover-overlay .fullscreen-lyrics-content am-lyrics {
    --lyrics-scroll-padding-top: 18%;
    --lyplus-font-size-base: clamp(1.75rem, 7vw, 2.35rem);
    --lyplus-padding-line: 6px;
    --lyplus-text-color: rgb(246, 244, 239, 0.16);
    --lyplus-blur-amount: 0.16em;
    --lyplus-blur-amount-near: 0.08em;
    line-height: 1.2;
  }
  #fullscreen-cover-overlay .fullscreen-lyrics-empty,
  #fullscreen-cover-overlay .fullscreen-lyrics-content .lyrics-loading,
  #fullscreen-cover-overlay .fullscreen-lyrics-content .lyrics-error {
    padding: 2.5rem 1.2rem 0;
  }
  #fullscreen-cover-overlay .fullscreen-controls {
    grid-area: controls;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 0;
    padding: 0.15rem 0 0;
    gap: 0.9rem;
  }
  #fullscreen-cover-overlay .fullscreen-mobile-quality,
  #fullscreen-cover-overlay .fullscreen-volume-container {
    display: none;
  }
  #fullscreen-cover-overlay .fullscreen-progress-container {
    gap: 0.55rem;
    font-size: 0.72rem;
  }
  #fullscreen-cover-overlay .fullscreen-buttons {
    gap: 0.1rem;
    justify-content: space-between;
  }
  #fullscreen-cover-overlay .fullscreen-buttons button {
    width: 42px;
    height: 42px;
  }
  #fullscreen-cover-overlay .fullscreen-buttons #fs-play-pause-btn {
    width: 62px;
    height: 62px;
    box-shadow: 0 14px 28px #0000004d;
  }
  #fullscreen-cover-overlay.lyrics-hidden .fullscreen-main-view {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: center;
    gap: 0;
    padding: calc(4.45rem + env(safe-area-inset-top)) clamp(1rem, 4vw, 1.4rem)
      calc(0.8rem + env(safe-area-inset-bottom));
    height: 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  #fullscreen-cover-overlay.lyrics-hidden .fullscreen-lyrics-pane {
    display: none;
  }
  #fullscreen-cover-overlay.lyrics-hidden .fullscreen-media-column {
    display: flex;
    flex-direction: column;
    grid-row: 2;
    justify-content: center;
    align-items: center;
    align-self: center;
    width: min(100%, 320px);
    max-width: min(88vw, 320px);
    min-height: 0;
    min-width: 0;
    margin: 0 auto;
    transform: none;
  }
  #fullscreen-cover-overlay.lyrics-hidden .fullscreen-artwork-card {
    max-width: min(88vw, 320px);
    width: min(100%, 320px);
    margin: 0 auto;
    align-self: center;
    justify-self: center;
    border-radius: 14px;
    box-shadow: 0 24px 56px #00000047;
  }
  #fullscreen-cover-overlay.lyrics-hidden #fullscreen-cover-image {
    border-radius: 14px;
  }
  #fullscreen-cover-overlay.lyrics-hidden .fullscreen-track-info {
    align-self: center;
    width: min(100%, 320px);
    padding: 0;
    gap: 0.3rem;
    margin-top: 0.9rem;
    text-align: center;
  }
  #fullscreen-cover-overlay.lyrics-hidden .fullscreen-track-text {
    gap: 0.2rem;
    justify-items: center;
  }
  #fullscreen-cover-overlay.lyrics-hidden #fullscreen-track-title {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
    line-height: 1.05;
  }
  #fullscreen-cover-overlay.lyrics-hidden #fullscreen-track-artist {
    font-size: 0.95rem;
    color: #ffffffa8;
  }
  #fullscreen-cover-overlay.lyrics-hidden .fullscreen-controls {
    grid-row: 4;
    width: min(100%, 320px);
    max-width: min(88vw, 320px);
    justify-self: center;
    align-self: end;
    margin-top: 0;
  }
  #fullscreen-cover-overlay.lyrics-hidden #fullscreen-track-title .quality-badge,
  #fullscreen-cover-overlay.lyrics-hidden #fullscreen-track-title .shaka-quality-badge {
    display: none !important;
  }
  #fullscreen-cover-overlay.lyrics-hidden .fullscreen-mobile-quality {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 1.25rem;
    margin: 0 auto -0.1rem;
  }
  #fullscreen-cover-overlay.lyrics-hidden .fullscreen-mobile-quality .quality-badge,
  #fullscreen-cover-overlay.lyrics-hidden .fullscreen-mobile-quality .shaka-quality-badge {
    display: inline-flex !important;
  }
  #fullscreen-cover-overlay .fullscreen-volume-container {
    width: min(280px, calc(100% - 3rem));
    margin-top: 0;
  }
  #fullscreen-cover-overlay .fs-volume-btn {
    left: -2.5rem;
  }
  #fullscreen-cover-overlay .fs-volume-bar {
    width: 100%;
  }
}
.binaural-dsp-container {
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border);
}
.binaural-status {
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: var(--spacing-md);
  background: var(--secondary);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
.binaural-mode-label {
  font-weight: 500;
}
.binaural-sub-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  gap: var(--spacing-md);
  min-width: 0;
}
.binaural-sub-setting select {
  background: var(--secondary);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.85rem;
  cursor: pointer;
}
.binaural-sub-setting .info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.binaural-sub-setting .label {
  font-weight: 500;
  font-size: 0.9rem;
}
.binaural-sub-setting .description {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
.binaural-slider {
  width: 140px;
  accent-color: var(--primary);
  cursor: pointer;
}
.binaural-width-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  min-width: 2.5em;
  text-align: right;
}
.binaural-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  vertical-align: middle;
}
img.cd {
  border-radius: 50% !important;
  box-shadow: none;
  clip-path: url(#cd-hole-clip);
}
.fullscreen-artwork-card.cd {
  position: relative;
  border-radius: 50% !important;
  border: 0.125vw solid #ccc;
  animation: spin 200s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .fullscreen-artwork-card.cd {
    animation: none;
  }
}
.cd-ring {
  display: none;
}
.cd-ring.cd {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 23.5%;
  height: 23.5%;
  border-radius: 50%;
  border: 0.125vw solid #ccc;
}
:root {
  --accent-color: #ffffff;
  --cm-sidebar-w: 260px;
  --cm-sidebar-collapsed-w: 72px;
}
:root,
:root[data-theme] {
  --primary: var(--accent-color) !important;
  --highlight: var(--accent-color) !important;
  --ring: var(--accent-color) !important;
  --active-highlight: var(--accent-color) !important;
}
body {
  font-family: Inter, sans-serif !important;
  letter-spacing: -0.01em;
}
.app-container {
  grid-template: 'main' 1fr 'player' auto / 1fr !important;
}
.sidebar {
  width: var(--cm-sidebar-w);
  padding: 1.25rem 1rem !important;
  gap: 0 !important;
  background: color-mix(in srgb, var(--background) 80%, transparent) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-right: 1px solid var(--border) !important;
  overflow: hidden;
}
.sidebar-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0 !important;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem !important;
  margin-bottom: 1.75rem !important;
  flex-shrink: 0;
  min-width: 0;
}
.sidebar-logo-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
}
.sidebar-logo-link span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-logo .app-logo {
  width: 30px !important;
  height: 30px !important;
  flex-shrink: 0 !important;
}
#sidebar-toggle {
  flex-shrink: 0 !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--foreground) 7%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--foreground) 12%, transparent) !important;
  color: var(--foreground) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
  padding: 0 !important;
  margin-left: 6px !important;
}
#sidebar-toggle:hover {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border-color: transparent !important;
  transform: scale(1.08) !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 35%, transparent) !important;
}
.sidebar-nav .nav-item a {
  padding: 0.75rem 1rem !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  margin-bottom: 4px !important;
  color: color-mix(in srgb, var(--foreground) 70%, transparent) !important;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease !important;
}
.sidebar-nav .nav-item a:hover {
  background: color-mix(in srgb, var(--foreground) 7%, transparent) !important;
  color: var(--foreground) !important;
  transform: translate(3px) !important;
}
.sidebar-nav .nav-item a.active {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--primary) 30%, transparent) !important;
  transform: none !important;
}
@media (min-width: 769px) {
  body.sidebar-collapsed .app-container {
    grid-template: 'main' 1fr 'player' auto / 1fr !important;
  }
  body.sidebar-collapsed .sidebar {
    width: var(--cm-sidebar-collapsed-w);
    padding: 1.25rem 0.5rem !important;
    align-items: center;
  }
  body.sidebar-collapsed .sidebar-logo {
    justify-content: center !important;
    padding: 0.5rem 0 !important;
    margin-bottom: 1.5rem !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  body.sidebar-collapsed .sidebar-logo-link span {
    display: none !important;
  }
  body.sidebar-collapsed .sidebar-logo-link {
    margin: 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    justify-content: center !important;
  }
  body.sidebar-collapsed .sidebar-nav span {
    display: none;
  }
  body.sidebar-collapsed .sidebar-nav .nav-item a {
    justify-content: center !important;
    padding: 0.75rem !important;
    margin-bottom: 4px !important;
  }
  body.sidebar-collapsed .pinned-items-header,
  body.sidebar-collapsed #pinned-items-list .nav-item a .pinned-item-name {
    display: none;
  }
  body.sidebar-collapsed #pinned-items-list .nav-item a {
    justify-content: center !important;
  }
  body.sidebar-collapsed .now-playing-bar {
    width: calc(96% - var(--cm-sidebar-collapsed-w)) !important;
    left: calc(var(--cm-sidebar-collapsed-w) + 2%) !important;
  }
  body.sidebar-collapsed #sidebar-toggle {
    position: static !important;
    margin: 0 auto !important;
    display: flex !important;
    align-self: center !important;
  }
}
.settings-tabs {
  background: color-mix(in srgb, var(--card) 40%, transparent) !important;
  padding: 5px !important;
  border-radius: 14px !important;
  gap: 3px !important;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem !important;
  border: 1px solid var(--border);
}
.settings-tab {
  border-radius: 10px !important;
  padding: 0.6rem 1rem !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
}
.settings-tab.active {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 30%, transparent) !important;
}
.setting-item {
  background: color-mix(in srgb, var(--card) 50%, transparent) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: 1.1rem 1.4rem !important;
  margin-bottom: 0.6rem !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease !important;
}
.setting-item:hover {
  background: color-mix(in srgb, var(--card) 80%, transparent) !important;
  border-color: color-mix(in srgb, var(--border) 150%, transparent) !important;
}
.card {
  border-radius: 16px !important;
  overflow: hidden !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
}
.card:hover {
  transform: translateY(-4px) scale(1.01) !important;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--background) 50%, transparent) !important;
}
.now-playing-bar {
  background: color-mix(in srgb, var(--card) 70%, transparent) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  bottom: 20px !important;
  width: calc(96% - var(--cm-sidebar-w)) !important;
  left: calc(var(--cm-sidebar-w) + 2%) !important;
  box-shadow: 0 8px 32px color-mix(in srgb, var(--background) 60%, transparent) !important;
}
.search-bar {
  position: relative !important;
  flex: 1 !important;
  min-width: 0 !important;
  max-width: 480px !important;
  margin: 0 !important;
}
.search-bar input,
.search-bar input[type='search'] {
  width: 100% !important;
  padding: 0.7rem 2.5rem 0.7rem 2.8rem !important;
  border-radius: 100px !important;
  background: color-mix(in srgb, var(--card) 70%, transparent) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid var(--border) !important;
  font-size: 0.9rem !important;
  color: var(--foreground) !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease !important;
  transform: none !important;
}
.search-bar input:focus,
.search-bar input[type='search']:focus {
  background: color-mix(in srgb, var(--card) 95%, transparent) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent) !important;
  transform: none !important;
  outline: none !important;
}
.search-bar svg.search-icon {
  position: absolute !important;
  left: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 16px !important;
  height: 16px !important;
  color: color-mix(in srgb, var(--foreground) 45%, transparent) !important;
  pointer-events: none !important;
  z-index: 2 !important;
  transition: color 0.2s ease !important;
}
.search-clear-btn {
  position: absolute !important;
  right: 0.6rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--foreground) 12%, transparent) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  transition: background 0.2s ease !important;
  cursor: pointer !important;
}
.search-clear-btn:hover {
  background: color-mix(in srgb, var(--foreground) 22%, transparent) !important;
}
.track-list-search-container {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  margin: 0.75rem 0 !important;
  width: 100% !important;
}
.track-list-search-input {
  width: 100% !important;
  padding: 0.65rem 2.5rem 0.65rem 2.6rem !important;
  border-radius: 100px !important;
  background: color-mix(in srgb, var(--card) 70%, transparent) !important;
  border: 1px solid var(--border) !important;
  font-size: 0.88rem !important;
  color: var(--foreground) !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease !important;
}
.track-list-search-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent) !important;
  outline: none !important;
  background: color-mix(in srgb, var(--card) 95%, transparent) !important;
}
.track-list-search-container svg.search-icon {
  position: absolute !important;
  left: 0.9rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 15px !important;
  height: 15px !important;
  color: color-mix(in srgb, var(--foreground) 45%, transparent) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
.hamburger-menu {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--foreground) 6%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent) !important;
  color: var(--foreground) !important;
  align-items: center !important;
  justify-content: center !important;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease !important;
  flex-shrink: 0 !important;
}
.hamburger-menu:hover {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border-color: transparent !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 30%, transparent) !important;
}
.btn-primary {
  border-radius: 10px !important;
  font-weight: 600 !important;
}
.btn-secondary {
  border-radius: 10px !important;
  font-weight: 500 !important;
}
.sidebar-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  gap: 0 !important;
  padding: 0.5rem 0.25rem 0.5rem 0.6rem !important;
  margin-bottom: 1.5rem !important;
  min-width: 0;
}
.sidebar-logo-link {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  max-width: calc(100% - 40px) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  text-decoration: none !important;
  color: inherit !important;
}
.sidebar-logo-link span {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.sidebar-logo .app-logo {
  width: 28px !important;
  height: 28px !important;
  flex-shrink: 0 !important;
}
#sidebar-toggle {
  position: absolute !important;
  right: 0 !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--foreground) 7%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--foreground) 12%, transparent) !important;
  color: var(--foreground) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition:
    background 0.2s ease,
    transform 0.2s ease !important;
  padding: 0 !important;
  z-index: 10 !important;
}
#sidebar-toggle:hover {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border-color: transparent !important;
  transform: scale(1.1) !important;
}
.settings-search-container {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  margin: 0.5rem 0 1.5rem !important;
  width: 100% !important;
  max-width: 520px !important;
}
.settings-search-container .search-icon {
  position: absolute !important;
  left: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 16px !important;
  height: 16px !important;
  color: color-mix(in srgb, var(--foreground) 45%, transparent) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
#settings-search-input {
  width: 100% !important;
  padding: 0.75rem 2.5rem 0.75rem 2.75rem !important;
  border-radius: 100px !important;
  background: color-mix(in srgb, var(--card) 70%, transparent) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid var(--border) !important;
  font-size: 0.9rem !important;
  color: var(--foreground) !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease !important;
  transform: none !important;
}
#settings-search-input:focus {
  background: color-mix(in srgb, var(--card) 95%, transparent) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent) !important;
  outline: none !important;
}
.settings-search-container .search-clear-btn {
  position: absolute !important;
  right: 0.6rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--foreground) 10%, transparent) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}
.settings-search-container .search-clear-btn:hover {
  background: color-mix(in srgb, var(--foreground) 20%, transparent) !important;
}
