:root {
            --primary: #00d2ff;
            --glass: rgba(20, 20, 20, 0.9);
            --btn-bg: rgba(255, 255, 255, 0.1);
            --status-high: #4CAF50;
            --status-mid: #FFC107;
            --status-low: #F44336;
            --recording: #ff4d4d;
            --spotify: #1DB954;
            --youtube: #FF0000;
            --itunes: #FB5AFF;
            --dominant-color: inherit;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        body, html { height: 100dvh; width: 100%; overflow: hidden; background-color: var(--dominant-color);
    background-image: linear-gradient(to top, var(--dominant-color), #000000 85%);
    background-attachment: fixed; font-family: 'Inter', sans-serif; color: #fff; position: fixed; transition: background-color 1.2s ease; }

        .radio-container { position: relative; width: 100%; height: 100dvh; display: flex; flex-direction: column; z-index: 5; max-width: 500px; margin: 0 auto; }
        .blur-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; -webkit-filter: blur(2px);
    -ms-filter: blur(2px);
    filter: blur(2px) brightness(0.2); z-index: 1; transition: 1.5s ease; }

        .top-nav { height: 70px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; z-index: 1001; }
        .nav-actions { display: flex; gap: 10px; align-items: center; }

        .icon-btn { 
            background: var(--btn-bg); border: none; color: white; 
            width: 44px; height: 44px; border-radius: 14px; 
            display: flex; align-items: center; justify-content: center; 
            cursor: pointer; transition: all 0.2s; font-size: 1.2rem; backdrop-filter: blur(5px);
            border: 1px solid rgba(255,255,255,0.05);
        }

        .rec-container { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 15px; }
        #rec-timer { font-size: 0.65rem; font-weight: 700; color: var(--recording); opacity: 0; transition: opacity 0.3s; }
        #rec-timer.active { opacity: 1; }

        .insight-card {
            position: absolute; top: 80px; left: 20px; right: 20px;
            background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255,255,255,0.1);
            backdrop-filter: blur(30px); border-radius: 25px; padding: 20px;
            z-index: 6000; display: none; transform-origin: top left;
            box-shadow: 0 20px 40px rgba(0,0,0,0.4);
            animation: insightIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        @keyframes insightIn {
            from { opacity: 0; transform: scale(0.9) translateY(-10px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }
        .insight-card.show { display: block; }
        .insight-row { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
        .insight-row:last-child { margin-bottom: 0; }
        .insight-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(0, 210, 255, 0.15); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
        .insight-content b { display: block; font-size: 0.75rem; text-transform: uppercase; color: rgba(255,255,255,0.5); letter-spacing: 1px; }
        .insight-content span { font-size: 1rem; font-weight: 600; color: #fff; }
        
        .next-preview { margin-top: 5px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); }

        .q-indicator-btn { position: relative; display: inline-block; }
        .q-dot { position: absolute; bottom: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #111; z-index: 10; transition: background 0.3s; }
        .dropdown-menu { position: absolute; top: 80px; right: 20px; background: rgba(30, 30, 30, 0.85); border-radius: 30px; padding: 8px; width: 260px; display: none; z-index: 5000; border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(25px); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); animation: orbitReveal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
        @keyframes orbitReveal { from { opacity: 0; transform: scale(0.8) translateY(-20px); filter: blur(10px); } to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); } }
        .dropdown-menu.show { display: block; }
        .menu-item { position: relative; display: flex; align-items: center; gap: 15px; padding: 12px 18px; margin-bottom: 6px; border-radius: 22px; cursor: pointer; transition: all 0.3s ease; background: rgba(255, 255, 255, 0.03); border: 1px solid transparent; }
        .menu-item i { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); border-radius: 50%; font-size: 1.1rem; }
        .menu-item .label-group b { font-size: 0.85rem; display: block; color: #efefef; }
        .menu-item .label-group span { font-size: 0.7rem; color: rgba(255,255,255,0.4); }
        .pulse-indicator { width: 8px; height: 8px; background: #666; border-radius: 50%; position: absolute; right: 20px; display: none; }
        .menu-item.active .pulse-indicator { display: block; background: var(--primary); box-shadow: 0 0 0 rgba(0, 210, 255, 0.4); animation: pulse-dot 1.5s infinite; }
        @keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(0, 210, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); } }
        .menu-item.active { background: rgba(0, 210, 255, 0.12); border: 1px solid rgba(0, 210, 255, 0.3); transform: translateX(-5px); }
        .menu-item.active i { background: var(--primary); color: #000; }
        .menu-item.active b { color: var(--primary); }
        .vol-wrapper { position: relative; }
        .vol-pop { position: absolute; bottom: 85px; left: 50%; transform: translateX(-50%); background: #2a2a2a; border-radius: 28px; display: none; padding: 10px; width: 56px; height: 210px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); flex-direction: column; align-items: center; justify-content: space-between; }
        .vol-pop.show { display: flex; }
        .moto-track { position: relative; width: 32px; height: 140px; background: #444; border-radius: 16px; overflow: hidden; margin-top: 5px; }
        .moto-fill { position: absolute; bottom: 0; width: 100%; background: var(--primary); border-radius: 16px; transition: height 0.1s ease-out; }
        #vol-control { position: absolute; top: 0; left: 0; width: 140px; height: 32px; transform: rotate(-90deg) translate(-140px, 0); transform-origin: top left; -webkit-appearance: none; background: transparent; cursor: pointer; z-index: 10; }
        #vol-control::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; }
        .vol-icon-moto { font-size: 1.2rem; margin-top: 10px; color: #fff; }
        .player-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; padding: 20px; z-index: 2; }
        
        .cover-wrapper { 
            width: 75vw; max-width: 290px; aspect-ratio: 1/1; position: relative;
            display: flex; align-items: center; justify-content: center;
            border-radius: 50%;
            background: #111;
            box-shadow: 0 30px 60px rgba(0,0,0,0.8);
        }

        .cover-wrapper::before {
            content: ''; position: absolute; width: 15px; height: 15px;
            background: #1a1a1a; border-radius: 50%; z-index: 10;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.8), 0 1px 1px rgba(255,255,255,0.2);
        }

        .vinyl-texture {
            position: absolute; width: 100%; height: 100%;
            border-radius: 50%;
            background: repeating-radial-gradient(circle, rgba(0,0,0,0) 0px, rgba(0,0,0,0.1) 1px, rgba(0,0,0,0) 2px);
            z-index: 4; pointer-events: none; opacity: 0.6;
        }

        #cover { 
            width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
            border: 4px solid #111; 
            transition: opacity 0.5s ease;
        }

        .rotating { animation: rotateVinyl 6s linear infinite; }
        @keyframes rotateVinyl { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
        
        .vinyl-shine {
            position: absolute; width: 100%; height: 100%;
            border-radius: 50%;
            background: conic-gradient(
                from 0deg, 
                transparent 0%, 
                rgba(255,255,255,0.08) 10%, 
                transparent 25%, 
                rgba(255,255,255,0.05) 45%, 
                transparent 50%, 
                rgba(255,255,255,0.08) 60%, 
                transparent 75%, 
                rgba(255,255,255,0.05) 90%, 
                transparent 100%
            );
            z-index: 5; pointer-events: none;
        }

        .btn-fav-current { 
            position: absolute; top: 15px; right: 15px; 
            background: rgba(0,0,0,0.6); 
            backdrop-filter: blur(10px);
            color: #fff; width: 46px; height: 46px; 
            border-radius: 50%; display: flex; align-items: center; justify-content: center; 
            border: 1.5px solid rgba(255,255,255,0.2); 
            font-size: 1.2rem; z-index: 15; 
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 8px 15px rgba(0,0,0,0.3);
        }
        .btn-fav-current.is-fav {
            background: #fff;
            color: #ff4d4d;
            border-color: #fff;
            transform: scale(1.1);
            box-shadow: 0 0 20px rgba(255, 77, 77, 0.4);
        }
        .btn-fav-current:active { transform: scale(0.85); }
        .btn-fav-current i { transition: transform 0.3s ease; }
        .btn-fav-current.is-fav i { animation: heartBeatFav 0.4s ease-out; }
        @keyframes heartBeatFav {
            0% { transform: scale(1); }
            50% { transform: scale(1.4); }
            100% { transform: scale(1); }
        }

        .info-text { width: 100%; padding: 0 25px; text-align: left; overflow: hidden; }
        .marquee-container { width: 100%; overflow: hidden; display: flex; justify-content: flex-start; margin: 2px 0; }
        .marquee-text { display: inline-block; white-space: nowrap; will-change: transform; transition: transform 0.1s linear; }
        @keyframes marquee-bounce { 0%, 15% { transform: translateX(0); } 45%, 55% { transform: translateX(var(--move-dist)); } 85%, 100% { transform: translateX(0); } }
        .animate-bounce { animation: marquee-bounce 10s ease-in-out infinite; }
        .info-text h2 { font-size: 1.8rem; font-weight: 700; }
        .info-text p { color: var(--primary); font-weight: 600; font-size: 1.1rem; }
        .track-status { width: 100%; }
        .bar-container { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
        #bar-fill { height: 100%; width: 0%; background: var(--primary); transition: width 1s linear; }
        .controls-row { display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; }
        .btn-play { width: 85px; height: 85px; border-radius: 50%; background: #fff; color: #000; border: none; font-size: 3rem; display: flex; align-items: center; justify-content: center; transition: opacity 0.3s, transform 0.2s; }
        .bottom-panel { position: absolute; bottom: -100%; left: 0; width: 100%; height: 75dvh; background: var(--glass); z-index: 4000; border-radius: 35px 35px 0 0; padding: 25px; transition: 0.5s cubic-bezier(0.2, 1, 0.2, 1); backdrop-filter: blur(30px); border-top: 1px solid rgba(255,255,255,0.1); }
        .bottom-panel.active { bottom: 0; }
        .panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .scroll-area { height: calc(100% - 50px); overflow-y: auto; padding-bottom: 40px; }
        .list-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255, 255, 255, 0.03); border-radius: 18px; margin-bottom: 10px; }
        .list-item img { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; }
        .list-info { flex: 1; overflow: hidden; }
        .list-info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.95rem; }
        .list-info span { font-size: 0.8rem; color: var(--primary); opacity: 0.8; }
        .list-time { font-size: 0.75rem; color: rgba(255,255,255,0.4); font-weight: 600; min-width: 55px; text-align: right; }
        .btn-rec.active { color: var(--recording); animation: pulse-rec 1.5s infinite; background: rgba(255, 77, 77, 0.15); }

        .btn-spotify { color: var(--spotify); font-size: 1.4rem; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; padding: 5px; }
        .btn-youtube { color: var(--youtube); font-size: 1.4rem; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; padding: 5px; }
        
        .btn-itunes { 
            position: relative; width: 34px; height: 34px; color: var(--itunes); 
            cursor: pointer; display: flex; align-items: center; justify-content: center;
        }
        .itunes-icon { font-size: 1.5rem; z-index: 2; position: relative; }
        .preview-progress-svg { 
            position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
            transform: rotate(-90deg); z-index: 1; pointer-events: none;
        }
        .preview-progress-svg circle { 
            fill: none; stroke: var(--itunes); stroke-width: 2.5; 
            stroke-dasharray: 88; stroke-dashoffset: 88; 
            stroke-linecap: round; transition: stroke-dashoffset 0.1s linear; 
        }

        .btn-spotify:hover, .btn-youtube:hover { transform: scale(1.1); }
        .loading { animation: spin 1s infinite linear; color: #666 !important; }
        @keyframes spin { from {transform: rotate(0deg)} to {transform: rotate(360deg)} }
        
        .btn-disabled { opacity: 0.3 !important; pointer-events: none !important; filter: grayscale(1); }

        .yt-popup-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.7); backdrop-filter: blur(15px);
            z-index: 9999; display: none; align-items: center; justify-content: center;
            opacity: 0; transition: opacity 0.3s ease;
        }
        .yt-popup-overlay.show { display: flex; opacity: 1; }
        
        .yt-popup-content {
            width: 90%; max-width: 450px; 
            background: rgba(30, 30, 30, 0.6); 
            backdrop-filter: blur(25px) saturate(180%);
            border-radius: 30px;
            box-shadow: 0 50px 100px rgba(0,0,0,0.9), inset 0 0 0 1px rgba(255,255,255,0.1);
            position: relative; padding: 10px;
            transform: scale(0.9); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .yt-popup-overlay.show .yt-popup-content { transform: scale(1); }

        .yt-close-btn {
            position: absolute; top: -15px; right: -15px; width: 40px; height: 40px;
            background: #fff; color: #000; border-radius: 50%;
            display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 100;
            box-shadow: 0 5px 15px rgba(0,0,0,0.5); font-weight: bold;
        }

        .yt-iframe-container { 
            width: 100%; aspect-ratio: 16/9; 
            background: #000; border-radius: 20px; overflow: hidden; 
        }
        .yt-iframe-container iframe { width: 100%; height: 100%; border: none; }