/* =================================
   OSTATECZNY style.css - POPRAWIONY
================================= */

/* =================================
   GLOBAL / TŁO / RESET
================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: Arial, sans-serif;
    color: #f0f0f0;
    background: 
        linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(20,20,40,0.85) 50%, rgba(0,0,0,0.9) 100%),
        url("https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?auto=format&fit=crop&w=1920&q=80") center top / cover no-repeat fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
a:hover { text-decoration: underline; }

/* =================================
   TOPBAR
================================= */
.topbar {
    background-color: rgba(0,0,0,0.75);
    color: #ccc;
    padding: 8px 0;
    font-size: 13px;
}
.topbar .container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.topbar-track { display: flex; align-items: center; justify-content: center; gap: 8px; color: #ccc; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar-track i { color: #e53935; font-size: 16px; }
#current-track-title { font-weight: bold; color: #e53935; }
.panel-btn { color: #fff; background-color: #444; padding: 5px 10px; border-radius: 4px; font-weight: bold; }

@media (max-width: 768px) {
    .topbar .container { grid-template-columns: 1fr auto; justify-content: space-between; }
    .topbar-track { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; padding-top: 5px; }
    #datetime { grid-column: 1 / 2; grid-row: 1; }
    .panel-btn { grid-column: 2 / 3; grid-row: 1; }
}

/* =================================
   HEADER
================================= */
.main-header { background-color: rgba(31,31,31,0.9); border-bottom: 1px solid #444; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; height: 100%; font-size: 28px; font-weight: bold; color: #fff; }
.logo img { max-height: 50px; width: auto; display: block; }
.logo strong { color: #e53935; }
.main-menu a { margin: 0 20px; text-decoration: none; color: #ddd; font-weight: bold; text-transform: uppercase; }
.main-menu a:hover { color: #fff; }
.player-button { background-color: #e53935; color: white; border: none; padding: 12px 25px; border-radius: 50px; cursor: pointer; font-weight: bold; display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
.player-button:hover { background-color: #c62828; }

@media (max-width: 992px) {
    .main-header .container { flex-direction: column; height: auto; padding: 15px; gap: 15px; }
    .main-menu { border-top: 1px solid #444; border-bottom: 1px solid #444; width: 100%; padding: 10px 0; text-align: center; }
    .main-menu a { margin: 0 10px; font-size: 14px; }
}

/* =================================
   SLIDER
================================= */
.slider-container { width: 100%; height: 50vh; max-height: 500px; min-height: 300px; position: relative; background: #000; margin-bottom: 40px; }
.swiper { width: 100%; height: 100%; }
.swiper-slide { text-align: center; font-size: 18px; background: #1c1c1c; display: flex; justify-content: center; align-items: center; }
.swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); object-fit: contain; }
.slide-caption { position: absolute; z-index: 10; color: #fff; text-align: center; max-width: 800px; padding: 20px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.slide-caption h2 { font-size: 32px; margin-bottom: 10px; text-shadow: 0 2px 4px #000; }
.slide-caption p { font-size: 18px; text-shadow: 0 1px 3px #000; }
:root { --swiper-navigation-color: #fff; --swiper-pagination-color: #e53935; }
.swiper-button-next, .swiper-button-prev { transform: scale(0.7); }
.swiper-slide a.slide-link { display: block; width: 100%; height: 100%; position: relative; }
/* =================================
   ON-AIR
================================= */
.on-air-section { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.on-air-card { background-color: rgba(50,50,50,0.95); border-radius: 8px; overflow: hidden; border: 1px solid #555; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.card-image-wrapper { position: relative; }
.card-image-wrapper img { width: 100%; height: 300px; object-fit: cover; display: block; }
.card-label { position: absolute; top: 15px; left: 15px; background-color: rgba(0,0,0,0.7); color: white; padding: 5px 10px; font-size: 14px; font-weight: bold; border-radius: 4px; }
.card-label.current { background-color: #e53935; }
.card-content { padding: 20px; }
.card-content h2 { margin-top: 0; font-size: 24px; }
.card-content p { color: #eee; }

@media (max-width: 768px) { .on-air-section { grid-template-columns: 1fr; } }

/* =================================
   BANNERS
================================= */
.banner-section { margin: 40px auto; display: flex; justify-content: center; gap: 20px; }
.banner-section img { max-width: 100%; height: auto; border-radius: 8px; display: inline-block; }

/* =================================
   NEWS + TOP5 + POLL
================================= */
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.news-item { display: flex; gap: 20px; margin-bottom: 20px; background-color: rgba(50,50,50,0.9); padding: 15px; border-radius: 5px; }
.news-item img { width: 150px; height: 100px; object-fit: cover; border-radius: 4px; }
.news-details h4 { margin: 0 0 10px 0; color: #FFFF33; }
.news-details p { margin: 0; color: #ccc; font-size: 14px; }

.sidebar-column .top5-list { list-style: none; padding: 0; }
.sidebar-column .top5-list li {
    display: grid;
    grid-template-columns: 30px 60px 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #555;
    background-color: rgba(50,50,50,0.9);
    border-radius: 6px;
}
.top5-details { display: flex; flex-direction: column; justify-content: center; }
.top5-details strong { font-size: 14px; line-height: 1.2; margin-bottom: 2px; }
.top5-details span { font-size: 12px; color: #ccc; }
.top5-cover { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }

.poll-widget { background-color: rgba(50,50,50,0.95); padding: 20px; border-radius: 8px; border: 1px solid #555; box-shadow: 0 4px 15px rgba(0,0,0,0.5); margin-top: 15px; }
.poll-question-text { font-weight: bold; font-size: 16px; color: #33CC66; margin-bottom: 15px; }
.poll-option { margin-bottom: 10px; }
.poll-option label { margin-left: 8px; cursor: pointer; }
.poll-vote-button { background: #e53935; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; width: 100%; margin-top: 10px; font-weight: bold; }
.poll-results { list-style: none; padding: 0; margin: 20px 0; }
.result-label { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 14px; color: #ccc; }
.result-bar { width: 100%; background-color: #3a3a3a; border-radius: 50px; height: 22px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #c62828, #e53935); border-radius: 50px; transition: width 0.8s ease-out; }
.total-votes { display: block; text-align: right; color: #aaa; margin-top: 10px; font-size: 12px; }

/* =================================
   VIDEO SECTION
================================= */
.video-section { text-align: center; padding: 60px 20px; border-top: 1px solid #444; background-color: rgba(24,24,24,0.95); margin-bottom: 40px; }
.video-section h2 { font-size: 32px; margin-bottom: 40px; display: inline-flex; align-items: center; gap: 15px; border-bottom: 2px solid #e53935; padding-bottom: 10px; }
.video-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; margin-top: 20px; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.5); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.video-embed:hover { transform: scale(1.03); box-shadow: 0 12px 30px rgba(229,57,53,0.3); }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* =================================
   PRESENTERS
================================= */
.presenters-section h2 { text-align: center; }
.presenters-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 20px; text-align: center; }
.presenter-card { text-align: center; }
.presenter-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid #555; }
.presenter-name { margin-top: 10px; font-weight: bold; }
.presenter-card-link { text-decoration: none; color: inherit; transition: transform 0.2s ease; }
.presenter-card-link:hover { transform: scale(1.05); }

/* =================================
   LISTEN SECTION
================================= */
.listen-section { padding-top: 20px; padding-bottom: 60px; }
.listen-section h2 { text-align: center; margin-bottom: 25px; margin-top: 0; font-size: 1.8rem; }
.listen-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 20px; flex-wrap: wrap; text-align: center; }
.listen-btn { padding: 15px 30px; text-decoration: none; color: white; border-radius: 50px; font-weight: bold; text-align: center; }
.listen-btn.mytuner { background-color: #00a9e0; }
.listen-btn.radiopolska { background-color: #c40000; }

/* =================================
   MODAL
================================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background-color: rgba(31,31,31,0.95); padding: 30px; border-radius: 8px; width: 90%; max-width: 500px; position: relative; border: 1px solid #555; box-shadow: 0 5px 25px rgba(0,0,0,0.5); }
.close-modal { position: absolute; top: 10px; right: 15px; background: none; border: none; color: #aaa; font-size: 28px; cursor: pointer; }
.modal-content input, .modal-content textarea { width: 100%; padding: 15px; font-family: inherit; font-size: 16px; border: 1px solid #444; border-radius: 5px; box-sizing: border-box; background: #333; color: #fff; }
.modal-content textarea { min-height: 100px; resize: vertical; }
.modal-content .song-request { display: flex; gap: 15px; }
.modal-content button[type="submit"] { background: #e53935; color: white; border: none; padding: 12px 25px; border-radius: 5px; cursor: pointer; font-weight: bold; width: 100%; }

/* =================================
   FOOTER
================================= */
.main-footer { background: #111; color: #fff; padding: 20px; }
.main-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 15px; max-width: 1200px; margin: 0 auto; }
.footer-col { flex: 1 1 250px; min-width: 200px; }
.footer-logo { text-align: center; margin-bottom: 10px; }
.footer-logo img { max-width: 150px; display: block; margin: 0 auto; }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 10px; }
.footer-menu a { color: #fff; font-size: 15px; }
.footer-menu a:hover { text-decoration: underline; }
.footer-motto { text-align: center; margin-bottom: 10px; font-size: 14px; }
.footer-social { display: flex; justify-content: center; gap: 12px; margin-top: 0; }
.footer-social a { color: #fff; font-size: 18px; transition: color 0.3s; }
.footer-social a:hover { color: #e53935; }

/* =================================
   RESPONSYWNE POPRAWKI
================================= */
@media (max-width: 768px) {
    .content-grid { grid-template-columns: 1fr; }
    .news-item { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
    .news-item img { width: 100%; height: auto; border-radius: 4px; }
    .news-details { width: 100%; }
    .video-grid { grid-template-columns: 1fr; }
    .video-section h2 { font-size: 28px; }
    .on-air-section { grid-template-columns: 1fr; }
    .presenters-grid { flex-direction: column; gap: 25px; }
    .listen-buttons { flex-direction: column; gap: 15px; }
}
