:root {
    /* Colors - Summer Tropical Theme */
    --bg-color: #060d1a;
    --primary: #FF6B35;
    --accent: #00D4AA;
    --text-white: #ffffff;
    --text-gray: #a8bcc8;

    /* Glassmorphism Refined */
    --glass-bg: rgba(10, 20, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --blur: 25px;

    /* Spacing */
    --nav-height: 110px;
    --player-height: 100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent body scroll, use #scroll-container */
}

/* Background Ambiance — Summer Tropical */
#ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: #060d1a;
    overflow: hidden;
}

#ambient-bg::before {
    content: '';
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(ellipse 80% 55% at 82% 9%,   rgba(255, 220,  80, .55) 0%, transparent 50%),
        radial-gradient(ellipse 65% 50% at 82% 9%,   rgba(255, 140,  30, .55) 0%, transparent 45%),
        radial-gradient(ellipse 90% 40% at 50% 0%,   rgba(255, 100,  40, .38) 0%, transparent 55%),
        radial-gradient(ellipse 55% 50% at 10% 15%,  rgba(255, 160,  50, .28) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(  0, 130, 200, .50) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 90% 88%,  rgba(  0, 212, 170, .35) 0%, transparent 50%),
        radial-gradient(ellipse 35% 30% at  5% 88%,  rgba(  0, 180, 220, .28) 0%, transparent 50%);
    animation: bgDrift 14s ease-in-out infinite alternate;
}

#bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#ambient-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 13, 26, .32);
    pointer-events: none;
}

@keyframes bgDrift {
    0%   { transform: scale(1)    translate(0%,  0%); }
    100% { transform: scale(1.07) translate(-2%, 3%); }
}

/* Navigation */
.glass-nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(5, 5, 16, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 1.2rem;
}

.brand-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 15px;
    /* Tighter gap */
    align-items: center;
    list-style: none;
}


.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
    background: var(--glass-highlight);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.discord-nav-btn {
    background: #5865F2 !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    /* Pill shape */
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.discord-nav-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Scroll Container for Main + Footer */
#scroll-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: var(--nav-height);
    /* Space for Nav */
    padding-bottom: var(--player-height);
    /* Space for Player */
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

@media (max-width: 768px) {
    #scroll-container {
        padding-bottom: 150px;
        /* More space for the floating mobile player */
    }
}

/* ================================================
   CYBER FOOTER REDESIGN
================================================ */
.cyber-footer {
    position: relative;
    padding: 60px 40px 30px;
    background: linear-gradient(to bottom, rgba(6,13,26,0.5), #060d1a);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    z-index: 5;
}

.cyber-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    opacity: 0.5;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand {
    flex: 1 1 300px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(108,92,231,0.3));
}

.footer-slogan {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.8;
}

.footer-grid {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-col h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--primary);
}

.footer-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-link-item:hover {
    color: white;
    transform: translateX(5px);
}

.footer-link-item i {
    width: 18px;
    color: var(--accent);
    font-size: 1rem;
}

.footer-bottom {
    margin-top: 50px;
    text-align: center;
}

.footer-divider {
    height: 1px;
    width: 100%;
    background: rgba(255,255,255,0.05);
    margin-bottom: 25px;
}

.footer-legal-link {
    font-size: .78rem !important;
    color: rgba(255,255,255,.3) !important;
    text-decoration: none;
    transition: color .2s;
    font-weight: 500;
}
.footer-legal-link:hover { color: rgba(176,64,251,.8) !important; }

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
}

.footer-bottom span {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .cyber-footer {
        padding: 30px 20px 90px;
    }
    .footer-content {
        flex-direction: column;
        gap: 25px;
    }
    .footer-brand {
        text-align: center;
        margin-bottom: 5px;
    }
    .footer-logo {
        height: 32px !important;
        margin: 0 auto 8px;
    }
    .footer-slogan {
        font-size: 0.8rem;
    }
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
        text-align: left;
    }
    .footer-col h4 {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    .footer-col h4::after {
        left: 0;
        transform: none;
    }
    .footer-link-item {
        font-size: 0.8rem;
    }
}

/* Main Content */
main#app-content {
    flex: 1 0 auto;
    /* Grow to fill space */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    /* Removed min-height to rely on flex-grow */
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    position: relative;
    z-index: 2;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Player Bar */
