/* ============================================
   CLOUDBUSTER RADIO – FRONTEND STYLES
   ============================================ */

/* ---------- TABLE OF CONTENTS ----------
   1.  SCHEDULE NAVIGATION
   2.  SCHEDULE TABLE (MAIN)
   3.  SCHEDULE TABLE – HEADER
   4.  SCHEDULE TABLE – TIME COLUMN
   5.  SHOW BLOCKS (GLASSMORPHIC)
   6.  ON AIR ICON / LIVE SHOW
   7.  SCHEDULE WRAPPER (BACKGROUND)
   8.  LIGHTBOXES
   9.  MOBILE SCHEDULE ACCORDION
  10.  SHOW GALLERY
  11.  NOW PLAYING WIDGET
  12.  SEARCH WIDGET
  13.  RESPONSIVE BREAKPOINTS
  14.  Episode Archive
   ============================================ */

/* ============================================
   1. SCHEDULE NAVIGATION
   ============================================ */
.cbr-schedule-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    margin: auto;
    margin-bottom: -8px;
/*    background: rgba(196, 125, 71, 0.65);*/
    background-image: url('https://cloudbusterradio.com/wp-content/uploads/2026/07/BG_attemp_5.png');
    background-color: rgba(225, 81, 47,0.6);
    background-blend-mode: darken;
    border-radius: 16px;
    border: 2px solid #FFBD59;
    text-shadow: 0.08em 0.07em 0 #E1512F;
    flex-wrap: wrap;
    width: 50%;
}

.cbr-week-prev, .cbr-week-next {
    margin: 0px;
}

.cbr-schedule-nav button {
    background: rgba(0, 0, 0, 0.35) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 189, 89, 0.3);
    color: #FFBD59;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}
.cbr-schedule-nav button:hover {
    background: rgba(255, 189, 89, 0.25);
    border-color: #FFBD59;
}
.cbr-schedule-nav button:active {
    transform: scale(0.95);
}
.cbr-schedule-nav .cbr-week-label {
    font-weight: bold;
    color: #FFBD59;
    font-size: 1.5rem;
    min-width: 180px;
    text-align: center;
    background: rgba(0, 0, 0, 0.35) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 189, 89, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    
    
}

/* ============================================
   2. SCHEDULE TABLE (MAIN)
   ============================================ */
.cbr-schedule-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 1rem;
    background: transparent !important;
    margin: 0 !important;
    
}
.cbr-schedule-table th,
.cbr-schedule-table td {
    border: none !important;
    padding: 0 !important;
    vertical-align: top !important;
    text-align: center;
    background: transparent !important;
    line-height: 1.2;
}
.cbr-schedule-table tr {
    border: none !important;
    background: transparent !important;
}
.cbr-schedule-table tbody {
    background: transparent !important;
}

/* ============================================
   3. SCHEDULE TABLE – HEADER
   ============================================ */
.cbr-schedule-table thead {
    top: 32px;
    position: sticky !important;
    top: 0;
    z-index: 20;
  /*  border-top-left-radius: 12px; */
  /*  border-top-right-radius: 12px; */
    clip-path: inset(0 round 6px 6px 0 0);
  /*  border-top: 3px solid #FFBD59; */
}

.cbr-schedule-table thead th {
    padding: 0;
    text-align: center;
    vertical-align: middle;
    line-height: 0;
    height: auto;
    min-height: 0;
    background: transparent !important;
}
/* Day columns – minimum width */
.cbr-schedule-table thead th:not(:first-child) {
    min-width: 80px;             
    width: 13%;                  
    padding: 0;
    vertical-align: middle;
    text-align: center;
}
.cbr-day-header {
    display: block;
    width: 100%;
    line-height: 0;
    border-bottom: 0.5px solid #FFBD59;
}


