/* Player ROD - CSS Styles */

/* ========== GLOBAL STYLES ========== */
/* Keyframes and animations */
@keyframes rod-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rod-clipping-alert {
    0% { opacity: 1; }
    100% { opacity: 0.5; }
}

@keyframes rod-dot-pulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
        background: #4da6ff;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
        background: #007cba;
        box-shadow: 0 0 8px rgba(0, 124, 186, 0.6);
    }
}

@keyframes rod-fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rod-avatar-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Global focus styles */
button:focus, 
input:focus, 
select:focus, 
textarea:focus {
    outline: none !important;
}

.rod-play-pause:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.5) !important;
}

button:focus-visible {
    box-shadow: 0 0 0 2px rgba(77, 166, 255, 0.5) !important;
}

/* Screen reader text */
.screen-reader-text {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Loading states */
.program-play-btn-play.loading,
.program-play-btn-play-mobile.loading,
.rod-close-loading {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

.program-play-btn-play.loading i,
.program-play-btn-play-mobile.loading i,
.rod-close-loading i {
    animation: rod-spin 1s linear infinite !important;
}

.rod-play-pause.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.rod-player-main-controls.loading {
    opacity: 0.7;
}

.rod-player-main-controls.loading .rod-play-pause::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    left: 50%;
    margin: -15px 0 0 -15px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: rod-spin 1s linear infinite;
}

/* Modern Dot Pulse Animation */
.rod-dot-pulse {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 8px;
    height: 20px;
}

.rod-dot-pulse span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4da6ff;
    animation: rod-dot-pulse 1.4s ease-in-out infinite both;
}

.rod-dot-pulse span:nth-child(1) { animation-delay: -0.32s; }
.rod-dot-pulse span:nth-child(2) { animation-delay: -0.16s; }
.rod-dot-pulse span:nth-child(3) { animation-delay: 0s; }

/* ========== PROGRAM LIST STYLES - DARK THEME ========== */
.radio-programs-play {
    margin: 20px 0;
}

.radio-program-item-play {
    border: 1px solid #444;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 15px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.radio-program-item-play:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    transform: translateY(-2px);
    border-color: #007cba;
    background: #222;
}

.program-title-play {
    margin: 3px 0 5px 0;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    width: fit-content;
    text-shadow: 2px 2px 4px black;
}

.program-meta-info-play {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.program-date-play,
.program-time-play {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #bbb;
    font-size: 0.9em;
    font-weight: 500;
}

.program-date-play i,
.program-time-play i {
    font-size: 16px;
}

.program-thumbnail-play {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;
}

.program-thumbnail-play img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Play button positioned center in thumbnail */
.program-thumbnail-play .program-play-btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 35px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(2px);
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.4);
}

.program-thumbnail-play .program-play-btn-play:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%) scale(1.07);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.6);
}

.program-thumbnail-play .program-play-btn-play.loading i {
    font-size: 16px !important;
    animation: rod-spin 1s linear infinite;
}

/* Duration overlay */
.program-thumbnail-play .program-duration-play {
    position: absolute;
    bottom: 7px;
    right: 7px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    z-index: 6;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.06);
}

/* Hide mobile play button */
.program-play-btn-play-mobile {
    display: none !important;
}

/* Hosts display */
.program-hosts-play {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    flex-wrap: wrap;
    margin-top: 6px;
}

.program-hosts-play i {
    font-size: 16px;
    color: #4da6ff;
    min-width: 18px;
    text-align: center;
}

.program-hosts-play .program-hosts-names {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}

/* Hide host images classes */
.program-hosts-images,
.rod-hosts-container,
.rod-host-item {
    display: none;
}

