:root {
    --bg-space: #0c050a;
    --panel-bg: rgba(20, 8, 15, 0.7);
    --magenta: #ff1493;
    --magenta-glow: rgba(255, 20, 147, 0.5);
    --pink-light: #ff69b4;
    --pink-dark: #c71585;
    
    --text-main: #fdf0f5;
    --text-muted: #bda6b4;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --glass-border: rgba(255, 105, 180, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --nav-height: 75px;
    --player-height: 75px;
	--player-height-mov: 65px;
    --mobile-nav-height: 65px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-space);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html, body {
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    position: fixed;
}

h1, h2, h3, h4, h5 { font-family: var(--font-heading); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.glass-panel { 
    background: var(--panel-bg); 
    border: 1px solid var(--glass-border); 
    border-radius: 20px; 
    backdrop-filter: blur(10px); 
}

#splash {
    position: fixed;
    inset: 0;
    background: #0c050a;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    transition: opacity 0.6s ease;
}
#splash.fade-out {
    opacity: 0;
    pointer-events: none;
}
.splash-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(255,20,147,0.5);
    text-align: center;
    padding: 0 20px;
}
.splash-tagline {
    font-size: 16px;
    color: rgba(255,105,180,0.9);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    padding: 0 20px;
}
.splash-bar-wrap {
    width: clamp(120px, 40vw, 200px);
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}
.splash-bar {
    height: 100%;
    width: 45%;
    background: linear-gradient(90deg, transparent, #ff1493, #ff69b4, #ff1493, transparent);
    animation: splashBarSlide 1.4s ease-in-out infinite;
}
@keyframes splashBarSlide {
    0% { transform: translateX(-150%); }
    100% { transform: translateX(400%); }
}
.splash-loading {
    font-size: 16px;
    color: rgba(255,105,180,0.9);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: splashBlink 1.6s ease-in-out infinite;
}
@keyframes splashBlink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

#eclipse-background {
    position: fixed; 
    inset: 0; 
    z-index: -10;
    background: radial-gradient(circle at 50% 0%, #15000d 0%, var(--bg-space) 80%);
    overflow: hidden; 
}

.stars-layer {
    position: absolute; 
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 25px 35px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 75px 85px, var(--pink-light), transparent),
        radial-gradient(2px 2px at 120px 140px, var(--magenta), transparent),
        radial-gradient(4px 4px at 180px 210px, rgba(199, 21, 133, 0.1), transparent);
    background-repeat: repeat;
    background-size: 150px 150px, 250px 250px, 400px 400px, 600px 600px;
    opacity: 0;
    animation: starDrift 60s linear infinite, twinkle 6s ease-in-out infinite alternate, fadeInBackground 1s ease-out forwards;
}

.nebula-layer {
    position: absolute; 
    inset: -20%; 
    width: 140%; 
    height: 140%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(255, 20, 147, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(199, 21, 133, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 10% 10%, rgba(0, 255, 255, 0.03) 0%, transparent 30%);
    filter: blur(50px);
    mix-blend-mode: screen; 
    animation: nebulaMorph 25s ease-in-out infinite alternate;
}

#eclipse-background::before {
    content: '';
    position: absolute;
    top: 15%; 
    left: 85%;
    width: 60px; 
    height: 60px;
    border-radius: 50%;
    background: #000;
    box-shadow: inset 10px -10px 15px rgba(255, 105, 180, 0.3), 
                0 0 20px rgba(255, 105, 180, 0.2);
    opacity: 0.6;
    filter: blur(1px);
    z-index: 2;
    pointer-events: none;
    animation: fadeInBackground 1.5s ease-out forwards;
}

#eclipse-background::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; 
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, 
        transparent 0%, rgba(255, 20, 147, 0.02) 10%, 
        transparent 20%, rgba(138, 43, 226, 0.02) 30%, 
        transparent 40%);
    animation: rotateAurora 70s linear infinite;
    z-index: 1;
    pointer-events: none;
}


@keyframes fadeInBackground {
    to { opacity: 0.8; }
}

