:root {
    --purple: #8A2BE2;
    --pink: #FF1493;
    --cyan: #00FFFF;
    --background-color: #0a0a0a;
    --card-background: rgba(25, 25, 25, 0.5);
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Animowane tło Aurora */
.background-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, var(--purple), transparent 40%),
                radial-gradient(circle at 80% 90%, var(--cyan), transparent 40%),
                radial-gradient(circle at 50% 50%, var(--pink), transparent 40%);
    animation: aurora 20s infinite linear;
    filter: blur(100px);
}

@keyframes aurora {
    0% { transform: rotate(0deg) scale(1.5); }
    100% { transform: rotate(360deg) scale(1.5); }
}

/* Nagłówek */
header {
    padding: 1.5rem 5%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 2rem;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-color);
}

/* Główna sekcja z odtwarzaczem */
.player-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px); /* Wysokość ekranu minus nagłówek */
    padding: 2rem;
}

.player-card {
    background: var(--card-background);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.album-art img {
    width: 250px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.track-info {
    flex: 1;
}

#streamStatus {
    color: var(--text-muted);
    font-weight: 700;
}

#songTitle {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0.5rem 0;
    line-height: 1.2;
    min-height: 86px; /* Zapobiega "skakaniu" layoutu */
    background: linear-gradient(90deg, var(--text-color), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#djName {
    font-size: 1.2rem;
    color: var(--cyan);
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Kontrolki odtwarzacza */
.controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.play-btn {
    background: linear-gradient(45deg, var(--pink), var(--purple));
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--pink);
}

.icon-play { width: 0; height: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 20px solid white; margin-left: 5px; }
.icon-pause { width: 18px; height: 22px; border-left: 7px solid white; border-right: 7px solid white; }
.play-btn .icon-pause { display: none; }
.play-btn.playing .icon-play { display: none; }
.play-btn.playing .icon-pause { display: block; }

.volume-control {
    display: flex;
    align-items: center;
    flex: 1;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

/* Responsywność */
@media (max-width: 768px) {
    .player-card {
        flex-direction: column;
        text-align: center;
    }
    .track-info {
        width: 100%;
    }
    .controls {
        justify-content: center;
    }
    #songTitle {
        font-size: 1.8rem;
        min-height: 62px;
    }
}

/* =============================================================== */
/* ============= STYLE DLA NOWYCH SEKCJI I STOPKI ============= */
/* =============================================================== */

.content-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Sekcja Ramówki --- */
.schedule-timeline {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto; /* Umożliwia przewijanie w poziomie na mniejszych ekranach */
    padding-bottom: 1.5rem; /* Daje przestrzeń dla paska przewijania */
}

/* Ukrywanie paska przewijania, ale zachowanie funkcjonalności */
.schedule-timeline::-webkit-scrollbar { width: 8px; height: 8px; }
.schedule-timeline::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 4px; }
.schedule-timeline::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 4px; }

.schedule-card {
    flex: 0 0 280px; /* Zapobiega kurczeniu się kart */
    background: var(--card-background);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.dj-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--cyan);
    margin-bottom: 1rem;
}

.schedule-card .time {
    font-weight: 700;
    color: var(--text-muted);
}

.show-name {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.dj-name {
    color: var(--pink);
    font-weight: 700;
}

.live-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--pink);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.schedule-card.live {
    border-color: var(--pink);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 20, 147, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 20, 147, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 20, 147, 0); }
}

/* --- Sekcja Pozdrowień --- */
.greetings-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.greetings-form-card, .greetings-wall {
    background: var(--card-background);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
}

.greetings-form-card h3, .greetings-wall h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.greetings-form-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.greetings-form-card input, .greetings-form-card textarea {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-color);
    padding: 1rem;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.greetings-form-card button {
    background: linear-gradient(45deg, var(--pink), var(--purple));
    border: none;
    padding: 1rem;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.greetings-form-card button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--pink);
}

.greeting {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
}
.greeting:last-child { border-bottom: none; }
.greeting .message { font-style: italic; }
.greeting .author { text-align: right; font-weight: 700; color: var(--cyan); }

/* --- Stopka --- */
footer {
    background: rgba(10, 10, 10, 0.7);
    padding: 3rem 5% 1rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-weight: 900;
    font-size: 2rem;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.footer-links a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--pink); }

