/* =========================================================
   Player styling — quotarevival.net visual identity
   Palette + sizing from /assets/stream.css?_v=0.0.2
   Wired to YOUR existing markup so the PHP method stays intact:
     .tb / .tb.stream-offline / .tb-col / .counter
     #UnMutePlayer / .unmute
   ========================================================= */

:root {
    --primary-color: #7cafa0;
    --secondary-color: #4b4b4b;
    --background-color: #01060e;
    --text-color: #fcfcfc;
    --text-secondary: #4b4b4b;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}
body {
    font-family: sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}
* { box-sizing: border-box; }

img { box-shadow: #000 0 0 0; border: 0; vertical-align: middle; }

#player {
    width: 100%;
    height: 100%;
}

/* ---------- Clappr seek bar / volume / DVR (mint accent) ---------- */
#player .bar-fill-2 {
    background-color: var(--primary-color) !important;
}
#player .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume].fill {
    box-shadow: inset 2px 0 0 var(--primary-color);
}
#player .dvr-controls[data-dvr-controls] .live-info::before {
    background-color: var(--primary-color);
}

/* ---------- Stream offline panel ----------
   Your PHP markup:
     <div class="tb stream-offline">
       <div class="tb-col">
         <h2>STREAM IS OFFLINE</h2>
         <p>Retrying in <span class="counter"></span> seconds</p>
       </div>
     </div>
*/
.tb {
    z-index: 2147483646;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    text-align: center;
    background-color: var(--background-color);
}
.tb.stream-offline {
    display: none; /* JS sets display:"table" when shown */
}
.tb-col {
    display: table-cell;
    width: 100%;
    height: 100%;
    text-align: center;
    vertical-align: middle;
    color: var(--text-color);
    padding: 20px;
}
.tb-col h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.tb-col p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 400;
}
.tb-col .counter {
    color: var(--primary-color);
    font-weight: 700;
}

/* ---------- Unmute button (top-left transparent pill) ----------
   Matches quotarevival's #unmute exactly, applied to YOUR
   #UnMutePlayer .unmute so your JS works unchanged. */
#UnMutePlayer {
    display: none; /* JS toggles to "block" */
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 9998;
}
#UnMutePlayer .unmute {
    display: inline-block;
    cursor: pointer;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    padding: 0.4rem 1.5rem;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
    opacity: 0.6;
    outline: none;
    transition: opacity 0.15s ease;
}
#UnMutePlayer .unmute:hover  { opacity: 1; }
#UnMutePlayer .unmute:active { opacity: 0.6; }

/* ---------- Spinner (mint accent on the loader) ---------- */
#player .spinner-three-bounce {
    width: 64px;
    height: 64px;
    opacity: 0.8;
    border: 4px solid #FFF;
    border-bottom-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    background: 0;
    margin-top: -32px;
    transform: unset;
}
#player .spinner-three-bounce > div { display: none !important; }

@keyframes rotation {
    0%   { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}