.cbr-day-icon {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* ============================================
   4. SCHEDULE TABLE – TIME COLUMN
   ============================================ */
.cbr-schedule-table .cbr-time-slot {
    vertical-align: top !important;
    font-weight: bold;
    color: #FFBD59;
    text-shadow: 0.08em 0.07em 0 #E1512F;
    font-size: 0.95rem;
    text-align: right !important;
    white-space: nowrap;
    min-width: 40px;
    width: 1% !important;
    padding-top: 12px !important;
    padding-right: 8px !important;
    background-color: rgba(66, 65, 60, 0.65) !important;
    overflow: visible !important;
    
}

/* Apply border to the time slot in the last row */
.cbr-schedule-table tbody tr:last-child .cbr-time-slot {
    border-bottom-left-radius: 20px;
}

.cbr-schedule-table thead th:first-child {
    min-width: 50px;
    width: 50px;
    padding: 8px 4px;
    line-height: normal;
    font-weight: bold;
    color: #FFBD59;
    text-align: right;
    background-image: url('https://cloudbusterradio.com/wp-content/uploads/2026/07/CloudBuster-Corner-Logo.svg') !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    
}

/* ============================================
   5. SHOW CELLS & BLOCKS (GLASSMORPHIC)
   ============================================ */
   


/* ===== CELL CONTAINER ===== */
.cbr-schedule-table .cbr-show-cell {
    position: relative !important;
    padding: 0 !important;
    padding-bottom: 28px !important; /* Reserve space for the marker */
    vertical-align: top !important;
    height: 100% !important;
    cursor: pointer;
    z-index: 1;
    overflow: hidden; /* Contains the ::before layer */
    isolation: isolate;
    background: rgba(196, 125, 71, 0.85) !important; /* solid fallback */
}

/* ===== BLUR LAYER (::before) ===== */
.cbr-schedule-table .cbr-show-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
    border-radius: 13px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    z-index: 0; /* Behind the content */
    pointer-events: none; /* Allows clicks to pass through to the cell */
    transition: background 0.3s ease, transform 0.3s ease;
}

/* ===== CELL HOVER – Applied to ::before ===== */
.cbr-schedule-table .cbr-show-cell:hover::before {
    background: rgba(135, 83, 44, 0.55) !important;
    transform: scale(1.01);
}

/* ===== TIME HIGHLIGHT – Applied to ::before ===== */
.cbr-schedule-table .cbr-show-cell.cbr-time-highlight::before {
    background: rgba(135, 83, 44, 0.55) !important;
    transform: scale(1.01);
}



/* ===== CONTENT BLOCK (sits on top) ===== */
.cbr-schedule-table .cbr-show-cell .cbr-show-block {
    position: relative;
    z-index: 2; /* Above the ::before layer */
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 12px 16px;
    margin: 0;
    width: 100%;
    height: 100% !important;
    box-sizing: border-box;
    color: #FFBD59;
    line-height: 1.4;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    flex-shrink: 0;
}

/* ===== SHOW TITLE ===== */
.cbr-schedule-table .cbr-show-cell .cbr-show-block strong {
    letter-spacing: 7%;
    color: #FFBD59;
    text-shadow: 0.08em 0.07em 0 #E1512F;
    font-size: 1rem;
    font-weight: 600;
    text-wrap: balance;
    line-height: 1.3;
    margin: 4px 0;
    max-width: 100%;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: visible !important;
    box-sizing: border-box;
}

/* ===== SHOW START TIME ===== */
.cbr-schedule-table .cbr-show-cell .cbr-show-start {
    font-size: 0.85rem;
    font-weight: bold;
    color: #FFBD59;
    margin-bottom: 2px;
    flex-shrink: 0;
}

/* ===== DJ NAME ===== */
.cbr-schedule-table .cbr-show-cell .cbr-dj-name {
    color: #FFBD59;
    text-shadow: 0.08em 0.07em 0 #E1512F;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 2px;
}

/* ===== EMPTY CELL ===== */
.cbr-empty-cell {
    background: transparent !important;
}

/* ===== SPACER ===== */
.cbr-spacer {
    flex: 1;
    min-height: 4px;
}

/* ============================================
   TIME HOVER HIGHLIGHT
   ============================================ */
.cbr-show-cell.cbr-time-highlight {
    background: rgba(135, 83, 44, 0.55) !important;
    transform: scale(1.01);
    transition: all 0.3s ease;
}


