:root { --bg: #050505; --fg: #e0e0e0; --pink: #ff0077; --purple: #bd00ff; --border: #333; }
* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; }
img, a { -webkit-user-drag: none; user-drag: none; }
input { user-select: text; -webkit-user-select: text; }
body { background-color: var(--bg); color: var(--fg); font-family: 'JetBrains Mono', monospace; height: 100vh; overflow-x: hidden; position: relative; }

/* --- ФОН И АТМОСФЕРА --- */
.background-container { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    background: radial-gradient(circle at center top, #1a0b2e 0%, #000000 80%); 
    overflow: hidden; 
    perspective: 500px; 
}

.stars { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 80%; 
    background: 
        radial-gradient(1px 1px at 10% 10%, white, transparent), 
        radial-gradient(2px 2px at 20% 30%, rgba(100, 200, 255, 0.8), transparent), 
        radial-gradient(1px 1px at 40% 20%, white, transparent), 
        radial-gradient(2px 2px at 60% 60%, rgba(255, 100, 200, 0.6), transparent), 
        radial-gradient(1px 1px at 90% 10%, white, transparent); 
    background-size: 500px 500px; 
    opacity: 0.8; 
    animation: twinkle 8s infinite linear; 
}
@keyframes twinkle { 
    from { transform: translateY(0); opacity: 0.8; } 
    to { transform: translateY(-500px); opacity: 0.4; } 
}

.moving-grid { 
    position: absolute; 
    bottom: -30%; 
    left: -50%; 
    width: 200%; 
    height: 100%; 
    background-image: 
        linear-gradient(var(--pink) 1px, transparent 1px), 
        linear-gradient(90deg, var(--pink) 1px, transparent 1px); 
    background-size: 60px 60px; 
    transform: rotateX(60deg); 
    animation: gridMove 20s infinite linear; 
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 5%, rgba(0,0,0,0) 55%); 
    opacity: 0.25; 
}
@keyframes gridMove { 
    0% { transform: rotateX(60deg) translateY(0); } 
    100% { transform: rotateX(60deg) translateY(60px); } 
}

.horizon-glow { 
    position: absolute; 
    top: 55%; 
    left: 0; 
    width: 100%; 
    height: 300px; 
    background: radial-gradient(ellipse at center, rgba(189, 0, 255, 0.5) 0%, rgba(255, 0, 119, 0.15) 40%, transparent 70%); 
    transform: translateY(-50%); 
    filter: blur(60px); 
    z-index: -1;
}

.scanline { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%); background-size: 100% 4px; pointer-events: none; z-index: 999; opacity: 0.6; }