.program-content-play {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.program-info-play {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.program-actions-container-play {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.program-excerpt-play,
.program-link-play,
.program-download-btn-play {
    display: none;
}

/* ========== GRID LAYOUT STYLES ========== */
.rod-layout-grid.radio-programs-play {
    display: grid;
    gap: 20px;
}

.rod-grid-columns-1 { grid-template-columns: 1fr; }
.rod-grid-columns-2 { grid-template-columns: repeat(2, 1fr); }
.rod-grid-columns-3 { grid-template-columns: repeat(3, 1fr); }
.rod-grid-columns-4 { grid-template-columns: repeat(4, 1fr); }
.rod-grid-columns-5 { grid-template-columns: repeat(5, 1fr); }
.rod-grid-columns-6 { grid-template-columns: repeat(6, 1fr); }

.rod-layout-grid .radio-program-item-play {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rod-layout-grid .program-content-play {
    flex-direction: column;
    flex: 1;
}

.rod-layout-grid .program-thumbnail-play {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.rod-layout-grid .program-info-play {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ========== LOAD MORE STYLES ========== */
.rod-loadmore-wrapper-play {
    text-align: center;
    margin-top: 30px;
}

.rod-loadmore-btn-play {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.rod-loadmore-btn-play:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.rod-loadmore-btn-play:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.rod-loadmore-btn-play.loading {
    position: relative;
    color: transparent;
}

.rod-loadmore-btn-play.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: rod-spin 1s linear infinite;
}

.rod-loadmore-btn-play:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.5);
}

/* No programs message */
.rod-no-programs-play {
    text-align: center;
    padding: 40px 20px;
    color: #bbb;
    font-style: italic;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #444;
}

/* ========== AUDIO POPUP STYLES ========== */
.rod-audio-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.rod-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.rod-popup-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
}

.rod-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 18px;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.rod-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.rod-popup-close:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.rod-popup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Image Background Section */
.rod-popup-image-section {
    position: relative;
    height: 55vh;
    overflow: hidden;
}

.rod-popup-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center !important;
    background-repeat: no-repeat;
    background-size: cover;
}

.rod-popup-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center !important;
    display: block;
}

.rod-popup-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

/* Program Info Overlay
   NOTE: overlay now contains the hosts avatars block above the title.
   Make space at top for that overlay to avoid visual overlap with the title.
*/
.rod-popup-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Keep original padding but add top spacing to accommodate avatar overlay */
    padding: 64px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: #fff;
    justify-content: flex-start !important;
    flex-direction: column !important;
}

/* Ensure a smooth visual separation between overlay avatars and the title */
.rod-popup-title {
    font-family: seamstress;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    margin: 0 0 10px 0;
    font-size: 30px;
    font-weight: 600;
    color: #fff;
    position: relative;
    z-index: 5;
}

/* Meta Info Styling */
.rod-popup-meta {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px !important;
    flex-wrap: wrap;
}

#rod-popup-date.program-date-play {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    font-size: 0.9em;
    font-weight: 500;
    background: rgba(0, 124, 186, 0.2);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 124, 186, 0.3);
    backdrop-filter: blur(5px);
    animation: rod-fadeIn 0.3s ease-out;
}

#rod-popup-date.program-date-play i {
    color: #fff !important;
    font-size: 14px;
}

#rod-popup-date.program-date-play:hover {
    background: rgba(0, 124, 186, 0.3) !important;
    transform: translateY(-1px);
}

#rod-popup-time.program-time-play {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    font-size: 0.9em;
    font-weight: 500;
    background: rgba(0, 124, 186, 0.2);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 124, 186, 0.3);
    backdrop-filter: blur(5px);
    animation: rod-fadeIn 0.3s ease-out;
}

#rod-popup-time.program-time-play i {
    color: #fff !important;
    font-size: 14px;
}

#rod-popup-time.program-time-play:hover {
    background: rgba(77, 166, 255, 0.3) !important;
    transform: translateY(-1px);
}

/* Hosts Text Styling */
.rod-popup-hosts-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
    padding: 12px 15px;
    background: rgba(77, 166, 255, 0.15);
    border-radius: 8px;
    border-left: 4px solid #4da6ff;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(77, 166, 255, 0.2);
}

.rod-popup-hosts-text:hover {
    background: rgba(77, 166, 255, 0.2);
    transform: translateY(-2px);
    border-color: #4da6ff;
}

.rod-popup-hosts-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4da6ff;
    font-weight: 600;
    white-space: nowrap;
}

.rod-popup-hosts-header i {
    font-size: 18px;
}

/* Hide Hosts Avatar Container by default (detailed area) */
.rod-popup-hosts-container,
.rod-popup-hosts-avatars,
#rod-popup-hosts-container,
#rod-popup-hosts-avatars,
#rod-popup-hosts {
    display: none !important;
}

/* Content Text Styles */
.rod-popup-content-text {		
    font-family: Roboto;
    font-size: 15.5px;
    font-weight: 500;		
    color: #bbb;
    line-height: 1.5;
    text-align: justify;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.3s ease;
    margin-bottom: 10px !important;
    position: relative !important;
    max-height: 70px;
    scrollbar-width: none !important;
    -ms-overflow-style: none;
}

.rod-popup-content-text p {
margin-top: 10px;
margin-bottom: 15px;
}

.rod-popup-content-text h5 {
    font-size: 18px;
    font-weight: 900;
    margin-top: 10px;
    margin-bottom: 7px;
    width: fit-content;
    padding-left: 5px;
    border-left: 6px solid ;
    border-bottom: 3px solid ;
}

.rod-popup-content-text::-webkit-scrollbar {
    display: none;
}

.rod-content-wrapper {
    scrollbar-width: none !important;
    -ms-overflow-style: none;
}

.rod-content-wrapper::-webkit-scrollbar {
    display: none;
}

