/* ================================= */
/*  SHOUTBOX – HERO + GLASS HEADER  */
/* ================================= */


/* HEADER nad wszystkim */

#header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    transform: none !important;
}

#header.alt {
    transform: none !important;
    background: rgba(20,20,40,0.95) !important;
}
/* HERO jako tło pod headerem */
.hero-fullwidth {
    position: relative;
    min-height: 550px;
    padding: 120px 20px 100px 20px; /* miejsce pod fixed header */
    background: #5f7f86 url('../images/top80s-logo.png') center center no-repeat;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

/* tekst */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}
/* ================================= */
/*  RETRO – WERSJA SPÓJNA Z HOME    */
/* ================================= */

.wrapper.style5 {
  background: linear-gradient(
    180deg,
    #56548e 0%,
    #4c4a85 40%,
    #3f3d73 100%
  );
  position: relative;
  overflow: hidden;
}

.wrapper.style5::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/png/equalizer.png');
  background-size: cover;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.wrapper.style5 .inner {
  position: relative;
  z-index: 1;
}

.centered {
  text-align: center;
}

iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
  display: block;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 120, 0.3);
}

.iframe-block {
  margin: 30px auto;
  max-width: 1100px;
}

.player-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.iframe-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 30px 0;
}

#main .inner {
  max-width: 1100px;
  margin: 0 auto;
}

.orbL {
  width: 100% !important;
  max-width: 800px;
  margin: 0 auto;
}

.iframe-block,
.player-row,
.iframe-row {
  background: rgba(0, 0, 0, 0.25);
  padding: 30px;
  border-radius: 20px;
  box-shadow:
    0 0 30px rgba(0, 255, 150, 0.15),
    0 0 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

h3 {
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #00ff9c;
}
.player-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  margin: 40px 0;
}

.player-center {
  flex: 0 1 800px;
}

.mic-side img {
  width: 90px;
  animation: pulseMic 2.4s infinite ease-in-out;
  filter: drop-shadow(0 0 10px rgba(0,255,150,0.6));
}

@keyframes pulseMic {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}
@media (max-width: 900px) {

  .iframe-row {
    flex-direction: column;
  }

  .player-wrapper {
    flex-direction: column;
  }

  .mic-side {
    display: none;
  }

}
/* ===== SUBTELNY EQUALIZER ANIMACJA ===== */

.wrapper.style5 {
    position: relative;
    overflow: hidden;
}

.wrapper.style5::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,0.06) 0px,
        rgba(255,255,255,0.06) 3px,
        transparent 3px,
        transparent 9px
    );
    animation: eqMove 1.8s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

.wrapper.style5 .inner {
    position: relative;
    z-index: 1;
}

@keyframes eqMove {
    0% { height: 40px; }
    100% { height: 120px; }
}
/* ===== CZYTELNOŚĆ TEKSTU - SHOUTBOX ===== */

.wrapper.style5,
.wrapper.style5 h1,
.wrapper.style5 h2,
.wrapper.style5 h3,
.wrapper.style5 h4,
.wrapper.style5 p,
.wrapper.style5 a {
    color: #ffffff;
}
/* ===== CENTROWANIE BLOKÓW SHOUTBOX ===== */

.wrapper.style5 .inner {
    max-width: 1100px;
    margin: 0 auto;
}

.wrapper.style5 .iframe-block,
.wrapper.style5 .player-wrapper,
.wrapper.style5 .iframe-row,
.wrapper.style5 .centered {
    display: flex;
    justify-content: center;
}
.shoutbox-page {
    background: #5b4f8f;
}
/* ===== GRAFIK / RAMÓWKA ===== */

