/* ... [TUTAJ CAŁA WCZEŚNIEJSZA ZAWARTOŚĆ PLIKU STYLE.CSS (Wersja 3.0)] ... */
/* Upewnij się, że wklejasz to na końcu pliku, ale PRZED sekcją @media, albo po prostu podmień cały plik poniżej */

/* Importowanie czcionki z pliku HTML */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

/* ======== ZMIENNE KOLORYSTYCZNE ======== */
:root {
    --bg-color: #121212;
    --primary-color: #00FF88;
    --text-color: #FFFFFF;
    --text-color-muted: #888888;
    --card-color: #1a1a1a;
    --border-radius: 8px;
}

/* ======== RESET I STYLE GLOBALNE ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 100px; 
}

h1, h2, h3, strong {
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
p { margin-bottom: 1rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ======== NAGŁÓWEK I NAWIGACJA ======== */
.navbar {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex; 
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 30px; 
    width: auto; 
    vertical-align: middle;
}

.nav-links ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--text-color-muted);
    font-weight: 700;
    padding: 0.5rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
}

.nav-link.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    bottom: -5px;
    left: 0;
}

.btn-support {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-support:hover {
    color: var(--bg-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}
.btn-support .fa-solid {
    margin-right: 0.5rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ======== SEKCJE ZAWARTOŚCI ======== */
.content-section {
    display: none;
    padding-top: 2rem;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======== SEKCJA GŁÓWNA (NOW PLAYING) ======== */
.now-playing-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.album-art-container {
    position: relative;
}

#album-cover {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.album-art-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    filter: blur(20px) brightness(0.7);
    transform: scale(0.9);
    z-index: 1;
    opacity: 0.8;
}

.track-info .live-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.track-info h1 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color-muted);
    text-transform: uppercase;
}

.track-info #current-track {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-color);
    margin: 0.5rem 0;
}

.track-info #current-artist {
    font-size: 1.75rem;
    color: var(--text-color-muted);
    font-weight: 400;
}

/* ======== SEKCJA PLAYLISTA ======== */
.playlist-item {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 1rem;
    align-items: center;
    background: var(--card-color);
    padding: 0.75rem;
    border-radius: var(--border-radius);
}

.playlist-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.playlist-track-info {
    display: flex;
    flex-direction: column;
}
.playlist-track-info strong {
    font-size: 1.1rem;
}
.playlist-track-info span {
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

.playlist-time {
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

.playlist-nav-wrapper {
    position: relative; 
    margin-bottom: 1.5rem;
}

.playlist-hour-nav {
    display: flex;
    overflow-x: auto; 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}
.playlist-hour-nav.grabbing {
    cursor: grabbing;
    user-select: none;
}
.playlist-hour-nav::-webkit-scrollbar {
    display: none;
}

.playlist-hour-btn {
    flex-shrink: 0;
    padding: 0.5rem;
    background-color: #2a2a2a; 
    border: none;
    color: var(--text-color-muted);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border-radius: var(--border-radius);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 80px;
    height: 50px;
}
.playlist-hour-btn:last-child {
    margin-right: 0;
}
.playlist-hour-btn:hover {
    background-color: #383838;
}
.playlist-hour-btn.active {
    background-color: var(--primary-color);
}

.playlist-hour-btn strong {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 700;
}
.playlist-hour-btn span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-color-muted);
    line-height: 1;
}

.playlist-hour-btn.active strong,
.playlist-hour-btn.active span {
    color: var(--bg-color);
}
.playlist-hour-btn.active span {
    opacity: 0.8;
}

.playlist-tracks-container {
    display: grid;
    gap: 1rem;
}

.nav-arrow {
    display: none; 
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}
.nav-arrow:hover {
    background-color: #fff;
}
.nav-arrow.hidden {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

/* ======== SEKCJA RAMÓWKA ======== */
.schedule-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.schedule-day-btn {
    flex-grow: 1;
    flex-basis: 60px;
    padding: 0.75rem 0.5rem;
    background-color: var(--card-color);
    border: 1px solid #333;
    color: var(--text-color-muted);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.schedule-day-btn:hover {
    background-color: #2a2a2a;
    color: var(--text-color);
}

.schedule-day-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

.schedule-content {
    display: grid;
    gap: 1rem;
}

.schedule-show {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    align-items: center;
    background: var(--card-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--card-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.schedule-show.is-live {
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.schedule-show-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.schedule-show-info {
    display: flex;
    flex-direction: column;
}
.schedule-show-info strong {
    font-size: 1.1rem;
    color: var(--text-color);
}
.schedule-show-info span {
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

.schedule-show-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
    white-space: nowrap;
}

.schedule-show.is-live .schedule-show-time::before {
    content: 'NA ŻYWO';
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

/* ======== SEKCJA KONTAKT ======== */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}
.contact-about h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.contact-about p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color-muted);
}
.contact-box {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.contact-box:last-child {
    margin-bottom: 0;
}
.contact-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.contact-btn {
    margin-top: 1rem;
    display: inline-block;
}
.contact-email-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    word-break: break-all;
}
.contact-email-link:hover {
    color: var(--text-color);
}
.contact-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

/* ======== NOWOŚCI I HITY ======== */
.section-description {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    margin-bottom: 1.5rem;
}
.track-list-container {
    display: grid;
    gap: 1rem;
}
.track-list-item {
    display: grid;
    grid-template-columns: 60px 1fr; 
    gap: 1rem;
    align-items: center;
    background: var(--card-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--card-color);
}
.track-list-item-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
.track-list-item-info {
    display: flex;
    flex-direction: column;
}
.track-list-item-info strong {
    font-size: 1.1rem;
    color: var(--text-color);
}
.track-list-item-info span {
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

/* ======== DOLNY ODTWARZACZ ======== */
.persistent-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-color);
    border-top: 1px solid #222;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 0.75rem 1.5rem;
    z-index: 1001; /* Player ma 1001 */
}

.player-controls {
    display: flex;
    justify-content: flex-start;
}
.control-btn {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}
.player-info {
    text-align: center;
}
.player-info span {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-left: 0.75rem;
}
.volume-control {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}
.volume-control i {
    color: var(--text-color-muted);
}
#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: #444;
    border-radius: 5px;
    outline: none;
}
#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}
#volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}
#audio-stream {
    display: none;
}
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
    width: 100%;
}
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.logo-img, #album-cover, .playlist-item img, .schedule-show-logo, .track-list-item-logo {
    -webkit-touch-callout: none; 
    -webkit-user-select: none; 
    -khtml-user-select: none;  
    -moz-user-select: none;    
    -ms-user-select: none;     
    user-select: none;         
}

