
#dx-radio-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    z-index: 110000; 
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #FFD700;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.5);
}

@keyframes dxSkeleton {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.dx-skeleton {
    background: #222;
    background-image: linear-gradient(90deg, #222 0px, #333 40px, #222 80px);
    background-size: 200px 100%;
    animation: dxSkeleton 1.5s infinite linear;
    color: transparent !important;
    border-radius: 4px;
}

.dx-program-name.dx-skeleton, 
.dx-broadcaster-name.dx-skeleton,
.dx-schedule-title.dx-skeleton,
.dx-header-title.dx-skeleton,
.dx-modal-program.dx-skeleton,
.dx-modal-broadcaster.dx-skeleton,
.dx-modal-description-wrapper.dx-skeleton {
    display: inline-block;
    min-width: 100px;
    height: 14px;
    margin-bottom: 4px;
}

.dx-program-name.dx-skeleton { width: 120px; }
.dx-broadcaster-name.dx-skeleton { width: 80px; }
.dx-schedule-title.dx-skeleton { width: 200px; height: 20px; }
.dx-modal-detail-thumb.dx-skeleton { width: 100%; height: 200px; }
.dx-modal-description-wrapper.dx-skeleton { width: 100%; height: 100px; display: block; }

.dx-radio-wrapper.dx-grid-layout {
    display: grid;
    grid-template-columns: 70px 1fr 70px; 
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 auto;
    padding: 0; 
    height: 70px;
    position: relative;
    z-index: 110002; 
    box-sizing: border-box;
    background-color: #000; 
}

.dx-col-1 {
    display: none !important;
}

.dx-col-2.dx-meta-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    line-height: 1.3;
}

.dx-program-name {
    font-size: 13px;
    font-weight: bold;
    color: #FFD700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dx-broadcaster-name {
    font-size: 11px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dx-col-3.dx-main-info {
    overflow: hidden;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center; 
    height: 100%;
}

.dx-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 100%; 
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); 
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.dx-schedule-title {
    width: 100%;
    overflow: hidden;
}

.dx-marquee-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    animation: dxInfinityScroll linear infinite;
}