.cbr-time-slot {
    cursor: pointer;
    transition: background 0.2s ease;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.cbr-time-slot:hover {
    background: rgba(135, 83, 44, 0.2) !important;
    text-shadow: 0.08em 0.07em 0 #E1512F, 0 0 20px rgba(225, 81, 47, 0.3);
    background-color: rgba(66, 65, 60, 0.45) !important;
    transition: all 0.25s ease;
    overflow: visible !important;   
    position: relative;             
                       
}

.cbr-time-slot .cbr-time-label {
    display: inline-block; 
    transform-origin: center;
    transition: transform 0.25s ease;
    white-space: nowrap;
    position: relative;
    pointer-events: none !important;
    position: relative !important;
    z-index: 6 !important;           /* above show cell (1) and other time slots (0) */
}

.cbr-time-slot:hover .cbr-time-label {
    transform: scale(2);
    z-index: 6 !important;    
}


/* ============================================
   MIDNIGHT CROSSING MARKER
   ============================================ */
.cbr-schedule-table .cbr-show-cell .cbr-show-midnight-marker {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2; /* Above content */
    display: block;
    font-size: 1.0rem;
    font-weight: bold;
    color: #FFBD59;
    text-align: center;
    padding-top: 4px;
    padding-bottom: 2px;
    border-top: 1px solid rgba(255, 189, 89, 0.2);
    letter-spacing: 1px;
    opacity: 0.9;
    width: 100%;
    flex-shrink: 0;
    border-radius: 0 0 13px 13px;
    background: inherit;  
}

.cbr-show-midnight-marker.continues {
    color: #FFBD59;
    border-top: 1px solid rgba(255, 189, 89, 0.2);
    animation: pulsing 2s infinite;
}

@keyframes pulsing {
    0%   { transform: scale(0.95); }
    70%  { transform: scale(1); }
    100% { transform: scale(0.95); }
}

/* ============================================
   CONTINUATION BLOCKS
   ============================================ */
.cbr-show-block.cbr-continuation .cbr-show-continues-from {
    font-size: 0.6rem;
    font-weight: normal;
    color: #FFBD59;
    opacity: 0.7;
    margin-bottom: 2px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* ============================================
   ON AIR ICON / LIVE SHOW
   ============================================ */
.cbr-on-air-icon {
    display: inline-block;
    width: 50px;
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
    animation: heatGlow 2s ease-in-out infinite;
}

@keyframes heatGlow {
    0%   { filter: drop-shadow(0 0 0px #E1512F); transform: scale(1); }
    50%  { filter: drop-shadow(0 0 6px #ff3b00) drop-shadow(0 0 12px #ff6a4a); transform: scale(1); }
    100% { filter: drop-shadow(0 0 0px #E1512F); transform: scale(1); }
}

/* ===== LIVE SHOW – Applied to ::before ===== */
.cbr-schedule-table .cbr-show-cell.cbr-show-live::before {
    box-shadow: 0 0 30px rgba(225, 81, 47, 0.3), inset 0 0 30px rgba(225, 81, 47, 0.05) !important;
    background: rgba(163, 11, 11, 0.75) !important;
    border-color: rgba(225, 81, 47, 0.5) !important;
}

/* ============================================
   CELL DIFFERENTIATION
   ============================================ */

/* Thin gold border on all cells */
.cbr-schedule-table .cbr-show-cell {
    border: 1px solid rgba(255, 189, 89, 0.12) !important;
}

/* Chessboard shading – alternates between rows and columns */
.cbr-schedule-table tbody tr:nth-child(even) .cbr-show-cell:nth-child(odd) {
    background: rgba(255, 255, 255, 0.03) !important;
}

.cbr-schedule-table tbody tr:nth-child(odd) .cbr-show-cell:nth-child(even) {
    background: rgba(255, 255, 255, 0.03) !important;
}

/* The other cells stay with the default background */


/* ============================================
   7. SCHEDULE WRAPPER (BACKGROUND)
   ============================================ */
.cbr-schedule-wrapper {
    position: relative;
    padding: 0 !important;
    border: 3px solid #FFBD59;
    border-radius: 12px;
    box-sizing: border-box;
    min-height: 400px;
    overflow: visible !important;
    max-width: 100%;
    overflow-x: auto;
    isolation: isolate;
    
}



.cbr-schedule-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://cloudbusterradio.com/wp-content/uploads/2026/07/BG_attemp_5.png');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    border-radius: 12px; /* Match wrapper */
    z-index: 0;
    pointer-events: none; /* So it doesn't block clicks */
}

.cbr-schedule-wrapper table {
    position: relative;
    z-index: 1;
}

/* ============================================
   8. LIGHTBOX
   ============================================ */
#cbr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cbr-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cbr-lightbox-content {
    position: relative;
    background: rgba(196, 125, 71, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 30px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #FFBD59;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.cbr-lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 2rem;
    font-weight: 300;
    color: #FFBD59;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.cbr-lightbox-close:hover {
    transform: scale(1.2);
}

.cbr-lightbox-body {
    margin-top: 8px;
}

.cbr-lb-tagline {
    font-size: 1rem;
    font-style: none;
    letter-spacing: 1.1px;
    color: #E2DFD2 !important;
    opacity: 0.8;
    margin-top: -4px !important;
    margin-bottom: 4px !important;
}

.cbr-lb-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.cbr-lb-left {
    flex: 0 0 200px;
}
.cbr-lb-left img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cbr-lb-right {
    flex: 1;
    min-width: 200px;
}
.cbr-lb-right h2 {
    margin: 0 0 4px 0;
    color: #FFFFFF;
}
.cbr-lb-right p {
    margin: 4px 0;
    color: #FFBD59;
}
.cbr-lb-description {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin-top: 8px;
}

/* Lightbox ON AIR icon – smaller and inline */
.cbr-lb-right .cbr-on-air-icon {
    width: 36px;
    height: auto;
    vertical-align: middle;
    margin-left: 6px;
    animation: heatGlow 2s ease-in-out infinite;
}

.cbr-lb-onair {
    display: inline-block;
    background: #E1512F;
    color: #fff;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 6px;
}
.cbr-lb-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.cbr-lb-btn {
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid #FFBD59;
    color: #FFBD59;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.2s;
    letter-spacing: 0.6px;
}
.cbr-lb-btn:hover {
    background: #FFBD59;
    color: #333;
}

.cbr-lb-listen {
    margin-top: 12px;
    padding: 10px 24px;
    background: #FFBD59;
    color: #333;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.cbr-lb-listen:hover {
    background: #FF7F5E;
    color: #fff;
}

.cbr-lb-btn.cbr-lb-share {
    background: rgba(255, 255, 255, 0.1);
    border-color: #87A5E8;
    color: #87A5E8;
}
.cbr-lb-btn.cbr-lb-share:hover {
    background: #87A5E8;
    color: #333;
}

/* Upcoming dates */
.cbr-lb-upcoming {
    font-size: 0.95rem;
    color: #FFBD59;
    margin: 4px 0 8px 0;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .cbr-lb-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .cbr-lb-left {
        flex: none;
        width: 150px;
    }
}


/* ============================================
   9. MOBILE SCHEDULE ACCORDION
   ============================================ */
.cbr-schedule-mobile {
    display: none;
}
.cbr-day-accordion {
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}
.cbr-day-accordion summary {
    background: #87A5E8;
    color: white;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
}
.cbr-day-accordion summary:hover {
    background: #6f8ed0;
}
.cbr-day-shows {
    padding: 10px;
}
.cbr-mobile-show {
    background: #FFBD59;
    margin: 8px 0;
    padding: 10px;
    border-radius: 12px;
}
.cbr-mobile-time {
    font-size: 0.85em;
    color: #333;
}
.cbr-mobile-title {
    font-weight: bold;
}
.cbr-mobile-dj {
    font-size: 0.85em;
    color: #555;
}

/* ============================================
   10. SHOW GALLERY
   ============================================ */
.cbr-show-days {
    display: block;
    font-size: 0.8rem;
    font-weight: normal;
    opacity: 0.8;
    margin-top: 4px;
}

.cbr-show-gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Gallery Controls */
.cbr-show-gallery-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    background: rgba(196, 125, 71, 0.65);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 16px 20px;
    border: 0.5px solid #FFBD59;
}

.cbr-search-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
}
.cbr-gallery-search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid rgba(255, 189, 89, 0.3);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFBD59;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.cbr-gallery-search-input:focus {
    border-color: #FFBD59;
}
.cbr-gallery-search-input::placeholder {
    color: rgba(255, 189, 89, 0.6);
}
.cbr-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFBD59;
    font-size: 1.2rem;
}

.cbr-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cbr-sort-wrapper label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}
.cbr-gallery-sort-select {
    padding: 8px 14px;
    border-radius: 30px;
    border: 2px solid rgba(255, 189, 89, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #FFBD59;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

/* Gallery Grid */
.cbr-show-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.cbr-show-gallery-item {
    background: rgba(196, 125, 71, 0.65);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 12px;
    border: 0.5px solid #FFBD59;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cbr-show-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.cbr-show-gallery-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

/* Thumbnail Wrapper */
.cbr-show-thumb-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 3px solid #FFBD59;
}
.cbr-show-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.cbr-show-thumb-wrapper:hover img {
    transform: scale(1.05);
}
.cbr-show-thumb-wrapper:hover .cbr-show-caption {
    opacity: 1 !important;
}

/* Caption Overlay */
.cbr-show-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #FFBD59;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

/* Placeholder */
.cbr-show-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(255, 189, 89, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #FFBD59;
    text-align: center;
    padding: 16px;
}

/* No Results */
.cbr-gallery-no-results {
    text-align: center;
    color: #FFBD59;
    font-size: 1.2rem;
    padding: 40px 0;
}

/* ===== NOW PLAYING WIDGET ===== */
.cbr-now-card {
    padding: 15px 20px;
    margin: 0;
    background: rgba(196, 125, 71, 0.95);
    border-radius: 16px;
    border: 0.5px solid #FFBD59;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cbr-now-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.cbr-now-onair {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(225, 81, 47, 0.7);
    padding: 4px 12px 4px 8px;
    border-radius: 20px;
    border: 1px solid rgba(225, 81, 47, 0.3);
}

.cbr-now-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #FFBD59;
    border-radius: 50%;
    animation: cbr-pulse 1.5s ease-in-out infinite;
}

@keyframes cbr-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.cbr-now-label {
    font-weight: bold;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FFBD59;
}

.cbr-now-logo {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 189, 89, 0.3);
}

.cbr-now-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cbr-now-body {
    flex: 1;
    min-width: 0;
}

.cbr-now-title {
    font-size: 1.3rem;
    margin: 0 0 2px 0;
    color: #FFBD59;
    text-shadow: 0.05em 0.07em 0 #E1512F;
}

.cbr-now-title a {
    color: inherit;
    text-decoration: none;
}

.cbr-now-title a:hover {
    color: #fff;
}

.cbr-now-dj {
    font-size: 0.95rem;
    color: #f0e6d8;
    opacity: 0.8;
    margin-bottom: 4px;
}

.cbr-now-description {
    font-size: 0.85rem;
    color: #f0e6d8;
    opacity: 0.7;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cbr-now-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 1.2rem;
    color: #f0e6d8;
    opacity: 0.8;
}

.cbr-now-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cbr-now-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 0.5px solid rgba(255, 189, 89, 0.15);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.cbr-now-link {
    color: #FFBD59;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.cbr-now-link:hover {
    color: #fff;
    text-decoration: underline;
}

.cbr-now-link-primary {
    margin-left: auto;
    font-weight: bold;
    background: rgba(255, 189, 89, 0.1);
    padding: 2px 12px;
    border-radius: 12px;
    border: 0.5px solid rgba(255, 189, 89, 0.2);
}

.cbr-now-link-primary:hover {
    background: rgba(255, 189, 89, 0.2);
    text-decoration: none;
}

/* ===== OFFLINE / ERROR STATES ===== */
.cbr-now-offline {
    text-align: center;
    padding: 24px 20px;
    color: #f0e6d8;
}

.cbr-now-offline-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.cbr-now-offline p {
    margin: 0 0 4px 0;
    font-weight: 600;
}

.cbr-now-offline-sub {
    font-size: 0.85rem;
    opacity: 0.6;
}

.cbr-now-offline-sub a {
    color: #FFBD59;
    text-decoration: none;
}

.cbr-now-offline-sub a:hover {
    color: #fff;
    text-decoration: underline;
}

.cbr-now-error {
    text-align: center;
    padding: 20px;
    color: #f0e6d8;
    opacity: 0.6;
}

.cbr-now-error p {
    margin: 0;
}

.cbr-now-error-sub {
    font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .cbr-now-header {
        flex-wrap: wrap;
    }
    .cbr-now-logo {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
    }
    .cbr-now-title {
        font-size: 1.1rem;
    }
    .cbr-now-link-primary {
        margin-left: 0;
    }
}

/* ============================================
   12. SEARCH WIDGET
   ============================================ */
#cbr-search-widget {
    margin: 1rem 0;
}
#cbr-search-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #FF7F5E;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}
#cbr-search-input:focus {
    border-color: #E1512F;
    box-shadow: 0 0 0 2px rgba(225, 81, 47, 0.2);
}
#cbr-search-results {
    margin-top: 15px;
}
#cbr-search-results h4 {
    margin: 15px 0 5px;
    color: #E1512F;
    border-bottom: 2px solid #FFBD59;
    display: inline-block;
}
#cbr-search-results ul {
    list-style: none;
    padding-left: 0;
}
#cbr-search-results li {
    background: #f5f5f5;
    margin: 5px 0;
    padding: 10px;
    border-radius: 8px;
}
#cbr-search-results li a {
    text-decoration: none;
    color: #E1512F;
    font-weight: bold;
}
#cbr-search-results li a:hover {
    text-decoration: underline;
}