.iframe-block {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.iframe-block iframe {
    width: 100%;
    max-width: 1100px;
    height: 200px;
    border: none;
}
/* ===== UJEDNOLICENIE SZEROKOŚCI BLOKÓW SHOUTBOX ===== */

.shoutbox-page .iframe-block,
.shoutbox-page .player-wrapper,
.shoutbox-page .chat-wrapper,
.shoutbox-page .online-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.shoutbox-page .iframe-block iframe,
.shoutbox-page .player-wrapper iframe,
.shoutbox-page .chat-wrapper iframe,
.shoutbox-page .online-wrapper iframe {
    width: 100%;
    max-width: 1100px;
    border: none;
}
/* ===== PLAYER – KONTROLA SZEROKOŚCI ===== */

.shoutbox-page .player-wrapper {
    display: flex;
    justify-content: space-between;  /* zamiast center */
    align-items: center;
    gap: 20px;
    margin: 40px auto;
    max-width: 1500px;  /* poszerzamy */
    width: 100%;
}

.shoutbox-page .player-center iframe {
    width: 100%;
    max-width: 1100px;
    border: none;
}

.shoutbox-page .mic-side img {
    max-width: 90px;
    height: auto;
}
/* ===== DELIKATNE DOPASOWANIE PLAYERA ===== */

.shoutbox-page .player-wrapper {
    background: rgba(0, 0, 0, 0.15);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
/* ===============================
   SYSTEM KART - SHOUTBOX
================================ */

.shoutbox-page .shoutbox-card {
    max-width: 1100px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.20);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

/* PLAYER FLEX */

.shoutbox-page .player-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

/* IFREJMY pełna szerokość karty */

.shoutbox-page .shoutbox-card iframe {
    width: 100%;
    border-radius: 15px;
    display: block;
}
/* ===============================
   NEON GLOW - SHOUTBOX
================================ */

.shoutbox-page .shoutbox-card {
    position: relative;
    overflow: hidden;
}

/* ===============================
   MOCNY NEON DLA WSZYSTKICH KART
================================ */

.shoutbox-page .shoutbox-card {
    max-width: 1100px;
    margin: 15px auto;
    padding: 25px 35px;   /* zmniejszamy pion */
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.22);

    box-shadow:
        0 0 20px rgba(0,255,200,0.5),
        0 0 60px rgba(0,255,200,0.35),
        0 0 120px rgba(0,255,200,0.25);
}
/* ===============================
   PLAYER WIDTH FIX
================================ */

.shoutbox-page .player-center {
    flex: 1;
    max-width: 800px;
}

.shoutbox-page .player-center iframe {
    width: 100%;
    height: 180px;
}
.shoutbox-page .player-wrapper {
    box-shadow:
        0 0 20px rgba(0,255,200,0.4),
        0 0 60px rgba(0,255,200,0.25);
}
/* PLAYER – kompakt */

.shoutbox-page .player-wrapper {
    padding: 15px 25px !important;
    gap: 20px;
}
.shoutbox-page .player-center iframe {
    height: 170px;
}
/* WYSOKOŚĆ CHATA */
.shoutbox-page iframe[src*="chat"] {
    height: 480px;
}
/* PLAYER – karta dopasowana do jego realnej szerokości */

.shoutbox-page .player-wrapper {
    max-width: 700px;   /* dopasuj jeśli trzeba */
    margin: 50px auto;
}
/* PLAYER SEKCJA */

.shoutbox-page .player-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* ŚRODKOWY BOX PLAYERA */

..shoutbox-page .player-box {
    background: rgba(0,0,0,0.35);
    padding: 20px 20px 12px 20px;
    border-radius: 20px;
    overflow: hidden;

    box-shadow:
        0 0 20px rgba(0,255,200,0.5),
        0 0 60px rgba(0,255,200,0.35);
}
.shoutbox-page .player-section {
    max-width: 1400px;   /* było ~1200 */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
body.shoutbox-page .player-box {
    width: 600px;
    flex: 0 0 600px;
}

body.shoutbox-page .player-box iframe {
    width: 100%;
    height: 150px;
}
body.shoutbox-page .ramowka-box {
    padding: 40px 0;
}

body.shoutbox-page .ramowka-box iframe {
    width: 600px;
    height: 200px;
    display: block;
    margin: 0 auto;
}
/* Zmniejszenie odstępu między playerem a chatem */
.player-wrapper {
    margin-bottom: 5px !important;
    padding-bottom: 0 !important;
}

/* LAPTOP 14" – zmniejszamy realne rozmiary */
@media (max-width: 1600px) {

  body.shoutbox-page .player-box {
    width: 520px;   /* było 600 */
    flex: 0 0 520px;
  }

  body.shoutbox-page .player-box iframe {
    height: 130px;  /* było 150 */
  }

}
@media (max-width: 1600px) {

  .shoutbox-page .mic-side img {
    max-width: 55px;   /* było 90 */
  }

}
/* === RESET PLAYER LAYOUT – STABILNA WERSJA === */

body.shoutbox-page .player-wrapper {
    max-width: 936px !important;
    width: 100% !important;
    margin: 15px auto 5px auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 25px !important;
    background: rgba(0, 0, 0, 0.15) !important;
    box-shadow:
    0 -10px 20px rgba(0,255,200,0.35),
    0 10px 40px rgba(0,255,200,0.20) !important;
}

body.shoutbox-page .player-box {
    width: 600px !important;
    flex: 0 0 600px !important;
}
/* =========================
   TABLET (max 1024px)
========================= */

@media (max-width: 1280px) {

  .shoutbox-page .mic-side {
      display: none !important;
  }

  body.shoutbox-page .player-wrapper {
      justify-content: center !important;
      gap: 0 !important;
  }

  body.shoutbox-page #three .inner {
      max-width: 95% !important;
      margin: 0 auto !important;
  }

}
body.shoutbox-page #three img {
    max-width: 100%;
    height: auto;
}
.shoutbox-page .schedule-container {
    position: relative;
    overflow: hidden;
}

.shoutbox-page .schedule-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(0,255,255,0.05),
            rgba(0,255,255,0.05) 1px,
            transparent 1px,
            transparent 40px
        );
    pointer-events: none;
}
.shoutbox-page .ramowka-box {
    position: relative;
    overflow: hidden;
}

.shoutbox-page .ramowka-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to right,
            rgba(0,255,255,0.08),
            transparent 20%,
            transparent 80%,
            rgba(255,0,255,0.08)
        );
    pointer-events: none;
    z-index: 0;
}

.shoutbox-page .ramowka-box > * {
    position: relative;
    z-index: 1;
}
body.shoutbox-page #main-content {
    background: transparent !important;
    padding-top: 4em !important;
}
/* Lekka poprawa odstępów hero */
#banner .inner {
    padding-top: 2em;
}

/* Bezpieczne iframe */
.iframe-block iframe {
    width: 100%;
    border: none;
}

/* Stała wysokość przestrzeni pod nagłówkiem */
#banner p {
    min-height: 6em;   /* ok. 3-4 linie tekstu */
}
/* ===== POPUP CHAT INFO ===== */

#infoChatModal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: #4b3f72; /* fiolet */
    z-index: 9999;
}

#infoChatModal .modal-box {
    max-width: 800px;
    margin: 8% auto;
    padding: 50px;
    color: #ffffff;
    text-align: center;
    position: relative;
}

#infoChatModal .close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
}
.social-logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 25px;
}

.social-logos img {
    width: 94px;
    height: 94px;
    object-fit: contain;
    cursor: pointer;
}

.social-logos img:hover {
    transform: scale(1.1);
}
.logo-icon {
    width: 94px;
    height: 94px;
    object-fit: contain;
    display: block;
}
.logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.logo-icon {
    cursor: pointer;
}

/* ===== GG TOAST PRO ===== */

#ggToast {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

#ggToast.active {
    opacity: 1;
    pointer-events: auto;
}

.ggToast-box {
    background: linear-gradient(145deg, #d32f2f, #b71c1c);
    color: #fff;
    padding: 35px 60px;
    border-radius: 14px;
    font-size: 1.5rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#ggToast.active .ggToast-box {
    transform: scale(1);
}

.ggToast-box strong {
    display: block;
    margin-top: 10px;
    font-size: 2rem;
    animation: pulseGG 1.5s infinite;
}

@keyframes pulseGG {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}
/* ===== GG STATUS DOT ===== */

.gg-status-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
}

.status-dot {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid white;   /* kontrast */
}

/* ONLINE */
.status-dot.online {
    background: #00ff00;
    box-shadow: 0 0 12px #00ff00;
}

