/* assets/css/style.css */

/* ==========================================================================
   1. GLOBAL RESET & VARIABLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-deep: #02040a;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.1);
    --ice-blue: #aee2ff;
    --snow-white: #ffffff;
    --neon-blue: #00f2ff;
    --text-muted: #8b9bb4;
    
    /* FONTS */
    --font-main: 'Inter', system-ui, sans-serif;
    --font-head: 'Space Grotesk', sans-serif;
    
    /* Dynamic Accent (can be overridden inline) */
    --accent: #00f2ff; 
}

/* ==========================================================================
   2. ANIMATIONS
   ========================================================================== */
@keyframes aurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-neon {
    0% { filter: drop-shadow(0 0 2px var(--ice-blue)); opacity: 0.8; }
    50% { filter: drop-shadow(0 0 8px var(--neon-blue)); opacity: 1; }
    100% { filter: drop-shadow(0 0 2px var(--ice-blue)); opacity: 0.8; }
}

@keyframes popIn { 
    from { transform: translateY(-50%) scale(0); } 
    to { transform: translateY(-50%) scale(1); } 
}

@keyframes shake { 
    0%, 100% { transform: translateY(-50%) translateX(0); } 
    25% { transform: translateY(-50%) translateX(-5px); } 
    75% { transform: translateY(-50%) translateX(5px); } 
}

@keyframes rotateLight { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   3. GENERAL LAYOUT & SCROLLBAR
   ========================================================================== */
body {
    display: flex;
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--snow-white);
    overflow-x: hidden;
    width: 100%;
    background: linear-gradient(-45deg, #02040a, #0a1525, #050b14, #001f3f);
    background-size: 400% 400%;
    animation: aurora 15s ease infinite;
}

/* STYLISH SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
    border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--ice-blue);
}

h1, h2, h3, .brand, .card-title, .auth-title, .modal-title, .btn-primary, .profile-info h1, .default-avatar, .set-title {
    font-family: var(--font-head);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

.main-wrapper {
    flex: 1;
    margin-left: 240px;
    position: relative;
    width: calc(100% - 240px);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

header { display: none; } /* Hidden on Desktop */

/* ==========================================================================
   4. SIDEBAR & NAVIGATION
   ========================================================================== */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 240px; height: 100vh;
    background: rgba(2, 4, 10, 0.6);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    padding: 30px 20px;
    z-index: 500;
    display: flex; flex-direction: column;
}

.sidebar-logo {
    display: flex; align-items: center; gap: 15px;
    margin-bottom: 50px; padding-left: 5px;
}

.brand-icon {
    width: 42px; height: 42px; color: var(--ice-blue);
    animation: pulse-neon 3s infinite ease-in-out;
}
.brand-node { color: var(--neon-blue); }

.brand-text {
    font-size: 1.4rem; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase; line-height: 1;
}
.brand-text span { color: var(--ice-blue); text-shadow: 0 0 15px var(--neon-blue); }

.nav-menu { display: flex; flex-direction: column; gap: 10px; }

.nav-item {
    display: flex; align-items: center; gap: 15px;
    padding: 12px 15px; border-radius: 12px;
    color: var(--text-muted); font-weight: 600;
    transition: 0.3s; font-family: var(--font-head); letter-spacing: 0.5px;
}
.nav-item i { font-size: 1.4rem; }

.nav-item:hover { color: white; background: rgba(255, 255, 255, 0.05); }

.nav-item.active {
    background: rgba(174, 226, 255, 0.1); color: var(--ice-blue);
    border-left: 3px solid var(--ice-blue);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

/* ==========================================================================
   5. HOME PAGE SECTIONS
   ========================================================================== */
.hero-animated {
    flex: 1; min-height: 60vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 40px; position: relative; overflow: hidden;
}
.hero-animated::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 800px; height: 800px; background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 60%);
    filter: blur(80px); z-index: -1; animation: floatUp 5s ease-in-out infinite alternate;
}
.hero-title {
    font-size: 4.5rem; line-height: 1.1; font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #aee2ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 20px; animation: floatUp 1s ease-out;
}
.hero-subtitle {
    font-size: 1.2rem; color: var(--text-muted); max-width: 600px; animation: floatUp 1s ease-out 0.2s backwards;
}

.grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px; padding: 0 40px;
    animation: floatUp 1s ease-out 0.4s backwards; margin-bottom: 60px;
}

.glass-card {
    background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: 20px;
    overflow: hidden; transition: 0.3s; backdrop-filter: blur(10px); position: relative;
}
.glass-card:hover { transform: translateY(-5px) scale(1.02); border-color: var(--ice-blue); box-shadow: 0 10px 40px rgba(0, 242, 255, 0.15); }
.glass-card img { width: 100%; height: 220px; object-fit: cover; opacity: 0.9; transition: 0.3s; }
.glass-card:hover img { opacity: 1; }
.card-content { padding: 15px; }
.artist-role { font-size: 0.7rem; color: var(--ice-blue); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.card-title { font-weight: bold; font-size: 1.1rem; }

.fixed-player {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 700px;
    background: rgba(10, 25, 40, 0.85); backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 50px;
    padding: 12px 25px; display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6); z-index: 999;
}
.play-btn {
    width: 45px; height: 45px; background: var(--ice-blue); color: #000;
    border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 0 20px rgba(174, 226, 255, 0.5); transition: 0.2s;
}
.play-btn:hover { transform: scale(1.1); background: white; }