/* ============================================
   13. RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 768px) {
    /* Schedule */
    .cbr-schedule-wrapper {
        display: none;
    }
    .cbr-schedule-mobile {
        display: block;
    }
    .cbr-schedule-table th,
    .cbr-schedule-table td {
        padding: 0 !important;
        font-size: 0.8rem;
    }
    .cbr-on-air-icon {
        width: 30px;
    }

    /* Navigation */
    .cbr-schedule-nav {
        gap: 8px;
    }
    .cbr-schedule-nav .cbr-week-label {
        font-size: 0.9rem;
        min-width: 120px;
        order: 0;
        width: 100%;
    }
    .cbr-schedule-nav button {
        padding: 4px 12px;
        font-size: 0.9rem;
        background: solid #E1512F;
    }

    /* Gallery */
    .cbr-show-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    .cbr-show-gallery-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .cbr-sort-wrapper {
        justify-content: center;
    }
    .cbr-show-caption {
        font-size: 1rem;
    }

    /* Now Playing */
    .cbr-now-card {
        padding: 1rem;
    }
    .cbr-logo {
        max-width: 60px;
    }

    /* Day Icons – smaller on mobile */
    .cbr-day-icon {
        width: 24px;
        height: 24px;
        max-width: 24px;
        max-height: 24px;
    }
}