/* OFFLINE */
.status-dot.offline {
    background: #ff0000;
    box-shadow: 0 0 12px #ff0000;
}
@keyframes pulseDot {
    0%   { box-shadow: 0 0 6px #00ff00; }
    50%  { box-shadow: 0 0 18px #00ff00; }
    100% { box-shadow: 0 0 6px #00ff00; }
}

.status-dot.online {
    background: #00ff00;
    animation: pulseDot 1.5s infinite;
}
@keyframes pulseBrightness {
    0%   { filter: brightness(1); }
    50%  { filter: brightness(1.4); }
    100% { filter: brightness(1); }
}

.status-text.online {
    animation: pulseBrightness 1.5s infinite;
}
.custom-toast {
    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%) scale(0.9);

    background: linear-gradient(145deg, #d32f2f, #b71c1c);
    color: #fff;
    padding: 25px 40px;
    border-radius: 14px;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);

    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
    z-index: 9999;
}

.custom-toast.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.toast-extra img {
    margin-top: 15px;
    max-width: 80px;
}
.logos-row {
    position: relative;
}
.toast-text {
    white-space: pre-line;
}
/* === RAMÓWKA 3-KOLUMNOWA === */

.ramowka-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.ramowka-left,
.ramowka-right {
    width: 150px;
    height: 200px;
}

.ramowka-center iframe {
    width: 600px;
    height: 200px;
    display: block;
}
/* === ANALOGOWY CLOCK PRO === */

.clock-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.clock-face {
    width: 150px;
    height: 150px;
    display: block;
}

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom;
    transform: translateX(-50%) rotate(0deg);
}

.hour {
    width: 6px;
    height: 35px;
    background: black;
}

.minute {
    width: 4px;
    height: 50px;
    background: black;
}

.second {
    width: 2px;
    height: 60px;
    background: red;
}
/* ================================= */
/*        KALENDARZ – WERSJA FINAL   */
/* ================================= */

.calendar-card {
    width: 170px;
    height: 170px;
    background: #E4E4E4 ;
    border-radius: 16px;
    padding: 18px;
    box-sizing: border-box;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    color: #111;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    transition: all 0.35s ease;
    position: relative;
    z-index: 2;
}

/* MIESIĄC */
.calendar-month {
    font-size: 12px;
    font-weight: 700;
}

/* DUŻY DZIEŃ */
.calendar-day-number {
    font-size: 36px;
    font-weight: 800;
    margin: 5px 0;
}

/* DZIEŃ TYGODNIA */
.calendar-weekday {
    font-size: 18px;
    font-weight: 600;
}

/* IMIENINY */
.calendar-names {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
}


/* Kolor dnia tygodnia */
.calendar-weekday {
    color: #F8971C /* pomaranczowy */
}

/* Kolor imienin */
.calendar-names {
    color: #52508B; /* ciemny niebieski */
}
.calendar-day-number.holiday {
    color: #F71903;  /* czerwony */ 
}
.calendar-card:hover {
    gap: 12px;
}
@media (max-width: 1024px) {
    .ramowka-layout {
        gap: 10px;
    }

    .calendar-card {
        width: 140px;
        height: 140px;
        padding: 12px;
    }

    .calendar-day-number {
        font-size: 40px;
    }

    .calendar-month,
    .calendar-weekday {
        font-size: 14px;
    }

    .calendar-names {
        font-size: 12px;
    }

    .clock {
        transform: scale(0.8);
    }

    .grafik {
        transform: scale(0.9);
    }
}
@media (max-width: 768px) {

    .ramowka-layout {
        flex-direction: column;
        gap: 15px;
    }

    .calendar-card {
        width: 160px;
        height: 160px;
    }

    .clock {
        transform: scale(0.85);
    }

    .grafik {
        width: 100%;
        max-width: 300px;
    }
}
/* ===== FIX BANER – RESPONSYWNOŚĆ ===== */

#banner {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

#banner .inner {
    max-width: 100%;
    padding-left: 1em;
    padding-right: 1em;
    box-sizing: border-box;
}
/* ===== TWARDY FIX SZEROKOŚCI BANERA ===== */

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

#page-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

#banner {
    width: 100% !important;
    max-width: 100% !important;
}

#banner .inner {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}
/* ===== MOBILE – POPRAWKA BANERA ===== */

@media (max-width: 768px) {
    #banner {
        background-size: contain !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
    }
}
/* ===== POPRAWKA BANERA MOBILE ===== */

@media (max-width: 768px) {

    #banner .inner {
        max-width: 100% !important;
        padding-left: 1.5em !important;
        padding-right: 1.5em !important;
    }

}
/* ===== POPRAWKA SZEROKOŚCI MODALA ===== */

#infoChatModal .modal-box {
    width: 90%;
    max-width: 1000px;
    padding: 2em;
}

/* Lepsze formatowanie tekstu */
#infoChatModal p {
    line-height: 1.6;
    margin-bottom: 1em;
}
/* ===== ROZSZERZENIE TEKSTU W MODALU ===== */

#infoChatModal .modal-box {
    width: 95%;
    max-width: 1200px;
}

#infoChatModal .modal-box h3,
#infoChatModal .modal-box p {
    max-width: 100% !important;
}
/* ============================
   TOTAL RESET PLAYER CONTAINER
============================ */

