/* ===================================================
   CSS Variables (Theme)
   =================================================== */
:root {
    --color-bg-start: #0f0c29;
    --color-bg-mid: #302b63;
    --color-bg-end: #24243e;
    --color-primary: #ff0080;
    --color-secondary: #7928ca;
    --color-accent: #00d2ff;
    --color-glow: rgba(0, 210, 255, 0.3);
    --color-text: #ffffff;
    --color-text-muted: #a0a0c0;
    --color-card-bg: rgba(255, 255, 255, 0.05);
    --color-border: rgba(255, 255, 255, 0.1);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.3);
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --cover-size-mobile: 180px;
    --cover-size-tablet: 220px;
    --cover-size-desktop: 150px;
    --radius-card: 20px;
    --radius-sm: 8px;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================================
   Reset & Base
   =================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-mid), var(--color-bg-end));
    color: var(--color-text);
    min-height: 100vh;
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding: 1rem;
}

/* ===================================================
   Utility / Hidden
   =================================================== */
#progress-download {
    display: none;
}

.gradient-def {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ===================================================
   Player Container
   =================================================== */
.player-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

    .player-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
        background-size: 200% 100%;
        animation: gradient-move 3s ease-in-out infinite;
    }

@keyframes gradient-move {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===================================================
   Header & Track Info
   =================================================== */
.music-header {
    text-align: center;
    position: relative;
    z-index: 10;
}

.track-title-wrapper {
    background: var(--color-card-bg);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
}

.track-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: color var(--transition-smooth), text-shadow var(--transition-smooth);
    word-break: break-word;
}

    .track-title:hover {
        color: var(--color-accent);
        text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    }

.time-display {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-top: 0.4rem;
    font-weight: 300;
}

.current-time,
.total-time {
    font-weight: 500;
    color: #fff;
}

.separator {
    margin: 0 6px;
    opacity: 0.5;
}

/* ===================================================
   Main Player Area
   =================================================== */
.main-player-area {
    position: relative;
    padding: 1.5rem 0.5rem;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

/* ===================================================
   Visualizer Background
   =================================================== */
.visualizer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.visualizer-bars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    gap: 2px;
    padding: 1rem;
    opacity: 0.5;
}

.bar {
    width: 6px;
    min-height: 4px;
    background: linear-gradient(to top, var(--color-primary), var(--color-secondary), var(--color-accent));
    border-radius: 4px 4px 0 0;
    transition: height 0.05s ease;
    box-shadow: 0 0 8px var(--color-glow);
    animation: bar-pulse 0.6s ease-in-out infinite alternate;
}

    .bar:nth-child(odd) {
        animation-delay: 0.1s;
    }

    .bar:nth-child(even) {
        animation-delay: 0.2s;
    }

@keyframes bar-pulse {
    0% {
        transform: scaleY(0.4);
    }

    100% {
        transform: scaleY(1.2);
    }
}

/* ===================================================
   Cover Art
   =================================================== */
.cover-container {
    position: relative;
    z-index: 20;
    margin: 0.5rem 0;
}

.cover-wrapper {
    position: relative;
    width: var(--cover-size-mobile);
    height: var(--cover-size-mobile);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-heavy), 0 0 40px var(--color-glow), inset 0 0 30px rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    margin: 0 auto;
}

    .cover-wrapper:hover {
        transform: scale(1.03);
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 70px var(--color-glow), inset 0 0 40px rgba(255, 255, 255, 0.15);
    }

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth), opacity 0.3s ease;
}

.cover-wrapper:hover .cover-image {
    transform: scale(1.05);
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
}

.cover-shadow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

.cover-image.rotating {
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===================================================
   Progress Ring (on cover)
   =================================================== */
.progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

    .progress-ring svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.progress-ring__circle-bg {
    transition: stroke 0.3s ease;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255, 0, 128, 0.7));
}

/* ===================================================
   Particles Container (on cover)
   =================================================== */
.particles-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 4;
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: hsl(200, 100%, 70%);
    box-shadow: 0 0 10px hsl(200, 100%, 60%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ===================================================
   Seek Bar (اصلاح شده)
   =================================================== */
.seek-container1 {
    width: 100%;
    height: 28px;
    background: rgba(221, 221, 221, 0.2);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    z-index: 24;
    margin-top: 0.5rem;
    direction: ltr; /* جلوگیری از حرکت معکوس در RTL */
}

.seek-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff5722, #ff9800);
    border-radius: 14px;
    position: relative;
    transition: width 0.15s linear;
}

.seek-thumb {
    position: absolute;
    right: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid #ff5722;
    border-radius: 50%;
    transform: translate(50%, -50%);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: none;
}

