@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800;900&display=swap');

:root { 
    --bg-grad: radial-gradient(circle at center, #111111 0%, #050505 100%); 
    --glass-bg: rgba(17, 17, 17, 0.75); 
    --glass-border: rgba(255, 255, 255, 0.05); 
    --accent: #3498db; /* XSMAS Blue */
    --accent-gold: #d4af37; /* XSMAS Gold */
    --accent-green: #00ff88; /* XSMAS Neon Green */
    --accent-red: #e74c3c;
    --text-main: #ffffff; 
    --text-muted: #888888; 
}

body.theme-light { 
    --bg-grad: linear-gradient(135deg, #f0f2f5 0%, #e0e5ec 100%); 
    --glass-bg: rgba(255, 255, 255, 0.8); 
    --glass-border: rgba(0, 0, 0, 0.1); 
    --text-main: #111111; 
    --text-muted: #555555; 
}

body { 
    background: var(--bg-grad); 
    background-attachment: fixed; 
    color: var(--text-main); 
    font-family: 'Montserrat', sans-serif; 
    margin: 0; 
    padding: 20px 0; 
    min-height: 100vh; 
}

.page-loader { 
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; 
    background: var(--bg-grad); z-index: 9999; display: flex; align-items: center; justify-content: center; 
    transition: opacity 0.4s ease, visibility 0.4s ease; animation: forceHideLoader 0.5s ease 2s forwards; 
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes forceHideLoader { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.loader-text { 
    font-size: 80px; font-weight: 900; letter-spacing: -2px; color: rgba(255,255,255,0.05); 
    background: linear-gradient(90deg, var(--accent), var(--accent-gold)); 
    background-repeat: no-repeat; background-size: 0% 100%; -webkit-background-clip: text; 
    animation: fillText 0.8s ease-in-out forwards; 
}
@keyframes fillText { 0% { background-size: 0% 100%; } 100% { background-size: 100% 100%; } }

.container { max-width: 96%; margin: 0 auto; padding: 0 10px; }

nav { 
    background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); 
    border: 1px solid var(--glass-border); padding: 15px 40px; border-radius: 20px; 
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); 
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 30px; }
nav h2 { 
    margin: 0; background: linear-gradient(90deg, var(--accent), var(--accent-gold)); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
    font-weight: 900; font-size: 32px; letter-spacing: -1px; 
}
nav a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;}
nav a:hover { color: var(--text-main); }

.avatar-dropdown { position: relative; display: inline-block; }
.nav-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; cursor: pointer; border: 2px solid transparent; transition: 0.3s; }
.nav-avatar:hover { transform: scale(1.05); }
.nav-avatar.plus-ring { border-color: var(--accent); box-shadow: 0 0 15px rgba(52, 152, 219, 0.4); }

.avatar-menu { 
    position: absolute; right: 0; top: 65px; background: #111; 
    border: 1px solid var(--glass-border); border-radius: 15px; padding: 10px 0; width: 220px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.9); opacity: 0; visibility: hidden; transform: translateY(-10px); 
    transition: all 0.3s ease; z-index: 2000; pointer-events: none; 
}
.avatar-menu.show-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.avatar-menu a, .avatar-menu .menu-action { display: block; padding: 12px 25px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-muted); text-decoration: none; transition: 0.3s ease; }
.avatar-menu a:hover, .avatar-menu .menu-action:hover { background: rgba(255,255,255,0.05); color: #fff; }

body.theme-light .avatar-menu { background: #ffffff; border-color: #ddd; }
body.theme-light .avatar-menu a, body.theme-light .avatar-menu .menu-action { color: #111; }
body.theme-light .avatar-menu a:hover, body.theme-light .avatar-menu .menu-action:hover { background: rgba(0,0,0,0.05); }

.mix-banner { 
    background: linear-gradient(135deg, #111, #1a1a1a); 
    border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 60px 80px; display: flex; align-items: center; gap: 40px; cursor: pointer; 
    margin-bottom: 50px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8); transition: transform 0.3s ease, border-color 0.3s ease; 
}
.mix-banner:hover { transform: translateY(-5px); border-color: var(--accent); }
.mix-banner-icon { 
    width: 100px; height: 100px; background: rgba(52, 152, 219, 0.1); 
    border: 1px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 50px; color: var(--accent); flex-shrink: 0; box-shadow: 0 0 25px rgba(52, 152, 219, 0.2); transition: 0.3s ease; 
}
.mix-banner:hover .mix-banner-icon { transform: scale(1.1); box-shadow: 0 0 35px rgba(52, 152, 219, 0.4); }
.mix-banner-text h2 { margin: 0 0 10px 0; font-size: 48px; color: #fff; font-weight: 900; letter-spacing: 1px;}
.mix-banner-text p { margin: 0; font-size: 16px; color: var(--text-muted); font-weight: 600; }

.box { background: var(--glass-bg); backdrop-filter: blur(16px); border: 1px solid var(--glass-border); padding: 40px; border-radius: 20px; margin: 0 auto; width: 100%; max-width: 500px; box-sizing: border-box; }

.hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 50px; }
.hero-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 15px; padding: 15px; transition: 0.3s; }
.hero-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.15); box-shadow: 0 15px 30px rgba(0,0,0,0.6); }
.hero-card-cover-wrapper { position: relative; width: 100%; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; margin-bottom: 15px; cursor: pointer; }
.hero-card-cover { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }

.track-cover-link { display: block; position: absolute; top:0; left:0; width:100%; height:100%; z-index: 5; }
.track-play-overlay { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    width: 45px; height: 45px; background: rgba(0,0,0,0.8); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; color: var(--accent-green); 
    font-size: 20px; opacity: 0; transition: 0.3s; z-index: 10; cursor: pointer; border: 1px solid var(--accent-green);
}
.hero-card-cover-wrapper:hover .track-play-overlay, .track-cover-wrapper:hover .track-play-overlay { opacity: 1; }
.track-play-overlay:hover { background: var(--accent-green); color: #000; transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 15px rgba(0,255,136,0.4);}

.hero-card-info h3 { margin: 0 0 5px 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card-info p { margin: 0; font-size: 12px; }
.hero-card-info a { color: var(--text-muted); text-decoration: none; transition: 0.2s; }
.hero-card-info a:hover { color: var(--accent); text-decoration: none; }

.track-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.track-item { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 12px 20px; border-radius: 15px; display: flex; align-items: center; justify-content: space-between; transition: all 0.3s ease; gap: 20px; }
.track-item:hover { background: rgba(255, 255, 255, 0.03); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.6); border-color: rgba(255,255,255,0.1); }
.track-info { display: flex; align-items: center; gap: 20px; flex: 1; z-index: 2; overflow: hidden; }
.track-cover-wrapper { position: relative; width: 60px; height: 60px; flex-shrink: 0; cursor: pointer; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.track-cover { width: 100%; height: 100%; object-fit: cover; }
.track-text h3 { margin: 0 0 4px 0; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-text p { margin: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-text a { color: var(--text-muted); text-decoration: none; transition: 0.2s; }
.track-text a:hover { color: var(--accent-gold); }

.chart-title { font-size: 32px; font-weight: 900; text-transform: uppercase; background: linear-gradient(90deg, var(--accent), var(--accent-gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 40px; text-align: center; letter-spacing: 2px; }
.chart-bold-list { display: flex; flex-direction: column; gap: 20px; padding: 0; }
.chart-bold-item { background: #111; border: 1px solid var(--glass-border); border-radius: 20px; padding: 20px; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; transition: 0.3s; }
.chart-bold-item:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(52, 152, 219, 0.2); z-index: 10; }
.chart-huge-number { position: absolute; right: 0px; bottom: -30px; font-size: 120px; font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.05); z-index: 0; transition: 0.3s; pointer-events: none; }
.chart-bold-item:hover .chart-huge-number { -webkit-text-stroke: 1px rgba(52, 152, 219, 0.2); transform: translateX(-10px); }
body.theme-light .chart-huge-number { -webkit-text-stroke: 1px rgba(0,0,0,0.05); }

.modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(10px); align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-content { position: relative; width: 90%; max-width: 450px; background: #111; border: 1px solid #222; border-radius: 20px; padding: 30px; animation: slideDown 0.3s ease; box-shadow: 0 20px 50px rgba(0,0,0,0.9);}
@keyframes slideDown { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close { position: absolute; right: 20px; top: 15px; font-size: 24px; font-weight: bold; color: var(--text-muted); cursor: pointer; transition: 0.2s;}
.close:hover { color: var(--accent-red); }

input, select, textarea { background: rgba(0,0,0,0.5); color: #fff; border: 1px solid var(--glass-border); padding: 14px 20px; border-radius: 12px; width: 100%; box-sizing: border-box; margin-top: 8px; font-family: inherit; font-size: 14px; transition: 0.3s; outline: none;}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 10px rgba(52, 152, 219, 0.2); }
body.theme-light input, body.theme-light select, body.theme-light textarea { background: rgba(0,0,0,0.05); color: #111; border-color: rgba(0,0,0,0.1); }

button, .btn { background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; border: none; padding: 14px 25px; border-radius: 12px; cursor: pointer; transition: 0.2s; text-decoration: none; display: inline-block; text-align: center; }
button:hover, .btn:hover { background: #2980b9; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3); }
.btn-plus { background: var(--accent-gold); color: #000; }
.btn-plus:hover { background: #f1c40f; box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); }
.btn-discord { background: #5865F2; }
.btn-discord:hover { box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4); }

.btn-icon { background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); color: #fff; font-size: 18px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; width: 45px; height: 45px; box-shadow: none; z-index: 2; flex-shrink: 0; }
.btn-icon:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
body.theme-light .btn-icon { color: #111; }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 13px;}
.admin-table th, .admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--glass-border); }
.admin-table th { background: rgba(255,255,255,0.02); text-transform: uppercase; color: var(--text-muted); font-size: 11px;}
.rank-badge { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 10px; font-weight: bold; background: var(--accent); color: #fff; text-transform: uppercase;}

.bottom-player { position: fixed; bottom: -120px; left: 50%; transform: translateX(-50%); width: 95%; max-width: 1400px; background: rgba(17,17,17,0.9); border: 1px solid var(--glass-border); border-radius: 20px; padding: 12px 30px; display: flex; align-items: center; justify-content: space-between; z-index: 1000; transition: 0.4s; box-shadow: 0 10px 40px rgba(0,0,0,0.9); backdrop-filter: blur(20px);}
.bottom-player.active { bottom: 25px; }
.player-info { display: flex; align-items: center; gap: 15px; width: 25%; overflow: hidden; }
.player-cover { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; box-shadow: 0 4px 15px rgba(0,0,0,0.5); flex-shrink: 0; cursor: pointer; }
.player-text { overflow: hidden; }
.player-text h4 { margin: 0 0 3px 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.player-text p { margin: 0; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-controls { display: flex; flex-direction: column; align-items: center; width: 50%; }
.control-buttons { display: flex; align-items: center; gap: 15px; margin-bottom: 8px; }
.ctrl-btn { background: transparent; border: none; color: var(--text-muted); width: 35px; height: 35px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: 0.2s; flex-shrink: 0; }
.ctrl-btn:hover { color: #fff; }
.ctrl-btn.active { color: var(--accent-green); }
.ctrl-play { width: 45px; height: 45px; font-size: 20px; background: #fff; color: #000; border-radius: 50%; display:flex; align-items:center; justify-content:center;}
.ctrl-play:hover { transform: scale(1.05); }
.progress-container { width: 100%; display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-muted); font-weight: 600; }
.progress-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; cursor: pointer; position: relative; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 3px; width: 0%; pointer-events: none; transition: width 0.1s linear; }
.volume-container { display: flex; align-items: center; gap: 10px; width: 25%; justify-content: flex-end; }
.volume-slider { -webkit-appearance: none; width: 100px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; outline: none; }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; cursor: pointer; }

.artist-header { display: flex; align-items: center; gap: 40px; margin-bottom: 50px; background: var(--glass-bg); padding: 40px; border-radius: 20px; border: 1px solid var(--glass-border); }
.artist-header img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 40px rgba(0,0,0,0.6); flex-shrink: 0; }
.artist-header-info h1 { margin: 0 0 10px 0; font-size: 42px; display: flex; align-items: center; flex-wrap: wrap; }
.artist-header-info p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.verified { color: var(--accent); margin-left: 10px; font-size: 24px; }
.badge-18 { font-size: 10px; background: var(--accent-red); color: #fff; padding: 2px 6px; border-radius: 4px; font-weight: bold; margin-left: 8px; vertical-align: middle; }
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px;}

/* FULL SCREEN PLAYER */
.fs-player { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: var(--bg-grad); z-index: 1500; display: none; padding: 50px 10%; box-sizing: border-box; }
.fs-player.active { display: flex; gap: 60px; align-items: center; justify-content: center; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
.fs-left { flex: 0 0 400px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.fs-cover { width: 350px; height: 350px; border-radius: 20px; object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,0.8); margin-bottom: 30px; }
.fs-title { font-size: 32px; font-weight: 900; margin: 0 0 8px 0; line-height: 1.2; }
.fs-artist { font-size: 18px; color: var(--text-muted); margin: 0; font-weight: 600;}
.fs-right { flex: 1; height: 70vh; overflow-y: auto; text-align: left; padding: 0 20px; scroll-behavior: smooth; }
.fs-right::-webkit-scrollbar { width: 6px; }
.fs-right::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.fs-lyric-line { font-size: 26px; font-weight: 700; color: rgba(255,255,255,0.2); margin-bottom: 20px; transition: all 0.3s ease; cursor: pointer; line-height: 1.4; }
.fs-lyric-line:hover { color: rgba(255,255,255,0.5); }
.fs-lyric-line.active { color: var(--accent-green); font-size: 32px; text-shadow: 0 0 20px rgba(0,255,136,0.2); }
.fs-close { position: absolute; top: 30px; right: 40px; font-size: 40px; color: var(--text-muted); cursor: pointer; z-index: 1600; transition: 0.3s; }
.fs-close:hover { color: var(--accent-red); }

/* Стили для полной страницы трека */
.track-page-header { display: flex; gap: 30px; margin-bottom: 40px; align-items: center; }
.track-page-cover { width: 200px; height: 200px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.6); object-fit: cover; }
.lyrics-container { max-height: 400px; overflow-y: auto; text-align: center; font-size: 20px; font-weight: 600; color: var(--text-muted); padding: 20px; border-radius: 15px; scroll-behavior: smooth; background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);}
.lyric-line { padding: 8px; transition: 0.2s; cursor: pointer; }
.lyric-line:hover { color: rgba(255,255,255,0.8); }
.lyric-line.active { color: var(--accent-green); font-size: 24px; text-shadow: 0 0 15px rgba(0,255,136,0.3); }
.lyrics-container::-webkit-scrollbar { width: 6px; }
.lyrics-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

@media (max-width: 768px) {
    .container { padding: 0 10px; width: 100%; max-width: 100%; }
    nav { flex-direction: row; flex-wrap: wrap; border-radius: 15px; padding: 15px 20px; }
    .nav-left { gap: 15px; }
    .mix-banner { padding: 30px; gap: 20px; border-radius: 15px; flex-direction: column; text-align: center; }
    .mix-banner-icon { width: 60px; height: 60px; font-size: 25px; }
    .mix-banner-text h2 { font-size: 28px; }
    .hero-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 30px; }
    .hero-card { padding: 10px; border-radius: 12px; }
    .bottom-player { padding: 10px 15px; width: calc(100% - 20px); border-radius: 15px; bottom: -150px; flex-wrap: nowrap; gap: 5px; }
    .bottom-player.active { bottom: 10px; }
    .player-info { width: 45%; gap: 10px; }
    .player-cover { width: 40px; height: 40px; border-radius: 8px;}
    .player-controls { width: 55%; }
    .volume-container { display: none; }
    .ctrl-btn { width: 30px; height: 30px; font-size: 14px; }
    .ctrl-play { width: 40px; height: 40px; font-size: 18px; }
    .chart-huge-number { font-size: 80px; bottom: -15px; right: -5px; }
    .artist-header { flex-direction: column; text-align: center; padding: 30px; gap: 20px; border-radius: 20px; }
    .artist-header img { width: 120px; height: 120px; }
    .track-page-header { flex-direction: column; text-align: center; gap: 20px; }
    .track-page-cover { width: 180px; height: 180px; }
    .lyrics-container { font-size: 16px; }
    .lyric-line.active { font-size: 20px; }
    .box { padding: 30px 20px; border-radius: 20px; }
    
    .fs-player.active { flex-direction: column; gap: 20px; padding: 30px 20px; justify-content: flex-start; padding-top: 60px; }
    .fs-left { flex: none; width: 100%; }
    .fs-cover { width: 220px; height: 220px; margin-bottom: 15px; border-radius: 15px;}
    .fs-title { font-size: 24px; }
    .fs-artist { font-size: 16px; }
    .fs-right { height: 40vh; text-align: center; width: 100%; }
    .fs-lyric-line { font-size: 18px; margin-bottom: 15px; }
    .fs-lyric-line.active { font-size: 22px; }
    .fs-close { top: 15px; right: 20px; font-size: 30px; }
}

body.theme-light .fs-player { background: #ffffff; color: #111; }
body.theme-light .fs-title { color: #111; }
body.theme-light .fs-artist { color: #666; }
body.theme-light .fs-close { color: #111; }
body.theme-light .fs-close:hover { color: var(--accent-red); }
body.theme-light .fs-lyric-line { color: #ccc; }
body.theme-light .fs-lyric-line:hover { color: #888; }
body.theme-light .fs-lyric-line.active { color: var(--accent); font-weight: bold; text-shadow: none; }
body.theme-light .fs-cover-overlay { background: rgba(255, 255, 255, 0.75); }
body.theme-light .fs-ctrl-btn { color: #111; }
body.theme-light .fs-ctrl-btn:hover { color: var(--accent); }