.desktop-footer {
    margin-top: auto; width: 100%; padding: 50px 20px 30px; background: #050b14;
    border-top: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.7);
    text-align: center; position: relative; z-index: 10;
}
.desktop-footer::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--ice-blue), transparent);
    box-shadow: 0 0 15px var(--ice-blue); opacity: 0.7;
}
.footer-socials { display: flex; justify-content: center; gap: 30px; margin-bottom: 25px; }
.social-link {
    width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass); display: flex; align-items: center; justify-content: center;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); color: var(--text-muted); font-size: 1.5rem;
}
.social-link:hover { color: white; transform: translateY(-5px) scale(1.1); border-color: white; }
.social-link.tg:hover { background: rgba(42, 171, 238, 0.15); box-shadow: 0 0 20px rgba(42, 171, 238, 0.5); }
.social-link.inst:hover { background: rgba(225, 48, 108, 0.15); box-shadow: 0 0 20px rgba(225, 48, 108, 0.5); }
.social-link.tt:hover { background: rgba(0, 242, 234, 0.15); box-shadow: 0 0 20px rgba(0, 242, 234, 0.5); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; letter-spacing: 2px; opacity: 0.6; text-transform: uppercase; font-family: var(--font-head); }

/* ==========================================================================
   6. AUTH PAGES (LOGIN / REGISTER)
   ========================================================================== */
.auth-container {
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

.auth-box {
    width: 100%; max-width: 450px;
    background: rgba(5, 11, 20, 0.7); backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass); border-radius: 24px;
    padding: 40px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative; overflow: hidden;
}

.auth-box::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--ice-blue), transparent);
    box-shadow: 0 0 15px var(--ice-blue);
}

.auth-title {
    font-size: 2rem; text-align: center; margin-bottom: 30px; text-transform: uppercase;
}

/* INPUTS */
.input-group { position: relative; margin-bottom: 20px; }

.input-label {
    display: block; font-size: 0.8rem; margin-bottom: 8px;
    color: var(--text-muted); font-weight: 600; letter-spacing: 1px;
}

.ns-input {
    width: 100%; 
    padding: 15px; 
    height: 52px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: white; font-family: var(--font-main); font-size: 1rem;
    transition: 0.3s;
    padding-right: 50px;
}

#username { padding-right: 140px; }

