﻿@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    min-height: 100vh;
}

/* ========== Player Container ========== */
#progress-download {
    display:none;
}
.seek-container1 {
    width: 100%;
    height: 24px;
    background: #ddd;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    z-index: 24;
    margin-top: 61px;
}

/* پر شدن نرم */
.seek-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff5722, #ff9800);
    border-radius: 10px;
    position: relative;
    transition: width 0.25s ease-out;
}

/* دایره */
.seek-thumb {
    position: absolute;
    right: 0;
    top: 50%;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 3px solid #ff5722;
    border-radius: 50%;
    transform: translate(50%, -50%);
    box-shadow: 0 0 6px rgba(0,0,0,.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    pointer-events: none;
}

/* hover */
.seek-container:hover .seek-thumb {
    transform: translate(50%, -50%) scale(1.2);
    box-shadow: 0 0 10px rgba(255,87,34,.7);
}

/* ripple کلیک */
.seek-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255,87,34,.35);
    border-radius: 50%;
    transform: scale(0);
    pointer-events: none;
}


.player-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .player-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #ff0080, #7928ca, #00d2ff);
        animation: gradient-move 3s ease-in-out infinite;
    }

@keyframes gradient-move {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ========== Music Header ========== */
.music-header {
    text-align: center;
    position: relative;
    z-index: 10;
}

.track-title-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.track-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

    .track-title:hover {
        color: #00d2ff;
        text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    }

.time-display {
    color: #a0a0c0;
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 300;
}

.current-time, .total-time {
    font-weight: 500;
    color: #fff;
}

.separator {
    margin: 0 8px;
    opacity: 0.5;
}

/* ========== Main Player Area ========== */
.main-player-area {
    position: relative;
    padding: 2rem 1rem;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ========== Visualizer Background ========== */

.visualizer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 21;
}

.visualizer-bars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    gap: 2px;
    padding: 2rem;
    transition: opacity 0.3s ease;
    /*background: linear-gradient(to top, #ff5722, #ffc107);
            transform-origin: bottom center;
            transform: scaleY(0.05);
            transition: none;*/ /* کنترل با JS */
}

    .visualizer-bars::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at center, rgba(0, 210, 255, 0.1) 0%, transparent 70%);
        z-index: -1;
    }

