/* ============================================================
   YouTube Videos Section
   ============================================================ */

.breaking-container {
    width: 100%;
    margin-bottom: 20px;
}

.breaking-wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: 12px;
    width: 100%;
    align-items: flex-start;
}

/* ── Main video ── */
.main-video {
    flex: 1;
    position: relative;
    min-height: 200px;
}

.video-content {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.video-badge {
    background: linear-gradient(90deg, #FF0000, #DC143C);
    padding: 8px 20px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.breaking-text {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-play::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #fff;
    margin-left: 4px;
}

/* ── Sidebar ── */
.video-sidebar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.sidebar-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    background: #8b0000;
    border-radius: 4px;
    padding: 6px;
}

.sidebar-thumb {
    position: relative;
    flex-shrink: 0;
    width: 90px;
}

.sidebar-thumb img {
    width: 90px;
    height: 60px;
    object-fit: cover;
    display: block;
    border-radius: 3px;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 0, 0, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #fff;
    margin-left: 2px;
}

.sidebar-ytitle {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    text-align: right;
    direction: rtl;
    color: #fff;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: sans-serif;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .breaking-wrapper {
        flex-direction: column;
    }

    .video-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }

    .sidebar-item {
        flex-shrink: 0;
        width: 140px;
        flex-direction: column;
    }
}

/* ============================================================
   YouTube Video Player Page
   ============================================================ */

.hnf-yt-player-wrap {
    width: 100%;
}

.hnf-yt-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px;
    direction: rtl;
    text-align: right;
    line-height: 1.4;
    color: #111;
}

.hnf-yt-iframe-wrap {
    width: 100%;
    margin-bottom: 24px;
}

.hnf-yt-iframe-wrap iframe {
    width: 100%;
    height: 56vw;
    max-height: 550px;
    min-height: 220px;
    border: none;
    border-radius: 6px;
    display: block;
}

.hnf-yt-related-heading {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    direction: rtl;
    text-align: right;
}

.hnf-yt-related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hnf-yt-related-item {
    flex: 0 0 calc(33.333% - 11px);
    text-decoration: none;
    color: #111;
}

.hnf-yt-related-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.hnf-yt-related-item p {
    flex: 1;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0;
    text-align: right;
    direction: rtl;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.hnf-yt-thumb-wrap {
    position: relative;
}

.hnf-yt-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hnf-yt-play-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 0, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hnf-yt-play-triangle {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #fff;
    margin-left: 3px;
}

@media (max-width: 600px) {
    .hnf-yt-title {
        font-size: 18px;
    }

    .hnf-yt-related-heading {
        font-size: 24px;
    }

    .hnf-yt-related-grid {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 30px;
    }

    .hnf-yt-related-item {
        flex: 0 0 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .hnf-yt-thumb-wrap {
        flex: 0 0 120px;
        width: 120px;
    }

    .hnf-yt-related-item p {
        margin: 6px 0 0;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
        text-align: right;
        direction: rtl;
    }

    .hnf-yt-play-circle {
        width: 28px;
        height: 28px;
    }
}