/* ==========================================
   4.2 Media View Page (YouTube Style 2-Column)
   ========================================== */
main.media-view-main { 
    max-width: 1320px; 
    width: 100%;
    margin: 24px auto; 
    padding: 0 16px; 
    display: flex; 
    flex-direction: row; 
    gap: 24px; 
    align-items: flex-start; 
    box-sizing: border-box; 
    text-align: left;
}

.media-primary-column {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* ویڈیو پلیئر کے بکس کا سائز اور سینٹرنگ */
.secure-media-box { 
    position: relative; 
    display: block; 
    width: 100%; 
    max-width: 100%; /* کالم کے حساب سے پورا فٹ آئے گا */
    aspect-ratio: 16 / 9; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12); 
    background: #000; 
    margin: 0 auto 16px auto; 
}

.secure-media-box img,
#vidzine-player { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: contain; 
    display: block; 
    background: #000; 
}

/* سائیڈ بار کی چوڑائی اور فکسڈ سائز */
.media-sidebar-column {
    width: 380px;
    min-width: 380px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.related-video-card {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.related-video-card:hover {
    background: #f2f2f2;
}

.related-thumb {
    width: 130px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    background: #000;
    flex-shrink: 0;
}

.related-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.related-info h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #0f0f0f;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-info span {
    font-size: 12px;
    color: #606060;
}

/* ==========================================
   7. Mobile & Tablet Responsive
   ========================================== */
@media (max-width: 1100px) {
    main.media-view-main {
        flex-direction: column; 
        padding: 0 12px;
    }
    .media-primary-column {
        width: 100%;
    }
    .media-sidebar-column {
        width: 100%;
        min-width: 100%;
        margin-top: 10px;
    }
    .related-thumb {
        width: 150px;
        height: 85px;
    }
}

@media (max-width: 480px) {
    main.media-view-main {
        margin: 10px auto;
        padding: 0 8px;
        gap: 16px;
    }
    .secure-media-box {
        border-radius: 0; /* موبائل پر سکرین کے ساتھ بالکل فٹ ہو جائے گا */
        margin-left: -8px;
        margin-right: -8px;
        width: calc(100% + 16px);
    }
    .related-thumb {
        width: 120px;
        height: 68px;
    }
    .related-info h4 {
        font-size: 13px;
    }
}