.social-icons a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.social-icons a:hover {
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Responsywność dla nowych sekcji */
@media (max-width: 900px) {
    .greetings-container {
        grid-template-columns: 1fr;
    }
}


    /* =============================================================== */
    /* ============= ULEPSZENIE 1: CURSOR LIGHT ============= */
    /* =============================================================== */

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none; /* Pozwala klikać przez tę warstwę */
        z-index: 10;
        background: radial-gradient(
            circle 400px at var(--cursor-x) var(--cursor-y),
            rgba(255, 255, 255, 0.06),
            transparent 80%
        );
    }
   
	
	    /* =============================================================== */
    /* ============= ULEPSZENIE 2: SCROLL REVEAL ============= */
    /* =============================================================== */

    .content-section {
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        opacity: 0;
        transform: translateY(50px);
    }

    .content-section.visible {
        opacity: 1;
        transform: translateY(0);
    }
/* ======================================================= */
/* ====== OSTATECZNE STYLE WIZUALIZATORA (Desktop) ====== */
/* ======================================================= */

.visualizer-container {
    width: 100%;
    max-width: 300px;
    height: 80px; /* <--- KLUCZOWA WŁAŚCIWOŚĆ: Definiujemy wysokość */
    margin: -1.5rem auto 1.5rem auto;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    z-index: 5;
    /* Usunęliśmy tło i ramkę, zgodnie z Pana prośbą */
}

#visualizer {
    width: 100%;
    height: 100%; /* <--- Canvas zawsze wypełnia 100% kontenera */
    display: block; /* Dobra praktyka, usuwa puste przestrzenie */
}
    
	/* =============================================================== */
/* ================== STYLE DLA RESPONSYWNEGO MENU ================== */
/* =============================================================== */

/* --- Style dla przycisku hamburgera --- */
.hamburger {
    display: none; /* Domyślnie ukryty na desktopie */
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* --- Główna logika responsywności (dla ekranów poniżej 768px) --- */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Pokaż hamburger na mobile */
        z-index: 101; /* Upewnij się, że jest nad wszystkim */
    }
	

.visualizer-container {
    margin: 1.5rem auto; /* Zastępuje stary margines nowym, bezpiecznym */
    max-width: 90%; /* Zapewnia, że nie będzie za szeroki */
}

    .nav-links {
        position: fixed; /* Pozycjonowanie względem okna przeglądarki */
        right: -100%; /* Domyślnie schowane za prawą krawędzią */
        top: 0;
        flex-direction: column; /* Ustaw linki w pionie */
        background: rgba(10, 10, 25, 0.95); /* Półprzezroczyste tło */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        width: 70%; /* Szerokość panelu menu */
        height: 100vh; /* Wysokość na cały ekran */
        text-align: center;
        transition: right 0.4s ease-in-out; /* Animacja wysuwania */
        z-index: 100;
        padding-top: 5rem; /* Odstęp od góry */
    }

    .nav-links li {
        margin: 1.5rem 0; /* Większe odstępy między linkami */
    }

    .nav-links a {
        font-size: 1.5rem; /* Powiększ czcionkę dla łatwiejszego klikania */
    }

    /* --- Klasa .active, która będzie dodawana przez JavaScript --- */

    .nav-links.active {
        right: 0; /* Wysuń menu na ekran */
    }

    /* Animacja hamburgera do "X" */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0; /* Środkowa kreska znika */
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg); /* Górna kreska obraca się i przesuwa */
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg); /* Dolna kreska obraca się i przesuwa */
    }
}

        /* =============================================================== */
        /* ============= ULEPSZENIE 1: PŁYWAJĄCA OKŁADKA ============= */
        /* =============================================================== */

        .album-art img {
            border-radius: 50%; /* Zmieniamy okładkę w koło */
            animation: spin 25s linear infinite;
            animation-play-state: paused; /* Domyślnie animacja jest wstrzymana */
        }

        .player-card.playing .album-art img {
            animation-play-state: running; /* Uruchom animację, gdy odtwarzacz gra */
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
   
           /* =============================================================== */
        /* ============= ULEPSZENIE 2: PŁYNNE PRZEJŚCIA TEKSTU ============= */
        /* =============================================================== */

        #songTitle, #djName {
            transition: opacity 0.4s ease-in-out;
        }

        #songTitle.fade-out, #djName.fade-out {
            opacity: 0;
        }
              /* =============================================================== */
        /* ============= ULEPSZENIE 3: PASEK STATYSTYK LIVE ============= */
        /* =============================================================== */

        .live-stats-bar {
            max-width: 300px;
            margin: -2rem auto 2rem auto; /* Ujemny margines by "podjechać" pod odtwarzacz */
            padding: 0.75rem 1.5rem;
            background: var(--card-background);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
            font-weight: 700;
            color: var(--text-muted);
            position: relative;
            z-index: 5;
        }

        #listenersCount {
            color: var(--cyan);
            font-size: 1.2rem;
        }
		
		
      /* =============================================================== */