.seek-container1:hover .seek-thumb {
    transform: translate(50%, -50%) scale(1.15);
    box-shadow: 0 0 12px rgba(255, 87, 34, 0.7);
}

.seek-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 87, 34, 0.3);
    border-radius: 50%;
    transform: scale(0);
    pointer-events: none;
}

/* ===================================================
   Control Panel
   =================================================== */
.control-panel {
    width: 100%;
    margin-top: 0.5rem;
    z-index: 23;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.6rem;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.control-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.left-group {
    justify-content: flex-start;
}

.right-group {
    justify-content: flex-end;
}

.center-group {
    justify-content: center;
}

.volume-group {
    grid-column: 1 / -1;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--color-border);
}

.control-btn {
    background: linear-gradient(135deg, #2d2d44, #1a1a2e);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

    .control-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        transition: transform 0.3s ease;
        z-index: -1;
    }

    .control-btn:hover::before {
        transform: translate(-50%, -50%) scale(1.6);
    }

    .control-btn:hover {
        transform: translateY(-3px) scale(1.08);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px var(--color-glow);
        border-color: rgba(0, 210, 255, 0.5);
    }

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

.play-btn {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 6px 30px rgba(255, 0, 128, 0.5);
}

    .play-btn:hover {
        box-shadow: 0 10px 40px rgba(255, 0, 128, 0.8), 0 0 30px rgba(255, 0, 128, 0.4);
        transform: translateY(-5px) scale(1.12);
    }

.btn-label {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.volume-slider-wrapper {
    width: 120px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

    .volume-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--color-accent);
        cursor: pointer;
        box-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
    }

    .volume-slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--color-accent);
        cursor: pointer;
        border: none;
    }

/* ===================================================
   Loading Indicator
   =================================================== */
.loading-container {
    margin: 1.5rem 0 0.5rem;
    text-align: center;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem;
}

    .loading-wave .wave {
        width: 5px;
        height: 24px;
        background: linear-gradient(180deg, var(--color-accent), var(--color-secondary));
        border-radius: 3px;
        animation: wave 1.2s ease-in-out infinite;
        opacity: 0.6;
    }

        .loading-wave .wave:nth-child(2) {
            animation-delay: 0.1s;
        }

        .loading-wave .wave:nth-child(3) {
            animation-delay: 0.2s;
        }

        .loading-wave .wave:nth-child(4) {
            animation-delay: 0.3s;
        }

        .loading-wave .wave:nth-child(5) {
            animation-delay: 0.4s;
        }

@keyframes wave {
    0%, 100% {
        transform: scaleY(0.3);
        opacity: 0.3;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.loading-container.loading-active {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent), var(--color-secondary), var(--color-primary));
    background-size: 200% 100%;
    animation: loading-bg-shift 1.5s ease-in-out infinite;
    border-radius: 10px;
    padding: 10px;
}

@keyframes loading-bg-shift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* ===================================================
   Playlist Container
   =================================================== */
.playlist-container {
    margin-top: 1.5rem;
    background: var(--color-card-bg);
    border-radius: 12px;
    padding: 0.8rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    max-height: 350px;
    overflow-y: auto;
}

.playlist-search {
    margin-bottom: 0.8rem;
    position: relative;
}

    .playlist-search input {
        width: 100%;
        padding: 10px 14px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 30px;
        color: #fff;
        font-size: 0.9rem;
        outline: none;
        transition: border var(--transition-smooth), box-shadow var(--transition-smooth);
    }

        .playlist-search input:focus {
            border-color: var(--color-accent);
            box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
        }

        .playlist-search input::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