.dx-marquee-part {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.dx-marquee-item {
    display: inline-flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-right: 20px; 
}

@keyframes dxInfinityScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.dx-click-hint-text {
    font-size: 10px;
    color: #aaa; 
    margin-top: 0px; 
    font-weight: normal;
    text-transform: lowercase;
    font-style: italic;
    opacity: 0.7; 
    animation: textFadeInOut 3s infinite ease-in-out;
    z-index: 5; 
    position: relative;
    display: block; 
}

@keyframes textFadeInOut {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.dx-col-4 {
    display: flex;
    align-items: center;
    justify-content: center; 
    background-color: #FFD700; 
    height: 100%;
    width: 70px; 
    padding: 0;
    border-radius: 0; 
}

.dx-radio-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #222;
    flex-shrink: 0;
}

.dx-radio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.dx-radio-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.dx-floating-chat-btn {
    position: fixed;
    bottom: 90px; 
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #FFC107; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 110001; 
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: dxPulse 2s infinite;
}

.dx-floating-chat-btn svg {
    width: 28px;
    height: 28px;
    color: #000; 
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.dx-floating-chat-btn:hover {
    transform: scale(1.1);
    background-color: #FFD54F;
}

@keyframes dxPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.dx-bottom-sheet.active ~ .dx-floating-chat-btn,
body.dx-modal-open .dx-floating-chat-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; 
    animation: none; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dx-bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 110000;
    display: none; 
    align-items: flex-end;
}

.dx-bottom-sheet.active {
    display: flex;
}

.dx-sheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.dx-overlay-close-hint {
    margin-top: 8px;
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    background: #333;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #333;
    transition: all 0.2s;
}

.dx-overlay-close-hint:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.dx-sheet-content {
    width: 100%;
    max-width: 100%; 
    margin: 0 auto;
    background: #fff; 
    border-radius: 20px 20px 0 0;
    overflow: hidden; 
    z-index: 2;
    height: 90vh; 
    max-height: 90vh;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
    border-top: none; 
    color: #333; 
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}

.dx-sheet-body {
    flex: 1; 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
    padding: 0 20px 20px 20px;
    padding-bottom: 20px;
}

.dx-sheet-footer-spacer {
    height: 20px; 
    width: 100%;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.dx-sheet-header {
    padding: 0;
    background: #FFD700; 
    color: #000; 
    overflow: hidden;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    box-sizing: border-box;
}

.dx-header-newsletter { order: 1; }
.dx-tabs-nav { order: 2; }
.dx-sheet-close-wrapper { order: 3; margin-left: 10px; }

.dx-tabs-nav {
    display: flex;
    height: 100%; 
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
    background: #fff; 
    align-items: center; 
    padding-bottom: 0;
    box-sizing: border-box;
}

.dx-tabs-nav li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; 
    padding: 0 20px;
    cursor: pointer;
    color: #000; 
    font-size: 12px;
    font-weight: normal;
    white-space: nowrap;
    background-color: #fff; 
    transition: background-color 0.2s, color 0.2s;
    border: none;
    box-sizing: border-box;
    border-radius: 0;
}

.dx-tabs-nav li:hover {
    color: #000;
    background-color: #fff; 
        border: none;

}

.dx-tabs-nav li.active {
    color: #000; 
    background-color: #fff; 
    border: none;
}

.dx-header-newsletter {
    flex: 1; 
    overflow: hidden;
    height: 100%;
    position: relative;
    border-left: none;
    border-right: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.dx-newsletter-slider {
    flex: 1; 
    height: 100%;
    overflow: hidden;
    position: relative;
}

.dx-static-news-icon {
    width: 50px; 
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    flex-shrink: 0;
    margin-right: -10px;
}

.dx-static-news-icon svg {
    width: 30px;
    height: 30px;
}

.dx-newsletter-wrapper {
    width: 100%;
    height: 100%; 
    position: relative;
    top: 0;
}

.dx-news-item {
    height: 50px; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px; 
    position: absolute; 
    top: 0;
    left: 0;
    opacity: 0; 
    transition: opacity 0.5s ease-in-out;
    pointer-events: none; 
}

.dx-news-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.dx-news-link {
    color: #000; 
    text-decoration: none;
    font-weight: normal;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    line-height: normal; 
    text-align: left;
}

.dx-news-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.dx-news-link:hover {
    color: #cc0000; 
}

.dx-sheet-close-wrapper {
    margin-left: 0; 
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #fff;
    transition: color 0.2s;
    padding: 0 15px;
    height: 100%;
    background: #111;
}

.dx-sheet-close-wrapper:hover {
    background: #cc0000; 
}

.dx-close-text {
    font-size: 12px;
    margin-right: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.dx-sheet-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.dx-sheet-body {
    padding: 20px;
}

.dx-tabs-nav {
    display: flex;
    justify-content: center; 
    list-style: none;
    margin: 0 0 0 0;
    padding: 0;
}

.dx-tabs-nav li {
    padding: 5px 15px; 
    cursor: pointer;
    color: #555; 
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-weight: bold;
    font-size: 14px;
}

.dx-tabs-nav li:hover {
    color: #000;
}

.dx-tabs-nav li.active {
    color: #000;
}

.dx-tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.dx-tab-content.active {
    display: block;
}

.dx-chat-wrapper {
    width: 100%;
    display: block;
    min-height: 200px;
}

.dx-chat-wrapper .bp-messages-wrap {
    margin: 0 auto !important;
    width: 100%;
}

.dx-chat-wrapper > * {
    width: 100%;
}

#dx-tab-chat .elementor-section.elementor-section-boxed > .elementor-container,
#dx-tab-chat .elementor-container {
    max-width: 100% !important;
    padding-left: 0;
    padding-right: 0;
}

.dx-modal-detail-wrapper {
    display: grid;
    grid-template-columns: 30% 1fr; 
    gap: 20px;
    align-items: flex-start;
}

.dx-modal-detail-thumb {
    width: 100%;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
}

.dx-modal-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dx-modal-detail-meta {
    flex-grow: 1;
}

#dx-modal-schedule-title {
    margin-top: 0;
    color: #333; 
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.dx-modal-schedule-title-meta {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin: 0 0 5px 0;
}

.dx-modal-guest-star {
    font-size: 14px; 
    color: #000;
    font-weight: bold;
    margin: 0 0 5px 0; 
}

.dx-modal-guest-star::before {
    content: "Bintang Tamu: ";
    display: inline;
    font-size: 14px;
    font-weight: normal;
    color: #777;
    margin-right: 5px;
}

.dx-modal-program {
    color: #000;
    font-weight: bold;
    font-size: 16px;
}

.dx-modal-broadcaster {
    color: #555;
    font-size: 14px;
    font-style: italic;
}

.dx-modal-time {
    color: #333; 
    font-size: 14px;
    font-weight: bold; 
}

.dx-modal-program::before {
    content: "Program Acara: ";
    display: inline; 
    font-size: 14px; 
    font-weight: normal;
    color: #777;
    margin-right: 5px; 
}

.dx-modal-broadcaster::before {
    content: "Penyiar: ";
    display: inline; 
    font-size: 14px; 
    font-weight: normal;
    color: #777;
    margin-right: 5px; 
}

.dx-modal-time::before {
    content: "Waktu: ";
    display: inline; 
    font-size: 14px; 
    font-weight: normal;
    color: #777;
    margin-right: 5px; 
}

.dx-modal-description-wrapper h4 {
    color: #000;
    margin: 0 0 10px 0;
    font-size: 18px;
}

#dx-modal-description {
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

#dx-modal-broadcaster-container {
    display: block;
    column-count: 3;
    column-gap: 20px;
}

@media (max-width: 900px) {
    #dx-modal-broadcaster-container {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    #dx-modal-broadcaster-container {
        column-count: 1;
    }
}

.dx-modal-broadcaster-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: auto;
    break-inside: avoid;
    margin-bottom: 20px;
}

.dx-modal-broadcaster-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dx-modal-broadcaster-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    flex-shrink: 0;
}