.ns-input:focus {
    outline: none; border-color: var(--ice-blue);
    box-shadow: 0 0 15px rgba(174, 226, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.gen-btn {
    position: absolute; 
    right: 12px; 
    bottom: 11px; 
    top: auto;
    background: rgba(0, 242, 255, 0.1); color: var(--ice-blue);
    border: 1px solid var(--border-glass); padding: 6px 12px; border-radius: 8px;
    font-size: 0.7rem; cursor: pointer; text-transform: uppercase; font-weight: bold;
    z-index: 10; transition: 0.3s; height: 30px; display: flex; align-items: center;
}
.gen-btn:hover { background: var(--ice-blue); color: black; }

.input-status {
    position: absolute;
    right: 15px;
    bottom: 14px;
    font-size: 1.4rem;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}

.input-status.shifted { right: 115px; }

.status-ok { color: #39FF14; animation: popIn 0.3s; }
.status-error { color: #ff3366; animation: shake 0.3s; }

.form-error-msg {
    color: #ff3366; text-align: center; margin-bottom: 15px;
    font-size: 0.9rem; min-height: 20px;
}

.btn-primary {
    width: 100%; padding: 16px; border: none; border-radius: 12px;
    background: var(--ice-blue); color: #02040a; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
    transition: 0.3s; margin-top: 10px;
}
.btn-primary:hover { background: white; box-shadow: 0 0 20px var(--ice-blue); }
.btn-primary:disabled { background: #333; color: #666; cursor: not-allowed; box-shadow: none; }

.btn-google {
    width: 100%; padding: 14px; border: 1px solid var(--border-glass); border-radius: 12px;
    background: rgba(255,255,255,0.05); color: white;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer; transition: 0.3s; margin-bottom: 20px; font-weight: 600;
}
.btn-google:hover { background: rgba(255,255,255,0.1); }
.google-icon { width: 20px; height: 20px; }

.auth-divider { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin: 20px 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: rgba(255,255,255,0.1); }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }

.auth-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }
.auth-link { color: var(--ice-blue); font-weight: bold; }
.auth-link:hover { text-decoration: underline; text-shadow: 0 0 10px var(--neon-blue); }

/* ==========================================================================
   7. WELCOME MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(15px);
    z-index: 2000; display: none;
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.5s ease;
}

.modal-content {
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.9), rgba(5, 10, 20, 0.95));
    border: 1px solid var(--ice-blue); border-radius: 30px;
    padding: 50px; text-align: center; max-width: 500px; width: 90%;
    transform: scale(0.8); transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 50px rgba(174, 226, 255, 0.2);
    position: relative; overflow: hidden;
}

.modal-content::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 60%);
    animation: rotateLight 10s linear infinite; pointer-events: none;
}

.modal-icon { font-size: 4rem; color: var(--ice-blue); margin-bottom: 20px; text-shadow: 0 0 20px var(--neon-blue); }
.modal-title { font-size: 2rem; margin-bottom: 15px; color: white; text-transform: uppercase; }
.modal-text { color: var(--text-muted); font-size: 1rem; margin-bottom: 30px; line-height: 1.6; }

.modal-btn {
    background: var(--ice-blue); color: black; border: none; padding: 15px 40px;
    font-size: 1rem; font-weight: bold; border-radius: 50px; cursor: pointer;
    text-transform: uppercase; letter-spacing: 2px; transition: 0.3s;
    box-shadow: 0 0 20px rgba(174, 226, 255, 0.4);
}
.modal-btn:hover { transform: scale(1.05); background: white; }

.modal-overlay.active { display: flex; opacity: 1; }
.modal-overlay.active .modal-content { transform: scale(1); }

/* ==========================================================================
   8. PROFILE & SETTINGS
   ========================================================================== */
.profile-header {
    display: flex; align-items: flex-end; gap: 30px; padding: 40px;
    background: linear-gradient(to bottom, rgba(26, 42, 64, 0.5), transparent);
    animation: floatUp 0.5s ease-out;
}

.profile-avatar-large {
    width: 200px; height: 200px;
    border-radius: 50%; object-fit: cover;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border: 4px solid var(--bg-deep);
    background: var(--bg-deep);
}

.default-avatar {
    width: 100%; height: 100%; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem; font-weight: bold; color: white;
    text-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.profile-info h1 { font-size: 4rem; margin: 10px 0; line-height: 1; text-transform: uppercase; }
.profile-meta { color: var(--text-muted); font-size: 0.9rem; display: flex; gap: 10px; align-items: center; }

.settings-btn {
    background: transparent; border: 1px solid var(--text-muted); color: white;
    padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; cursor: pointer; transition: 0.3s;
    text-transform: uppercase; font-weight: bold; text-decoration: none; display: inline-block;
}
.settings-btn:hover { border-color: var(--ice-blue); color: var(--ice-blue); transform: scale(1.05); }

.section-header {
    padding: 0 40px; margin-top: 30px; margin-bottom: 20px;
    font-size: 1.5rem; font-weight: bold; border-bottom: 1px solid var(--border-glass); padding-bottom: 10px;
    font-family: var(--font-head);
}

/* Table */
.track-table { width: 100%; border-collapse: collapse; padding: 0 40px; display: table; }
.track-row { 
    display: flex; align-items: center; padding: 10px 40px; 
    border-radius: 10px; transition: 0.2s; cursor: pointer; border: 1px solid transparent;
}
.track-row:hover { background: rgba(255,255,255,0.05); border-color: var(--border-glass); }
.track-num { width: 40px; color: var(--text-muted); text-align: center; font-family: monospace; }
.track-main { flex: 1; display: flex; flex-direction: column; }
.t-title { font-weight: bold; font-size: 1rem; color: white; }
.t-artist { font-size: 0.8rem; color: var(--text-muted); }
.track-album { width: 30%; color: var(--text-muted); font-size: 0.9rem; }
.track-dur { width: 60px; text-align: right; color: var(--text-muted); font-size: 0.9rem; }

/* Settings Page Grid */
.settings-page { max-width: 1200px; margin: 40px auto; padding: 0 40px; animation: floatUp 0.5s ease-out; }
.settings-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.settings-top h1 { font-size: 2.5rem; margin: 0; }
.cancel-link { color: var(--text-muted); font-weight: bold; font-size: 0.9rem; }
.cancel-link:hover { color: white; text-decoration: underline; }

.settings-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }

.settings-card {
    background: rgba(10, 20, 35, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 24px; padding: 40px;
    backdrop-filter: blur(20px);
}

.card-header {
    font-family: var(--font-head); font-size: 1.2rem; color: var(--ice-blue);
    border-bottom: 1px solid var(--border-glass); padding-bottom: 15px; margin-bottom: 30px;
    display: flex; align-items: center; gap: 10px;
}

.avatar-uploader { display: flex; align-items: center; gap: 30px; }
.preview-box {
    width: 120px; height: 120px; border-radius: 50%;
    border: 2px dashed var(--border-glass); position: relative; overflow: hidden;
    background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center;
}
.preview-box img { width: 100%; height: 100%; object-fit: cover; }
.fallback-icon { font-size: 2rem; color: var(--text-muted); }

.upload-controls h3 { margin: 0 0 5px 0; font-size: 1.2rem; }
.upload-controls p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 15px; }

.file-input { display: none; }
.upload-btn-glow {
    display: inline-block; padding: 10px 25px;
    background: var(--ice-blue); color: black; font-weight: bold;
    border-radius: 50px; cursor: pointer; transition: 0.3s;
    font-size: 0.8rem; letter-spacing: 1px;
}
.upload-btn-glow:hover { box-shadow: 0 0 20px var(--ice-blue); transform: translateY(-2px); }

.remove-btn {
    display: inline-block; margin-top: 15px;
    background: transparent; color: #ff3366;
    border: 1px solid rgba(255, 51, 102, 0.3);
    padding: 8px 20px; border-radius: 50px;
    font-size: 0.75rem; font-weight: bold; cursor: pointer;
    transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;
}
.remove-btn:hover {
    background: rgba(255, 51, 102, 0.1); border-color: #ff3366;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.2);
}

.row-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.logout-btn {
    display: block; width: 100%; text-align: center;
    padding: 15px; border: 1px solid #ff3366; color: #ff3366;
    border-radius: 12px; font-weight: bold; transition: 0.3s;
    background: rgba(255, 51, 102, 0.05);
}
.logout-btn:hover { background: #ff3366; color: white; box-shadow: 0 0 20px rgba(255, 51, 102, 0.4); }

/* Toast */
.toast-notification {
    position: fixed; bottom: 30px; right: 30px;
    background: rgba(5, 15, 30, 0.95); border: 1px solid var(--ice-blue);
    padding: 20px 30px; border-radius: 16px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 9999;
    transform: translateY(100px); opacity: 0; pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.toast-notification.show { transform: translateY(0); opacity: 1; }
.toast-icon i { font-size: 1.5rem; }
.toast-msg { font-weight: bold; font-size: 1rem; }


/* ==========================================================================
   9. PREMIUM ARTIST PROFILE STYLES (RESTORED & FIXED)
   ========================================================================== */
/* 1. HERO SECTION */
.artist-hero-modern {
    position: relative;
    min-height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 20px;
    margin-bottom: 0;
}

.hero-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: blur(80px) brightness(0.4);
    z-index: 0;
    transform: scale(1.1);
}

.hero-gradient-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, var(--bg-dark) 5%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative; z-index: 10;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-avatar {
    width: 280px; height: 280px;
    border-radius: 50%;
    margin: 0 auto 30px;
    position: relative;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.hero-avatar img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.hero-name {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: var(--font-head);
    background: -webkit-linear-gradient(#fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-genre-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Play & Share Buttons (RESTORED STYLE) */
.btn-play-hero {
    background: var(--ice-blue); color: black; border: none;
    padding: 15px 40px; border-radius: 50px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px;
    transition: 0.3s; box-shadow: 0 0 20px rgba(174, 226, 255, 0.3);
}
.btn-play-hero:hover { transform: scale(1.05); background: white; }

/* 2. BIO SECTION (UPDATED - PERFECT ALIGNMENT) */
.content-wrapper {
    max-width: 1000px;
    margin: -50px auto 0; /* ИСПРАВЛЕНО: Опустили блок ниже (было -100px) */
    position: relative;
    z-index: 20;
    padding: 0 20px 100px;
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Слева текст, справа треки */
    gap: 60px;
}

/* Стилизация HTML из админки */
.bio-styled {
    /* Стеклянный фон с градиентом */
    background: linear-gradient(180deg, rgba(20, 20, 25, 0.8) 0%, rgba(20, 20, 25, 0.4) 100%);
    backdrop-filter: blur(20px);
    
    /* Границы */
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid var(--accent); /* Твоя цветная полоска */
    
    /* Свечение от полоски внутрь блока */
    box-shadow: inset 10px 0 30px -10px var(--accent-dim, rgba(0,0,0,0)); 
    
    /* Отступы - САМОЕ ВАЖНОЕ для выравнивания */
    padding: 40px; 
    
    /* Скругление (кроме левого края, чтобы полоска была строгой) */
    border-radius: 0 20px 20px 0; 
    
    /* Текст */
    color: #e0e0e0;
    font-size: 1.05rem;
    line-height: 1.8; /* Делает текст воздушным и ровным */
    text-align: left; /* Ровный край слева */
    
    /* Чтобы блок растягивался корректно */
    height: auto;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 40px;
    overflow: hidden; /* Чтобы ничего не вылезало */
    word-wrap: break-word; /* Чтобы длинные слова не ломали верстку */
}

/* Заголовки в тексте (h1, h2, h3) */
.bio-styled h1, .bio-styled h2, .bio-styled h3 {
    color: white;
    font-family: var(--font-head);
    text-transform: uppercase;
    margin-top: 30px; margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 1px;
}
.bio-styled h1 { font-size: 2rem; color: var(--accent); }
.bio-styled h2 { font-size: 1.5rem; border-left: 4px solid var(--accent); padding-left: 15px; }

/* Цитаты в тексте */
.bio-styled blockquote {
    border-left: 2px solid var(--accent);
    margin: 20px 0;
    padding: 20px 30px;
    background: rgba(0, 242, 255, 0.05);
    font-style: italic;
    color: white;
    font-size: 1.2rem;
}

/* Жирный текст */
.bio-styled b, .bio-styled strong { color: white; font-weight: 700; }

/* 3. TRACKS SECTION (SCROLLABLE ON DESKTOP) */
.tracks-sidebar h3 {
    font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 20px; color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    margin-top: 30px; /* ИСПРАВЛЕНО: Добавили отступ сверху для заголовка */
}

/* Контейнер для скролла треков на ПК */
.tracks-scroll-area {
    max-height: 700px; /* Высота под био примерно */
    overflow-y: auto; /* Включаем скролл внутри */
    padding-right: 10px; /* Место под скроллбар */
}

/* Кастомный скролл именно для треклиста */
.tracks-scroll-area::-webkit-scrollbar { width: 5px; }
.tracks-scroll-area::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; }
.tracks-scroll-area::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.modern-track-row {
    display: flex; align-items: center; gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    margin-bottom: 10px;
    transition: 0.2s;
    cursor: pointer;
}
.modern-track-row:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(5px);
    border-color: rgba(255,255,255,0.1);
}
.mt-img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }
.mt-info { flex: 1; }
.mt-title { font-weight: 700; color: white; font-size: 1rem; }
.mt-album { font-size: 0.8rem; color: var(--text-muted); }
.mt-dur { font-size: 0.8rem; font-family: monospace; color: var(--text-muted); }

/* ==========================================================================
   10. ULTIMATE ROSTER PAGE
   ========================================================================== */
.roster-header {
    padding: 120px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.roster-title {
    font-size: 8rem; 
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,0.2);
    position: relative;
    z-index: 2;
    letter-spacing: -5px;
    font-family: var(--font-head);
    transition: 0.5s;
    word-break: break-word;
}
.roster-title:hover {
    color: white;
    text-shadow: 0 0 50px rgba(255,255,255,0.5);
}

.roster-subtitle {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

/* ROSTER GRID */
.roster-grid {
    display: grid;
    /* НА ПК: Ровно 3 колонки */
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 40px 100px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ROSTER CARD */
.roster-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    background: #000;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.rc-image-box {
    width: 100%; height: 100%;
    position: absolute; top: 0; left: 0; z-index: 0;
}
.rc-image-box img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    filter: grayscale(100%) brightness(0.8);
}

.rc-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 50%);
    z-index: 1; opacity: 0.8; transition: 0.5s;
}

.rc-info {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 30px; z-index: 2;
    transform: translateY(20px); transition: 0.5s;
}

.rc-genre {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent); margin-bottom: 10px;
    opacity: 0; transform: translateY(10px); transition: 0.5s 0.1s; font-weight: bold;
}

.rc-name {
    font-size: 2.5rem; font-weight: 800; text-transform: uppercase;
    line-height: 0.9; color: white; font-family: var(--font-head);
}

.rc-line {
    width: 0%; height: 4px; background: var(--accent);
    margin-top: 15px; transition: width 0.5s ease; box-shadow: 0 0 15px var(--accent);
}

/* Hover Effects */
.roster-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(0,0,0,0.6); border-color: rgba(255,255,255,0.3); }
.roster-card:hover .rc-image-box img { transform: scale(1.15); filter: grayscale(0%) brightness(1.1); }
.roster-card:hover .rc-info { transform: translateY(0); }
.roster-card:hover .rc-genre { opacity: 1; transform: translateY(0); }
.roster-card:hover .rc-line { width: 100%; }


