:root {
    color-scheme: light;
    font: 16px/1.55 system-ui, sans-serif;
    color: #152635;
    background: #f8fafc;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: #125a83; }
a:focus-visible, button:focus-visible { outline: 3px solid #0076ba; outline-offset: 4px; }
.news-content { --news-gutter: clamp(.85rem, 2vw, 1.5rem); padding: var(--news-gutter); }
.news-content .news-home {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.15rem;
    padding: .5rem 1rem;
    color: #0c4a6e;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 700;
}
.news-content .news-home:hover { background: #0c4a6e; color: #fff; }
.news-content .back, .news-content .player-link, .news-content .story-body a { color: #125a83; text-decoration: underline; }
.news-content #status:empty { display: none; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 2rem 1.25rem; }
.news-card a { display: block; color: inherit; text-decoration: none; }
.news-card a:hover h2 { color: #125a83; text-decoration: underline; }
.news-card h2 { font-size: 1.12rem; line-height: 1.35; margin: .65rem 0 .25rem; overflow-wrap: anywhere; }
.news-card time, .story time { color: #516475; font-size: .9rem; }
.cover, .player { aspect-ratio: 16 / 9; background: #16374d; border-radius: .8rem; overflow: hidden; position: relative; }
.cover img, .gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-label { position: absolute; inset: 0; display: grid; place-items: center; color: white; font-weight: 650; }
.cover-label[hidden] { display: none; }
.play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 3.4rem; height: 2.5rem; display: grid; place-items: center; background: #0d2438df; color: white; border-radius: .65rem; font-size: 1.15rem; }
.story { width: min(100%, 62rem); margin-inline: auto; }
.back { display: inline-block; margin-bottom: .9rem; }
.player { background: #081724; width: 100%; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; display: block; border: 0; margin: 0; padding: 0; }
.player-link { display: inline-block; margin-top: .4rem; font-size: .88rem; }
.story h2 { font-size: clamp(1.5rem, 3vw, 2.35rem); line-height: 1.2; margin: 1rem 0 .45rem; }
.story-body { max-width: 72ch; margin-top: 1.2rem; font-size: 1.065rem; line-height: 1.75; overflow-wrap: anywhere; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .75rem; }
.gallery button { border: 0; padding: 0; border-radius: .6rem; overflow: hidden; aspect-ratio: 4 / 3; background: #e0eaf1; color: #12324a; cursor: pointer; }
.story section { margin-top: 1.6rem; }
.story h3 { margin-bottom: .6rem; }

.mobile-video-cover { display: block; }
@media (max-width: 600px), (hover: none) and (pointer: coarse) {
    .news-content .player-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        margin-top: .55rem;
        padding: .4rem .75rem;
        border-radius: .55rem;
        background: #e0f2fe;
        font-weight: 700;
    }
}

.gallery .gallery-drive-link {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: .75rem;
    border-radius: .6rem;
    background: #e0eaf1;
    color: #125a83;
    text-align: center;
    text-decoration: underline;
    font-weight: 700;
}

/* Video: cùng cách phát ở mọi kích thước màn hình. */
.video-controls { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.video-controls .player-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; box-sizing:border-box; padding:10px 14px; border:1px solid #cbd5e1; border-radius:10px; background:#e0f2fe; color:#125a83; font:inherit; font-weight:600; cursor:pointer; text-decoration:none; margin:0; }
.video-controls .player-link:focus-visible { outline:3px solid #0284c7; outline-offset:3px; }
.video-help { font-size:14px; line-height:1.6; color:#64748b; margin:10px 0 0; }

/* Trình chiếu rộng; chỉ khung video tràn lề, nội dung chữ vẫn dễ đọc. */
#main-container.content-layer { max-width:1200px; }
.news-content .story { width:100%; }
.video-area { width:100%; min-width:0; }
/* Khung nhúng Drive cần cao hơn khung ảnh bìa 16:9.
   Video tự co giãn trong iframe; nút trợ giúp vẫn nằm ngoài vùng phát. */
.video-area .player { aspect-ratio:4 / 3; isolation:isolate; border-radius:0; }
.video-controls { position:static; clear:both; }
@media (max-width:600px) {
    .video-area .player {
        /* Ưu tiên chiều cao khi xem dọc trên điện thoại. */
        min-height:300px;
        width:calc(100% + var(--news-gutter) + var(--news-gutter));
        margin-inline:calc(0px - var(--news-gutter));
    }
}

/* YouTube: giữ trình phát gốc và âm thanh; nút hỗ trợ nằm ngoài khung, không có màn phủ che video. */
.youtube-area .player { background: #080e17; }
.youtube-area .player .youtube-target { width:100%; height:100%; }
.youtube-area .video-controls .youtube-play-manual { background:#e0f2fe; font-weight:700; }
.youtube-area .video-controls .youtube-play-manual[hidden] { display:none !important; }
/* Không chừa khoảng trống cho nút mở YouTube đã bỏ; vẫn cách khung khi nút phát dự phòng hiện. */
.youtube-area .video-controls { margin-top:0; }
.youtube-area .video-controls .youtube-play-manual:not([hidden]) { margin-top:12px; }