.bar {
    width: 8px;
    min-height: 5px;
    background: linear-gradient(to top, #ff0080, #7928ca, #00d2ff);
    border-radius: 4px 4px 0 0;
    transition: all 0.05s ease;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
    animation: bar-pulse 0.5s ease-in-out infinite alternate;
    position :relative;
    bottom  :0; 
   
}

    .bar:nth-child(odd) {
        animation-delay: 0.1s;
    }

    .bar:nth-child(even) {
        animation-delay: 0.2s;
    }

@keyframes bar-pulse {
    0% {
        transform: scaleY(0.5);
    }

    100% {
        transform: scaleY(1.2);
    }
}

/* ========== Cover Art ========== */
.cover-container {
    position: relative;
    z-index: 20;
    margin: 2rem 0;
}

.cover-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(0, 210, 255, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .cover-wrapper:hover {
        transform: scale(1.05) rotate(2deg);
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 80px rgba(0, 210, 255, 0.6), inset 0 0 40px rgba(255, 255, 255, 0.2);
    }



        .cover-wrapper:hover .cover-image {
            transform: scale(1.1) rotate(-2deg);
        }

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.cover-shadow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.2) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ========== Seek Bar ========== */
.seek-container {
    position: relative;
    width: 80%;
    margin: 2rem 0;
    z-index: 20;
}

.seek-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

    .seek-bar::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: linear-gradient(135deg, #ff0080, #7928ca);
        cursor: pointer;
        box-shadow: 0 0 15px rgba(255, 0, 128, 0.8);
        transition: all 0.3s ease;
    }

        .seek-bar::-webkit-slider-thumb:hover {
            transform: scale(1.3);
            box-shadow: 0 0 25px rgba(255, 0, 128, 1);
        }

    .seek-bar::-moz-range-thumb {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: linear-gradient(135deg, #ff0080, #7928ca);
        cursor: pointer;
        border: none;
        box-shadow: 0 0 15px rgba(255, 0, 128, 0.8);
    }

.seek-progress {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    background: linear-gradient(90deg, #ff0080, #7928ca, #00d2ff);
    border-radius: 4px;
    width: 0%;
    z-index: 1;
    transition: width 0.1s linear;
}

/* ========== Control Panel ========== */
.control-panel {
    width: 100%;
    margin-top: 2rem;
    z-index: 23;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.control-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.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: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== Control Buttons ========== */
.control-btn {
    background: linear-gradient(135deg, #2d2d44, #1a1a2e);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    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.1);
        border-radius: 50%;
        transition: transform 0.3s ease;
        z-index: -1;
    }

    .control-btn:hover::before {
        transform: translate(-50%, -50%) scale(1.5);
    }

    .control-btn:hover {
        transform: translateY(-3px) scale(1.1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.3);
        border-color: rgba(0, 210, 255, 0.5);
    }

    .control-btn:active {
        transform: translateY(1px) scale(0.95);
    }

.play-btn {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    background: linear-gradient(135deg, #ff0080, #7928ca);
    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.5);
        transform: translateY(-5px) scale(1.15);
    }

.volume-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
}

.volume-adjust {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.btn-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #a0a0c0;
    white-space: nowrap;
}

/* Volume Slider */
.volume-slider-wrapper {
    width: 150px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    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: #00d2ff;
        cursor: pointer;
        box-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
    }

/* ========== Loading Indicator ========== */
.loading-container {
    margin: 2rem 0;
    text-align: center;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 1rem;
}

    .loading-wave .wave {
        width: 6px;
        height: 30px;
        background: linear-gradient(180deg, #00d2ff, #7928ca);
        border-radius: 2px;
        animation: wave 1.2s ease-in-out infinite;
        opacity: 0.7;
    }

        .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;
    }
}

/* ========== Playlist ========== */
.playlist-container {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.playlist-search {
    margin-bottom: 1rem;
    position: relative;
}

    .playlist-search input {
        width: 100%;
        padding: 10px 15px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 25px;
        color: #fff;
        font-size: 0.9rem;
        outline: none;
        transition: all 0.3s ease;
    }

        .playlist-search input:focus {
            border-color: #00d2ff;
            box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
        }

        .playlist-search input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

.playlist-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-group-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .list-group-item:hover {
        background: rgba(0, 210, 255, 0.2);
        transform: translateX(5px);
        border-color: rgba(0, 210, 255, 0.5);
    }

.list-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-icon {
    color: #ffe828;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .download-icon:hover {
        transform: scale(1.1);
        color: #ffd700;
    }

.list-item-title {
    flex: 1;
    margin: 0 10px;
}

.list-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-icon {
    color: #00d2ff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .play-icon:hover {
        transform: scale(1.1);
        color: #ff0080;
    }

.badge-info {
    height: 25px;
    width: 25px;
    border-radius: 100%;
    color: #fff8f8;
    background-color: #7928ca;
    padding: 6px 1px 5px 1px;
    margin-left: 0;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Loading States */
.loading-container.loading-active {
    background: linear-gradient(90deg, #ff0080, #7928ca, #00d2ff, #7928ca, #ff0080);
    background-size: 200% 100%;
    animation: loading-bg-shift 1.5s ease-in-out infinite;
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
}

@keyframes loading-bg-shift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Cover Rotation Animation */
.cover-image.rotating {
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive Progress Ring */
.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.8));
}

/* Responsive Cover Wrapper */
@media (max-width: 767.98px) {
    .cover-wrapper {
        width: 200px;
        height: 200px;
    }

    .particles-container {
        width: 200px;
        height: 200px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .cover-wrapper {
        width: 240px;
        height: 240px;
    }

    .particles-container {
        width: 240px;
        height: 240px;
    }
}

@media (min-width: 992px) {
    .cover-wrapper {
        width: 280px;
        height: 280px;
    }

    .particles-container {
        width: 280px;
        height: 280px;
    }
}

.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;
}

.music-content {
    background: #181d36;
    text-align: center;
    padding-top: 20px;
    border-top: 3px solid #14919d;
}

    .music-content .music-text {
        line-height: 30px;
        color: #fff;
        line-height: 30px;
    }

        .music-content .music-text * {
            font-size: 13px
        }

        .music-content .music-text h2 {
            font-weight: bold
        }

.controlsbtn {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .controlsbtn li {
        margin: 0;
    }

        .controlsbtn li button {
            border: none;
            border-radius: 50%;
            padding: 0;
            box-shadow: 0px 1px 3px 1px #404040;
            background: #14919d;
            color: #ffffff;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
        }

            .controlsbtn li button:hover {
                background: #00cbff;
                transform: scale(1.1);
            }

            .controlsbtn li button:active {
                transform: scale(0.95);
            }

#loding {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.list-group {
    margin-top: 20px;
}

@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);
    }
}

.gradient-def {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.particles-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 4;
    border-radius: 50%;
}

.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;
}