.playlist-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-group-item {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

    .list-group-item:hover {
        background: rgba(0, 210, 255, 0.15);
        transform: translateX(4px);
        border-color: rgba(0, 210, 255, 0.4);
    }

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

.list-item-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

.list-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.download-icon {
    color: #ffe828;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .download-icon:hover {
        transform: scale(1.15);
        color: #ffd700;
    }

.play-icon {
    color: var(--color-accent);
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .play-icon:hover {
        transform: scale(1.15);
        color: var(--color-primary);
    }

.badge-info {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    color: #fff;
    background-color: var(--color-secondary);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===================================================
   Other Tags
   =================================================== */
.other-tags {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: center;
    margin: 0.5rem 0;
}

    .other-tags li {
        background: var(--color-card-bg);
        padding: 4px 14px;
        border-radius: 30px;
        font-size: 0.8rem;
        border: 1px solid var(--color-border);
        color: var(--color-text-muted);
    }

        .other-tags li span {
            color: #fff;
            font-weight: 500;
        }

/* ===================================================
   Music Content (side panel)
   =================================================== */
.music-content {
    background: #181d36;
    text-align: center;
    padding-top: 20px;
    border-top: 3px solid #14919d;
}

    .music-content .music-text {
        line-height: 30px;
        color: #fff;
    }

        .music-content .music-text * {
            font-size: 13px;
        }

        .music-content .music-text h2 {
            font-weight: bold;
        }

/* ===================================================
   Toast
   =================================================== */
#navagram-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.navagram-toast {
    background: linear-gradient(135deg, #1db954, #1ed760);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

    .navagram-toast.show {
        opacity: 1;
        transform: translateY(0);
    }

/* ===================================================
   EQ Panel, Sleep Menu, Queue, Modal
   =================================================== */
.eq-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: rgba(30, 30, 47, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 16px;
    z-index: 1000;
    width: 260px;
    border: 1px solid rgba(0, 210, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.eq-band {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    color: white;
}

    .eq-band input {
        flex: 1;
        background: #3a3a5a;
        height: 4px;
        border-radius: 2px;
    }

    .eq-band .eq-value {
        width: 32px;
        text-align: right;
        font-size: 12px;
        color: var(--color-text-muted);
    }

.eq-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 12px 0;
}

    .eq-presets button {
        background: #2d2d44;
        border: none;
        color: white;
        padding: 4px 12px;
        border-radius: 30px;
        cursor: pointer;
        transition: 0.2s;
        font-size: 0.75rem;
    }

        .eq-presets button:hover {
            background: var(--color-accent);
            color: #000;
        }

.sleep-menu {
    position: fixed;
    background: #1e1e2f;
    border-radius: 16px;
    padding: 6px 0;
    z-index: 1001;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--color-primary);
}

.sleep-option {
    padding: 8px 22px;
    cursor: pointer;
    color: white;
    white-space: nowrap;
    transition: background 0.2s;
}

    .sleep-option:hover {
        background: var(--color-primary);
    }

.queue-badge {
    background: var(--color-primary);
    border-radius: 30px;
    padding: 2px 10px;
    font-size: 11px;
    margin-left: 6px;
    display: inline-block;
}

.queue-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.queue-panel-content {
    background: #1a1a2e;
    border: 1px solid var(--color-accent);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border);
}

    .queue-header h3 {
        margin: 0;
        color: #fff;
        font-size: 1.1rem;
    }

.queue-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

.queue-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: grab;
    transition: background 0.2s;
}

    .queue-item:hover {
        background: rgba(0, 210, 255, 0.1);
    }

    .queue-item:active {
        cursor: grabbing;
    }

.drag-handle {
    color: #666;
    margin-right: 10px;
    font-size: 1.2rem;
}

.queue-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-remove {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
}

.queue-empty {
    padding: 30px;
    text-align: center;
    color: #888;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: #16213e;
    border: 1px solid var(--color-accent);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.2);
}

    .modal-header h3 {
        margin: 0;
        color: #fff;
        font-size: 1.1rem;
    }

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.local-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.local-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
    color: #fff;
}

    .local-item:hover {
        background: rgba(0, 210, 255, 0.12);
    }

    .local-item.active {
        border: 1px solid var(--color-accent);
        background: rgba(0, 210, 255, 0.18);
    }

.time-badge {
    background: var(--color-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 8px;
}

.note-text {
    flex: 1;
    margin: 0 8px;
    font-size: 0.9rem;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.count-badge {
    background: #333;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.7rem;
}

.delete-btn,
.delete-playlist-btn {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    padding: 4px;
}

.empty-msg {
    text-align: center;
    color: #666;
    padding: 20px;
}

.modal-add-btn {
    width: 100%;
    padding: 10px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--color-accent), #3a7bd5);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

    .modal-add-btn:hover {
        opacity: 0.9;
    }

.playlist-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.list-action-icon {
    font-size: 1.1rem;
    transition: transform 0.2s;
}

    .list-action-icon:hover {
        transform: scale(1.2);
        color: var(--color-primary) !important;
    }

.stat-card {
    display: flex;
    align-items: center;
    background: var(--color-card-bg);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--color-border);
}

.stat-icon {
    font-size: 2rem;
    margin-right: 15px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 210, 255, 0.08);
    border-radius: 50%;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}

/* ===================================================
   Utilities & Animations
   =================================================== */
.bg-green {
    position: absolute;
    width: 0%;
    top: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.3), transparent);
    opacity: 0.8;
    animation: playerchangebBg 1s 0.1s ease-in-out infinite alternate;
}