body.shoutbox-page .player-wrapper {
    all: unset;
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

body.shoutbox-page .player-clean {
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}
/* PLAYER – UKŁAD WEWNĘTRZNY */
.shoutbox-page .player-layout {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shoutbox-page .player-layout iframe {
    width: 600px;
    height: 150px;
    display: block;
}
/* Player ma nie być flex-itemem */
.shoutbox-page .player-box-card {
    display: block;
}

/* Hover dla Playera */
.shoutbox-page .player-layout {
    position: relative;
}

.shoutbox-page .player-layout iframe {
    width: 600px;
    height: 150px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.shoutbox-page .player-layout:hover iframe {
    transform: scale(1.6);
    z-index: 50;
}
/* Player bez zaokrągleń */
.shoutbox-page .player-box-card {
    border-radius: 0;
}

.shoutbox-page .player-box-card iframe {
    border-radius: 0;
}
/* Etap 1 – stabilizacja nowej struktury */

.shoutbox-page .player-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shoutbox-page .player-center {
    display: flex;
    justify-content: center;
}
/* Przywracamy kartę do stabilnego stanu */
.shoutbox-page .player-box-card {
    border-radius: 25px;
    overflow: visible;
}

/* Player ma być prostokątem */
.shoutbox-page .player-layout iframe {
    border-radius: 0;
}
/* Kontrolowana wysokość playera */
.shoutbox-page .player-box-card {
    min-height: 260px;
}

/* Player w centrum */
.shoutbox-page .player-row {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
/* Player – mniejszy padding pionowy */
.shoutbox-page .player-box-card {
    padding-top: 15px;
    padding-bottom: 15px;
}
/* Player – korekta marginesu iframe-block */
.shoutbox-page .player-box-card.iframe-block {
    margin: 20px auto;
}
.shoutbox-page .player-box-card {
    margin: 20px auto !important;
}
.shoutbox-page .player-box-card {
    align-self: center;
}
.shoutbox-page .player-box-card {
    height: auto !important;
}
/* Player – reset typografii */
.shoutbox-page .player-box-card {
    line-height: normal;
}
.shoutbox-page .player-box-card {
    line-height: 0;
}
.shoutbox-page .player-layout iframe {
    display: block;
}
/* RESET wysokości */
.shoutbox-page .player-row {
    height: auto !important;
}

/* upewniamy się że iframe nie dodaje baseline */
.shoutbox-page .player-layout iframe {
    display: block;
}
/* Player NIE ma być flexem */
.wrapper.style5 .player-box-card {
    display: block !important;
}
.shoutbox-page .player-box-card {
    min-height: auto !important;
    height: auto !important;
}
.shoutbox-page .player-box-card {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.shoutbox-page .player-box-card {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* Player responsive */
@media (max-width: 900px) {

  .shoutbox-page .player-row {
      flex-wrap: wrap;
  }

  .shoutbox-page .player-layout {
      width: 100%;
  }

  .shoutbox-page .player-layout iframe {
      width: 100%;
      max-width: 100%;
  }

}
/* TELEFON – układ pionowy */
@media (max-width: 600px) {

  .shoutbox-page .player-row {
      flex-direction: column;
      align-items: center;
      gap: 10px;
  }

  .shoutbox-page .player-side.player-left,
  .shoutbox-page .player-side.player-right {
      width: 100%;
      text-align: center;
  }

  .shoutbox-page .player-layout {
      width: 100%;
  }

  .shoutbox-page .player-layout iframe {
      width: 100%;
      max-width: 100%;
  }

}
/* Chat hover – tylko wnętrze */
.shoutbox-page .chat-box-card {
    position: relative;
}

.shoutbox-page .chat-box-card iframe {
    display: block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.shoutbox-page .chat-box-card:hover iframe {
    transform: none;
    z-index: auto;
}

/* Chat może wychodzić poza kartę */
.shoutbox-page .chat-box-card {
    overflow: visible !important;
}

.shoutbox-page .chat-box-card:hover {
    transform: none;
    box-shadow: 0 0 18px rgba(0,255,200,0.35);
}

.shoutbox-page .chat-box-card:hover {
    transform: none;
    box-shadow: none;
}
/* PANEL CHAT FULLSCREEN – wersja stabilna */

#chatFocusPanel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 65vh;
    background: #1f5f7a; /* tło jak kontenery */
    z-index: 9999;
    display: none;
}
#chatFocusBtn {
    display: block;
    margin: 20px auto;
    padding: 8px 18px;
    background: #000;
    color: #fff;
    border: 1px solid #fff;
    cursor: pointer;
    font-weight: bold;
    width: fit-content;
}

.focus-header {
    background: #1f5f7a;   /* taki sam jak panel */
    padding: 4px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

#chatFocusPanel iframe {
    width: 100%;
    height: calc(100% - 50px);
    border: 0;
}

#closeFocus {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 12px;
}
@media (max-width: 1024px) {
    #chatFocusBtn {
        display: none;
    }
}
/* ===== NOWY MODUŁ HISTORIA NAGRAŃ JS ===== */

#historyModule {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 20px;

    background: #383763;

    box-shadow:
        0 0 15px #00ffff,
        0 0 30px rgba(0,255,255,0.4),
        0 0 60px rgba(0,255,255,0.2);

    box-sizing: border-box;
}
#historyModule {
    overflow: hidden;
}
/* DUŻA OKŁADKA */
.nowPlaying {
    height: 180px;            /* regulujesz tu */
    max-width: 70%;           /* nie więcej niż połowa kontenera */
    margin: 0 auto 40px auto; /* wyśrodkowanie + odstęp */
    padding: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

/* jeśli to background */
.nowPlaying div {
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
}

/* jeśli to img */
.nowPlaying img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#historyModule {
    padding-bottom: 40px;
}
.historyTitle {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 2px;
    color: #fff;
}
#historyModule * {
    max-width: none !important;
    width: auto !important;
}
#historyModule {
    background: #383763;
    border-radius: 6px;
    padding: 15px;
}
.recentTracks {
    border-top: 1px solid rgba(0,255,255,0.4);
    padding-top: 20px;
}
/* Powrót do ustawień kalendarza */
.calendar-card {
    position: relative;
  
}
/* ===== GLOBAL OVERLAY RAMÓWKA ===== */

.ramowka-layout {
    position: relative;
}

.calendar-global-overlay {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;

    /* ===== PARAMETRY DO REGULACJI ===== */
    background: #C4E9F2 ;         /* tło overlay */
    box-shadow: 0 8px 25px rgba(0,0,0,0.25); /* cień */
    border-radius: 20px;         /* zaokrąglenie – dopasuj do kontenera */
    /* ================================== */

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;

    z-index: 9999;
}

.calendar-global-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== TEKST OVERLAY ===== */

.calendar-global-overlay {
    color: #222; /* główny kolor tekstu */
}

.calendar-global-overlay h2 {
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #111; /* data */
}

.calendar-global-overlay p {
    font-size: 16px;
    line-height: 1.6;
    color: #333; /* treść */
}
/* ===== MINI WIDOK KALENDARZA ===== */

.calendar-card .calendar-extra {
    display: none;
}
/* ===== GLOBAL OVERLAY – PRIORYTET WARSTWY ===== */

.calendar-card {
    z-index: 1;
    position: relative;
}

