* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7c5cff;
    --secondary-color: #22c55e;
    --accent-color: #7c5cff;
    --bg-primary: #0b1020;
    --bg-secondary: rgba(255, 255, 255, 0.06);
    --bg-tertiary: rgba(255, 255, 255, 0.10);
    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.70);
    --text-tertiary: rgba(255, 255, 255, 0.55);
    --border-color: rgba(255, 255, 255, 0.10);
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --radius-lg: 16px;
    --radius-md: 12px;
}

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: radial-gradient(1200px 600px at 20% 0%, rgba(124, 92, 255, 0.18), transparent 60%),
                radial-gradient(900px 500px at 80% 10%, rgba(34, 197, 94, 0.10), transparent 55%),
                radial-gradient(1000px 600px at 50% 100%, rgba(124, 92, 255, 0.10), transparent 60%),
                linear-gradient(180deg, #070a13 0%, var(--bg-primary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(500px 300px at 15% 25%, rgba(124, 92, 255, 0.14), transparent 60%),
        radial-gradient(420px 280px at 85% 35%, rgba(34, 197, 94, 0.10), transparent 62%),
        radial-gradient(520px 320px at 55% 85%, rgba(124, 92, 255, 0.10), transparent 65%);
    filter: blur(18px);
    opacity: 0.9;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
    opacity: 0.07;
    mix-blend-mode: overlay;
    z-index: -1;
}

.splash {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 10, 20, 0.92);
    backdrop-filter: blur(18px);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-inner {
    text-align: center;
    padding: 1.25rem 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
    min-width: 220px;
}

.splash-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    margin-bottom: 0.45rem;
}

.splash-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.splash-inner::after {
    content: '';
    display: block;
    height: 2px;
    margin-top: 0.9rem;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.85), transparent);
    opacity: 0.7;
    animation: splashGlow 1.2s ease-in-out infinite;
}

@keyframes splashGlow {
    0% { transform: translateX(-16px); opacity: 0.35; }
    50% { transform: translateX(16px); opacity: 0.85; }
    100% { transform: translateX(-16px); opacity: 0.35; }
}

.user-bg {
    position: fixed;
    inset: -40px;
    z-index: -3;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    filter: blur(28px) saturate(1.25) contrast(1.08);
}

.user-bg.is-on {
    opacity: 0.55;
}

.user-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 20% 20%, rgba(255,255,255,0.10), transparent 60%),
        radial-gradient(1000px 600px at 80% 40%, rgba(0,0,0,0.35), transparent 55%),
        radial-gradient(1200px 700px at 50% 100%, rgba(0,0,0,0.45), transparent 60%);
    mix-blend-mode: overlay;
    opacity: 0.9;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-bottom: 100px;
}

.header {
    background: rgba(10, 12, 24, 0.70);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--text-primary);
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    justify-content: center;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    flex: 0 0 auto;
    background: rgba(124, 92, 255, 0.18);
    border: 1px solid rgba(124, 92, 255, 0.25);
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.profile-avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.92);
}


.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.nav-btn.active {
    background: rgba(124, 92, 255, 0.16);
    border-color: rgba(124, 92, 255, 0.35);
    color: var(--text-primary);
}

.main {
    flex: 1;
    padding: 1rem;
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.tab-content {
    display: none;
}

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

.search-container {
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(124, 92, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.songs-container {
    display: grid;
    gap: 0.75rem;
}

.playlists-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.playlists-title {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.playlists-grid {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 0.75rem;
}

.playlists-list {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.playlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.75rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.2s ease;
}

.playlist-item:last-child {
    border-bottom: none;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.playlist-item.active {
    background: rgba(124, 92, 255, 0.10);
    border-bottom-color: rgba(124, 92, 255, 0.15);
}

.playlist-item-name {
    font-weight: 650;
    font-size: 0.92rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.playlist-item-meta {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: 0.18rem;
}

.playlist-item-actions {
    display: flex;
    gap: 0.45rem;
    flex: 0 0 auto;
}

.playlist-detail {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    min-height: 120px;
}

.playlist-detail-empty {
    color: var(--text-secondary);
    text-align: center;
    padding: 1.25rem 0.25rem;
}

.picker-list {
    display: grid;
    gap: 0.5rem;
}

.picker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.7rem 0.75rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.picker-item-name {
    font-weight: 650;
    font-size: 0.92rem;
    color: var(--text-primary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .playlists-grid {
        grid-template-columns: 1fr;
    }
}

.song-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    padding: 0.65rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: relative;
}

.song-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.song-card.playing {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(124, 92, 255, 0.30);
}

.song-card.playing::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: rgba(124, 92, 255, 0.95);
    box-shadow: 0 0 18px rgba(124, 92, 255, 0.35);
}

.song-cover-wrap {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.song-cover-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 55%);
    opacity: 0.25;
    pointer-events: none;
}

.song-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.song-info {
    flex: 1;
}

.song-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    line-height: 1.15;
}

.song-artist {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.song-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.song-actions {
    display: flex;
    gap: 0.45rem;
}

.action-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.38rem 0.52rem;
    border-radius: 10px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-size: 0.8rem;
    line-height: 1;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}

.action-btn.primary {
    background: rgba(124, 92, 255, 0.16);
    border-color: rgba(124, 92, 255, 0.35);
    color: var(--text-primary);
}

.action-btn.primary:hover {
    background: rgba(124, 92, 255, 0.22);
}

.action-btn.danger {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
    color: rgba(255, 255, 255, 0.90);
}

.action-btn.danger:hover {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.12);
}

.action-btn.liked {
    color: var(--text-primary);
    border-color: rgba(124, 92, 255, 0.35);
    background: rgba(124, 92, 255, 0.10);
}

.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 0.6rem;
    z-index: 1000;
}

.player-bar {
    max-width: 760px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(12, 14, 30, 0.82), rgba(10, 12, 24, 0.78));
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 0.65rem 0.7rem 0.7rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.player-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
}