@keyframes playerchangebBg {
    0% {
        background: linear-gradient(45deg, #4cc2ef, #2b2d2e, #c51bb3, #000000, #9d0000, #0b171a, #1f2527);
    }

    10% {
        background: linear-gradient(45deg, #2b2d2e, #4cc2ef, #c51bb3, #000000, #9d0000, #0b171a, #1f2527);
    }

    30% {
        background: linear-gradient(45deg, #2b2d2e, #c51bb3, #4cc2ef, #000000, #9d0000, #0b171a, #1f2527);
    }

    50% {
        background: linear-gradient(45deg, #2b2d2e, #c51bb3, #000000, #4cc2ef, #9d0000, #0b171a, #1f2527);
    }

    60% {
        background: linear-gradient(45deg, #2b2d2e, #c51bb3, #000000, #9d0000, #4cc2ef, #0b171a, #1f2527);
    }

    80% {
        background: linear-gradient(45deg, #2b2d2e, #c51bb3, #000000, #9d0000, #0b171a, #4cc2ef, #1f2527);
    }

    90% {
        background: linear-gradient(45deg, #2b2d2e, #c51bb3, #000000, #9d0000, #0b171a, #1f2527, #4cc2ef);
    }

    100% {
        background: linear-gradient(45deg, #4cc2ef, #2b2d2e, #c51bb3, #000000, #9d0000, #0b171a, #1f2527);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===================================================
   Responsive Media Queries
   =================================================== */
@media (min-width: 576px) and (max-width: 767.98px) {
    .cover-wrapper {
        width: 200px;
        height: 200px;
    }

    .track-title {
        font-size: 1.5rem;
    }

    .controls-grid {
        gap: 0.8rem;
    }

    .control-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .play-btn {
        width: 64px;
        height: 64px;
        font-size: 2.2rem;
    }

    .volume-slider-wrapper {
        width: 140px;
    }

    .player-container {
        padding: 1.2rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .player-container {
        padding: 1.8rem;
        margin: 1.5rem auto;
    }

    .cover-wrapper {
        width: var(--cover-size-tablet);
        height: var(--cover-size-tablet);
    }

    .track-title {
        font-size: 1.6rem;
    }

    .controls-grid {
        gap: 1rem;
    }

    .control-btn {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

    .play-btn {
        width: 70px;
        height: 70px;
        font-size: 2.4rem;
    }

    .volume-slider-wrapper {
        width: 160px;
    }

    .list-group-item {
        padding: 12px 16px;
    }

    .main-player-area {
        gap: 2rem;
    }
}

@media (min-width: 992px) {
    .player-container {
        padding: 2rem;
        margin: 2rem auto;
    }

    .cover-wrapper {
        width: var(--cover-size-desktop);
        height: var(--cover-size-desktop);
    }

    .track-title {
        font-size: 1.8rem;
    }

    .controls-grid {
        gap: 1.2rem;
    }

    .control-btn {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .play-btn {
        width: 76px;
        height: 76px;
        font-size: 2.6rem;
    }

    .volume-slider-wrapper {
        width: 180px;
    }

    .main-player-area {
        gap: 2.5rem;
        padding: 2rem 1rem;
    }

    .playlist-container {
        max-height: 450px;
        padding: 1.2rem;
    }

    .list-group-item {
        padding: 14px 18px;
        font-size: 1rem;
    }

    .other-tags li {
        font-size: 0.9rem;
        padding: 6px 18px;
    }
}

@media (min-width: 1200px) {
    .cover-wrapper {
        width: 180px;
        height: 180px;
    }

    .control-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .play-btn {
        width: 80px;
        height: 80px;
        font-size: 2.8rem;
    }
}

@media (max-width: 991.98px) {
    .music-content {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    body {
        padding: 0.5rem;
    }

    .player-container {
        padding: 0.8rem;
        margin: 0.5rem auto;
        border-radius: 16px;
    }

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

    .time-display {
        font-size: 0.8rem;
    }

    .cover-wrapper {
        width: 160px;
        height: 160px;
    }

    .control-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .play-btn {
        width: 54px;
        height: 54px;
        font-size: 1.8rem;
    }

    .btn-label {
        display: none;
    }

    .controls-grid {
        gap: 0.4rem;
    }

    .volume-group {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .volume-slider-wrapper {
        width: 100px;
    }

    .seek-container1 {
        height: 24px;
        margin-top: 0.2rem;
    }

    .seek-thumb {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }

    .visualizer-bars {
        gap: 1px;
        padding: 0.5rem;
    }

    .bar {
        width: 4px;
        min-height: 3px;
    }

    .playlist-container {
        max-height: 250px;
        padding: 0.6rem;
    }

    .list-group-item {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .other-tags {
        gap: 6px 10px;
    }

        .other-tags li {
            font-size: 0.7rem;
            padding: 2px 10px;
        }

    .eq-panel {
        width: 220px;
        right: 10px;
        bottom: 70px;
        padding: 12px;
    }

    .queue-panel-content {
        width: 95%;
        max-height: 80vh;
    }

    .modal-content {
        width: 95%;
    }

    .progress-ring svg {
        width: 100%;
        height: 100%;
    }
}