.dx-modal-broadcaster-info h4 {
    margin: 0 0 5px 0;
    color: #000;
    font-size: 18px;
}

.dx-modal-broadcaster-info p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.dx-modal-social-btn {
    display: inline-block;
    padding: 5px 10px;
    background: #FFD700;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
}

.dx-modal-social-btn:hover {
    background: #e6c200; 
    color: #000;
}

.dx-trigger-modal {
    cursor: pointer;
}

.dx-radio-info-container {
    flex-grow: 1;
    margin: 0 20px;
    overflow: hidden;
    position: relative;
    z-index: 2; 
}

.dx-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 30px; 
    display: flex;
    align-items: center;
}

.dx-radio-info-title {
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%; 
    animation: dxMarquee 15s linear infinite;
}

.dx-marquee-container:hover .dx-radio-info-title {
    animation-play-state: paused;
}

@keyframes dxMarquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

.dx-radio-info-broadcaster {
    font-size: 12px;
    color: #fff;
}

.dx-topic-desc {
    display: block;
    font-size: 10px;
    color: #ccc;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dx-radio-status-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 0;
}

.dx-status-icon {
    color: #ff0000;
    animation: dxPulseIcon 2s infinite;
}

@keyframes dxPulseIcon {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.dx-radio-status {
    font-size: 9px;
    color: #fff;
    background-color: #ff0000; 
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
    line-height: 1;
}

.dx-guest-badge {
    display: inline-block;
    background: #FFD700; 
    color: #000; 
    font-size: 14px; 
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    border: none; 
    font-weight: normal; 
    vertical-align: middle;
}

@keyframes dxSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dx-radio-wrapper.dx-playing .dx-radio-thumb img {
    animation: dxSpin 10s linear infinite;
}

.dx-play-logo {
    width: 40px; 
    height: 40px;
    object-fit: contain; 
    animation: dxSpin 3s linear infinite; 
    display: none; 
}

.dx-radio-controls button {
    background: none;
    border: none;
    color: #000; 
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center; 
    transition: transform 0.1s;
    z-index: 2;
    width: 100%; 
    height: 100%;
}

.dx-radio-controls svg {
    display: block;
}
.dx-radio-controls button:hover {
    color: #333; 
    transform: scale(1.1);
}

.dx-radio-controls button:active {
    transform: scale(0.95);
}

@media (max-width: 600px) {
    .dx-radio-info-title {
        font-size: 14px;
    }
    .dx-radio-wrapper {
        padding: 5px 10px;
    }
    
    /* Mobile Header Layout: Top bar (Newsletter left + Close right), Tabs below */
    .dx-sheet-header {
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        min-height: 40px;
    }
    .dx-header-newsletter { order: 1; flex: 0 0 100%; }
    .dx-tabs-nav { order: 2; flex: 1 1 auto; width: auto; }
    .dx-sheet-close-wrapper { order: 3; width: 60px; height: 40px; display: flex; align-items: center; justify-content: center; margin-left: 0; }

    .dx-header-newsletter {
        width: 100%;
        height: 40px; /* Newsletter height */
        background: #FFD700;
        z-index: 2;
        display: flex;
        align-items: center; /* Ensure vertical centering */
    }

    .dx-tabs-nav {
        width: auto;
        height: 40px; /* Tabs height */
        background: #fff;
        border-bottom: 1px solid #eee;
    }

    .dx-tabs-nav li {
        padding: 0 15px; /* Adjust padding */
        font-size: 12px;
        flex: 1; /* Distribute tabs evenly */
    }

    .dx-news-link {
        display: block !important;
        font-size: 12px;
        line-height: normal;
        text-align: left;
        max-width: 100%;
    }
    .dx-news-item {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        height: 40px;
        padding: 0 10px;
    }
    .dx-newsletter-slider,
    .dx-newsletter-wrapper {
        display: block !important;
    }
    .dx-news-text {
        display: inline !important;
    }
    .dx-news-placeholder {
        display: inline !important;
    }
    .dx-static-news-icon {
        margin-right: 6px;
    }
        
    .dx-news-item {
        padding: 0 5px; /* Reduced padding for mobile */
    }
    
    .dx-static-news-icon {
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 0;
    }
    
    .dx-newsletter-wrapper {
        width: auto;
        height: 100%;
    }
    
    .dx-news-text {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .dx-news-placeholder {
        font-size: 12px;
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    /* Modal Detail Mobile */
    
    .dx-modal-detail-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .dx-modal-detail-thumb {
        width: 70%;
        margin: 0 auto;
    }

    .dx-sheet-content {
        height: 85vh;
        max-height: 85vh;
    }

    .dx-sheet-body {
        padding: 10px;
    }

    .dx-chat-wrapper {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        display: block;
    }

    .dx-chat-wrapper .bp-messages-wrap,
    .dx-chat-wrapper iframe,
    .dx-chat-wrapper .bp-better-messages-list {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

.dx-click-hint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 110005; 
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.5s ease-in-out;
}

.dx-click-hint-overlay span {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #FFD700;
    text-align: center; 
}

.dx-click-hint-overlay.active {
    opacity: 1;
    animation: fadeInOut 5s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}