.player-cover-wrap {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.player-cover-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 55%);
    opacity: 0.25;
    pointer-events: none;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.player-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-details {
    flex: 1;
    min-width: 0;
}

.player-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0;
}

.icon {
    display: block;
}

.icon-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn {
    width: 36px;
    height: 36px;
    opacity: 0.85;
}

.toggle-btn.is-active {
    background: rgba(124, 92, 255, 0.14);
    border-color: rgba(124, 92, 255, 0.35);
    opacity: 1;
}

.icon-btn .icon {
    color: inherit;
}

.control-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

.control-btn:active {
    transform: translateY(1px);
}

.play-btn {
    background: rgba(124, 92, 255, 0.16);
    border-color: rgba(124, 92, 255, 0.35);
    font-size: 0.9rem;
    padding: 0.55rem 1.05rem;
}

.icon-btn.play-btn {
    width: 44px;
    height: 44px;
}

.play-btn:hover {
    background: rgba(124, 92, 255, 0.22);
}

.player-progress {
    margin-top: 0.55rem;
    display: grid;
    gap: 0.25rem;
}

.progress-range {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    height: 24px;
    background: transparent;
    margin: 0;
    --fill: 0%;
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.85) 0%, rgba(124, 92, 255, 0.85) var(--fill), rgba(255, 255, 255, 0.12) var(--fill), rgba(255, 255, 255, 0.12) 100%);
    border-radius: 999px;
}

.progress-range:focus {
    outline: none;
}

.progress-range::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border-radius: 999px;
}

.progress-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(124, 92, 255, 0.95);
    border: 2px solid rgba(10, 12, 24, 0.75);
    box-shadow: 0 0 0 6px rgba(124, 92, 255, 0.10);
    margin-top: -5px;
}

.progress-range::-moz-range-track {
    height: 4px;
    background: transparent;
    border-radius: 999px;
}

.progress-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(124, 92, 255, 0.95);
    border: 2px solid rgba(10, 12, 24, 0.75);
    box-shadow: 0 0 0 6px rgba(124, 92, 255, 0.10);
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.modal.is-open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(10px);
}

.modal-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 2rem));
    border-radius: 18px;
    background: rgba(10, 12, 24, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.modal-panel.player-expanded {
    width: min(760px, calc(100vw - 2rem));
}

.player-expanded-top {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.player-expanded-cover {
    width: 92px;
    height: 92px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

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

.player-expanded-title {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-expanded-artist {
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-expanded-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
}

.player-expanded-progress {
    margin-bottom: 0.9rem;
    display: grid;
    gap: 0.25rem;
}

.player-expanded-queue-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.queue-list {
    display: grid;
    gap: 0.5rem;
}

.queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.7rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.queue-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.queue-item.is-current {
    background: rgba(124, 92, 255, 0.10);
    border-color: rgba(124, 92, 255, 0.30);
}

.queue-item-title {
    font-weight: 650;
    font-size: 0.92rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-item-artist {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: 0.18rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .player-expanded-top {
        grid-template-columns: 78px minmax(0, 1fr);
        grid-template-rows: auto auto;
    }

    .player-expanded-actions {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .player-expanded-cover {
        width: 78px;
        height: 78px;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.modal-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.42rem 0.6rem;
    border-radius: 10px;
    font-size: 0.85rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}

.modal-body {
    padding: 1rem;
    display: grid;
    gap: 0.85rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field-label {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

.field-input {
    width: 100%;
    padding: 0.85rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.field-input:focus {
    outline: none;
    border-color: rgba(124, 92, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

.modal-status {
    min-height: 1.2em;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 520px) {
    .header-right {
        gap: 0.55rem;
    }
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.error {
    text-align: center;
    padding: 2rem;
    color: var(--error-color);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
    }
    
    .song-card {
        padding: 0.75rem;
    }
    
    .song-cover {
        width: 50px;
        height: 50px;
    }
    
    .player {
        padding: 0.75rem;
    }
    
    .player-cover {
        width: 50px;
        height: 50px;
    }
}