/* ==========================================================================
   11. STATS & EXTRAS (Added back)
   ========================================================================== */
/* Track Plays Stat */
.track-plays {
    font-size: 0.85rem; color: var(--text-muted);
    font-variant-numeric: tabular-nums; margin-right: 15px;
    opacity: 0.7; min-width: 60px; text-align: right;
}

/* Hero Stats Badge */
.hero-stats {
    margin-top: 15px; font-size: 1rem; color: white; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; background: rgba(0,0,0,0.3); border-radius: 50px;
    backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.1);
}

/* Profile Actions (Logout Button) */
.profile-actions { display: flex; align-items: center; gap: 15px; margin-left: 20px; }
.btn-logout-icon {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(255, 51, 102, 0.4); color: #ff3366; background: rgba(255, 51, 102, 0.05);
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s; font-size: 1.2rem; text-decoration: none;
}
.btn-logout-icon:hover {
    background: #ff3366; color: white; box-shadow: 0 0 20px rgba(255, 51, 102, 0.5); transform: scale(1.1); border-color: #ff3366;
}
.btn-discover {
    display: inline-block; margin-top: 15px; padding: 10px 25px;
    border: 1px solid var(--ice-blue); color: var(--ice-blue); border-radius: 50px;
    font-weight: bold; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
}
.btn-discover:hover { background: var(--ice-blue); color: black; box-shadow: 0 0 20px rgba(174, 226, 255, 0.4); }