/* --- КОНСОЛЬ --- */
.console-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 300px; background: rgba(10, 10, 10, 0.95); border-bottom: 2px solid var(--pink); z-index: 9999; font-family: 'JetBrains Mono', monospace; display: none; flex-direction: column; box-shadow: 0 10px 50px rgba(0,0,0,0.8); backdrop-filter: blur(10px); }
.console-overlay.active { display: flex; }
.console-header { background: var(--pink); color: #000; padding: 5px 10px; font-weight: bold; font-size: 0.8rem; }
.console-output { flex: 1; padding: 10px; color: #ccc; font-size: 0.9rem; overflow-y: auto; user-select: text; }
.console-input { background: #000; border: none; border-top: 1px solid #333; color: #fff; padding: 10px; font-family: inherit; font-size: 1rem; outline: none; }

/* --- ГЛАВНОЕ ОКНО --- */
.desktop-wrapper { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; gap: 20px; align-items: flex-start; max-width: 95vw; transition: transform 0.1s; }
.main-terminal { width: 780px; height: auto; padding-bottom: 40px; border: 1px solid var(--border); background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(5px); box-shadow: 0 0 40px rgba(189, 0, 255, 0.15), 5px 5px 0 var(--pink); display: flex; flex-direction: column; }
.terminal-header { background: #0f0f0f; padding: 10px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); cursor: grab; user-select: none; }
.terminal-header:active { cursor: grabbing; }
.window-controls { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; } .red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.term-title { font-size: 0.8rem; color: #555; }
.terminal-body { padding: 40px 40px 0 40px; display: flex; flex-direction: column; }

.ascii-wrapper { display: flex; justify-content: center; margin-bottom: 25px; overflow: hidden; }
.ascii-art { font-size: 6.5px; line-height: 6.5px; white-space: pre; color: #fff; font-weight: 800; text-shadow: 0 0 5px rgba(255, 0, 119, 0.8); text-align: left; }
.typing-container { margin-bottom: 35px; border-left: 2px solid var(--pink); padding-left: 15px; }
.typing-container p { font-size: 0.95rem; color: #ccc; margin-bottom: 0; line-height: 1.4; }
.clock-style { color: var(--pink); font-weight: bold; background: rgba(255, 0, 119, 0.1); padding: 2px 6px; animation: blinkRed 2s infinite; }
@keyframes blinkRed { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.btn-group { display: flex; gap: 20px; }
.cyber-btn { flex: 1; position: relative; background: rgba(0, 0, 0, 0.8); border: 1px solid #444; color: #fff; padding: 15px; font-family: inherit; font-size: 1rem; font-weight: bold; cursor: pointer; text-decoration: none; text-align: center; overflow: hidden; transition: 0.2s; }
.cyber-btn:hover { border-color: var(--pink); background: rgba(255, 0, 119, 0.15); box-shadow: 0 0 20px var(--pink); }
.cyber-btn i { margin-right: 8px; color: var(--pink); }

/* --- ИСПРАВЛЕННЫЙ БЛОК (ANTI-ADBLOCK) --- */
.sys-widget-panel { width: 250px; background: rgba(10, 10, 10, 0.9); border: 1px solid var(--border); backdrop-filter: blur(5px); box-shadow: 0 0 20px rgba(255, 0, 119, 0.1); display: flex; flex-direction: column; animation: slideIn 0.8s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
.sys-widget-header { background: #1a050d; color: var(--pink); padding: 10px; font-size: 0.75rem; font-weight: bold; border-bottom: 1px dashed var(--pink); display: flex; align-items: center; gap: 8px; }
.sys-widget-body { padding: 30px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.sys-widget-icon { font-size: 3rem; color: var(--pink); margin-bottom: 10px; animation: floatIcon 3s ease-in-out infinite; }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.sys-widget-body h3 { font-size: 1rem; color: #fff; line-height: 1.4; }
.sys-widget-text { font-size: 0.8rem; color: #888; margin-bottom: 10px; }
.sys-widget-btn { width: 100%; font-size: 0.8rem; padding: 10px; }

/* --- МОДАЛЬНОЕ ОКНО ПЛЕЕРА --- */
.music-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.3s ease; }
.music-overlay.active { opacity: 1; pointer-events: all; }
.overlay-backdrop { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); }
.window-box { position: relative; z-index: 1001; width: 850px; max-width: 95%; background: #050505; border: 1px solid var(--pink); box-shadow: 0 0 60px rgba(255, 0, 119, 0.2); transform: scale(0.95) translateY(20px); transition: 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); display: flex; flex-direction: column; }
.music-overlay.active .window-box { transform: scale(1) translateY(0); }
.window-header { background: var(--pink); padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; font-weight: bold; color: #000; letter-spacing: 1px; flex-shrink: 0; }
.win-close { background: #000; color: var(--pink); border: none; font-weight: bold; cursor: pointer; width: 24px; height: 24px; transition: 0.2s; }
.win-close:hover { background: #fff; color: #000; }
.window-body { display: grid; grid-template-columns: 1.1fr 0.9fr; height: 520px; background-image: linear-gradient(#111 1px, transparent 1px), linear-gradient(90deg, #111 1px, transparent 1px); background-size: 20px 20px; }

.player-grid { padding: 20px 30px; border-right: 1px solid #222; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; position: relative; overflow: hidden; }
.cover-wrapper { margin-top: 10px; margin-bottom: 15px; }
.album-art-square { 
    width: 220px; height: 220px; 
    background: rgba(20, 0, 10, 0.5); 
    border: 2px solid #333; 
    display: flex; justify-content: center; align-items: center; 
    position: relative; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5); 
    transition: 0.3s;
    background-size: cover; 
    background-position: center;
}
.album-art-square.playing { border-color: var(--pink); box-shadow: 0 0 40px rgba(255, 0, 119, 0.4); }
.album-art-square .art-icon { font-size: 5rem; color: #333; transition: 0.3s; }
.album-art-square.playing .art-icon { color: var(--pink); animation: pulseIcon 2s infinite; }
.scan-bar { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--pink); opacity: 0; box-shadow: 0 0 10px var(--pink); }
.album-art-square.playing .scan-bar { opacity: 1; animation: scanCover 3s linear infinite; }
@keyframes pulseIcon { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.9); opacity: 0.7; } }
@keyframes scanCover { 0% { top: 0; } 100% { top: 100%; } }
.corner { position: absolute; width: 12px; height: 12px; border-color: var(--pink); transition: 0.3s; opacity: 0.3; }
.album-art-square.playing .corner { opacity: 1; }
.tl { top: -1px; left: -1px; border-top: 3px solid; border-left: 3px solid; } .tr { top: -1px; right: -1px; border-top: 3px solid; border-right: 3px solid; } .bl { bottom: -1px; left: -1px; border-bottom: 3px solid; border-left: 3px solid; } .br { bottom: -1px; right: -1px; border-bottom: 3px solid; border-right: 3px solid; }

.idle-message { text-align: center; color: #666; font-size: 1rem; border: 1px dashed #333; padding: 20px; border-radius: 8px; width: 80%; margin-top: 20px; }
.track-data { text-align: center; width: 100%; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-data h2 { color: #fff; font-size: 1.3rem; text-transform: uppercase; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; margin-left: auto; margin-right: auto; }
.track-data p { color: var(--pink); font-size: 1rem; font-weight: bold; }
.label { font-size: 0.7rem; color: #555; margin-bottom: 2px; letter-spacing: 1px; }

.controls-area { width: 100%; max-width: 350px; }
.time-display { font-size: 0.75rem; color: #666; text-align: right; margin-bottom: 8px; font-family: monospace; }
.progress-border { height: 10px; background: #111; position: relative; margin-bottom: 15px; border-radius: 2px; border: 1px solid #333; cursor: pointer; }
.progress-fill { height: 100%; width: 0%; background: var(--pink); box-shadow: 0 0 15px var(--pink); position: relative; pointer-events: none; }
.progress-fill::after { content: ''; position: absolute; right: -2px; top: -2px; width: 4px; height: 14px; background: #fff; box-shadow: 0 0 10px #fff; }
.progress-click-layer { position: absolute; top:-10px; left:0; width: 100%; height: 30px; cursor: pointer; z-index: 10; }

.controls-row-main { height: 60px; display: flex; align-items: center; justify-content: center; margin-bottom: 5px; }
.buttons-row { display: flex; justify-content: center; gap: 15px; align-items: center; width: 100%; }
.buttons-row button { background: transparent; border: none; color: #666; font-size: 1.4rem; cursor: pointer; transition: 0.2s; width: 40px; text-align: center; display: flex; justify-content: center; align-items: center; }
.buttons-row button:hover { color: #fff; transform: scale(1.1); }
.play-btn-large { width: 56px !important; height: 56px !important; border-radius: 50%; border: 2px solid var(--pink) !important; color: var(--pink) !important; display: flex; align-items: center; justify-content: center; font-size: 1.8rem !important; box-shadow: 0 0 15px rgba(255, 0, 119, 0.1); flex-shrink: 0; }
.play-btn-large:hover { background: var(--pink) !important; color: #000 !important; box-shadow: 0 0 30px rgba(255, 0, 119, 0.6); }
.play-btn-large i.fa-play { margin-left: 5px; }
.play-btn-large i.fa-pause { margin-left: 0; }
.secondary-btn { font-size: 1rem !important; color: #444 !important; }
.secondary-btn:hover { color: var(--pink) !important; }
.secondary-btn.active { color: var(--pink) !important; text-shadow: 0 0 10px var(--pink); }

.connect-btn { background: var(--pink); border-color: var(--pink); color: #000; width: 100%; box-shadow: 0 0 15px rgba(255,0,119,0.3); }
.connect-btn:hover { box-shadow: 0 0 30px rgba(255,0,119,0.6); }

.volume-container { display: flex; align-items: center; gap: 10px; margin-top: 5px; justify-content: center; color: #666; font-size: 0.8rem; height: 30px; }
.volume-container input[type="range"] { -webkit-appearance: none; width: 120px; height: 4px; background: #333; outline: none; border-radius: 2px; cursor: pointer; }
.volume-container input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; background: var(--pink); border-radius: 50%; cursor: pointer; box-shadow: 0 0 5px var(--pink); }

.playlist-section { display: flex; flex-direction: column; background: rgba(0,0,0,0.3); border-left: 1px solid #222; height: 100%; }
.playlist-header { background: rgba(255, 255, 255, 0.05); padding: 10px 15px; font-size: 0.85rem; border-bottom: 1px solid #222; color: #888; display: flex; justify-content: space-between; align-items: center; }
.search-box { display: flex; align-items: center; background: rgba(0,0,0,0.3); border: 1px solid #333; padding: 4px 8px; border-radius: 4px; transition: 0.2s; }
.search-box:focus-within { border-color: var(--pink); box-shadow: 0 0 5px rgba(255, 0, 119, 0.2); }
.search-box i { color: #555; font-size: 0.7rem; }
.search-box input { background: transparent; border: none; color: var(--pink); font-family: inherit; font-size: 0.8rem; margin-left: 8px; width: 120px; outline: none; }
.search-box input::placeholder { color: #555; }
.playlist-scroll { flex: 1; overflow-y: auto; padding: 10px; }
.playlist-scroll::-webkit-scrollbar { width: 5px; } .playlist-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
.track-item { padding: 14px 15px; margin-bottom: 4px; cursor: pointer; font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; transition: 0.2s; border-radius: 4px; color: #aaa; border: 1px solid transparent; }
.track-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; border-color: #333; }
.track-item.active { background: rgba(255, 0, 119, 0.1); color: var(--pink); border-color: var(--pink); box-shadow: inset 0 0 10px rgba(255,0,119,0.1); }

/* --- НОВЫЙ СТИЛЬ ССЫЛКИ НА АВТОРА --- */
.artist-link {
    text-decoration: none;
    color: #888;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.artist-link:hover {
    color: var(--pink);
    text-shadow: 0 0 5px var(--pink);
    opacity: 1;
}
.artist-link:hover i {
    transform: translate(2px, -2px);
}
.artist-link i {
    transition: 0.2s;
    color: inherit;
}

@media (max-width: 1100px) {
    .desktop-wrapper { position: relative; top: 0; left: 0; transform: none !important; flex-direction: column; align-items: center; width: 100%; padding: 20px; margin-top: 50px; }
    .terminal-header { cursor: default; } .main-terminal { width: 100%; max-width: 600px; height: auto; }
    .sys-widget-panel { width: 100%; max-width: 600px; flex-direction: row; align-items: center; justify-content: space-between; }
    .sys-widget-body { flex-direction: row; padding: 15px; width: 100%; text-align: left; }
    .sys-widget-btn { width: auto; min-width: 150px; } .sys-widget-icon { margin-bottom: 0; margin-right: 15px; }
    .ascii-art { font-size: 4px; line-height: 4px; }
}
@media (max-width: 750px) { .window-body { grid-template-columns: 1fr; height: auto; } .player-grid { border-right: none; border-bottom: 1px solid #333; padding-bottom: 30px; } }
@media (max-width: 600px) {
    .ascii-art { font-size: 2.2px; line-height: 2.2px; } .btn-group { flex-direction: column; }
    .sys-widget-panel { flex-direction: column; } .sys-widget-body { flex-direction: column; text-align: center; }
    .sys-widget-icon { margin-right: 0; margin-bottom: 10px; } .sys-widget-btn { width: 100%; }
    .main-terminal { padding-bottom: 20px; } .terminal-body { padding: 20px; }
}