.calendar-global-overlay {
    z-index: 9999;
}
.overlay-month-year {
    font-size: 16px;          /* mniejsze, bezpieczne dla długich nazw */
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #333333;

    margin-bottom: 14px;      /* odsuwa od dnia */
    line-height: 1.1;

    white-space: nowrap;      /* NIE łamie linii */
    overflow: hidden;         /* nie rozpycha overlay */
    text-overflow: ellipsis;  /* gdyby było za długie: "PAŹDZIERN..." */
}

/* ===== OVERLAY – STRUKTURA KOLUMN ===== */

.overlay-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.overlay-side {
    flex: 1;
}

.overlay-center {
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* ===== PANEL DNIA – WERSJA UPORZĄDKOWANA ===== */

.overlay-month-year {
    font-size: 20px;
    letter-spacing: 1px;
    color: #333333;    /* czarny */
}

.overlay-day-number {
    font-size: 50px;
    font-weight: 600;
    color: #111111;    /* czarny */

    border: 2px solid #d0d0d0;
    border-radius: 12px;
    padding: 15px 25px;
    background: #E6E6E6;
}
/* niedziela / święto – czerwony */
.overlay-day-number.sunday,
.overlay-day-number.holiday,
.overlay-day-number.weekend {
    color: #ff0000;
}

.overlay-weekday {
    font-size: 17px;
    color: #F8971C;    /* pomaranczowy */
}

.overlay-event {
    font-size: 19px;
    font-weight: 600;
    color: #c1121f;    /* czerwony */

    padding: 2px 10px;
    border-radius: 8px;
}

.overlay-names {
    font-size: 16px;
    color: #1565c0;      /* niebieski */ 
    line-height: 1.15;
}
/* ===== BOCZNE KOLUMNY ===== */

.overlay-side {
    flex: 1;
    display: flex;
    align-items: flex-start;   /* było center */
    justify-content: center;
}

.side-box {
    font-size: 14px;
    color: #444444;
    text-align: center;
    line-height: 1.4;
}
/* ===== WZMOCNIENIE CZYTELNOŚCI ===== */

.side-box {
    font-weight: 600;
    color: #1a1a1a;
}

.overlay-month-year,
.overlay-weekday {
    font-weight: 600;
}

.overlay-day-number {
    font-weight: 700;
}
.weather-city {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.astro-block {
    display: flex;
    align-items: flex-start; /* było center */
    gap: 20px;
    margin-top: 12px;
}

/* duże słońce */
.big-sun {
    font-size: 64px;
    color: #FFD700;
    text-shadow: 
        0 0 8px rgba(255,215,0,0.8),
        0 0 16px rgba(255,200,0,0.6),
        0 0 24px rgba(255,180,0,0.4);
    display: inline-block;
}

/* wyrównanie tekstów */
.astro-times {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.astro-times {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* było center */
}
.big-sun {
    margin-top: -45px;
}

.overlay-side .side-box {
    line-height: 1.8;
    font-size: 15px;
}
/* ===== PRAWA STRONA – POGODA ===== */

/* === WEATHER STABLE LAYOUT === */

.weather-block {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.weather-big-icon {
    font-size: 60px;
    flex: 0 0 60px;   /* stała szerokość – NIE ruszy się */
    text-align: center;
}

.weather-data {
    flex: 1;          /* zajmuje resztę miejsca */
    text-align: right;
    font-size: 14px;
    word-break: break-word;  /* długi tekst się zawinie */
}
/* ===== WEATHER NOWY UKŁAD ===== */

.weather-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
	padding-right: 10px;
}

.weather-left {
    display: flex;
    flex-direction: column;
    gap: 3px;            /* było 6px */
    text-align: left;
    line-height: 1.25;   /* ciaśniej */
}

.weather-city {
    font-size: 20px;
    font-weight: 600;
}

.weather-temp {
    font-size: 26px;
    font-weight: 700;
    margin-top: -2px;
    margin-bottom: 4px;
}

.weather-desc,
.weather-feels,
.weather-wind {
    font-size: 14px;
    margin: 0;
}

.weather-right {
    font-size: 70px;
	margin-left: 20px;   /* odsuwa ikonę */
}
.weather-top-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}
.weather-temp-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 22px;
    font-weight: 600;
}

.weather-thermo {
    font-size: 18px;
}

.temp-positive { color: #c62828; }   /* czerwony */
.temp-negative { color: #1565c0; }   /* niebieski */
.temp-zero     { color: #000000; }   /* czarny */

.weather-feels {
    white-space: nowrap;
    font-size: 14px;
}
.weather-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.weather-right {
    font-size: 70px;
    margin-left: 30px;
    margin-top: -10px;   /* regulacja góra/dół */
    position: relative;
}
.weather-left,
.weather-year-left,
.weather-desc,
.weather-feels,
.weather-wind {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.3px;
}
#overlayDaysLeft {
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}
.calendar-global-overlay .overlay-left .left-content {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.overlay-left .side-box {
    display: flex;
    flex-direction: column;
    gap: 6px;              /* lewa równy odstęp jak po prawej */
}

.overlay-left .side-box > div {
    margin: 0;
    line-height: 1.4;
}
.astro-block {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 6px;
}

.astro-icon {
    font-size: 26px;
    line-height: 1;
}

.astro-times div {
    line-height: 1.4;
    margin: 0;
}
.overlay-left {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}
.overlay-side {
    width: 33%;
}

.overlay-left,
.overlay-right {
    display: flex;
    justify-content: center;
}
.overlay-left .side-box {
    width: 220px;   /* dopasowane do szerokości weather-left */
}
.astro-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.astro-times {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
/* === OVERLAY: pogoda – tekst do środka, ikona na zewnątrz (PRAWY BRZEG) === */
.calendar-global-overlay .overlay-right .weather-block{
  display: flex;
  flex-direction: row-reverse;        /* ikona przechodzi na prawą stronę */
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

.calendar-global-overlay .overlay-right .weather-big-icon{
  flex: 0 0 70px;                     /* stałe miejsce na ikonę */
  text-align: right;                  /* ikona „na zewnątrz” */
}

.calendar-global-overlay .overlay-right .weather-data{
  flex: 1;
  text-align: left;                   /* tekst „do środka” overlay */
}
/* OVERLAY: lewa kolumna – tekst po lewej, słońce po prawej */
.calendar-global-overlay .overlay-left{
  display: grid !important;
  grid-template-columns: 1fr auto; /* tekst | ikonka */
  column-gap: 14px;
  align-items: center;
}

.calendar-global-overlay .overlay-left .left-content{
  grid-column: 1;
  text-align: left;
}

.calendar-global-overlay .overlay-left .left-icon{
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;      /* możesz zmniejszyć do 40 jeśli za duże */
  line-height: 1;
}
/* OVERLAY: LEWA strona – tekst po lewej, słońce po prawej (w stronę środka) */
#calendarGlobalOverlay .overlay-side.overlay-left .astro-block{
  display: flex !important;
  flex-direction: row-reverse !important;  /* odwraca kolejność: ikona ląduje po prawej */
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px;
}

/* tekst (wschód/zachód/długość) ma być po lewej */
#calendarGlobalOverlay .overlay-side.overlay-left .astro-times{
  text-align: left !important;
  flex: 1 1 auto;
}

/* słońce ma trzymać się prawej strony tej kolumny */
#calendarGlobalOverlay .overlay-side.overlay-left .astro-icon{
  flex: 0 0 64px;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

#calendarGlobalOverlay .overlay-side.overlay-left .big-sun{
  font-size: 46px;
  line-height: 1;
}
/* === OVERLAY: prawa kolumna pogody – spójny styl z lewą === */
#calendarGlobalOverlay .overlay-side.overlay-right .weather-data{
  font-style: italic;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.3px;
  line-height: 1.25;
}

/* miasto (geolokalizacja) */
#calendarGlobalOverlay .overlay-side.overlay-right .weather-city{
  font-style: normal;     /* samo miasto niech będzie „czyste”, czytelne */
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 6px;
}

/* linia temperatury: termometr + duża wartość */
#calendarGlobalOverlay .overlay-side.overlay-right .weather-temp-line{
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

#calendarGlobalOverlay .overlay-side.overlay-right .weather-thermo{
  font-size: 18px;
  line-height: 1;
}