@media (max-width: 600px) {
    .cbr-schedule-nav {
        gap: 6px;
        padding: 8px 12px;
    }
}

/* ============================================
   14. Episode Archive
   ============================================ */

/* ===== EPISODE ARCHIVE ===== */
.cbr-episode-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.cbr-episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.cbr-episode-card {
    background: rgba(196, 125, 71, 0.65);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px;
    border: 0.5px solid #FFBD59;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.cbr-episode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cbr-episode-card-header {
    margin-bottom: 12px;
}

.cbr-episode-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: #FFBD59;
    margin-bottom: 6px;
}

.cbr-episode-number {
    color: #E1512F;
    font-weight: bold;
}

.cbr-explicit-badge {
    background: #E1512F;
    color: #fff;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.cbr-episode-date {
    opacity: 0.7;
}

.cbr-episode-title {
    font-size: 1.2rem;
    margin: 4px 0;
}

.cbr-episode-title a {
    color: #FFBD59;
    text-decoration: none;
}
.cbr-episode-title a:hover {
    color: #fff;
}

.cbr-episode-show-link {
    font-size: 0.9rem;
}

.cbr-episode-show-name {
    color: #f0e6d8;
    text-decoration: none;
    opacity: 0.8;
}
.cbr-episode-show-name:hover {
    opacity: 1;
    color: #FFBD59;
}