/* ==========================================================================
   12. MOBILE RESPONSIVE (CONSOLIDATED & FIXED)
   ========================================================================== */
@media (max-width: 1200px) {
    /* Tablet Grid */
    .roster-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .settings-grid { grid-template-columns: 1fr; }
    .settings-page { padding: 0 20px; }
    .row-inputs { grid-template-columns: 1fr; }
    .avatar-uploader { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    body { display: block; overflow-x: hidden; }
    .main-wrapper { margin-left: 0; width: 100%; min-height: auto; padding-bottom: 160px; }
    header { display: flex; }
    
    /* Sidebar Mobile */
    .sidebar {
        top: auto; bottom: 0; left: 0; width: 100%; height: 75px;
        flex-direction: row; padding: 0; border-right: none; border-top: 1px solid var(--border-glass);
        background: rgba(2, 4, 10, 0.95); justify-content: space-around; align-items: center;
    }
    .sidebar-logo { display: none; }
    .nav-menu { flex-direction: row; width: 100%; justify-content: space-around; gap: 0; }
    .nav-item { flex-direction: column; gap: 4px; font-size: 0.65rem; padding: 5px; border-radius: 0; border: none; flex: 1; justify-content: center; }
    .nav-item i { font-size: 1.4rem; }
    .nav-item.active { background: transparent; color: var(--ice-blue); border-top: 2px solid var(--ice-blue); border-left: none; box-shadow: none; }

    /* Home */
    .hero-animated { min-height: 50vh; padding: 40px 20px; align-items: flex-start; }
    .hero-title { font-size: 2.8rem; }
    .grid { padding: 0 20px; gap: 15px; grid-template-columns: repeat(2, 1fr); margin-bottom: 0; }
    .glass-card img { height: 150px; }
    .desktop-footer { display: none !important; }

    /* Profile Mobile */
    .profile-header { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
    .profile-avatar-large { width: 150px; height: 150px; }
    .profile-info h1 { font-size: 2.5rem; }
    .track-album { display: none; }
    .track-row { padding: 10px 20px; }
    .profile-meta { flex-direction: column; gap: 20px; }
    .profile-actions { margin-left: 0; justify-content: center; }
    .avatar-edit { flex-direction: column; text-align: center; }

    /* Modals Mobile */
    .modal-content { padding: 30px 20px !important; width: 85% !important; max-width: 350px !important; border-radius: 20px !important; }
    .modal-icon { font-size: 2.5rem !important; margin-bottom: 10px !important; }
    .modal-title { font-size: 1.3rem !important; margin-bottom: 10px !important; }
    .modal-text { font-size: 0.9rem !important; margin-bottom: 20px !important; line-height: 1.4 !important; }
    .modal-content div[style*="display:flex"] { gap: 10px !important; }
    .modal-btn { padding: 10px 0 !important; font-size: 0.8rem !important; flex: 1; border-radius: 12px !important; }

    /* Roster Page Mobile */
    .roster-header { padding: 80px 15px 40px; }
    .roster-title { font-size: 3.5rem; line-height: 1; letter-spacing: -2px; -webkit-text-stroke: 1px rgba(255,255,255,0.3); }
    .roster-subtitle { font-size: 0.8rem; letter-spacing: 3px; margin-top: 15px; white-space: nowrap; }
    .roster-grid { grid-template-columns: 1fr; padding: 0 20px 60px; gap: 30px; }
    /* Mobile Roster Cards */
    .rc-image-box img { filter: grayscale(0%); }
    .rc-info { transform: translateY(0); padding: 20px; }
    .rc-genre { opacity: 1; transform: translateY(0); }
    .rc-name { font-size: 2rem; }
    .rc-line { width: 40px; }

    /* Artist Page Mobile */
    .artist-hero-modern { min-height: auto; padding: 100px 20px 40px; align-items: flex-start; }
    .hero-content { width: 100%; display: flex; flex-direction: column; align-items: center; }
    .hero-avatar { width: 160px; height: 160px; margin-bottom: 20px; border-width: 3px; }
    .hero-name { font-size: 2.5rem; margin-bottom: 10px; line-height: 1.1; }
    .hero-btns { display: flex; flex-direction: column; width: 100%; gap: 10px !important; margin-top: 25px !important; }
    .btn-play-hero { width: 100%; justify-content: center; padding: 18px 0; font-size: 1rem; }
    .mt-album { display: none; }
    .mt-dur { font-size: 0.75rem; }
    .modern-track-row { padding: 12px; }
    
    /* Bio Mobile Fix */
    .content-wrapper { padding: 0 15px 40px; display: block; margin-top: 0; }
    .bio-styled { padding: 25px 20px; font-size: 0.95rem; line-height: 1.6; border-radius: 15px; border-left-width: 3px; }
    .pro-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 0 20px 40px; }
    .pro-card-name { font-size: 0.9rem; }
    .pro-card-genre { font-size: 0.6rem; }
    .pro-card-overlay { padding: 12px; }
    
    /* Track Scroll Mobile Fix */
    .tracks-scroll-area { max-height: none; overflow-y: visible; padding-right: 0; }
}
/* --- ULTIMATE ICE NEON SCROLLBAR --- */

/* 1. Основа (Дорожка) */
::-webkit-scrollbar {
    width: 6px;               /* Очень тонкий */
    height: 6px;              /* Для горизонтального скролла */
    background: #02040a;      /* Фон сливается с сайтом (Deep BG) */
}

/* 2. Ползунок (Ледяной) */
::-webkit-scrollbar-thumb {
    background: #aee2ff;      /* Ледяной голубой (Ice Blue) */
    border-radius: 10px;      /* Полностью круглый */
    box-shadow: 0 0 5px rgba(174, 226, 255, 0.5); /* Легкое свечение */
    border: 1px solid transparent; /* Чтобы не слипался */
    background-clip: content-box;
}

/* 3. Ползунок при наведении (Яркий Неон) */
::-webkit-scrollbar-thumb:hover {
    background: #00f2ff;      /* Яркий неон */
    box-shadow: 0 0 15px #00f2ff; /* Сильное свечение */
}

/* 4. Фон дорожки */
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02); /* Еле заметная прозрачная полоска */
    border-radius: 10px;
}