#calendarGlobalOverlay .overlay-side.overlay-right #temp{
  font-style: normal;     /* sama temperatura jak „licznik” */
  font-weight: 900;
  font-size: 34px;        /* to jest „0” jak na wizualizacji — w razie czego zmniejszymy */
  line-height: 1;
}
/* prawa kolumna: daj więcej miejsca tekstowi, mniej ikonie */
#calendarGlobalOverlay .overlay-side.overlay-right .weather-block{
  gap: 18px;
}

#calendarGlobalOverlay .overlay-side.overlay-right .weather-big-icon{
  flex: 0 0 56px !important;   /* było za szeroko -> zabierało miejsce */
}

/* miasto nie może się łamać */
#calendarGlobalOverlay .overlay-side.overlay-right .weather-city{
  white-space: nowrap;
}
/* prawa kolumna: styl jak lewa */
#calendarGlobalOverlay .overlay-side.overlay-right .weather-data{
  font-style: italic;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.3px;
  line-height: 1.35;
}

/* miasto większe, ale bez kursywy */
#calendarGlobalOverlay .overlay-side.overlay-right .weather-city{
  font-style: normal;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 6px;
}
#calendarGlobalOverlay .overlay-side.overlay-right .weather-temp-line{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 6px;
}

#calendarGlobalOverlay .overlay-side.overlay-right .weather-thermo{
  font-size: 18px;
  line-height: 1;
}

#calendarGlobalOverlay .overlay-side.overlay-right #temp{
  font-style: normal;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
}

}#calendarGlobalOverlay .overlay-side.overlay-right .weather-big-icon{
    margin-left: 20px;   /* zwiększa odstęp od tekstu */
}
/* PRAWA: baza typografii jak lewa (tylko w meteo-box) */
#calendarGlobalOverlay .meteo-box{
  font-style: italic;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.3px;
  line-height: 1.35;
}

/* Miasto */
#calendarGlobalOverlay .meteo-box .weather-city{
  font-style: normal;
  font-weight: 800;
  font-size: 22px;
  white-space: nowrap;
  margin-bottom: 6px;
}

/* Linia temperatury: termometr + duża wartość */
#calendarGlobalOverlay .meteo-box .weather-temp-line{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}

#calendarGlobalOverlay .meteo-box .weather-thermo{
  font-size: 18px;
  line-height: 1;
}

#calendarGlobalOverlay .meteo-box #temp{
  font-style: normal;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
}
#calendarGlobalOverlay .meteo-box .weather-block{
  width: 100%;
  display: flex;
  justify-content: space-between;
}

#calendarGlobalOverlay .meteo-box .weather-big-icon{
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
#calendarGlobalOverlay .meteo-box #weatherDesc{
  margin-top: 2px;
  word-break: normal;
}

/* === OVERLAY: PRAWA kolumna – typografia 1:1 jak lewa === */
#calendarGlobalOverlay .overlay-side.overlay-right .side-box{
  font-size: 15px;
  line-height: 1.8;
}

/* To jest główny winowajca: .weather-data ma u Ciebie 14px i right-align */
#calendarGlobalOverlay .overlay-side.overlay-right .weather-data{
  font-size: inherit !important;
  line-height: inherit !important;
  text-align: left !important;        /* tekst “do środka overlay” */
  word-break: normal !important;      /* zamiast break-word */
}

/* Linie “Odczuwalna / Wiatr” (oraz same wartości w spanach) */
#calendarGlobalOverlay .overlay-side.overlay-right .weather-data > div,
#calendarGlobalOverlay .overlay-side.overlay-right .weather-data span,
#calendarGlobalOverlay .overlay-side.overlay-right #weatherDesc{
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: 600 !important;
  font-style: normal !important;      /* jeśli lewa nie jest kursywą → zmień na normal */
  color: #1a1a1a !important;
}
/* Overlay prawa – stan pogody w jednej linii */
#calendarGlobalOverlay #weatherDesc{
    white-space: nowrap;
}
/* Overlay prawa: większe miasto (łapie .weather-city i ewentualne #weatherCity) */
#calendarGlobalOverlay .overlay-side.overlay-right .weather-city,
#calendarGlobalOverlay .overlay-side.overlay-right #weatherCity{
  font-size: 20px !important;
  font-weight: 700 !important;
}