.player-bar {
    /* Styles gérés dans index.php */
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 340px;
    position: relative;
}

/* VISUALIZER */
.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    position: absolute;
    bottom: 5px;
    left: 5px;
    z-index: 10;
    pointer-events: none;
}

.visualizer .bar {
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
    animation: equalize 1s infinite ease-in-out alternate;
}

.visualizer .bar:nth-child(1) {
    height: 10px;
    animation-delay: 0.1s;
    background: #ff7675;
}

.visualizer .bar:nth-child(2) {
    height: 16px;
    animation-delay: 0.3s;
    background: #74b9ff;
}

.visualizer .bar:nth-child(3) {
    height: 8px;
    animation-delay: 0.2s;
    background: #a29bfe;
}

.visualizer .bar:nth-child(4) {
    height: 14px;
    animation-delay: 0.4s;
    background: #55efc4;
}

@keyframes equalize {
    0% {
        height: 5px;
    }

    100% {
        height: 20px;
    }
}

#player-cover {
    height: 60px;
    width: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.track-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.artist {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.ctrl-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn:hover {
    transform: scale(1.1);
    color: var(--accent);
}

.ctrl-btn.sm {
    font-size: 1.2rem;
    opacity: 0.7;
}

.ctrl-btn.play {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--bg-color);
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.player-volume {
    width: 200px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-gray);
}

input[type=range] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        /* Full screen overlay */
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        gap: 25px;
        z-index: 1000;
        /* Above Nav Bar */
    }

    .nav-links.show {
        display: flex;
        animation: fadeInMenu 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    @keyframes fadeInMenu {
        from {
            opacity: 0;
            transform: scale(1.1);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        width: 100%;
        max-width: 300px;
    }

    .nav-links.show li {
        animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    /* Staggered Animation Delays */
    .nav-links.show li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-links.show li:nth-child(2) {
        animation-delay: 0.15s;
    }

    .nav-links.show li:nth-child(3) {
        animation-delay: 0.2s;
    }

    .nav-links.show li:nth-child(4) {
        animation-delay: 0.25s;
    }

    .nav-links.show li:nth-child(5) {
        animation-delay: 0.3s;
    }

    .nav-links.show li:nth-child(6) {
        animation-delay: 0.35s;
    }

    .nav-links.show li:nth-child(7) {
        animation-delay: 0.4s;
    }

    @keyframes slideInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-link {
        font-size: 1.4rem;
        padding: 15px 25px;
        width: 100%;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.03);
    }

    /* Reset Discord Button Mobile Style */
    .discord-nav-btn {
        background: #5865F2 !important;
        box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3) !important;
        padding: 18px !important;
        width: 100% !important;
        border-radius: 16px !important;
        border: none !important;
        font-size: 1.2rem !important;
    }

    .discord-nav-btn:hover {
        transform: scale(1.02) !important;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 10000;
        /* Above menu */
        transition: 0.3s;
    }

    .mobile-toggle:active {
        transform: scale(0.9);
        background: rgba(255, 255, 255, 0.15);
    }




.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #5865F2;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}

.discord-btn i {
    font-size: 1.1rem;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.45);
    opacity: 0.95;
}

/* --- ANIMATIONS & PARTICLES --- */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(108, 92, 231, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* MARQUEE TEXT CLASS */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

/* GLOBAL CLASSES FOR ANIMATION */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse-glow 2s infinite;
}

/* PARTICLES IN BG */
.particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle 4s infinite ease-in-out;
    z-index: -1;
    pointer-events: none;
}