/* Read More/Less Buttons */
.rod-readmore-buttons {
    position: absolute !important;
    bottom: 20px !important;
    right: 20px !important;
    display: flex !important;
    gap: 10px !important;
    z-index: 20 !important;
}

.rod-read-more,
.rod-read-less {
    background: rgba(77, 166, 255, 0.25) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 15px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    white-space: nowrap !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

.rod-read-less {
    display: none !important;
}

.rod-read-more:hover,
.rod-read-less:hover {
    background: rgba(77, 166, 255, 0.4) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(77, 166, 255, 0.3) !important;
}

.rod-read-more:active,
.rod-read-less:active {
    transform: translateY(0) !important;
}

.rod-read-more.loading {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

.rod-read-more i,
.rod-read-less i {
    font-size: 12px !important;
}

/* Audio Player Section */
.rod-popup-player-section {
    height: 40vh;
    background: #222;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.rod-audio-player-full {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0 10px 5px 10px;
    gap: 0;
    justify-content: flex-start;
}

/* VU Meter */
.rod-vu-meter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #444;
}

.rod-vu-container {
    flex: 1;
    position: relative;
    height: 12px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #444;
}

.rod-vu-channel {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rod-vu-label {
    color: #fff;
    font-weight: bold;
    font-size: 10px;
    width: 20px;
    text-align: center;
}

.rod-vu-left,
.rod-vu-right {
    position: relative;
    width: 100%;
    height: 100%;
}

.rod-vu-level {
    position: absolute;
    height: 100%;
    width: 0%;
    background: #4da6ff;
    transition: width 0.1s ease;
    border-radius: 3px;
}

.rod-vu-level.rod-vu-low {
    background: linear-gradient(90deg, #00ff00 0%, #4da6ff 100%);
}

.rod-vu-level.rod-vu-medium {
    background: linear-gradient(90deg, #00ff00 0%, #ffff00 50%, #4da6ff 100%);
}

.rod-vu-level.rod-vu-high {
    background: linear-gradient(90deg, #00ff00 0%, #ffff00 33%, #ffa500 66%, #4da6ff 100%);
}

.rod-vu-level.rod-vu-clipping {
    background: linear-gradient(90deg, #00ff00 0%, #ffff00 25%, #ffa500 50%, #ff0000 75%, #4da6ff 100%);
    animation: rod-clipping-alert 0.5s infinite alternate;
}

.rod-vu-peak {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: #fff;
    z-index: 2;
    transition: left 0.1s ease;
}

/* Main Controls */
.rod-player-main-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.rod-skip-backward,
.rod-skip-forward {
    background: none;
    border: 2px solid #4da6ff;
    color: #4da6ff;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8em;
    font-weight: 500;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.rod-skip-backward:hover,
.rod-skip-forward:hover {
    background: #4da6ff;
    color: #000;
    transform: scale(1.05);
}

.rod-skip-backward:focus,
.rod-skip-forward:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(77, 166, 255, 0.5);
}

/* Play/Pause Button */
.rod-play-pause {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.4);
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.rod-play-pause:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.6);
}

.rod-play-pause:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.5), 0 4px 15px rgba(0, 124, 186, 0.4) !important;
}

.rod-play-pause:active {
    transform: scale(0.95);
}

/* Progress Section */
.rod-player-progress-section {
    margin-bottom: 20px;
}

.rod-time-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #bbb;
    font-size: 0.85em;
    font-weight: 500;
}

.rod-progress-container {
    width: 100%;
}

.rod-progress-bar {
    position: relative;
    height: 4px;
    background: #444;
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.rod-progress {
    position: absolute;
    height: 100%;
    background: red !important;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.rod-progress-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #007cba;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.6);
}

.rod-progress-bar:hover .rod-progress-handle {
    opacity: 1;
}

/* Secondary Controls */
.rod-player-secondary-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: auto;
}

.rod-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.rod-volume-btn {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 16px;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.rod-volume-btn:hover {
    color: #4da6ff;
    background: rgba(77, 166, 255, 0.1);
}

.rod-volume-slider {
    width: 80px;
}

.rod-volume-range {
    width: 100%;
    height: 4px;
    background: #444;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.rod-volume-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #4da6ff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(77, 166, 255, 0.4);
}

.rod-speed-control,
.rod-replay-control {
    position: relative;
}

.rod-speed-btn,
.rod-replay-btn {
    background: none;
    border: 1px solid #444;
    color: #bbb;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85em;
    font-weight: 500;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.rod-speed-btn:hover,
.rod-replay-btn:hover {
    border-color: #4da6ff;
    color: #4da6ff;
}

.rod-replay-btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rod-replay-btn.active {
    border-color: #28a745;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

/* Speed and Replay Options */
.rod-speed-options,
.rod-replay-options {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 5px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.rod-speed-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.rod-replay-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    min-width: 100px;
}

.rod-speed-control:hover .rod-speed-options,
.rod-replay-control:hover .rod-replay-options {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

.rod-speed-options button,
.rod-replay-options button {
    background: none;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: #bbb;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.rod-speed-options button:hover,
.rod-speed-options button.active,
.rod-replay-options button:hover,
.rod-replay-options button.active {
    background: #4da6ff;
    color: #000;
}

.rod-replay-options button:hover,
.rod-replay-options button.active {
    background: #28a745;
    color: #000;
}

.rod-download-btn-popup,
.rod-fullscreen-btn {
    background: none;
    border: 1px solid #444;
    color: #bbb;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.rod-download-btn-popup {
    border-color: #28a745;
    color: #28a745;
    display: none !important;
}

.rod-download-btn-popup:hover {
    background: #28a745;
    color: #fff;
    transform: translateY(-1px);
}

.rod-fullscreen-btn:hover {
    border-color: #4da6ff;
    color: #4da6ff;
}

/* ========== AVATAR STYLES ========== */
/* Thumbnail Avatars */
.program-hosts-avatars-play {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 5;
    flex-direction: row;
}

.rod-host-avatar-play {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 1px solid #79797985 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.rod-host-avatar-play:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border-color: #4da6ff;
    z-index: 10;
}

.rod-host-avatar-fallback {
    background: linear-gradient(135deg, #4da6ff 0%, #007cba 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

/* Stacking effect (thumbnail) */
.program-hosts-avatars-play .rod-host-avatar-play:nth-child(2) { margin-right: -15px; z-index: 4; }
.program-hosts-avatars-play .rod-host-avatar-play:nth-child(3) { margin-right: -30px; z-index: 3; }
.program-hosts-avatars-play .rod-host-avatar-play:nth-child(4) { margin-right: -45px; z-index: 2; }
.program-hosts-avatars-play .rod-host-avatar-play:nth-child(5) { margin-right: -60px; z-index: 1; }

/* Popup Avatars */
.rod-popup-hosts-avatars-overlay {
    position: static !important;
    top: 14px;
    right: 14px;
    display: flex;
    z-index: 20;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: auto;
}

/* Inner wrapper for avatars: rely on flex gap for spacing */
.rod-popup-hosts-avatars-overlay-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

/* Avatar circle (popup overlay) */
.rod-popup-hosts-avatars-overlay-inner .rod-popup-host-avatar,
.program-hosts-avatars-play .rod-host-avatar-play {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: rgba(255,255,255,0.02);
}

/* Gambar di dalam avatar */
.rod-popup-hosts-avatars-overlay-inner .rod-popup-host-avatar img,
.program-hosts-avatars-play .rod-host-avatar-play {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback initials style */
.rod-popup-hosts-avatars-overlay-inner .rod-popup-host-avatar-fallback,
.program-hosts-avatars-play .rod-host-avatar-fallback {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.rod-popup-host-avatar:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(0,0,0,0.7);
    border-color: #4da6ff;
    z-index: 15;
}

/* Keep z-index ordering but zero-out negative margins so gap applies cleanly */
.rod-popup-hosts-avatars-overlay .rod-popup-host-avatar:nth-child(1) { z-index: 5; animation-delay: 0.1s; margin-right: 0; }
.rod-popup-hosts-avatars-overlay .rod-popup-host-avatar:nth-child(2) { z-index: 4; animation-delay: 0.2s; margin-right: 0; }
.rod-popup-hosts-avatars-overlay .rod-popup-host-avatar:nth-child(3) { z-index: 3; animation-delay: 0.3s; margin-right: 0; }
.rod-popup-hosts-avatars-overlay .rod-popup-host-avatar:nth-child(4) { z-index: 2; animation-delay: 0.4s; margin-right: 0; }
.rod-popup-hosts-avatars-overlay .rod-popup-host-avatar:nth-child(5) { z-index: 1; animation-delay: 0.5s; margin-right: 0; }

/* Hosts Count Badge */
.rod-popup-hosts-count-badge {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 124, 186, 0.95);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 6;
    position: relative;
    margin-right: -20px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation-delay: 0.6s;
}

.rod-popup-hosts-count-badge:hover {
    background: rgba(0, 124, 186, 1);
    transform: scale(1.1);
}

/* ========== FILTER STYLES ========== */
.rod-filter-form-container {
    background: #222;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #444;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.rod-filter-form {
    width: 100%;
}

.rod-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 8px;
}

.rod-filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #e6f6ff;
    font-size: 16px;
}

.rod-filter-title .rod-filter-title-text {
    display: inline-block;
}

.rod-filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rod-filter-toggle {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.04);
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.18s ease;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.rod-filter-toggle i {
    font-size: 14px;
}

.rod-filter-toggle:hover {
    background: rgba(77,166,255,0.08);
    transform: translateY(-1px);
}

.rod-filter-form-container.rod-filter-collapsed {
    padding-bottom: 8px;
}

.rod-filter-body {
    transition: height 0.22s ease, opacity 0.18s ease;
}

.no-js .rod-filter-body {
    display: block !important;
}

.rod-filter-form-container.rod-filter-collapsed .rod-filter-body {
    display: none;
}

.rod-filter-form-container .rod-active-filters {
    margin-top: 12px;
}

.rod-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.rod-filter-group {
    display: flex;
    flex-direction: column;
}

.rod-filter-label {
    color: #4da6ff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rod-filter-label i {
    font-size: 16px;
}

.rod-filter-select {
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
}

.rod-filter-select:focus {
    border-color: #4da6ff;
    box-shadow: 0 0 0 2px rgba(77, 166, 255, 0.2);
}

.rod-filter-select:hover {
    border-color: #555;
}

.rod-filter-search {
    grid-column: span 2;
}

.rod-search-wrapper {
    position: relative;
    display: flex;
}

.rod-filter-search-input {
    flex: 1;
    padding: 10px 45px 10px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.rod-filter-search-input:focus {
    border-color: #4da6ff;
    box-shadow: 0 0 0 2px rgba(77, 166, 255, 0.2);
}

.rod-search-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 15px;
    background: #4da6ff;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rod-search-button:hover {
    background: #007cba;
}

.rod-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.rod-filter-submit,
.rod-filter-reset {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    outline: none;
}

.rod-filter-submit {
    background: #4da6ff;
    color: #fff;
}

.rod-filter-submit:hover {
    background: #007cba;
    transform: translateY(-2px);
}

.rod-filter-reset {
    background: #666;
    color: #fff;
}

.rod-filter-reset:hover {
    background: #888;
    transform: translateY(-2px);
}

/* Active Filters */
.rod-active-filters {
    background: rgba(77, 166, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border-left: 4px solid #4da6ff;
}

.rod-active-filters strong {
    color: #4da6ff;
    margin-right: 10px;
    font-size: 14px;
}

.rod-active-filter-item {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    margin: 5px;
    font-size: 13px;
    color: #ddd;
}

.rod-remove-filter {
    color: #ff6b6b;
    margin-left: 8px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.rod-remove-filter:hover {
    color: #ff3333;
    transform: scale(1.2);
}

.rod-clear-all-filters {
    display: inline-block;
    margin-left: 15px;
    color: #ff6b6b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rod-clear-all-filters:hover {
    color: #ff3333;
    text-decoration: underline;
}

/* ========== FULLSCREEN STYLES ========== */
body.rod-fullscreen-active {
    overflow: hidden !important;
}

#rod-audio-popup:fullscreen,
#rod-audio-popup:-webkit-full-screen,
#rod-audio-popup:-moz-full-screen,
#rod-audio-popup:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    background: #000;
}

/* Hide browser UI in fullscreen */
:fullscreen #rod-audio-popup .rod-popup-container,
:-webkit-full-screen #rod-audio-popup .rod-popup-container,
:-moz-full-screen #rod-audio-popup .rod-popup-container,
:-ms-fullscreen #rod-audio-popup .rod-popup-container {
    border-radius: 0;
    max-width: none;
    max-height: none;
    width: 100vw;
    height: 100vh;
    margin: 0;
}

/* iOS PWA-like appearance */
@supports (-webkit-touch-callout: none) {
    body.rod-fullscreen-active {
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    #rod-audio-popup {
        -webkit-overflow-scrolling: touch;
    }
    
    .rod-popup-meta .program-date-play,
    .rod-popup-meta .program-time-play {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ========== RESPONSIVE STYLES ========== */
/* Desktop & Tablet (min-width: 768px) */
@media (min-width: 768px) {
    .rod-popup-container {
        width: 90%;
        height: 90%;
        max-width: 1000px;
        max-height: 600px;
        margin: 2% auto;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    }
    
    .rod-popup-content {
        flex-direction: row;
    }
    
    .rod-popup-image-section {
        width: 60%;
        height: 100%;
    }
    
    .rod-popup-info-overlay {
        padding: 84px 15px 15px; /* more top space for larger avatar stack */
    }
    
    .rod-popup-title {
        font-size: 35px;
    }
    
    .rod-popup-meta {
        gap: 15px;
        margin-bottom: 0 !important;
    }
    
    #rod-popup-date.program-date-play,
    #rod-popup-time.program-time-play {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .rod-popup-hosts-text {
        margin: 15px 0;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .rod-popup-hosts-header i {
        font-size: 18px;
    }
    
    .rod-popup-content-text {
        max-height: 70px;
        overflow: hidden;
        transition: max-height 0.7s ease;
    }
    
    .rod-popup-content-text.rod-content-expanded {
        max-height: 700px !important;
    }
    
    .rod-popup-player-section {
        width: 55%;
        height: 100%;
        padding: 120px 30px 30px 30px !important;
        border-left: 1px solid #444;
    }
    
    .rod-audio-player-full {
        max-width: 100%;
    }
    
    .rod-vu-meter {
        margin-bottom: 30px;
        padding: 15px;
    }
    
    .rod-vu-container {
        height: 20px;
    }
    
    .rod-skip-backward,
    .rod-skip-forward {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .rod-player-main-controls {
        gap: 30px;
    }
    
    .rod-readmore-buttons {
        bottom: 30px !important;
        right: 30px !important;
    }
    
    .rod-read-more,
    .rod-read-less {
        font-size: 14px !important;
        padding: 4px 8px !important;
    }
    
    .rod-read-more i,
    .rod-read-less i {
        font-size: 13px !important;
    }
    
    /* Popup Avatar Desktop */
    .rod-popup-hosts-avatars-overlay {
        top: 25px;
        right: 25px;
    }
    
    /* use gap instead of negative margins for desktop too */
    .rod-popup-hosts-avatars-overlay-inner { gap: 18px; }
    
    .rod-popup-hosts-count-badge {
        width: 55px;
        height: 55px;
        font-size: 16px;
        border-width: 4px;
    }
    
    .rod-popup-hosts-text {
        font-size: 16px;
        padding: 15px 20px;
        margin: 18px 0;
    }
    
    .rod-popup-hosts-header i {
        font-size: 20px;
    }
	
	.rod-popup-content-text .rod-content-wrapper {max-height: 450px !important;}
}

/* Large Desktop (min-width: 1200px) */
@media (min-width: 1200px) {
    .rod-popup-container {
        max-width: 1100px;
        max-height: 650px;
    }
    
    .rod-popup-image-section {
        width: 40%;
    }
    
    .rod-popup-player-section {
        width: 45%;
    }
    
    .rod-vu-container {
        height: 25px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .program-content-play {
        flex-direction: column;
        gap: 0;
    }
    
    .program-thumbnail-play img {
        height: 200px;
    }
    
    .program-title-play {
        font-size: 24px;
    }
    
    .program-meta-info-play {
        gap: 10px;
    }
    
    .program-date-play,
    .program-time-play {
        font-size: 0.85em;
    }
    
    .program-thumbnail-play .program-duration-play {
        position: absolute;
        bottom: 7px;
        right: 7px;
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        padding: 1px 5px;
        border-radius: 4px;
        font-size: 13px;
        font-weight: 500;
        backdrop-filter: blur(5px);
        z-index: 2;
    }
    
    .rod-popup-meta {
        gap: 8px;
        margin-bottom: 0 !important;
    }
    
    #rod-popup-date.program-date-play,
    #rod-popup-time.program-time-play {
        font-size: 0.8em;
        padding: 5px 8px;
    }
    
    .rod-popup-hosts-text {
        padding: 8px 12px;
        font-size: 13px;
        margin: 10px 0;
    }
    
    .rod-popup-hosts-header i {
        font-size: 14px;
    }
    
    .rod-popup-info-overlay {
        padding: 52px 10px 10px; /* slightly smaller top spacing on mobile */
    }
    
    .program-thumbnail-play .program-play-btn-play {
        display: flex !important;
    }
    
    .program-play-btn-play-mobile {
        display: none !important;
    }
    
    .program-actions-container-play {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .rod-popup-player-section {
        height: 55vh;
    }
    
    .rod-grid-columns-6,
    .rod-grid-columns-5,
    .rod-grid-columns-4,
    .rod-grid-columns-3,
    .rod-grid-columns-2 {
        grid-template-columns: 1fr;
    }
    
    .rod-dot-pulse {
        margin: 0 6px;
    }
    
    .rod-dot-pulse span {
        width: 5px;
        height: 5px;
    }
    
    .rod-filter-row {
        grid-template-columns: 1fr;
    }
    
    .rod-filter-search {
        grid-column: span 1;
    }
    
    .rod-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Popup Avatar Mobile */
    .rod-popup-hosts-avatars-overlay {
        top: 15px;
        right: 15px;
    }
    
    /* use gap instead of negative margins on mobile as well */
    .rod-popup-hosts-avatars-overlay-inner { gap: 12px; }
    
    .rod-popup-hosts-count-badge {
        width: 38px;
        height: 38px;
        font-size: 12px;
        border-width: 2px;
    }
    
    /* Thumbnail Avatar Mobile */
    .program-hosts-avatars-play {
        top: 8px;
        right: 8px;
    }
    
    .rod-host-avatar-play {
        width: 35px;
        height: 35px;
        border-width: 1.5px;
    }
    
    .rod-host-avatar-fallback {
        font-size: 12px;
    }
    
    .program-hosts-avatars-play .rod-host-avatar-play:nth-child(2) { margin-right: -12px; }
    .program-hosts-avatars-play .rod-host-avatar-play:nth-child(3) { margin-right: -24px; }
    .program-hosts-avatars-play .rod-host-avatar-play:nth-child(4) { margin-right: -36px; }
	
	.rod-popup-content-text .rod-content-wrapper {max-height: 400px !important;}
}

/* Mobile Small (max-width: 576px) */
@media (max-width: 576px) {
    .radio-program-item-play {
        padding: 15px;
    }
    
    .program-title-play {
        font-size: 20px;
    }
    
    .program-meta-info-play {
        font-size: 0.85em;
        gap: 8px;
    }
    
    .program-thumbnail-play img {
        height: 180px;
    }
    
    .program-actions-container-play {
        width: 100%;
    }
    
    .rod-popup-meta {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-start !important;
    }
    
    #rod-popup-date.program-date-play,
    #rod-popup-time.program-time-play {
        font-size: 0.75em !important;
        padding: 4px 6px !important;
    }
    
    .rod-popup-info-overlay {
        padding: 48px 10px 10px;
    }
    
    .rod-popup-title {
        font-size: 30px;
    }
    
    .rod-popup-hosts-text {
        padding: 6px 10px;
        font-size: 12px;
        margin: 8px 0;
        flex-direction: column;
        gap: 5px;
    }
    
    .rod-popup-hosts-header i {
        font-size: 13px;
    }
    
    .rod-read-more {
        display: inline-block !important;
        padding: 4px 10px !important;
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        border-radius: 6px;
    }
    
    .rod-read-more,
    .rod-read-less {
        padding: 4px 7px !important;
        font-size: 11.5px !important;
    }
    
    .rod-read-more i,
    .rod-read-less i {
        font-size: 11px !important;
    }
    
    .rod-readmore-buttons {
        bottom: 15px !important;
        right: 15px !important;
    }
    
    .rod-popup-content-text {
        max-height: 70px;
        overflow: hidden;
        transition: max-height 0.7s ease;
    }
    
    .rod-popup-content-text.rod-content-expanded {
        max-height: 450px !important;
    }
    
    /* Popup Avatar Small Mobile */
    .rod-popup-hosts-avatars-overlay {
        top: 12px;
        right: 12px;
    }
    
    /* use gap for small screens too */
    .rod-popup-hosts-avatars-overlay-inner { gap: 10px; }
    
    .rod-popup-hosts-count-badge {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    
    /* Thumbnail Avatar Small Mobile */
    .program-hosts-avatars-play {
        top: 6px;
        right: 6px;
    }
    
    .rod-host-avatar-play {
        width: 30px;
        height: 30px;
        border-width: 1px;
    }
    
    .rod-host-avatar-fallback {
        font-size: 10px;
    }
    
    .program-hosts-avatars-play .rod-host-avatar-play:nth-child(2) { margin-right: -10px; }
    .program-hosts-avatars-play .rod-host-avatar-play:nth-child(3) { margin-right: -20px; }
}

/* Mobile Landscape (max-height: 500px) and (orientation: landscape) */
@media (max-height: 500px) and (orientation: landscape) {
    .rod-popup-player-section {
        height: 30vh !important;
        padding: 10px !important;
    }
    
    .rod-popup-meta {
        margin-bottom: 0 !important;
    }
    
    #rod-popup-date.program-date-play,
    #rod-popup-time.program-time-play {
        font-size: 0.75em !important;
        padding: 4px 6px !important;
    }
    
    .rod-readmore-buttons {
        bottom: 10px !important;
        right: 10px !important;
    }
}

/* Fullscreen Mobile Adjustments */
@media (max-width: 768px) {
    #rod-audio-popup .rod-popup-container {
        border-radius: 0;
    }
    
    body.rod-fullscreen-active #rod-audio-popup .rod-popup-container {
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    body.rod-fullscreen-active .rod-popup-image-section {
        height: 62vh ;
    }
    
    body.rod-fullscreen-active .rod-popup-player-section {
        height: 37vh !important;
        padding: 20px 15px !important;
    }
    
    body.rod-fullscreen-active .rod-popup-meta {
        gap: 8px;
    }
    
    body.rod-fullscreen-active #rod-popup-date.program-date-play,
    body.rod-fullscreen-active #rod-popup-time.program-time-play {
        font-size: 0.8em;
        padding: 5px 8px;
    }
    
    body.rod-fullscreen-active .rod-popup-content-text.rod-content-expanded {
        max-height: 400px !important;
    }
}

/* Desktop (min-width: 576px) - Additional Fullscreen */
@media (min-width: 576px) {
    body.rod-fullscreen-active .rod-popup-content-text.rod-content-expanded {
        max-height: 700px !important;
    }
}

/* ========== UTILITY STYLES ========== */
/* Content truncation */
.rod-content-truncated {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 19px;
    max-height: calc(1.4em * 3);
}

.rod-popup-content-inner {
    max-height: 160px;
    overflow-y: auto;
    scrollbar-width: none !important;
}

.rod-popup-content-inner.rod-content-expanded {
    max-height: 700px !important;
    -webkit-line-clamp: unset !important;
    display: block !important;
}

/* Hide specific elements */
.rod-download-btn-popup,
.program-hosts-images,
.rod-hosts-container,
.rod-host-item {
    display: none;
}

/* Additional rules for moved overlay + title spacing
   Ensures overlay shows above title without obscuring it.
*/
.rod-popup-hosts-avatars-overlay {
    pointer-events: auto;
    /* ensure avatars float visually above title but sit inside the info overlay */
    transform: translateZ(0);
}

/* --- Penambahan untuk overlay avatar + nama (kanan atas, lingkaran 40px) --- */
/* ---------- Popup hosts overlay & host-name line (kanan-atas, gap, dan nama di bawah judul) ---------- */
/* Container overlay di kanan-atas */
.rod-popup-hosts-avatars-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: auto;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Inner wrapper untuk avatars (stacking dari kanan ke kiri) */
.rod-popup-hosts-avatars-overlay-inner {
    display: flex;
    align-items: center;
    gap: 10px; 
}

/* Avatar lingkaran 40px di overlay (kanan atas) */
.program-hosts-avatars-play .rod-host-avatar-play {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #79797985;
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
    background: rgba(255,255,255,0.02);
}

.rod-popup-hosts-avatars-overlay-inner .rod-popup-host-avatar {
    width: 75px !important;
    height: 75px !important;
    border-radius: 50% !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #79797985;
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
    background: rgba(255,255,255,0.02);
}

/* Gambar di dalam avatar */
.rod-popup-hosts-avatars-overlay-inner .rod-popup-host-avatar img,
.program-hosts-avatars-play .rod-host-avatar-play {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback initials style */
.rod-popup-hosts-avatars-overlay-inner .rod-popup-host-avatar-fallback,
.program-hosts-avatars-play .rod-host-avatar-fallback {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* Kurangi overlap stacking agar tidak terlalu rapat (mengganti margin negative yang lebih rapat sebelumnya) */
.program-hosts-avatars-play .rod-host-avatar-play:nth-child(2) { margin-right: -10px; z-index: 4; }
.program-hosts-avatars-play .rod-host-avatar-play:nth-child(3) { margin-right: -18px; z-index: 3; }
.program-hosts-avatars-play .rod-host-avatar-play:nth-child(4) { margin-right: -26px; z-index: 2; }
.program-hosts-avatars-play .rod-host-avatar-play:nth-child(5) { margin-right: -34px; z-index: 1; }

/* Nama host (ditampilkan di bawah judul) */
.rod-popup-hosts-name-line {
    margin-top: 8px; 
    color: #e6f6ff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

/* Nama host overlay kecil (di bawah avatar stack) — opsional, text-only */
.rod-popup-hosts-names-overlay {
    margin-top:4px;
    position: relative;
    display: inline-block;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
}

/* Make prefix and list inline and ensure prefix visibility */
.rod-popup-hosts-names-overlay .rod-popup-hosts-names-prefix {
    margin-right: 8px;
    color: #aee1ff;
    font-weight: 700;
}

/* Responsive: kecilkan sedikit pada layar kecil */
@media (max-width: 576px) {
    .rod-popup-hosts-avatars-overlay { gap: 10px; top: 12px; right: 12px; align-items: flex-start; }
    .rod-popup-hosts-avatars-overlay-inner { gap: 10px; }
    .program-hosts-avatars-play .rod-host-avatar-play { width: 36px !important; height: 36px !important; }
    .rod-popup-hosts-name-line { font-size: 13px; max-width: 100%; }
}

/* Player ROD - CSS Styles */

/* (file kept original content above) */

/* --- ADDED: Edit button overlay for program thumbnails (visible only to admins via PHP check) --- */
.program-edit-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.18s ease;
    backdrop-filter: blur(4px);
    -webkit-tap-highlight-color: transparent;
}
.program-edit-btn i {
    font-size: 14px;
    line-height: 1;
}
.program-edit-btn:hover {
    background: rgba(0,124,186,0.95);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,124,186,0.25);
}

/* Make sure edit button does not interfere with play button area on small screens */
@media (max-width: 768px) {
    .program-edit-btn {
        top: 8px;
        left: 8px;
        padding: 5px 7px;
        font-size: 12px;
    }
}