:root {
    --bg: #0a0a1a;
    --bg-deep: #060612;
    --bg-card: #12122a;
    --bg-player: #0d0d20;
    --bg-glass: rgba(20, 20, 50, 0.7);
    --text: #ffffff;
    --text-dim: #7d7da8;
    --neon-blue: #00d9ff;
    --neon-purple: #a855f7;
    --neon-pink: #ff2e97;
    --neon-lime: #a8ff60;
    --accent: #00d9ff;
    --accent-glow: rgba(0, 217, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    background-image: radial-gradient(circle at 20% 0%, rgba(168, 85, 247, 0.15), transparent 40%), radial-gradient(circle at 80% 100%, rgba(0, 217, 255, 0.12), transparent 40%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 140px;
}

/* ===== HEADER ===== */
.header {
    padding: 4px 16px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

    .header h1 {
        font-size: 26px;
        font-weight: 700;
        background: linear-gradient(135deg, #00d9ff 0%, #a855f7 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: -0.5px;
    }

.subtitle {
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 4px;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    margin: 0 12px 8px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(0, 217, 255, 0.1);
}

.tab {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}

    .tab svg {
        display: block;
    }

    .tab.active {
        background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
        color: var(--text);
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.3), inset 0 0 20px rgba(0, 217, 255, 0.1);
        border: 1px solid rgba(0, 217, 255, 0.4);
    }

.view {
    display: none;
    padding: 8px 12px 20px;
}

    .view.active {
        display: block;
    }

/* ===== TRACKS ===== */
.track {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

    .track:hover {
        background: rgba(0, 217, 255, 0.05);
    }

    .track.active {
        background: linear-gradient(90deg, rgba(0, 217, 255, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
        box-shadow: inset 0 0 20px rgba(0, 217, 255, 0.1);
    }

        .track.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 12px;
            bottom: 12px;
            width: 3px;
            border-radius: 0 3px 3px 0;
            background: linear-gradient(180deg, #00d9ff, #a855f7);
            box-shadow: 0 0 10px var(--accent-glow);
        }

.track-cover {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

    .track-cover::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 50%;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
        border-radius: 12px 12px 50% 50%;
        pointer-events: none;
    }

.track-info {
    flex: 1;
    min-width: 0;
}

.track-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.track-artist {
    font-size: 13px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.track-duration {
    color: var(--text-dim);
    font-size: 13px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.track.selected {
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.25) 0%, rgba(168, 85, 247, 0.2) 100%);
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

    .track.selected::after {
        content: '✓';
        color: var(--neon-blue);
        font-weight: bold;
        font-size: 18px;
        margin-left: auto;
        padding-left: 8px;
        text-shadow: 0 0 10px var(--neon-blue);
    }

/* ===== PLAYER ===== */
.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-player);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(0, 217, 255, 0.15);
    box-shadow: 0 -10px 40px rgba(0, 217, 255, 0.1);
    z-index: 100;
}

.player-info {
    text-align: center;
}

.player-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(90deg, #00d9ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.player-artist {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}

.progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
}

.time {
    font-size: 11px;
    color: var(--text-dim);
    min-width: 32px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.progress {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 217, 255, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    position: relative;
}

    .progress::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: linear-gradient(135deg, #00d9ff, #a855f7);
        cursor: pointer;
        box-shadow: 0 0 12px var(--accent-glow), 0 0 4px #fff;
        border: 2px solid #fff;
    }

    .progress::-moz-range-thumb {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: linear-gradient(135deg, #00d9ff, #a855f7);
        cursor: pointer;
        border: 2px solid #fff;
        box-shadow: 0 0 12px var(--accent-glow);
    }

.player-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.btn-control {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 217, 255, 0.1);
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
}

    .btn-control svg {
        display: block;
        filter: drop-shadow(0 0 6px rgba(0, 217, 255, 0.5));
    }

    .btn-control:hover {
        background: rgba(0, 217, 255, 0.2);
    }

    .btn-control:active {
        transform: scale(0.92);
    }

#btnPlay {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #00d9ff, #a855f7);
    box-shadow: 0 0 24px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

    #btnPlay svg {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
    }

/* ===== BUTTONS ===== */
.btn-create {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
    font-family: inherit;
}

    .btn-create svg {
        display: block;
        filter: drop-shadow(0 0 6px rgba(0, 217, 255, 0.5));
    }

    .btn-create:hover {
        border-color: var(--neon-blue);
        box-shadow: 0 0 24px rgba(0, 217, 255, 0.3);
    }

    .btn-create:active {
        transform: scale(0.98);
    }

/* ===== PLAYLISTS ===== */
.playlist-item {
    padding: 16px;
    margin-bottom: 10px;
    border-radius: 14px;
    background: var(--bg-card);
    background-image: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(0, 217, 255, 0.1);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.playlist-name {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .playlist-name svg {
        display: block;
        filter: drop-shadow(0 0 6px rgba(0, 217, 255, 0.5));
        color: var(--neon-blue);
        flex-shrink: 0;
    }

.playlist-item:hover {
    transform: translateX(4px);
    box-shadow: 0 0 24px rgba(0, 217, 255, 0.2);
}

/* ===== REMOVE BUTTON ===== */
.btn-remove {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
}

    .btn-remove svg {
        display: block;
    }

    .btn-remove:hover {
        background: rgba(255, 46, 151, 0.2);
        color: var(--neon-pink);
        box-shadow: 0 0 12px rgba(255, 46, 151, 0.4);
    }

/* ===== PICK BANNER ===== */
.pick-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00d9ff, #a855f7);
    color: white;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 0 24px var(--accent-glow);
}

    .pick-banner button {
        padding: 8px 16px;
        border: none;
        border-radius: 8px;
        background: white;
        color: #0a0a1a;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.15s;
        font-family: inherit;
    }

        .pick-banner button:active {
            transform: scale(0.95);
        }

/* ===== HEADINGS ===== */
h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

    h2 svg {
        display: block;
        filter: drop-shadow(0 0 6px rgba(0, 217, 255, 0.5));
        color: var(--neon-blue);
        flex-shrink: 0;
    }
/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal {
    width: 100%;
    max-width: 360px;
    background: linear-gradient(135deg, #12122a 0%, #1a0b2e 100%);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    animation: slideUp 0.25s ease;
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.3), 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

    .modal::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 20px;
        padding: 1px;
        background: linear-gradient(135deg, #00d9ff, #a855f7);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #00d9ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .modal-title svg {
        filter: drop-shadow(0 0 6px rgba(0, 217, 255, 0.6));
        -webkit-text-fill-color: initial;
        color: var(--neon-blue);
    }

.modal-subtitle {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.modal-input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    background: rgba(0, 217, 255, 0.05);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

    .modal-input::placeholder {
        color: var(--text-dim);
    }

    .modal-input:focus {
        border-color: var(--neon-blue);
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
        background: rgba(0, 217, 255, 0.08);
    }

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .modal-btn svg {
        display: block;
    }

    .modal-btn.cancel {
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-dim);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

        .modal-btn.cancel:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text);
        }

    .modal-btn.confirm {
        background: linear-gradient(135deg, #00d9ff, #a855f7);
        color: white;
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
    }

        .modal-btn.confirm:hover {
            box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
        }

    .modal-btn.danger {
        background: linear-gradient(135deg, #ff2e97, #a855f7);
        color: white;
        box-shadow: 0 0 20px rgba(255, 46, 151, 0.4);
    }

        .modal-btn.danger:hover {
            box-shadow: 0 0 30px rgba(255, 46, 151, 0.6);
        }

    .modal-btn:active {
        transform: scale(0.96);
    }

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 0 4px;
}

.controls-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.btn-control {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: white;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.1s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .btn-control:active {
        transform: scale(0.95);
    }

.btn-play {
    background: var(--accent);
    width: 48px;
    height: 48px;
}

.btn-repeat {
    position: absolute;
    right: 8px;
    width: 40px;
    height: 40px;
}

    .btn-repeat.active {
        background: var(--accent);
    }

.made-by {
    text-align: center;
    padding: 8px 16px 90px;
    font-size: 11px;
    opacity: 0.4;
    letter-spacing: 0.3px;
}

    .made-by a {
        color: var(--text-dim);
        text-decoration: none;
        transition: opacity 0.15s, color 0.15s;
    }

        .made-by a:hover {
            opacity: 1;
            color: var(--accent);
        }
.header .made-by,
.made-by {
    text-align: center;
    margin: 0;
    padding: 0;
    font-size: 10px;
    opacity: 0.4;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

    .header .made-by a {
        color: var(--text-dim);
        text-decoration: none;
        transition: opacity 0.15s, color 0.15s;
    }

        .header .made-by a:hover {
            opacity: 1;
            color: var(--accent);
        }