/* ======== BANNER COOKIES (NOWOŚĆ Wersja 3.1) ======== */
.cookie-banner {
    position: fixed;
    /* Domyślnie (Mobile/Tablet) na dole nad playerem */
    bottom: 90px; /* Wysokość playera (ok 80px) + margines */
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    border-top: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 1rem;
    z-index: 1002; /* Musi być NAD playerem (1001) */
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #ddd;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cookie-btn-fill, .cookie-btn-outline {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.cookie-btn-fill {
    background-color: var(--primary-color);
    color: var(--bg-color);
}
.cookie-btn-fill:hover {
    background-color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.cookie-btn-outline {
    background-color: transparent;
    color: var(--text-color);
}
.cookie-btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}


/* ======== MEDIA QUERIES (RESPONSYWNOŚĆ) ======== */

/* Desktop: Strzałki i Layout */
@media (min-width: 769px) {
    .playlist-nav-wrapper {
        display: grid;
        grid-template-columns: auto 1fr auto; 
        align-items: center;
        gap: 10px;
    }
    .nav-arrow {
        display: block; 
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        z-index: 1;
        box-shadow: none;
    }
    .playlist-hour-nav {
        grid-column: 2;
    }
    #nav-arrow-left {
        grid-column: 1;
    }
    #nav-arrow-right {
        grid-column: 3;
    }

    /* COOKIES NA DESKTOPIE: "Toast" w rogu */
    .cookie-banner {
        width: 350px;
        left: auto;
        right: 20px;
        bottom: 100px; /* Unosimy nad playerem */
        border-radius: var(--border-radius);
        border: 1px solid #333;
        border-left: 4px solid var(--primary-color); /* Akcent z lewej */
        border-top: 1px solid #333; /* Resetujemy górny border */
    }
    .cookie-content {
        text-align: left;
    }
    .cookie-buttons {
        justify-content: flex-end;
    }
}

/* Mobile / Tablet */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-color);
        border-bottom: 1px solid #222;
    }
    .nav-links.active {
        display: block;
    }
    .nav-links ul {
        flex-direction: column;
        width: 100%;
    }
    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #333;
    }
    .btn-support {
        margin: 1rem;
    }
    .nav-link.active::after {
        display: none;
    }

    .now-playing-hero {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 1rem;
    }
    .album-art-container {
        max-width: 300px;
        margin: 0 auto;
    }
    .track-info h1 {
        margin-top: 1.5rem;
    }
    .track-info #current-track {
        font-size: 2.2rem;
    }
    .track-info #current-artist {
        font-size: 1.25rem;
    }

    .persistent-player {
        grid-template-columns: auto 1fr;
        padding: 0.75rem;
        gap: 1rem;
    }
    .player-info {
        text-align: left;
        min-width: 0; 
    }
    .player-info strong {
        display: block;
    }
    .player-info span {
        display: block;
        margin-left: 0; 
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .volume-control {
        display: none;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .schedule-show {
        grid-template-columns: 1fr auto;
        grid-template-areas: 
            "logo logo"
            "info time";
        gap: 0.5rem 1rem;
    }
    .schedule-show-logo {
        grid-area: logo;
        width: 100%;
        height: 100px;
        margin-bottom: 0.5rem;
    }
    .schedule-show-info {
        grid-area: info;
    }
    .schedule-show-time {
        grid-area: time;
    }
    
    .playlist-item {
        grid-template-columns: 50px 1fr auto;
        gap: 1rem;
        align-items: center;
    }
    .playlist-item img {
        width: 50px;
        height: 50px;
    }

    .track-list-item {
        grid-template-columns: 60px 1fr; 
        grid-template-areas: none; 
        gap: 1rem;
        align-items: center;
    }
    .track-list-item-logo {
        grid-area: auto; 
        width: 60px; 
        height: 60px; 
        margin-bottom: 0;
    }
    .track-list-item-info {
        grid-area: auto;
    }
}