.cbr-episode-card-body {
    flex: 1;
}

.cbr-episode-player-wrapper {
    margin: 12px 0;
}

.cbr-episode-player-wrapper audio {
    width: 100%;
}

.cbr-episode-guest-display {
    color: #f0e6d8;
    font-size: 0.9rem;
    margin: 6px 0;
}

.cbr-episode-genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.cbr-episode-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #FFBD59;
}

.cbr-episode-duration {
    font-size: 0.85rem;
    opacity: 0.6;
}

.cbr-episode-card-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 0.5px solid rgba(255, 189, 89, 0.2);
}

.cbr-episode-details-link {
    color: #FFBD59;
    text-decoration: none;
    font-size: 0.9rem;
}
.cbr-episode-details-link:hover {
    color: #fff;
}

.cbr-episode-no-audio {
    opacity: 0.5;
    font-style: italic;
}

.cbr-episode-no-results {
    text-align: center;
    padding: 40px;
    color: #f0e6d8;
}

.cbr-episode-pagination {
    margin-top: 30px;
    text-align: center;
}

.cbr-episode-pagination ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.cbr-episode-pagination li {
    display: inline;
}

.cbr-episode-pagination a,
.cbr-episode-pagination span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    border: 0.5px solid rgba(255, 189, 89, 0.3);
    color: #FFBD59;
    text-decoration: none;
}