/* 5. Уголок */
::-webkit-scrollbar-corner {
    background: #02040a;
}
/* --- HOME PAGE PREMIUM STYLES --- */

/* 1. HOME HERO (Блок с лозунгом) */
.home-hero {
    position: relative;
    padding: 100px 40px;
    background: radial-gradient(circle at top right, rgba(0, 242, 255, 0.15), transparent 60%),
                linear-gradient(to bottom, #02040a, #0a1525);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50vh;
}

.label-badge {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--ice-blue);
    color: var(--ice-blue);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: floatUp 0.8s ease-out;
}

.home-title {
    font-size: 5rem;
    line-height: 0.9;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    margin-bottom: 20px;
    max-width: 900px;
    animation: floatUp 0.8s ease-out 0.1s backwards;
}

.home-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
    animation: floatUp 0.8s ease-out 0.2s backwards;
}

/* 2. SECTION HEADERS & TOGGLES */
.section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.sec-title {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    font-family: var(--font-head);
    margin: 0;
}

.time-toggles {
    display: flex;
    gap: 5px;
    background: rgba(255,255,255,0.05);
    padding: 4px;
    border-radius: 30px;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-btn.active {
    background: var(--ice-blue);
    color: black;
    box-shadow: 0 0 15px rgba(174, 226, 255, 0.3);
}

/* 3. CHART ROW (Топ треки с номерами) */
.chart-grid {
    padding: 0 40px 60px;
    display: grid;
    grid-template-columns: 1fr; /* Список вниз */
    gap: 10px;
}

.chart-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    transition: 0.3s;
    border: 1px solid transparent;
    cursor: pointer;
}

.chart-row:hover {
    background: rgba(255,255,255,0.08);
    transform: scale(1.01);
    border-color: rgba(255,255,255,0.1);
}

.rank-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.1);
    width: 40px;
    margin-right: 20px;
    font-family: var(--font-head);
}
.chart-row:nth-child(1) .rank-num { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.2); }
.chart-row:nth-child(2) .rank-num { color: #c0c0c0; }
.chart-row:nth-child(3) .rank-num { color: #cd7f32; }

/* 4. NEW RELEASES GRID (Квадратные карточки) */
.release-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 40px 80px;
}

.release-card {
    background: #050b14;
    border-radius: 16px;
    padding: 20px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.release-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-10px);
    border-color: var(--ice-blue);
}

.rel-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.rel-title { color: white; font-weight: bold; margin-bottom: 5px; font-size: 1.1rem; }
.rel-artist { color: var(--text-muted); font-size: 0.9rem; }