.other-tags {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

    .other-tags li {
        background: rgba(255, 255, 255, 0.1);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.85rem;
    }

#navagram-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.navagram-toast {
    background: linear-gradient(135deg, #1db954, #1ed760);
    color: white;
    padding: 12px 18px;
    margin-top: 10px;
    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 {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: rgba(30,30,47,0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px;
    z-index: 1000;
    width: 280px;
    border: 1px solid rgba(0,210,255,0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.eq-band {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: white;
}

    .eq-band input {
        flex: 1;
        background: #3a3a5a;
        height: 4px;
        border-radius: 2px;
    }

    .eq-band .eq-value {
        width: 35px;
        text-align: right;
        font-size: 12px;
    }

.eq-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 15px 0;
}

    .eq-presets button {
        background: #2d2d44;
        border: none;
        color: white;
        padding: 5px 12px;
        border-radius: 20px;
        cursor: pointer;
        transition: 0.2s;
    }

        .eq-presets button:hover {
            background: #00d2ff;
            color: black;
        }

.sleep-menu {
    position: fixed;
    background: #1e1e2f;
    border-radius: 16px;
    padding: 8px 0;
    z-index: 1001;
    box-shadow: 0 5px 20px black;
    border: 1px solid #ff0080;
}

.sleep-option {
    padding: 8px 20px;
    cursor: pointer;
    color: white;
    white-space: nowrap;
}

    .sleep-option:hover {
        background: #ff0080;
    }

.queue-badge {
    background: #ff0080;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    margin-left: 8px;
    display: inline-block;
}

/* برای انیمیشن محو کاور */
.cover-image {
    transition: opacity 0.3s ease;
}

/* دکمه‌های جدید */
#focusModeBtn, #smartShuffleBtn, #eqBtn, #sleepTimerBtn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
}


.queue-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.queue-panel-content {
    background: #1a1a2e;
    border: 1px solid #00d2ff;
    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: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

    .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: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    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: 5px;
    transition: transform 0.2s;
}

    .queue-remove:hover {
        transform: scale(1.2);
    }

.queue-empty {
    padding: 30px;
    text-align: center;
    color: #888;
}

/* Playback Speed Button adjustment */
#playbackSpeedBtn {
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#abLoopBtn.active-loop {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5) !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
}

.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 #00d2ff;
    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: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    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: 15px;
    overflow-y: auto;
    flex: 1;
}

/* Local Lists (Bookmarks & Playlists) */
.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: 8px;
    cursor: pointer;
    transition: background 0.2s;
    color: #fff;
}

    .local-item:hover {
        background: rgba(0, 210, 255, 0.15);
    }

    .local-item.active {
        border: 1px solid #00d2ff;
        background: rgba(0, 210, 255, 0.2);
    }

.time-badge {
    background: #7928ca;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    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 6px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.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: 15px;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

    .modal-add-btn:hover {
        opacity: 0.9;
    }

/* Playlist Actions */
.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: #ff0080 !important;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.stat-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 2rem;
    margin-left: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 50%;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.85rem;
    color: #a0a0c0;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

@media (max-width: 767.98px) {
    .player-container {
        padding: 1rem;
        margin: 1rem;
    }

    .track-title {
        font-size: 1.3rem;
    }

    .cover-wrapper {
        width: 200px;
        height: 200px;
    }

    .seek-container {
        width: 95%;
    }

    .controls-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .left-group, .right-group, .center-group {
        justify-content: center;
    }

    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .volume-group {
        flex-direction: column;
        align-items: center;
    }

    .volume-slider-wrapper {
        width: 100%;
    }

    .music-content {
        display: none !important;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .player-container {
        padding: 1.5rem;
    }

    .cover-wrapper {
        width: 240px;
        height: 240px;
    }

    .track-title {
        font-size: 1.5rem;
    }
}

/* Desktop (>992px) */
@media (min-width: 992px) {
    .player-container {
        padding: 2rem;
    }

    .cover-wrapper {
        width: 150px;
        height: 150px;
    }
}
