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

:root {
    --bg-deep: #0a0a0b;
    --bg-surface: #121214;
    --bg-elevated: #1e1e22;
    --bg-hover: #2a2a2e;

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

    --text-main: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #606060;

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

    --font-primary: "Geist", sans-serif;
    --player-height: 100px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-deep: #f5f5f7;
    --bg-surface: #ffffff;
    --bg-elevated: #eeeeee;
    --bg-hover: #dddddd;

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

    --text-main: #111111;
    --text-secondary: #555555;
    --text-muted: #999999;

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

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

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

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

.app-container {
    display: flex;
    height: 100vh;
    padding-left: 200px;
    will-change: padding-left;
    transition: padding-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-container.collapsed {
    padding-left: 72px;
}

.icon-rail {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background-color: var(--bg-deep);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    z-index: 100;
    will-change: width;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.icon-rail.collapsed {
    width: 80px;
}
.icon-rail.collapsed .icon-desc {
    display: none;
}
.icon-rail.collapsed .rail-btn {
    width: 44px;
    padding: auto;
    justify-content: center;
}
.icon-rail.collapsed .rail-btn.active::before {
    left: -10px;
}
.icon-rail.collapsed .rail-toggle {
    width: 44px;
    padding: 0;
    justify-content: center;
    left: 75%;
}
.icon-rail.collapsed .rail-toggle i {
    transform: rotate(180deg);
}
.icon-rail.collapsed .rail-toggle .icon-desc {
    display: none;
}

.rail-logo {
    margin-bottom: 32px;
    position: relative;
}

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

.logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    padding: 0 12px;
    flex: 1;
}

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

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

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

.rail-btn.active {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.rail-btn.active::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 22px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

.rail-btn img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.rail-btn i {
    width: 24px;
    font-size: 20px;
    flex-shrink: 0;
    text-align: center;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.main-header {
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--bg-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1;
    position: relative;
    min-width: 0;
}

.header-left {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.view-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: none;
}

.header-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.header-icon-btn:hover {
    color: var(--text-main);
    border-color: var(--accent);
    background: var(--bg-hover);
}

.profile-circle {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.profile-circle:hover {
    border-color: var(--accent);
    color: var(--text-main);
    background: var(--bg-hover);
}
.profile-circle.logged-in {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

#profileBtn {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

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

.search-wrap.active {
    max-width: 520px;
}

.search-wrap input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: white;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
}

.search-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-hover);
}

.mic-btn {
    width: 44px;
    height: 44px;
    margin-left: 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.mic-btn:hover,
.mic-btn.active {
    color: var(--text-main);
    border-color: var(--accent);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.22);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.content-area {
    flex: 1;
    min-height: 0;
    position: relative;
    padding: 20px 20px 140px 20px;
    overflow: hidden;
}

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

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

.section-label {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

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

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

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

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

.lyrics-title {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 800;
}

.lyrics-container {
    flex: 1;
    min-height: 0;
    display: grid;
    gap: 10px;
    overflow-y: auto;
    padding-right: 4px;
    font-size: 2.5rem;
    scroll-behavior: auto;
}

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

.lyrics-line {
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.75;
    transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
    font-size: 1.8rem;
    padding: 8px 4px;
    border-radius: 4px;
    cursor: pointer;
    filter: blur(1.5px);
    transform: translateY(0) scale(0.985);
}

.lyrics-line:hover {
    filter: blur(0);
    font-weight: 300;
}

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

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

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

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


.search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.search-tab {
    background: var(--glass);
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-tab:hover {
    background: var(--bg-elevated);
    color: var(--text-main);
}

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

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

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

.artist-card {
    padding: 16px;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.artist-card:hover {
    background: var(--glass);
    transform: translateY(-5px);
    border-color: var(--border);
}

.artist-card.active {
    background: var(--bg-elevated);
    border-color: var(--accent);
}


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

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

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

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

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

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

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

.rail-btn img {
    width: 22px;
    height: 22px;
    border-radius: 0px;
}



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

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

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

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

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

.song-card {
    padding: 16px;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.song-card:hover {
    background: var(--glass);
    transform: translateY(-5px);
    border-color: var(--border);
}

.song-card.active {
    background: var(--bg-elevated);
    border-color: var(--accent);
}

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

.thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

.skeleton {
    background: var(--bg-hover);
    animation: loading 1.5s infinite;
}

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

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

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

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

.player-deck {
    display: flex;
    position: fixed;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    width: 95vw;
    height: var(--player-height);
    background: color-mix(in srgb, var(--bg-surface) 80%, transparent);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: 16px;
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.deck-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

.now-playing {
    width: 300px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.track-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-elevated);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.3s ease;
}
.now-playing:hover .track-thumb {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.right-controls {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-right: 20px;
}

.volume-area {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 110px;
}

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

.vol-slider {
    flex: 1;
    height: 3px;
    appearance: none;
    background: var(--bg-hover);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: height 0.2s ease;
}
.vol-slider:hover {
    height: 5px;
}

.vol-slider::-webkit-slider-thumb {
    appearance: none;
    width: 10px;
    height: 10px;
    background: var(--text-main);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}
.vol-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

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

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

@media (max-width: 480px) {
    .ctx-menu {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
        animation: ctxSlideUp 0.25s ease;
    }
    .ctx-menu::before {
        content: "";
        display: block;
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: var(--border);
        margin: 4px auto 12px;
    }
    @keyframes ctxSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}



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

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

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

.modal-sm {
    width: 300px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
}

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

.modal input {
    display: flex;
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 14px;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
}

.modal input:focus {
    outline: none;
    border-color: var(--accent);
}

.modal textarea:focus {
    outline: none;
    border-color: var(--accent);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.queue-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--glass);
    border-radius: 12px;
    gap: 15px;
    margin-bottom: 8px;
    grid-column: 1 / -1;
}

.queue-item img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
}

.queue-item-info h3 {
    font-size: 14px;
    margin-bottom: 2px;
}

.queue-item-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.queue-item-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.queue-item-actions button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
}

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

.list-item-wrap {
    position: relative;
    border-radius: 10px;
    height: 6vh;
    min-height: 60px;
}

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

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

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

.list-item {
    display: grid;
    grid-template-columns: 40px 50px 1fr 100px 40px;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--bg-deep);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    width: 100%;
    position: relative;
    z-index: 1;
    height: 6vh;
    min-height: 60px;
    border: 1px solid transparent;
}

.list-item:hover {
    background: var(--bg-elevated);
    border-color: var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

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

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

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

.list-thumb {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.list-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

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

.list-duration {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    text-align: center;
    background: var(--glass);
    padding: 3px 10px;
    border-radius: 6px;
    justify-self: center;
    width: fit-content;
    letter-spacing: 0.02em;
}

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

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

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

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

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

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

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

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

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

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

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

.settings-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.settings-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.settings-section:last-of-type {
    border-bottom: none;
}

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

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 16px;
}

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

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

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

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

@keyframes pulse-border {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

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

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

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

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

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

@media (max-width: 768px) {
    .app-container {
        flex-direction: column-reverse;
        min-height: 100vh;
        padding-left: 0;
    }
    .icon-rail,
    .icon-rail.collapsed {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 72px;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(15, 16, 20, 0.96);
        backdrop-filter: blur(20px);
        box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.22);
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0 14px env(safe-area-inset-bottom, 0px);
        z-index: 100;
    }
    .rail-btn {
        width: 52px;
        min-width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        font-size: 16px;
        border-radius: 16px;
        transition: background 0.2s ease, transform 0.2s ease;
    }
    .rail-btn:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    .rail-btn.active {
        color: var(--accent);
        background: rgba(59, 130, 246, 0.18);
        box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
    }
    .rail-btn .icon-desc {
        display: none;
    }
    .rail-btn.active::before {
        display: none;
    }
    .rail-toggle,
    .rail-logo {
        display: none;
    }
    .nav-group {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        padding: 0 12px;
    }
    .main-header {
        height: 66px;
        padding: 0 18px;
    }
    .header-left {
        left: 18px;
    }
    #profileBtn {
        right: 18px;
    }
    .view-title {
        font-size: 22px;
    }
    .search-wrap {
        flex: 0 1 320px;
    }
    .content-area {
        padding: 18px 16px 220px 16px;
    }

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

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

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

    .now-playing {
        width: auto;
    }

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

    .player-deck {
        bottom: 104px;
        width: calc(100% - 28px);
        max-width: calc(100% - 28px);
        padding: 0 18px;
    }

    .right-controls {
        width: auto;
    }

    .volume-area {
        display: none;
    }

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

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

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

}

.desktop-only {
    display: flex;
}

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

.deck-left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

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

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

    .icon-rail,
    .icon-rail.collapsed {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 72px;
        min-height: 72px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0 12px env(safe-area-inset-bottom, 0px);
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(15, 16, 20, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
        z-index: 100;
        border-radius: 16px 16px 0 0;
    }
    .icon-rail.collapsed .rail-btn {
        width: auto;
        padding: 0;
        justify-content: center;
    }
    .rail-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
        border-radius: 16px;
        transition: background 0.2s ease, transform 0.2s ease;
    }
    .rail-btn:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    .rail-btn.active {
        color: var(--accent);
        background: rgba(59, 130, 246, 0.18);
        box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
    }
    .rail-btn.active::before {
        display: none;
    }
    .app-container.collapsed {
        padding-left: 0;
    }
    .rail-toggle,
    .rail-logo {
        display: none;
    }

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

    .main-header {
        height: 60px;
        padding: 0 14px;
    }

    .header-left {
        left: 14px;
    }

    #profileBtn {
        right: 14px;
    }

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

    .search-wrap {
        flex: 0 1 220px;
    }

    .search-wrap input {
        font-size: 12px;
        padding: 10px 12px 10px 34px;
    }

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

    .content-area {
        padding: 16px 14px 200px 14px;
    }

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

    .song-card {
        padding: 14px;
        border-radius: 16px;
    }

    .song-card h3 {
        font-size: 14px;
    }

    .song-card p {
        font-size: 12px;
    }

    .list-item {
        grid-template-columns: 24px 32px 1fr auto;
        gap: 8px;
        padding: 8px;
    }

    .list-thumb {
        width: 32px;
        height: 32px;
    }

    .player-deck {
        bottom: 114px;
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        padding: 0 16px;
    }

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

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

    .desktop-only {
        display: none !important;
    }

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

    .deck-play-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .player-deck {
        bottom: 64px;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        height: 72px;
        padding: 0 12px;
        align-items: center;
        background: color-mix(in srgb, var(--bg-surface) 95%, transparent);
        backdrop-filter: blur(30px);
        border-top: 1px solid var(--border);
        border-radius: 16px;
        left: 0;
        box-shadow: 0 -2px 5px var(--accent);
    }

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

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

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

    .track-thumb {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

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

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

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

    .player-controls {
        display: none;
    }

    .right-controls {
        display: flex;
        width: auto;
        gap: 6px;
        align-items: center;
    }

    .right-controls .ctrl-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .volume-area {
        display: none;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .search-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }

    .search-tab {
        font-size: 12px;
        padding: 6px 14px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.fp-art {
    width: min(70vw, 320px);
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

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

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

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

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

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

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

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

.fp-progress-fill {
    height: 100%;
    background: var(--text-main);
    width: 0%;
    border-radius: 2px;
    transition: width 0.1s linear;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .player-deck {
        position: fixed;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 12px;
        right: 12px;
        height: calc(56px + env(safe-area-inset-bottom));
        align-items: center;
        justify-content: center;
        background: color-mix(in srgb, var(--bg-surface) 90%, transparent);
        backdrop-filter: blur(30px);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 0 24px;
        z-index: 200;
        transform: none;
        width: auto;
        max-width: none;
        margin-bottom: 64px;
    }

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

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

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

    .fp-controls {
        gap: 24px;
    }

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

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

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

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

.artist-hero {
    position: relative;
    width: 100%;
    min-height: 360px;
    padding: 40px 20px 40px 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

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

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

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

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

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

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

.artist-hero-socials {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.artist-hero-socials button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.artist-hero-socials button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.artist-hero-bio {
    max-width: 600px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

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

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

.artist-hero-actions button.dark-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

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

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

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

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

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

.artist-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

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

.discog-entry {
    background: var(--bg-card, #181818);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border, #333);
}

.discog-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: center;
    border-bottom: 1px solid var(--border, #333);
}

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

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

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

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

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

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

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

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

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

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

.album-hero {
    display: flex;
    gap: 28px;
    align-items: flex-end;
    padding: 0 20px;
    margin-bottom: 32px;
}

.album-hero-cover-wrap {
    flex-shrink: 0;
}

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

.album-hero-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 4px;
}

.album-hero-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.album-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.album-hero-meta {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 2px;
}

.album-hero-year {
    color: var(--text-muted);
}

.album-hero-tracks {
    color: var(--text-muted);
}

.album-page-wrap {
    padding: 0 20px;
}

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

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

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

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

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

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

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

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

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

.album-spotify-artist .artist-link:hover {
    text-decoration: underline;
}

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

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

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

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

.album-spotify-play:hover {
    transform: scale(1.06);
    box-shadow: 0 0 20px var(--accent-glow, rgba(59, 130, 246, 0.4));
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.artist-album-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

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

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

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

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

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

.singles-section {
    border-top: 1px solid var(--border, #333);
    padding-top: 32px;
    margin-top: -8px;
}

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

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

.credits {
    display: none;
    flex: 1;
    padding: 40px 60px 80px;
    overflow-y: auto;
    max-width: 800px;
    margin: 0 auto;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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