.live-layout{
  margin-top: 24px;
}

/* 0. TỶ LỆ 16:9 CHUẨN ĐÀI LÂM ĐỒNG */
.asp-16-9-contain {
    background-color: transparent;
    width: 100%;
    height: 0;
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%; /* Tỷ lệ 16:9 */
}

.asp-16-9 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.live {
    display: flex;
    margin-bottom: 15px;
    border: 1px solid #E25C5C;
    border-radius: 8px !important;
    padding: 8px 8px !important;
}


.live-layout {
    margin-bottom: 24px;
    width: 100%;
}

.live-layout .live-container {
    padding: 1rem;
    background-color: #0C2252;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Tabs Chuyển đổi Truyền hình & Phát thanh */
.live-layout .live-tabs-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.live-layout .live-tabs-header .live-tab-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    outline: none;
}

.live-layout .live-tabs-header .live-tab-item:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.live-layout .live-tabs-header .live-tab-item.active {
    background: #FCC000;
    color: #0C2252;
    border-color: #FCC000;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(252, 192, 0, 0.35);
}

.live-layout .live-tabs-header .live-tab-item .tab-icon {
    display: inline-block;
    vertical-align: middle;
}

/* Radio Live Audio Overlay */
.live-layout .live .player .radio-live-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #091a3e 0%, #0d2c6c 50%, #163d8d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

.live-layout .live .player .radio-live-overlay .radio-wave-animation {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 48px;
    margin-bottom: 14px;
}

.live-layout .live .player .radio-live-overlay .radio-wave-animation .bar {
    width: 6px;
    background: #FCC000;
    border-radius: 3px;
    animation: radioWave 1.2s ease-in-out infinite alternate;
}

.live-layout .live .player .radio-live-overlay .radio-wave-animation .bar-1 { height: 16px; animation-delay: 0.1s; }
.live-layout .live .player .radio-live-overlay .radio-wave-animation .bar-2 { height: 38px; animation-delay: 0.3s; }
.live-layout .live .player .radio-live-overlay .radio-wave-animation .bar-3 { height: 48px; animation-delay: 0.2s; }
.live-layout .live .player .radio-live-overlay .radio-wave-animation .bar-4 { height: 28px; animation-delay: 0.4s; }
.live-layout .live .player .radio-live-overlay .radio-wave-animation .bar-5 { height: 18px; animation-delay: 0.15s; }

@keyframes radioWave {
    0% { transform: scaleY(0.3); opacity: 0.6; }
    100% { transform: scaleY(1); opacity: 1; }
}

.live-layout .live .player .radio-live-overlay .radio-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.4);
    color: #ff5252;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.live-layout .live .player .radio-live-overlay .radio-badge span {
    width: 6px;
    height: 6px;
    background-color: #ff3b30;
    border-radius: 50%;
    animation: livePulse 1.2s infinite ease-in-out;
}

.live-layout .live .player .radio-live-overlay .radio-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.live-layout .live .player .radio-live-overlay .radio-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* Cụm Live chính: Player 74% + Lịch phát sóng 26% (Flex Stretch khớp chiều cao) */
.live-layout .live {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch;
}

/* 1. KHỐI VIDEO PLAYER BÊN TRÁI (74%) */
.live-layout .live .player {
    flex: 0 0 calc(74% - 12px);
    max-width: calc(74% - 12px);
    width: calc(74% - 12px);
}

.live-layout .live .player .thumb {
    width: 100%;
    border: 2px solid #ffffff;
    border-radius: 4px;
    overflow: hidden;
    background-color: #000000;
    position: relative;
}

/* Tùy biến Video.js chuẩn giao diện đài truyền hình */
.live-layout .live .player .video-js {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0;
    left: 0;
}

.live-layout .live .player .video-js video.vjs-tech {
    object-fit: contain;
}

.live-layout .live .player .video-js .vjs-big-play-button {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 64px !important;
    height: 64px !important;
    line-height: 64px !important;
    border-radius: 50% !important;
    background-color: rgba(12, 34, 82, 0.85) !important;
    border: 2px solid #ffffff !important;
    font-size: 28px !important;
    transition: all 0.25s ease !important;
}

.live-layout .live .player .video-js:hover .vjs-big-play-button {
    background-color: #db192b !important;
    border-color: #db192b !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

.live-layout .live .player .video-js .vjs-control-bar {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent) !important;
    height: 42px !important;
}

/* 2. KHỐI LỊCH PHÁT SÓNG BÊN PHẢI (26%) */
.live-layout .live .play-list {
    flex: 1 1 0;
    min-width: 0;
    background-color: #3E4CAC;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.live-layout .live .play-list .list-title {
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    padding: 12px 14px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    flex-shrink: 0;
}

.live-layout .live .play-list .controll {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #0C2252;
    opacity: 0.85;
    position: relative;
    flex-shrink: 0;
}