.cbr-episode-pagination .current {
    background: rgba(255, 189, 89, 0.2);
    border-color: #FFBD59;
}

.cbr-episode-pagination a:hover {
    background: rgba(255, 189, 89, 0.15);
}

/* ===== FILTERS ===== */
.cbr-episode-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    background: rgba(196, 125, 71, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 16px 20px;
    border: 0.5px solid rgba(255, 189, 89, 0.2);
}

.cbr-episode-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cbr-episode-filter-group label {
    font-size: 0.8rem;
    color: #f0e6d8;
    opacity: 0.8;
}

.cbr-episode-filter-select {
    padding: 6px 12px;
    border-radius: 20px;
    border: 0.5px solid rgba(255, 189, 89, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #FFBD59;
    min-width: 140px;
}

.cbr-episode-filter-select option {
    background: #2d2d2d;
    color: #FFBD59;
}

.cbr-episode-apply-filters {
    padding: 6px 20px;
    border-radius: 20px;
    background: #E1512F;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
.cbr-episode-apply-filters:hover {
    background: #FF7F5E;
}

@media (max-width: 768px) {
    .cbr-episode-grid {
        grid-template-columns: 1fr;
    }
    .cbr-episode-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .cbr-episode-filter-select {
        min-width: auto;
    }
}

/* ============================================
   SHOW PAGE LIGHTBOX
   ============================================ */
#cbr-show-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
}

#cbr-show-lightbox .cbr-lightbox-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#cbr-show-lightbox .cbr-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent !important;  /* ← Removed brown background */
    backdrop-filter: none !important;   /* ← Removed blur */
}

#cbr-show-lightbox .cbr-lightbox-image-wrapper {
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    background: transparent !important;
}

#cbr-show-lightbox .cbr-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    border: 4px solid #FFBD59;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    background: transparent !important;
}

/* Close button – light and visible over dark background */
#cbr-show-lightbox .cbr-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    opacity: 0.85;
    transition: opacity 0.2s;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}
#cbr-show-lightbox .cbr-lightbox-close:hover {
    opacity: 1;
}

/* Navigation buttons – light and visible */
#cbr-show-lightbox .cbr-lightbox-prev,
#cbr-show-lightbox .cbr-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}
#cbr-show-lightbox .cbr-lightbox-prev:hover,
#cbr-show-lightbox .cbr-lightbox-next:hover {
    opacity: 1;
}
#cbr-show-lightbox .cbr-lightbox-prev {
    left: 10px;
}
#cbr-show-lightbox .cbr-lightbox-next {
    right: 10px;
}

/* Caption and counter – light and readable */
#cbr-show-lightbox .cbr-lightbox-caption {
    color: #fff;
    font-size: 1rem;
    margin-top: 12px;
    text-align: center;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#cbr-show-lightbox .cbr-lightbox-counter {
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 4px;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Mobile */
@media (max-width: 768px) {
    #cbr-show-lightbox .cbr-lightbox-prev,
    #cbr-show-lightbox .cbr-lightbox-next {
        font-size: 2rem;
        padding: 0 12px;
    }
    #cbr-show-lightbox .cbr-lightbox-close {
        top: 12px;
        right: 16px;
        font-size: 2rem;
    }
    #cbr-show-lightbox .cbr-lightbox-image {
        border-width: 3px;
    }
}