@keyframes starDrift {
    from { background-position: 0 0, 0 0, 0 0, 0 0; }
    to { background-position: -150px 150px, -250px 250px, -400px 400px, -600px 600px; }
}

@keyframes twinkle { 
    0% { opacity: 0.4; filter: blur(0px); } 
    100% { opacity: 0.8; filter: blur(0.5px); } 
}

@keyframes nebulaMorph {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(-2%, 2%) scale(1.05) rotate(2deg); }
    100% { transform: translate(2%, -2%) scale(0.98) rotate(-2deg); }
}

@keyframes rotateAurora {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.top-navbar {
    position: fixed; top: 0; width: 100%; height: var(--nav-height);
    background: rgba(12, 5, 10, 0.95); backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000; display: flex; align-items: center;
}

.nav-container {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}

.brand-identity { display: flex; align-items: center; gap: 10px; }
.brand-icon { color: var(--magenta); font-size: 1.5rem; filter: drop-shadow(0 0 10px var(--magenta-glow)); }
.brand-text { font-family: var(--font-heading); font-weight: 900; font-size: 1.2rem; letter-spacing: 2px; }

.brand-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.desktop-menu { display: flex; gap: 15px; }
.nav-btn {
    color: var(--text-muted); font-size: 0.9rem; font-weight: 600;
    padding: 8px 16px; border-radius: 8px; transition: var(--transition);
    display: flex; align-items: center; gap: 8px;
}
.nav-btn:hover { color: #fff; background: rgba(255, 105, 180, 0.1); }
.nav-btn.active { color: var(--pink-light); background: rgba(255, 20, 147, 0.15); border: 1px solid var(--glass-border); }
.chat-btn { border: 1px solid var(--magenta); color: var(--magenta); }
.chat-btn:hover { background: var(--magenta); color: #fff; box-shadow: 0 0 15px var(--magenta-glow); }

.app-core {
    padding-top: calc(var(--nav-height) + 20px);
    padding-bottom: calc(var(--player-height) + 40px);
    height: 100dvh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.app-core::-webkit-scrollbar {
    display: none;
}

.view-section { display: none; padding: 40px 20px; animation: sectionFade 0.4s ease forwards; }
.view-section.active-view { display: block; }

@keyframes sectionFade {
    from { opacity: 0; transform: scale(0.98) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.section-wrapper { max-width: 1000px; margin: 0 auto; }
.block-header { text-align: center; margin-bottom: 40px; }
.block-header h2 { font-size: 2.2rem; color: #fff; margin-bottom: 10px; text-shadow: 0 0 15px var(--magenta-glow); }
.block-header p { color: var(--text-muted); font-size: 1.1rem; }

.hero-container {
    display: flex; flex-direction: column; align-items: center; gap: 30px;
    max-width: 800px; margin: 0 auto; padding-top: 20px;
}

.eclipse-visualizer { 
    position: relative; width: 280px; height: 280px; 
    display: flex; justify-content: center; align-items: center; 
}

.solar-corona {
    position: absolute; 
    inset: -20px; 
    border-radius: 50%;
    background: radial-gradient(circle, var(--magenta-glow) 0%, transparent 70%);
    opacity: 0.4; 
    transition: var(--transition); 
    z-index: 1;
}

.solar-corona::before,
.solar-corona::after {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    border: 2px solid var(--magenta);
    opacity: 0;
    z-index: 0;
}

.lunar-disc {
    position: relative; width: 100%; height: 100%; border-radius: 50%;
    background: #000; border: 4px solid #111; 
    box-shadow: inset 0 0 30px #000, 0 0 20px rgba(0,0,0,0.8);
    overflow: hidden; z-index: 2; display: flex; justify-content: center; align-items: center;
}

.album-art { 
    width: 100%; height: 100%; object-fit: cover; 
    opacity: 0.6; mix-blend-mode: luminosity; transition: var(--transition); 
}
.vinyl-hole { 
    position: absolute; width: 30px; height: 30px; background: #000; 
    border: 2px solid #333; border-radius: 50%; z-index: 3; 
}

.lunar-disc.playing { animation: spinRecord 10s linear infinite; }
.lunar-disc.playing .album-art { opacity: 1; mix-blend-mode: normal; }
.lunar-disc.playing ~ .solar-corona { 
    opacity: 1; 
    animation: pulseNeonEdge 2s ease-in-out infinite alternate; 
}
.lunar-disc.playing ~ .solar-corona::before {
    animation: soundWaveOut 3s cubic-bezier(0.15, 0.45, 0.85, 0.15) infinite;
}
.lunar-disc.playing ~ .solar-corona::after {
    animation: soundWaveOut 3s cubic-bezier(0.15, 0.45, 0.85, 0.15) infinite;
    animation-delay: 1.5s; 
}

.badge-live {
    position: absolute; bottom: -15px; background: var(--bg-space); border: 1px solid var(--magenta);
    color: var(--pink-light); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold;
    z-index: 4; display: flex; align-items: center; gap: 8px; box-shadow: 0 0 10px var(--magenta-glow);
}
.badge-live i { animation: blinkLive 2s infinite; }

@keyframes spinRecord { to { transform: rotate(360deg); } }
@keyframes pulseNeonEdge { 
    0% { 
        transform: scale(1); 
        opacity: 0.6;
    }
    100% { 
        transform: scale(1.15); 
        opacity: 1;
    } 
}

@keyframes soundWaveOut {
    0% { 
        transform: scale(1); 
        opacity: 0.8; 
    }
    100% { 
        transform: scale(1.6); 
        opacity: 0; 
    }
}

@keyframes blinkLive { 
    0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--magenta); } 
    50% { opacity: 0.4; text-shadow: none; } 
}

.track-info-hero { text-align: center; z-index: 5; }
.glitch-text { font-size: 2.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 5px; text-shadow: 0 0 15px var(--magenta-glow); }
#hero-artist { color: var(--pink-light); font-size: 1.2rem; font-family: var(--font-body); font-weight: 400; }

.recent-tracks-panel { width: 100%; padding: 25px; margin-top: 20px; }
.history-title { font-size: 1.2rem; margin-bottom: 20px; border-bottom: 1px solid var(--glass-border); padding-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.history-title i { color: var(--magenta); }
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-empty { text-align: center; color: var(--text-muted); font-style: italic; padding: 15px; }

.history-item { 
    display: flex; align-items: center; gap: 15px; padding: 10px 15px; 
    background: rgba(255, 255, 255, 0.03); border-radius: 12px; 
    transition: var(--transition); border: 1px solid transparent;
}
.history-item:hover { background: rgba(255, 105, 180, 0.08); border-color: var(--glass-border); transform: translateX(5px); }
.history-cover { width: 45px; height: 45px; border-radius: 8px; object-fit: cover; border: 1px solid var(--pink-dark); }
.history-info { display: flex; flex-direction: column; overflow: hidden; white-space: nowrap; }
.history-title-text { font-weight: 700; color: #fff; text-overflow: ellipsis; overflow: hidden; font-family: var(--font-heading); }
.history-artist-text { font-size: 0.85rem; color: var(--pink-light); text-overflow: ellipsis; overflow: hidden; }

.day-selector { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.day-tab { padding: 10px 20px; border-radius: 10px; background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border); color: var(--text-muted); font-weight: bold; transition: var(--transition); }
.day-tab:hover { background: rgba(255, 105, 180, 0.1); color: #fff; }
.day-tab.active { background: var(--pink-dark); color: #fff; border-color: var(--pink-light); box-shadow: 0 0 15px var(--magenta-glow); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.schedule-card { 
    display: flex; align-items: center; gap: 20px; padding: 20px; 
    border-left: 4px solid var(--magenta); transition: var(--transition); 
}
.schedule-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 0 10px var(--magenta-glow); }
.schedule-dj-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pink-dark); flex-shrink: 0; box-shadow: 0 0 10px var(--magenta-glow); }
.schedule-info { display: flex; flex-direction: column; gap: 5px; }
.schedule-time { font-size: 0.85rem; color: var(--pink-light); font-weight: bold; background: rgba(255, 20, 147, 0.15); padding: 4px 10px; border-radius: 15px; width: fit-content; margin-bottom: 5px; }
.schedule-prog-title { font-family: var(--font-heading); font-size: 1.2rem; color: #fff; line-height: 1.2; }
.schedule-dj-name { font-size: 0.9rem; color: var(--text-muted); }
.schedule-dj-name b { color: #fff; }

.schedule-empty { text-align: center; padding: 40px; grid-column: 1 / -1; }
.schedule-empty-icon { font-size: 3rem; color: var(--text-muted); margin-bottom: 15px; opacity: 0.5; }
.schedule-error { text-align: center; color: var(--magenta); grid-column: 1 / -1; padding: 20px; }

.skeleton { background: linear-gradient(90deg, var(--panel-bg) 25%, rgba(255, 105, 180, 0.1) 50%, var(--panel-bg) 75%); background-size: 200% 100%; animation: loading 1.5s infinite; border-radius: 15px; min-height: 120px; }
@keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.staff-card { 
    padding: 30px 20px; text-align: center; display: flex; flex-direction: column; 
    align-items: center; gap: 15px; transition: var(--transition); 
}
.staff-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 15px var(--magenta-glow); border-color: var(--pink-light); }
.staff-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--magenta); box-shadow: 0 0 15px var(--magenta-glow); }
.staff-name { font-family: var(--font-heading); font-size: 1.5rem; color: #fff; text-shadow: 0 0 10px var(--magenta-glow); }

.staff-genres { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.genre-pill { background: rgba(255, 20, 147, 0.2); border: 1px solid var(--magenta); color: #fff; font-size: 0.75rem; padding: 4px 10px; border-radius: 20px; font-weight: bold; }

.staff-quote { font-style: italic; color: rgba(255,255,255,0.85); font-size: 0.95rem; border-left: 2px solid var(--pink-light); border-right: 2px solid var(--pink-light); padding: 0 10px; }

.staff-hobbies-section { width: 100%; margin-top: 10px; padding-top: 15px; border-top: 1px solid var(--glass-border); text-align: left; }
.hobbies-title { display: block; font-size: 0.75rem; color: var(--pink-light); margin-bottom: 10px; font-weight: bold; }
.staff-hobbies { display: flex; flex-wrap: wrap; gap: 6px; }
.hobby-pill { background: rgba(0,0,0,0.4); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-muted); font-size: 0.75rem; padding: 4px 8px; border-radius: 5px; }

.staff-socials { display: flex; justify-content: center; gap: 20px; margin-top: 15px; width: 100%; }
.social-link { color: var(--text-muted); font-size: 1.4rem; transition: var(--transition); }
.social-link:hover { color: var(--pink-light); transform: scale(1.2); filter: drop-shadow(0 0 8px var(--magenta-glow)); }
.staff-error { text-align: center; color: var(--magenta); grid-column: 1 / -1; padding: 20px; }

.lore-board { padding: 50px 40px; position: relative; margin-top: 20px; }
.lore-glitch-label { position: absolute; top: -12px; left: 30px; background: var(--pink-light); color: #000; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 900; padding: 5px 15px; border-radius: 5px; letter-spacing: 1px; }
.lore-title { font-size: 2.5rem; text-align: center; margin-bottom: 30px; color: #fff; }
.lore-content { max-width: 800px; margin: 0 auto; }
.lore-paragraph { font-size: 1.1rem; line-height: 1.8; color: rgba(255,255,255,0.85); margin-bottom: 20px; text-align: justify; }
.highlight-text { color: var(--pink-light); text-shadow: 0 0 8px var(--magenta-glow); }
.lore-divider { text-align: center; color: var(--magenta); font-size: 1.2rem; opacity: 0.6; display: flex; justify-content: center; gap: 15px; margin: 30px 0; }

.site-credits { text-align: center; margin-top: 40px; font-size: 0.9rem; color: var(--text-muted); }
.site-credits p { margin-bottom: 5px; }
.heart-icon { color: #ff3366; animation: beat 1.5s infinite; }
.secret-link { color: var(--pink-light); font-weight: bold; border-bottom: 1px dashed var(--magenta); }

@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

.fullscreen-view { padding: 0; display: none; height: calc(100dvh - var(--nav-height) - var(--player-height)); overflow: hidden; }
.fullscreen-view.active-view { display: block; }
.chat-wrapper { width: 100%; height: 100%; background: var(--bg-space); }
.irc-iframe { width: 100%; height: 100%; border: none; display: block; }

#chat.view-section {
	padding: 0 !important; 
}

.master-player {
    position: fixed; bottom: 0; left: 0; width: 100%; height: var(--player-height);
    background: rgba(10, 3, 7, 0.95); backdrop-filter: blur(20px);
    border-top: 2px solid var(--magenta); z-index: 2000; display: flex; align-items: center;
}

.player-layout {
    width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
}

.player-meta-block { display: flex; align-items: center; gap: 15px; flex: 1; min-width: 0; }
.mini-art-wrapper { position: relative; width: 55px; height: 55px; border-radius: 8px; overflow: hidden; border: 1px solid var(--pink-dark); flex-shrink: 0; }
.mini-art-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.playing-bars { position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; gap: 3px; opacity: 0; transition: var(--transition); }
.mini-art-wrapper.is-playing .playing-bars { opacity: 1; }
.bar { width: 4px; height: 70%; background: var(--pink-light); border-radius: 2px; transform-origin: center; animation: eq 1s ease-in-out infinite; }
.bar:nth-child(2) { animation-delay: 0.2s; } .bar:nth-child(3) { animation-delay: 0.4s; } .bar:nth-child(4) { animation-delay: 0.6s; }
@keyframes eq {
	0%, 100% { transform: scaleY(0.15); }
	50% { transform: scaleY(1); }
}

.text-data { display: flex; flex-direction: column; overflow: hidden; white-space: nowrap; }
#footer-track { font-size: 1rem; color: #fff; text-overflow: ellipsis; overflow: hidden; font-family: var(--font-heading); }
#footer-artist { font-size: 0.8rem; color: var(--pink-light); text-overflow: ellipsis; overflow: hidden; }

.dj-info-text {
	display: none;
}
.dj-info-text::before {
    content: "\f590";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
}

.player-controls-block { flex: 0.5; display: flex; justify-content: center; }
.play-btn-circle {
    width: 55px; height: 55px; border-radius: 50%;
    background: linear-gradient(135deg, var(--magenta), var(--pink-dark));
    color: white; font-size: 1.4rem; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 0 15px var(--magenta-glow); transition: transform 0.2s;
}
.play-btn-circle:hover { transform: scale(1.1); }

.player-settings-block { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.dj-info-pill { background: rgba(255, 105, 180, 0.1); border: 1px solid var(--glass-border); color: var(--pink-light); padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }
.volume-engine { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
#volume-control { width: 90px; accent-color: var(--pink-light); cursor: pointer; }

.mobile-bottom-nav { display: none; }

body.chat-active .stars-layer,
body.chat-active .nebula-layer,
body.chat-active #eclipse-background::before,
body.chat-active #eclipse-background::after,
body.chat-active .lunar-disc.playing,
body.chat-active .solar-corona,
body.chat-active .solar-corona::before,
body.chat-active .solar-corona::after,
body.chat-active .badge-live i,
body.chat-active .skeleton {
    animation-play-state: paused !important;
}

body.chat-active .app-core {
    overflow-y: hidden;
}

body.chat-active .fullscreen-view {
    height: calc(100dvh - var(--nav-height) - var(--player-height));
    margin-top: 0;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
}

body.chat-active .app-core {
    overflow-y: hidden;
    padding-top: 0;
}

.chat-slide-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4999;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(10, 3, 7, 0.98);
    border-bottom: 2px solid var(--magenta);
    backdrop-filter: blur(20px);
    display: none;
	z-index: 4999;
}

.chat-slide-panel.open {
    transform: translateY(0);
}

.chat-tab-handle {
    position: fixed;
    top: 0;
    right: 80px;
    width: 60px;
    background: linear-gradient(135deg, var(--magenta), var(--pink-dark));
    border: none;
    color: #fff;
    border-radius: 0 0 10px 10px;
    padding: 4px 10px 6px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    z-index: 5000;
    user-select: none;
    touch-action: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
	z-index: 5001;
}

.chat-tab-handle .handle-arrow {
    font-size: 0.7rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.chat-tab-handle.open .handle-arrow {
    transform: rotate(180deg);
}

.chat-tab-handle .handle-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.chat-tab-handle .handle-arrow,
.chat-tab-handle .handle-label {
    pointer-events: none;
}

@media (max-width: 900px) {
    .nav-container {
        justify-content: center; 
    }
    .brand-logo {
        height: 60px;
    }
    .desktop-menu { display: none; }
    .brand-text { font-size: 1.1rem; }
    
    .app-core { 
        padding-top: calc(var(--nav-height) + 10px);
        padding-bottom: calc(var(--player-height-mov) + var(--mobile-nav-height)); 
    }
    .fullscreen-view { height: calc(100dvh - var(--nav-height) - var(--player-height-mov) - var(--mobile-nav-height)); }

    body.chat-active .top-navbar { display: none; }
    body.chat-active .master-player { display: none; }
    body.chat-active .mobile-bottom-nav { display: none; }
    body.chat-active .app-core {
        padding: 0;
        overflow-y: hidden;
    }
    body.chat-active .fullscreen-view {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100dvh;
    }
    body.chat-active .chat-tab-handle { display: flex; }
    body.chat-active .chat-slide-panel { display: block; }

	.chat-slide-panel .mobile-bottom-nav {
		display: flex !important;
		position: relative;
		width: 100%;
		bottom: auto;
		border-top: none;
		border-bottom: 1px solid var(--glass-border);
	}

	.chat-slide-panel .master-player {
		display: flex !important;
		position: relative;
		bottom: auto;
		width: 100%;
		border-top: 2px solid var(--magenta);
	}

    .chat-tab-handle {
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.chat-active .chat-slide-panel.open ~ .chat-tab-handle {
        transform: translateY(calc(var(--mobile-nav-height) + var(--player-height-mov)));
    }

    .mobile-bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; width: 100%;
        height: var(--mobile-nav-height); background: rgba(12, 5, 10, 0.98);
        border-top: 1px solid var(--glass-border); z-index: 3000;
        justify-content: space-around; align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .m-nav-btn {
        display: flex; flex-direction: column; align-items: center; gap: 4px;
        color: var(--text-muted); font-size: 0.65rem; transition: var(--transition);
        flex: 1; padding: 10px 0;
    }
    .m-nav-btn i { font-size: 1.2rem; margin-bottom: 2px; }
    .m-nav-btn.active { color: var(--pink-light); text-shadow: 0 0 10px var(--magenta-glow); }
    .master-player { 
        bottom: var(--mobile-nav-height); 
        height: var(--player-height-mov);
    }
    .player-layout { gap: 10px; padding: 0 15px; }
    .player-meta-block { flex: 1; min-width: 0; }
    .mini-art-wrapper { width: 50px; height: 50px; }
    .text-data { gap: 2px; }
    #footer-track { 
        font-size: 0.95rem; 
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis;
    }
    #footer-artist { 
        font-size: 0.8rem; 
        color: var(--pink-light);
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis;
    }
    .dj-info-text {
        display: block;
        font-size: 0.75rem;
        color: var(--magenta);
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis;
    }
    .player-controls-block { flex: 0; }
    .play-btn-circle { width: 50px; height: 50px; font-size: 1.2rem; }
    .player-settings-block { display: none; }
    .eclipse-visualizer { width: 220px; height: 220px; }
    .glitch-text { font-size: 1.8rem; }
    .lore-board { padding: 40px 20px; }
    .lore-title { font-size: 1.8rem; }
}