/* LIKE BUTTON ANIMATION */
.ctrl-btn.like-active {
    color: #e91e63 !important;
    animation: heart-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#btn-like-player { transition: color .2s; }
#btn-like-player.liked { color: #e91e63 !important; opacity: 1; }
#btn-like-player.liked i { animation: heart-pop .35s cubic-bezier(.175,.885,.32,1.275); }

@keyframes heart-pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* Partners Section */
/* Partners Marquee */
.partners-section {
    padding: 60px 0;
    text-align: center;
    background: transparent;
    overflow: hidden;
    /* Hide scrollbar */
}

.partners-section h2 {
    margin-bottom: 40px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, var(--text-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: inline-flex;
    gap: 60px;
    animation: marquee-scroll 30s linear infinite;
    padding-left: 100%;
    /* Start from right */
}

/* Duplicate content via JS or manually for seamless loop, 
   but for simple CSS marquee we can just use a long animation or duplicate items.
   Better: standard keyframe scroll. */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.partner-logo {
    height: 70px;
    /* Bigger */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* APP CTA SECTION */
.app-cta-section {
    position: relative;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(108, 92, 231, 0.3);
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.app-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.app-text {
    flex: 1;
    z-index: 1;
    text-align: left;
}

.app-text h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 500px;
}

.app-buttons {
    display: flex;
    gap: 15px;
}

.app-btn {
    padding: 12px 25px;
    border-radius: 12px;
    background: white;
    color: var(--bg-color);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    font-size: 1rem;
}

.app-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
    background: #fff;
    color: var(--primary);
}

.app-btn.outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.app-btn.outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.app-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.phone-mockup {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
    transform: rotate(-10deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1.05);
}

@media (max-width: 900px) {
    .app-cta-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .app-text {
        margin-bottom: 40px;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .app-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .phone-mockup {
        width: 200px;
        transform: rotate(0);
    }
}

/* --- ENHANCED AUTH MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.auth-modal {
    background: linear-gradient(135deg, rgba(20, 20, 35, 0.9), rgba(5, 5, 10, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(108, 92, 231, 0.2);
    width: 800px;
    max-width: 90%;
    display: flex;
    overflow: hidden;
    transform: scale(0.9);
    animation: scaleUp 0.3s forwards;
}

@keyframes scaleUp {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-left {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1534224039826-c7a0eda0e6b3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    overflow: hidden;
}

.modal-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.modal-left-content {
    position: relative;
    z-index: 1;
}

.modal-left h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.feature-list li i {
    color: var(--accent);
    filter: drop-shadow(0 0 5px var(--accent));
}

.modal-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.auth-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.1rem;
    padding-bottom: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.auth-tab.active {
    color: var(--text-white);
    border-bottom: 2px solid var(--primary);
    margin-bottom: -2px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    /* Left padding for icon if present */
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transition: 0.3s;
}

.input-group input:focus::placeholder {
    opacity: 0.7;
    transform: translateX(5px);
}

.btn-primary-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, var(--primary), #a29bfe);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.6);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}

.modal-close:hover {
    color: white;
    transform: rotate(90deg);
}

/* AUTH BUTTON PREMIUM (Specific Selector to override defaults) */
/* AUTH BUTTON PREMIUM (Neon Glass Style) */
#auth-li {
    position: relative;
    list-style: none;
    /* Safety */
}

/* Reset potential conflicting pseudo-elements on the LI */
#auth-li::before,
#auth-li::after {
    content: none !important;
    display: none !important;
}

#auth-li .nav-auth-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.2), inset 0 0 10px rgba(108, 92, 231, 0.2);
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    z-index: 10;
    min-width: 160px;
    /* Force minimum width */
}

/* Hover Effect: Fill with white, dark text */
#auth-li .nav-auth-btn:hover {
    background: #ffffff !important;
    color: var(--bg-color) !important;
    /* Dark text on hover */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(108, 92, 231, 0.4);
    transform: translateY(-2px);
    border-color: #ffffff !important;
}

#auth-li .nav-auth-btn i {
    font-size: 1.1rem;
    transition: 0.3s;
}

#auth-li .nav-auth-btn:hover i {
    transform: scale(1.1);
    color: var(--primary);
    /* Icon becomes primary color on hover */
}

/* Logged-in variant (Profile) */
#auth-li .nav-auth-btn.logged-in {
    border-color: var(--accent) !important;
    box-shadow: 0 0 10px rgba(0, 206, 201, 0.3);
}

#auth-li .nav-auth-btn.logged-in:hover {
    background: var(--accent) !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(0, 206, 201, 0.6);
}

.user-avatar-small {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    margin-right: 5px;
}