/* Overlay prawa: większa temperatura (łapie oba układy) */
#calendarGlobalOverlay .overlay-side.overlay-right #temp,
#calendarGlobalOverlay .overlay-side.overlay-right .weather-temp,
#calendarGlobalOverlay .overlay-side.overlay-right .weather-temp-line{
  font-size: 24px !important;
  font-weight: 800 !important;
}
.weather-big-icon {
    font-size: 42px;
    line-height: 1;
}
#calendarGlobalOverlay .big-sun img{
  width: 44px;
  height: 44px;
  display: inline-block;
}
.weather-big-icon img{
    width: 44px;
    height: 44px;
}
/* ===== GŁOŚNIK – BAZA (bez animacji) ===== */
.player-speaker-wrap{
  width: 125px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

img.player-speaker{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: 50% 50%;
  will-change: transform, filter;
}

/* ===== GŁOŚNIK – ANIMACJA TYLKO GDY GRA ===== */
.player-speaker-wrap.is-playing img.player-speaker{
  animation: speakerPulse 0.55s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(0,255,255,.55))
          drop-shadow(0 0 14px rgba(255,0,255,.25));
}

@keyframes speakerPulse{
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
/* === PLAYER: WARSTWY pod hover (iframe ma przykrywać głośniki) === */
body.shoutbox-page .player-box-card .player-row {
  position: relative;
  overflow: visible;
}

body.shoutbox-page .player-box-card .player-side {
  position: relative;
  z-index: 1; /* głośniki niżej */
}

body.shoutbox-page .player-box-card .player-center {
  position: relative;
  z-index: 2; /* iframe wyżej */
}

/* Na hover jeszcze wyżej, żeby na pewno przykryło obie strony */
body.shoutbox-page .player-box-card:hover .player-center {
  z-index: 999;
}

/* Dla pewności: skalowany iframe ma prawo "wychodzić" */
body.shoutbox-page .player-box-card .player-layout {
  overflow: visible;
}
/* Hover ma rosnąć w miarę "równo" góra/dół (jak wcześniej) */
body.shoutbox-page .player-layout iframe {
  transform-origin: 50% 40%;
}
/* === PLAYER: układ responsywny jak "zegar/grafik/kalendarz" === */

/* Domyślnie (desktop / duży tablet): NIE pozwalamy spadać elementom pod spód */
body.shoutbox-page .player-box-card .player-row{
  flex-wrap: nowrap !important;          /* zamiast wrap */
}

/* Średnie ekrany: zmniejszamy głośniki, żeby 3 elementy mieściły się w rzędzie */
@media (max-width: 980px){
  body.shoutbox-page .player-speaker-wrap{
    width: 95px !important;
    height: 95px !important;
  }
}

/* Małe ekrany / pion: układ pionowy (głośnik – player – głośnik) */
@media (max-width: 720px){
  body.shoutbox-page .player-box-card .player-row{
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    height: auto !important;             /* nadpisuje inline height:150px */
    gap: 14px !important;
  }

  body.shoutbox-page .player-box-card .player-side,
  body.shoutbox-page .player-box-card .player-center{
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
}
/* === PLAYER: 3 kolumny na szerokości (desktop/duży tablet) === */
@media (min-width: 721px){
  body.shoutbox-page .player-box-card .player-row{
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.shoutbox-page .player-box-card .player-center{
    flex: 0 0 600px !important; /* środek zawsze 600 */
    max-width: 600px !important;
  }

  body.shoutbox-page .player-box-card .player-side{
    flex: 1 1 auto !important;  /* boki biorą resztę równo */
    display: flex;
    justify-content: center;
  }

  body.shoutbox-page .player-box-card .player-layout iframe{
    width: 600px !important;
    height: 150px !important;
    display: block;
  }
}
/* === PLAYER: jednolite tło całego kontenera === */
/* PLAYER ma mieć identyczne tło jak inne karty */
body.shoutbox-page .player-box-card{
  background: inherit !important;
}

body.shoutbox-page .player-box-card .player-row{
  background: transparent !important;
}
/* === PLAYER: usuwamy wewnętrzną "drugą kartę" === */
body.shoutbox-page .player-box-card .player-row{
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* === PLAYER: identyczne tło jak kontener grafika === */
body.shoutbox-page .player-box-card{
  background: #414270 !important;
}
/* === ORB: przycisk trybu czytania historii nagrań z tygodnia === */
body.shoutbox-page #orbFocusBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  max-width: 100%;
  padding: 12px 18px;

  margin: 16px auto;          /* centrowanie */
  cursor: pointer;
  text-align: center;
  white-space: normal;        /* tekst może się łamać jeśli brak miejsca */
}
/* Wrapper centrowania przycisku ORB */
body.shoutbox-page .orb-focus-wrapper{
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 18px 0;
}

/* sam przycisk – szerokość wg tekstu */
body.shoutbox-page #orbFocusBtn{
  display: inline-block;
  padding: 12px 18px;
  width: auto;
  max-width: 100%;
  text-align: center;
}
/* ===== PANEL ORB (tryb czytania historii) ===== */

#orbFocusPanel{
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;

    background: rgba(20, 25, 45, 0.98);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
    z-index: 9999;

    display: none;          /* ukryty domyślnie */
}

/* gdy aktywny */
#orbFocusPanel.active{
    display: block;
}

/* nagłówek pasek górny jak w chat */
#orbFocusPanel .focus-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: #2a3b6b;
    color: #fff;
    font-weight: 600;
}

/* przycisk X */
#orbFocusPanel #closeOrbFocus{
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* miejsce na widget */
#orbFocusContainer{
    padding: 15px;
    max-height: 60vh;       /* duży widok, ale nie na całą stronę */
    overflow: auto;
}
/* ===== PANEL ORB: szerokość jak chat + wysokość 2/3 ekranu ===== */

#orbFocusPanel{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  height: 66vh;          /* ~2/3 ekranu */
  max-height: 80vh;
  z-index: 9999;

  display: none;
  overflow: hidden;      /* żeby nic nie wyciekało */
  background: transparent; /* tło robimy na "ramie" niżej */
}

#orbFocusPanel.active{
  display: block;
}