.live-layout .live .play-list .controll button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.live-layout .live .play-list .controll button:hover {
    transform: scale(1.2);
}

.live-layout .live .play-list .controll button svg path {
    fill: #ffffff !important;
}

.live-layout .live .play-list .current-date {
    font-size: 13.5px;
    font-weight: 700;
    color: #FCC000;
    margin: 0;
    text-align: center;
    flex: 1;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}

.live-layout .live .play-list .list {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.live-layout .live .play-list .list .show-list {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 8px 10px;
}

.live-layout .live .play-list .list .show-list::-webkit-scrollbar {
    width: 4px;
    background: transparent;
}

.live-layout .live .play-list .list .show-list::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 4px;
}

.live-layout .live .play-list .list .show-list .item {
    display: flex;
    color: #ffffff;
    cursor: pointer;
    padding: 7px 4px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(238, 238, 238, 0.15);
    transition: background 0.15s ease;
    border-radius: 3px;
}

.live-layout .live .play-list .list .show-list .item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.live-layout .live .play-list .list .show-list .item.active-live {
    background-color: rgba(252, 192, 0, 0.18);
    border-left: 3px solid #FCC000;
    padding-left: 6px;
}

.live-layout .live .play-list .list .show-list .item.active-live .title {
    color: #FCC000 !important;
    font-weight: 700;
}

.live-layout .live .play-list .list .show-list .item.not-allowed {
    cursor: not-allowed;
    opacity: 0.6;
}

.live-layout .live .play-list .list .show-list .item .time {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    min-width: 46px;
    margin-right: 8px;
    line-height: 1.35;
}

.live-layout .live .play-list .list .show-list .item .info {
    flex: 1;
    min-width: 0;
}

.live-layout .live .play-list .list .show-list .item .info .title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    color: #ffffff;
    word-break: break-word;
}

.live-layout .live .play-list .list .show-list .item .info .badge-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #FCC000;
    font-weight: 700;
    margin-top: 2px;
}

.live-layout .live .play-list .list .show-list .item .info .badge-live span {
    width: 6px;
    height: 6px;
    background-color: #ff3b30;
    border-radius: 50%;
    animation: livePulse 1.2s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 1; }
}

/* 3. DẢI SLIDER TOPIC PHÍA DƯỚI */
.live-layout .topic {
    position: relative;
    padding: 0 4px;
}

.live-layout .topic .topic-swiper {
    overflow: hidden;
    padding: 4px 1px;
}

.live-layout .topic .story-wrap {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.live-layout .topic .story-wrap:hover {
    transform: translateY(-2px);
}

.live-layout .topic .story-wrap .img-wrap {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background: #000000;
    margin-bottom: 6px;
}

.live-layout .topic .story-wrap .img-wrap img {
    object-fit: cover;
    transition: transform 0.3s ease;
}

.live-layout .topic .story-wrap:hover .img-wrap img {
    transform: scale(1.05);
}

.live-layout .topic .story-wrap .info-wrap .name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-layout .topic .swiper-button-prev,
.live-layout .topic .swiper-button-next {
    width: 32px;
    height: 52px;
    background-color: #f2f2f2;
    top: 48px; /* Căn giữa đúng tâm thumbnail ảnh (96px/2) */
    margin-top: 0 !important;
    transform: translateY(-50%);
    position: absolute;
    z-index: 10;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.live-layout .topic .swiper-button-prev {
    left: 0 !important;
    border-radius: 0 5px 5px 0;
}

.live-layout .topic .swiper-button-next {
    right: 0 !important;
    border-radius: 5px 0 0 5px;
}

.live-layout .topic .swiper-button-prev:after,
.live-layout .topic .swiper-button-next:after {
    display: none !important;
}

.live-layout .topic .swiper-button-prev svg,
.live-layout .topic .swiper-button-next svg {
    width: 10px;
    height: 16px;
    display: block;
}

.live-layout .topic .swiper-button-prev svg path,
.live-layout .topic .swiper-button-next svg path {
    fill: #0C2252 !important;
}

.live-layout .topic .swiper-button-prev:hover,
.live-layout .topic .swiper-button-next:hover {
    background-color: #ffffff;
}

.live-layout .topic .swiper-button-disabled {
    opacity: 0.35 !important;
    pointer-events: none;
    cursor: not-allowed;
}

/* Responsive cho tablet & mobile */
@media (max-width: 991px) {
    .live-layout .live {
        flex-direction: column;
        gap: 14px;
    }
    .live-layout .live .player {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    .live-layout .live .play-list {
        flex: none;
        width: 100%;
        height: 350px;
        min-height: 350px;
        display: flex;
        flex-direction: column;
    }
    .live-layout .live .play-list .list {
        flex: 1 1 auto;
        min-height: 250px;
        height: 250px;
        position: relative;
        overflow: hidden;
    }
    .live-layout .live .play-list .list .show-list {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 10px;
    }
}