/* Pulse Animation for Logic */
.pulse-glow {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(108, 92, 231, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

@media (max-width: 768px) {
    .auth-modal {
        flex-direction: column;
        width: 100%;
        height: 100%;
        border-radius: 0;
        transform: none;
    }

    .modal-left {
        flex: 0 0 200px;
        padding: 20px;
    }

    .modal-left h2 {
        font-size: 1.5rem;
    }
}

/* --- AUTH PAGE STYLES (Restored) --- */
.auth-page-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    padding-top: 20px;
}

.auth-card {
    background: rgba(20, 20, 35, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 30px;
    width: 450px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: floatCard 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.auth-header,
.auth-content,
.auth-features {
    position: relative;
    z-index: 1;
}

.detail-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px var(--primary));
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: white;
}

.auth-header p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    z-index: 2;
}

.btn-auth-action {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
    margin-top: 20px;
}

.btn-auth-action:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.6);
}

.auth-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 0.8rem;
}

.feature-item i {
    font-size: 1.2rem;
    color: var(--accent);
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- FOOTER STYLES (Fixed) --- */
#main-footer {
    background: rgba(5, 5, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0 120px;
    /* Extra padding bottom for player bar */
    width: 100%;
    z-index: 1;



    position: relative;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    /* Prevent shrinking */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 40px !important;
    /* Force small size */
    width: auto !important;
    max-width: 200px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.footer-logo p {
    color: var(--text-gray);
    font-size: 0.8rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 5px rgba(108, 92, 231, 0.5);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: white;
    font-size: 1.3rem;
    opacity: 0.7;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    /* remove underline */
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
    background: var(--primary);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* FIX ICON ALIGNMENT IN AUTH FORM */
.input-group {
    position: relative;
    /* Ensure relative context */
}

.input-icon {
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 15px !important;
    z-index: 10 !important;
    color: var(--text-gray) !important;
    pointer-events: none;
    /* Let clicks pass through */
    position: absolute !important;
}

.input-group input {
    padding-left: 45px !important;
    /* Ensure space for icon */
}

/* --- FULL SCREEN PLAYER OVERLAY (RadioSMP Cyber Edition) --- */
#full-player-overlay {
    position: fixed;
    top: 100vh;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(108, 92, 231, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(233, 30, 99, 0.15), transparent 40%),
                #050510;
    z-index: 10000;
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    color: white;
}

#full-player-overlay.open {
    top: 0;
}

.full-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.full-player-header button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-player-header span {
    font-size: 0.9rem;
    color: var(--pink);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.full-player-art {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    min-height: 0; /* Allow shrinking */
}

#full-player-cover {
    width: 85vw;
    height: 85vw;
    max-width: 320px;
    max-height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(108, 92, 231, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.full-player-info {
    text-align: center;
    margin-bottom: 25px;
}

.info-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 500;
}

.full-player-progress {
    width: 100%;
    margin-bottom: 30px;
}

#full-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    appearance: none;
    cursor: pointer;
}

#full-progress-bar::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--pink);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--pink);
}

.time-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
    font-weight: 600;
}

.full-player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 40px;
    margin-bottom: 50px;
}

.ctrl-btn.play-lg {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4);
}

.ctrl-btn.sm-alt {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.full-player-devices {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.6;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media (max-height: 740px) {
    #full-player-overlay { padding: 25px 24px; }
    .full-player-header { margin-bottom: 20px; }
    #full-player-cover { 
        width: 60vw; height: 60vw; 
        max-width: 240px; max-height: 240px; 
    }
    .full-player-art { margin-bottom: 20px; }
    .full-player-info { margin-bottom: 20px; }
    .info-text h2 { font-size: 1.4rem; }
    .info-text p { font-size: 0.95rem; }
    .full-player-controls { margin-bottom: 20px; gap: 30px; }
    .ctrl-btn.play-lg { width: 65px; height: 65px; font-size: 1.4rem; }
    .ctrl-btn.sm-alt { width: 44px; height: 44px; font-size: 1.1rem; }
}

@media (max-height: 600px) {
    #full-player-cover { width: 45vw; height: 45vw; }
    .full-player-header { margin-bottom: 10px; }
    .full-player-controls { margin-bottom: 10px; }
    .full-player-devices { font-size: 0.8rem; }
}

@media (min-width: 769px) {
    #full-player-overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: -9999 !important;
    }
}