/* ============= ULEPSZENIE 4: ANIMACJA LICZNIKA SŁUCHACZY ============= */
/* =============================================================== */

/* 1. Kontener, który "ucina" animację */
.listeners-wrapper {
    display: inline-block;
    position: relative;
    width: 3.5rem; /* Stała szerokość, aby tekst obok nie skakał */
    height: 1.5rem; /* Stała wysokość */
    text-align: center;
    overflow: hidden; /* To jest kluczowe! Ukrywa cyfry poza ramką */
    vertical-align: middle; /* Lepsze wyrównanie z tekstem */
}

/* 2. Style dla samej liczby */
#listenersCount {
    position: absolute;
    left: 0;
    right: 0;
    color: var(--cyan);
    font-size: 1.2rem;
    font-weight: 900;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Płynne przejście */
}

/* 3. Klasy animacji, które będziemy dodawać w JS */

/* Stan początkowy dla nowej liczby wchodzącej od góry */
.slide-from-top {
    transform: translateY(-100%);
}

/* Stan początkowy dla nowej liczby wchodzącej od dołu */
.slide-from-bottom {
    transform: translateY(100%);
}

/* Stan końcowy (na środku) */
.slide-to-center {
    transform: translateY(0);
}

/* Stan końcowy dla starej liczby wysuwanej w dół */
.slide-to-bottom {
    transform: translateY(100%);
}

/* Stan końcowy dla starej liczby wysuwanej w górę */
.slide-to-top {
    transform: translateY(-100%);
}


/* =============================================================== */
/* ======== ULEPSZENIE 5: ZAAWANSOWANY LICZNIK RULETKI ======== */
/* =============================================================== */

.counter-roulette {
    display: inline-flex;
    vertical-align: middle;
    /* Dodajemy animację podświetlenia */
    transition: transform 0.2s ease-out;
}

/* Klasa dodawana przez JS do uruchomienia podświetlenia */
.counter-roulette.updated {
    animation: glow-effect 0.8s ease-out;
}

/* "Okienko" dla pojedynczej cyfry */
.digit-reel {
    height: 1.5em;
    width: 0.8em;
    overflow: hidden;
    line-height: 1.5em;
    text-align: center;
}

/* Pionowy pasek ze wszystkimi cyframi 0-9 */
.digit-strip {
    font-size: 1.2rem;
    color: var(--cyan);
    font-weight: 900;
    /* NOWE PRZEJŚCIE - klucz do efektu "przestrzelenia" */
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Każda cyfra na pasku */
.digit-strip div {
    height: 1.5em;
}

/* Definicja animacji podświetlenia */
@keyframes glow-effect {
    0% {
        text-shadow: 0 0 2px var(--cyan);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 12px var(--cyan), 0 0 20px var(--cyan);
        transform: scale(1.1);
    }
    100% {
        text-shadow: 0 0 2px var(--cyan);
        transform: scale(1);
    }
}


/* ======================================================= */
/* ====== FINALNE STYLE WIZUALIZATORA DLA MOBILE ====== */
/* ======================================================= */

@media (max-width: 768px) {
    .visualizer-container {
        display: block !important; /* Zostawiamy !important na wszelki wypadek */
        visibility: visible;
        opacity: 1;
        width: 90%;
        height: 80px;
        min-height: 80px;
        margin: 5px auto;
        position: relative;
        z-index: 10;
        background-color: transparent; 
    }

    #visualizer {
        display: block;
        width: 100%;
        height: 100%;
    }
}