/* MOBILE */
@media (max-width: 768px) {
    .home-hero { padding: 80px 20px 40px; min-height: auto; }
    .home-title { font-size: 2.8rem; }
    .section-top { flex-direction: column; align-items: flex-start; gap: 15px; padding: 0 20px; }
    .chart-grid { padding: 0 20px 40px; }
    .release-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 0 20px 60px; }
    .rel-title { font-size: 0.9rem; }
    .rank-num { font-size: 1.2rem; width: 30px; margin-right: 10px; }
}
/* --- PREMIUM HOME PAGE STYLES (WOW EFFECT) --- */

/* 1. HERO SECTION (Анимированный фон) */
.home-hero {
    position: relative;
    padding: 120px 40px 80px;
    background: radial-gradient(circle at 80% 20%, rgba(0, 242, 255, 0.15), transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(0, 100, 255, 0.1), transparent 50%),
                linear-gradient(to bottom, #02040a, #050b14);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Бегущая строка (North Snov Label) на фоне */
.home-hero::before {
    content: 'NORTH SNOV NORTH SNOV NORTH SNOV';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg) scale(1.5);
    font-size: 10vw;
    font-weight: 900;
    color: rgba(255,255,255,0.015);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    font-family: var(--font-head);
}

.home-content-inner {
    position: relative; z-index: 2;
    animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.label-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--ice-blue);
    background: rgba(0, 242, 255, 0.05);
    color: var(--ice-blue);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.home-title {
    font-size: 5.5rem;
    line-height: 0.9;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    margin-bottom: 25px;
    max-width: 1000px;
    letter-spacing: -2px;
}

.home-title span {
    background: linear-gradient(to right, #fff, var(--ice-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

/* 2. CHART SECTION (Стеклянный список) */
.section-top {
    display: flex; justify-content: space-between; align-items: flex-end;
    padding: 0 40px; margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px;
}

.sec-title {
    font-size: 2.5rem; font-weight: 800; text-transform: uppercase;
    color: white; font-family: var(--font-head); margin: 0;
    letter-spacing: -1px;
}

.chart-grid {
    padding: 0 40px 80px;
    display: grid; grid-template-columns: 1fr; gap: 12px;
}

.chart-row {
    display: flex; align-items: center;
    padding: 15px 25px;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    position: relative; overflow: hidden;
}

.chart-row:hover {
    background: rgba(255,255,255,0.08);
    transform: scale(1.01) translateX(10px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.chart-row img {
    width: 55px; height: 55px;
    border-radius: 10px; /* Квадрат с скруглением для лого */
    object-fit: cover;
    margin-right: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
}
.chart-row:hover img { transform: scale(1.1); }

.rank-num {
    font-size: 1.5rem; font-weight: 900;
    color: rgba(255,255,255,0.1); width: 40px; margin-right: 15px;
    font-family: var(--font-head);
    font-variant-numeric: tabular-nums;
}
/* Цвета медалей */
.chart-row:nth-child(1) .rank-num { color: #FFD700; text-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
.chart-row:nth-child(2) .rank-num { color: #C0C0C0; text-shadow: 0 0 10px rgba(192, 192, 192, 0.3); }
.chart-row:nth-child(3) .rank-num { color: #CD7F32; text-shadow: 0 0 10px rgba(205, 127, 50, 0.3); }

/* 3. FRESH DROPS (Карточки релизов) */
.release-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    padding: 0 40px 100px;
}

.release-card {
    background: linear-gradient(180deg, rgba(20,20,30,0.5), rgba(10,10,15,0.8));
    border-radius: 20px;
    padding: 15px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    group: hover;
}

.release-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 242, 255, 0.1);
    border-color: var(--ice-blue);
}

.rel-img-box {
    position: relative;
    width: 100%; aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.rel-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.release-card:hover .rel-img { transform: scale(1.1); filter: brightness(0.6); }

/* Кнопка Play при наведении */
.rel-play-overlay {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 50px; height: 50px;
    background: var(--ice-blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: black; font-size: 1.5rem;
    opacity: 0; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px var(--ice-blue);
}
.release-card:hover .rel-play-overlay { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.rel-title { color: white; font-weight: 800; margin-bottom: 5px; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-artist { color: var(--text-muted); font-size: 0.85rem; display: flex; align-items: center; gap: 5px; }
.rel-artist i { color: var(--ice-blue); font-size: 0.8rem; }

/* MOBILE */
@media (max-width: 768px) {
    .home-hero { padding: 100px 20px 60px; min-height: auto; align-items: flex-start; }
    .home-title { font-size: 3rem; }
    .section-top { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 20px; }
    .chart-grid { padding: 0 20px 60px; }
    .release-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 0 20px 80px; }
    .rel-title { font-size: 0.9rem; }
    .rel-artist { font-size: 0.7rem; }
    .rank-num { font-size: 1.2rem; margin-right: 10px; width: 25px; }
    .chart-row { padding: 12px; }
    .chart-row img { width: 45px; height: 45px; margin-right: 15px; }
}
/* --- MOBILE FIXES (FINAL POLISH) --- */

@media (max-width: 768px) {
    
    /* 1. ИСПРАВЛЕНИЕ СПИСКА ТРЕКОВ (TRENDING) */
    .chart-row {
        padding: 12px 10px; /* Меньше отступы по краям */
        gap: 10px; /* Аккуратный отступ между элементами */
    }

    /* Номер места (1, 2, 3) */
    .rank-num {
        font-size: 1rem !important; /* Чуть меньше */
        width: 20px !important;
        margin-right: 5px !important; /* Прижимаем к картинке */
    }

    /* Картинка трека */
    .chart-row img {
        width: 45px !important; 
        height: 45px !important;
        margin-right: 10px !important;
        flex-shrink: 0; /* Чтобы картинку не сплющило */
    }

    /* Текстовый блок (Название + Артист) */
    .chart-row > div:nth-child(3) {
        flex: 1; /* Забирает все свободное место */
        min-width: 0; /* ВАЖНО: разрешает тексту сжиматься */
        margin-right: 10px; /* Отступ от времени */
    }

    /* СКРЫВАЕМ ПРОСЛУШИВАНИЯ НА ТЕЛЕФОНЕ (как в Spotify) */
    /* Иначе текст названия всегда будет обрезаться */
    .track-plays {
        display: none !important;
    }

    /* Время трека */
    .chart-row div[style*="monospace"] {
        font-size: 0.75rem !important;
        opacity: 0.6;
    }

    /* 2. ИСПРАВЛЕНИЕ ЗАГОЛОВКА ГЛАВНОЙ (HERO) */
    .home-title {
        font-size: 2.8rem !important; /* Уменьшаем, чтобы влезало */
        word-wrap: break-word;
        line-height: 1.1;
    }
    
    .home-hero {
        padding-left: 20px;
        padding-right: 20px;
        overflow: hidden; /* Чтобы текст фона не расширял экран */
    }

    /* 3. КАРТОЧКИ РЕЛИЗОВ (FRESH DROPS) */
    .release-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Две колонки, а не одна */
        gap: 15px !important;
        padding: 0 15px 60px !important;
    }
    
    .release-card {
        padding: 10px !important;
    }
    
    .rel-title {
        font-size: 0.9rem !important;
    }
    
    .rel-artist {
        font-size: 0.7rem !important;
    }
}
/* --- UI UPDATES & SIDEBAR FIXES --- */

/* Скрывать элементы на мобильном (для кнопки TOP 100 в меню) */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Красивая кнопка "Показать всё" для разделов */
.view-all-btn {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 30px;
    transition: 0.3s;
    background: transparent;
    display: inline-flex; align-items: center; gap: 5px;
}
.view-all-btn:hover {
    color: white;
    border-color: var(--ice-blue);
    background: rgba(0, 242, 255, 0.05);
    transform: translateX(5px);
}
/* --- UNIVERSAL TRACK ROW (SPOTIFY STYLE) --- */

/* Контейнер трека */
.modern-track-row, .chart-row {
    display: flex;
    align-items: center;
    padding: 12px 15px; /* Компактные отступы */
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
    gap: 15px; /* Отступ между элементами */
}

.modern-track-row:hover, .chart-row:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
}

/* Номер (Rank) */
.rank-num {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 25px;
    text-align: center;
    flex-shrink: 0;
}

/* Картинка */
.mt-img, .chart-row img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 6px !important;
    object-fit: cover;
    flex-shrink: 0;
    margin: 0 !important; /* Убираем старые отступы */
}

/* Блок с Информацией (Название + Подпись) */
.mt-info {
    flex: 1; /* Занимает все место */
    min-width: 0; /* Разрешает тексту сжиматься */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

/* Название трека */
.mt-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Нижняя строка (Артист + Статистика) */
.mt-sub {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Разделитель (точка) */
.mt-sep {
    margin: 0 6px;
    opacity: 0.5;
    font-size: 0.6rem;
}

/* Счетчик прослушиваний (Маленький и стильный) */
.mt-plays-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.mt-plays-inline i {
    font-size: 0.8rem;
    color: var(--accent); /* Цвет акцента (голубой) */
}

/* Время (справа) */
.mt-dur {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Скрываем старый отдельный блок прослушиваний, если он остался */
.track-plays {
    display: none !important;
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .modern-track-row, .chart-row {
        padding: 10px;
        gap: 10px;
    }
    .mt-img, .chart-row img {
        width: 42px !important;
        height: 42px !important;
    }
    .mt-title { font-size: 0.95rem; }
    .mt-sub { font-size: 0.75rem; }
    .rank-num { font-size: 0.9rem; width: 20px; }
}
/* --- HIDE SCROLLBAR ON MOBILE (Clean Look) --- */
@media (max-width: 768px) {
    /* Скрываем для Chrome, Safari и Opera */
    *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
        -webkit-appearance: none !important;
    }

    /* Скрываем для Firefox и IE/Edge */
    * {
        scrollbar-width: none !important;       /* Firefox */
        -ms-overflow-style: none !important;    /* IE 10+ */
    }
}
/* --- HERO STATS & TOGGLES --- */

.hero-stats-panel {
    margin-top: 40px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px 40px;
    border-radius: 24px;
    animation: floatUp 0.8s ease-out 0.3s backwards;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.stat-number-box {
    text-align: center;
    margin-bottom: 20px;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    font-family: var(--font-head);
    font-variant-numeric: tabular-nums; /* Чтобы цифры не прыгали при анимации */
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
    background: linear-gradient(to bottom, #fff, var(--ice-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 5px;
}

/* Переключатели времени */
.hero-toggles {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
}

.ht-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 20px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    border-radius: 40px;
    transition: 0.3s;
    text-transform: uppercase;
}

.ht-btn:hover { color: white; }

.ht-btn.active {
    background: var(--ice-blue);
    color: black;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .stat-value { font-size: 2.5rem; }
    .hero-stats-panel { padding: 20px; width: 100%; }
    .hero-toggles { width: 100%; justify-content: space-between; }
    .ht-btn { padding: 8px 10px; font-size: 0.65rem; }
}
/* Плавное переключение меню */
.nav-item {
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-item.active {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-item i {
    transition: transform 0.2s ease;
}

.nav-item.active i {
    transform: scale(1.1);
}
