/* --- PEŁNY PLIK STYLE.CSS --- */

:root {
    --bg-color: #10001a;
    --text-main: #eeeeee;
    --text-sec: #aaa;
    
    /* Kolory Fono */
    --accent: #d17bf5;
    --primary-gradient: linear-gradient(135deg, #7a00c4, #d17bf5);
    --glow-color: rgba(209, 123, 245, 0.5);
    
    /* Ustawienia kart */
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --blur: 10px;
}

/* Reset CSS */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Arial', sans-serif; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.4;
}

/* Tło strony */
.background-blur {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 20%, #2e003e, #10001a);
    z-index: -1;
}

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

/* --- HEADER --- */
header {
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo { height: 50px; }

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.95rem;
    font-weight: bold;
    transition: 0.3s;
    text-transform: uppercase;
}
nav a:hover { color: var(--accent); }

/* --- PLAYER SECTION --- */
.player-section {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    align-items: center;
}

.player-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 1100px;
    
    /* Układ poziomy */
    display: flex;
    flex-direction: row;
    /* Ważne: stretch rozciąga prawą kolumnę do wysokości okładki */
    align-items: stretch; 
    gap: 40px;
    
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Okładka - DUŻA (300px) */
.cover-art-container {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    position: relative;
}

#album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* Prawa strona playera (Treść) */
.player-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    
    /* ROZSTRZELENIE TREŚCI GÓRA / DÓŁ */
    justify-content: space-between;
    
    align-items: flex-start; 
    text-align: left;
    min-width: 0;
}

/* Status NA ŻYWO */
.status-indicator {
    display: inline-flex;
    align-items: center;
    background: rgba(209, 123, 245, 0.15);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    width: fit-content;
}
.status-indicator i {
    font-size: 0.5rem;
    margin-right: 6px;
    color: #ff4757;
    animation: blink 2s infinite;
}

/* Info o utworze */
.track-info {
    width: 100%;
    margin: 15px 0; /* Margines bezpieczeństwa */
}

.label-now {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 700;
    display: block;
}

.track-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 5px 0; 
    padding: 0;
    text-align: left;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.track-info h3 {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 400;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sterowanie (Play + Volume) */
.controls-row {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    justify-content: flex-start;
}

/* Przycisk Play */
#play-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px var(--glow-color);
    transition: transform 0.2s, box-shadow 0.2s;
    padding-left: 5px;
    flex-shrink: 0;
    margin: 0;
}
#play-btn:hover { transform: scale(1.1); box-shadow: 0 0 30px var(--glow-color); }
#play-btn:active { transform: scale(0.95); }

/* Głośność */
.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 10px 15px;
    border-radius: 30px;
}
.volume-container i { color: var(--text-sec); font-size: 0.9rem; }
input[type=range] {
    width: 100px;
    height: 4px;
    border-radius: 5px;
    background: #444;
    accent-color: var(--accent);
    cursor: pointer;
    outline: none;
}

/* --- SEKCJA HISTORII (Lista) --- */
.history-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.history-list li {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s, transform 0.2s;
    border-radius: 10px;
}
.history-list li:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.history-cover {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    margin-right: 20px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.history-info {
    display: flex;
    align-items: center;
    width: 100%;
}

.history-time {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: bold;
    margin-right: 20px;
    min-width: 45px;
    opacity: 0.8;
}

.history-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.history-meta strong {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 3px;
    line-height: 1.2;
}
.history-meta small {
    color: #aaa;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- SEKCJE OGÓLNE --- */
.section-content {
    background: rgba(20, 0, 40, 0.6);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(5px);
}

h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
    left: auto; transform: none;
}
/* Nadpisanie h2 wewnątrz playera (musi być do lewej) */
.player-card h2 { text-align: left; }
.section-content h2 i { color: var(--accent); margin-right: 10px; }

/* Ramówka Grid */
.grid-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Kontakt */
.contact-box { text-align: center; }
.btn-contact {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 35px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 0 15px var(--glow-color);
}
.socials { margin-top: 20px; font-size: 1.5rem; }
.socials a { color: #fff; margin: 0 10px; transition: 0.3s; }
.socials a:hover { color: var(--accent); transform: scale(1.1); }

footer {
    text-align: center;
    padding: 30px;
    background: rgba(0,0,0,0.5);
    color: #666;
    font-size: 0.85rem;
}

@keyframes blink { 
    0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } 
}

/* --- RESPONSYWNOŚĆ (Mobile) --- */
@media (max-width: 768px) {
    header .container { flex-direction: column; gap: 15px; }
    
    .player-card {
        flex-direction: column; /* Pionowo */
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
        align-items: center; /* Reset stretch na mobile */
    }
    
    .cover-art-container { 
        width: 240px; 
        height: 240px; 
        margin: 0 auto; 
    }
    
    .player-content { 
        text-align: center; 
        align-items: center;
        width: 100%;
        justify-content: center; /* Reset space-between na mobile */
        gap: 20px;
    }
    
    .track-info { margin: 0; }
    .track-info h2 { font-size: 1.8rem; text-align: center; }
    
    .controls-row {
        justify-content: center;
        width: 100%;
        gap: 15px;
    }
    
    /* Ukrywanie głośności na mobile */
    .volume-container { display: none; }
    
    /* Małe poprawki do historii na bardzo małych ekranach */
    .history-cover { width: 45px; height: 45px; margin-right: 15px; }
    .history-time { font-size: 0.75rem; margin-right: 10px; min-width: 35px; }
}