/* --- Reset i body --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body, html { height: 100%; font-family: Arial, sans-serif; }

/* Logo mniejsze na tabletach i telefonach */
@media (max-width: 768px) {
    .logo {
        width: 120px;
        height: auto;
        margin-bottom: 15px;
        animation: none; /* brak pulsowania */
    }
}

@media (max-width: 768px) {
    .footer {
        display: none;
    }
}

@media (max-width: 768px) {
    .bg-video 
    .overlay { background: url('https://grandeconnection.pl/img/bg_css.png') center/cover no-repeat; }
}

@media (max-width: 768px) {
    #visualizer {
        height: 80px;
    }
}

@media (max-width: 768px) {
    .track-list-container {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .player-controls {
        flex-direction: column;
        gap: 5px;
    }
}
@media (max-width: 768px) {
    body { 
        background: url('https://grandeconnection.pl/img/hnm_bg.jpg') no-repeat center center; 
        background-size: cover; 
        background-attachment: scroll; /* zamiast fixed */
    }
    .overlay { display: none; } /* ukrywa overlay */
}



/* --- Tło wideo --- */
.bg-video {
    position: absolute; /* zamiast fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grandeconnection.pl/img/bg_css.png') repeat;
    opacity: 0.65;
    z-index: 2; 
}

/* --- Główna zawartość --- */
.content { 
	position: relative; 
	z-index:3; 
	min-height:100vh; 
	display:flex; 
	flex-direction:column; 
	justify-content:flex-start;
	padding-top: 10px;	
	align-items:center; 
	text-align:center; 
	color:#eee; }

/* --- Logo --- */
.logo { 
    width: 190px; 
    height: 330px; /* poprawka - px */
    margin-bottom: 0.1px; 
    animation: pulse 3s infinite; 
}
@keyframes pulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.05); } }

/* --- Panel muzyczny --- */
.music-panel {
    background: rgba(0,0,0,0.75);
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 15px #800000; /* ciemna czerwień */
}
.music-panel h2 { margin-bottom: 15px; color: #800000; }

/* --- Wizualizer --- */
#visualizer { width:100%; height:120px; background:rgba(0,0,0,0.8); margin-bottom:15px; border-radius:10px; box-shadow:0 0 15px rgba(139,0,0,0.5); }

/* --- Player controls --- */
.player-controls { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.player-controls button { padding:8px 15px; border:none; border-radius:8px; background:#800000; color:#fff; font-weight:bold; cursor:pointer; transition:0.3s; }
.player-controls button:hover { background:#a00000; }
.player-controls input[type="range"] { flex:1; accent-color:#800000; }
.volume-container { display:flex; align-items:center; gap:5px; }
.volume-icon { font-size:1.2rem; color:#800000; text-shadow:0 0 5px #800000, 0 0 10px #800000; }
#time-display { min-width:80px; color:#800000; font-weight:bold; text-align:center; font-family:monospace; }

/* --- Lista utworów --- */
.track-list-container { flex:1; overflow-y:auto; margin-top:10px; padding-right:5px; }

/* --- Scrollbar Chrome, Edge, Safari --- */
.track-list-container::-webkit-scrollbar { width:8px; }
.track-list-container::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); border-radius:5px; }
.track-list-container::-webkit-scrollbar-thumb { background: #800000; border-radius:5px; }

/* --- Scrollbar Firefox --- */
.track-list-container {
    scrollbar-width: thin;
    scrollbar-color: #800000 rgba(0,0,0,0.3);
}

/* --- Lista utworów --- */
.track-list { list-style:none; padding:0; margin:0; text-align:left; }
.track-list li { padding:10px; border-bottom:1px solid rgba(255,255,255,0.2); cursor:pointer; transition:0.3s; color:#eee; }
.track-list li:hover { background: rgba(128,0,0,0.2); color:#800000; text-shadow:0 0 5px #800000,0 0 10px #800000; }
.track-list li.active { background: rgba(128,0,0,0.4); color:#800000; font-weight:bold; text-shadow:0 0 5px #800000,0 0 15px #800000; }

/* --- Powrót --- */
.home-button { position:fixed; top:40px; left:40px; z-index:1000; }
.home-button img { width:40px; transition:0.3s; }
.home-button img:hover { transform:scale(1.8); filter: drop-shadow(0 0 10px #800000) drop-shadow(0 0 20px #800000); }

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.6);
    color: #eee;
    font-size: 14px;
    z-index: 1000;
}

.footer-link {
    font-weight: bold;
    color: #800000;  
    text-decoration: none;  
    cursor: pointer;
}

.footer-link:hover {
    text-decoration: none;  
}

.footer .author {
    font-weight: bold;
    text-decoration: none; 
}

.footer .author:hover {
    text-decoration: none; 
}