/* “Rama” panelu ograniczona jak kontenery (jak chat) */
#orbFocusPanel .focus-header,
#orbFocusContainer{
  width: min(1040px, 100%);   /* <- jeśli chat ma inny max, zmienisz tu jedną liczbę */
  margin: 0 auto;
  box-sizing: border-box;
}

/* tło i pasek nagłówka */
#orbFocusPanel .focus-header{
  background: #2a3b6b;
  color: #fff;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* zawartość: reszta wysokości panelu */
#orbFocusContainer{
  height: calc(66vh - 52px);  /* 52px ~ wysokość headera */
  overflow: auto;
  padding: 0;                /* usuwa “czarne boki” od paddingu */
  background: transparent;
}
/* ===== ORB PANEL: jak chat (rama + brak przebijania) ===== */

#orbFocusPanel{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  display: none;

  /* tło zasłaniające stronę pod spodem */
  background: rgba(0,0,0,0.55);
}

#orbFocusPanel.active{ display:block; }

/* Rama (ograniczona szerokość jak content) */
#orbFocusPanel .focus-header,
#orbFocusContainer{
  width: min(1040px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}

/* Header */
#orbFocusPanel .focus-header{
  background: #2a3b6b;
  color: #fff;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Kontener na widget: duży, czytelny */
#orbFocusContainer{
  background: #1f2b52;       /* pełne tło ramy */
  padding: 12px;
  height: 90vh;              /* 2/3 ekranu */
  overflow: hidden;          /* scroll ma być w środku widgetu */
}

/* I NAJWAŻNIEJSZE: zwiększamy wysokość listy wpisów TYLKO w panelu */
#orbFocusContainer .orbIL{
  height: calc(66vh - 110px) !important; /* 110px ~ pasek widgetu i marginesy */
}
/* Rama panelu – pełne tło strony po bokach */
#orbFocusPanel{
  background: #414270;   /* kolor Twojego tła strony */
}

/* Środek (1040) jak kontenery */
#orbFocusPanel .focus-header,
#orbFocusContainer{
  width: 1040px;
  max-width: 100%;
  margin: 0 auto;
}

/* Widget w panelu – zachowuje swoją oryginalną szerokość,
   ale nie wyjdzie poza ramę */
#orbFocusContainer{
  overflow: auto;
  height: 66vh;
}

/* Zwiększenie wysokości listy (to zostaje) */
#orbFocusContainer .orbIL{
  height: calc(66vh - 110px) !important;
}

/* ===== WSPÓLNY STYL: przyciski trybu czytania (CHAT + ORB) ===== */

body.shoutbox-page button.focus-btn{
  background: rgba(0,0,0,0.90) !important;
  border: 2px solid #bfe8d6 !important;
  color: #d7fff1 !important;

  font-size: 13px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;

  min-height: 46px !important;
  padding: 10px 22px !important;
  border-radius: 3px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  vertical-align: middle !important;

  cursor: pointer !important;
  transition: all 0.25s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

body.shoutbox-page button.focus-btn:hover{
  background: rgba(0,0,0,0.97) !important;
  box-shadow: 0 0 12px rgba(0,255,180,0.35) !important;
}

/* wyśrodkowanie i kontrola odstępów obu buttonów */
body.shoutbox-page #chatFocusBtn,
body.shoutbox-page #orbFocusBtn{
  display: flex !important;
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

/* pierwszy button - ciaśniej między playerem a chatem */
body.shoutbox-page #chatFocusBtn{
  margin-top: 6px !important;
  margin-bottom: 10px !important;
}


body.shoutbox-page .orb-box-card{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

body.shoutbox-page .orb-box-card .orb-center{
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

/* ===== ORB: boczne obrazy – stały rozmiar ===== */

body.shoutbox-page .orb-box-card .orb-side{
  width: 120px;
  height: 187px;

  background: url("/png/radiohistory.png") center center no-repeat;
  background-size: contain;   /* zachowuje proporcje */
  
  flex: 0 0 120px;
}
/* ===== ORB panel: maksymalna wysokość i lista na pełną wysokość ===== */
#orbFocusPanel{
  height: 70vh !important;
  max-height: 70vh !important;
}

#orbFocusContainer{
  height: calc(80vh - 54px) !important; /* 54px ~ header panelu */
}

/* najważniejsze: sama lista wpisów */
#orbFocusContainer .orbIL{
  height: calc(80vh - 140px) !important; /* więcej miejsca na pasek ORB + margines */
  max-height: calc(92vh - 140px) !important;
  overflow-y: auto !important;
}
/* ORB panel: niższy pasek panelu onlinebox + mniejsze X */
#orbFocusPanel .focus-header{
  padding: 6px 12px !important;
  line-height: 1.1;
}

#orbFocusPanel .focus-header span{
  font-size: 14px !important;
}

/* klucz: zmniejszamy X, bo to on “pompował” wysokość */
#orbFocusPanel #closeOrbFocus{
  padding: 4px 10px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  border-width: 1px !important;   /* jeśli masz obramowanie */
}
/* ===== ORB: responsywność bocznych obrazków ===== */

/* Tablet/pion: zmniejszamy boczne obrazki */
@media (max-width: 900px){
  body.shoutbox-page .orb-box-card .orb-side{
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
  }
}

/* Telefon: chowamy boczne obrazki, zostaje sama historia */
@media (max-width: 600px){
  body.shoutbox-page .orb-box-card .orb-side{
    display: none;
  }

  body.shoutbox-page .orb-box-card{
    justify-content: center;
  }
}
/* ===== WSPÓLNY SZKIELET: panele focus (CHAT + ORB) ===== */

body.shoutbox-page .focus-panel{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;

  display: none;
}

body.shoutbox-page .focus-panel.active{
  display: block;
}

/* wspólny nagłówek */
body.shoutbox-page .focus-panel .focus-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#historyModule{
  max-width: 1100px;
  margin: 30px auto 0 auto;
  padding: 24px 28px !important;

  background: #403e75 !important;
  border-radius: 34px !important;

  box-shadow:
    0 0 14px rgba(0,255,255,0.75),
    0 0 34px rgba(0,255,255,0.35);

  box-sizing: border-box;
  overflow: hidden;
}

#historyModule .history-inner{
  border-radius: 22px;
  overflow: hidden;
}

