

.home-video-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}

.home-video-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #24506b;border-radius:16px;background:#081c2c;color:#f0f8ff;text-decoration:none;transition:border-color .18s,transform .18s}

.home-video-card:hover{border-color:#72d6ff;transform:translateY(-3px)}

.home-video-card:focus-visible{outline:3px solid #f7c04a;outline-offset:4px}

.home-video-image{display:block;position:relative;aspect-ratio:16/9;background:#07131d}

.home-video-image img{display:block;width:100%;height:100%;aspect-ratio:16/9;object-fit:cover}

.home-video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:rgba(0,29,50,.9);border:1px solid #72d6ff;color:#fff;font-size:20px;padding-left:3px;box-shadow:0 2px 14px #0008}

.home-video-duration{position:absolute;right:8px;bottom:8px;padding:2px 6px;border-radius:4px;background:#000d;color:#fff;font-size:12px;font-weight:700}

.home-video-caption{display:flex;flex:1;flex-direction:column;gap:12px;padding:18px}

.home-video-caption strong{font-size:1.05rem;line-height:1.4}

.home-video-caption>span{margin-top:auto;font-size:.9rem;font-weight:700;color:#83d8ff}

@media(max-width:1000px){.home-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:560px){.home-video-grid{grid-template-columns:1fr}}

@media(prefers-reduced-motion:reduce){.home-video-card{transition:none}.home-video-card:hover{transform:none}}


.home-video-dialog{width:min(1100px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #3985af;border-radius:16px;background:#071b2b;color:#f0f8ff;box-shadow:0 20px 80px #000b;overflow:auto}
.home-video-dialog::backdrop{background:rgba(0,8,17,.88)}
.home-video-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px}
.home-video-dialog-head h2{margin:0;font-size:clamp(1rem,2.5vw,1.4rem);line-height:1.4}
.home-video-dialog-head button{flex-shrink:0;cursor:pointer}
.home-video-player{aspect-ratio:16/9;width:100%;background:#000}
.home-video-player iframe{display:block;width:100%;height:100%;border:0}
body.home-video-open{overflow:hidden}
@media(max-width:560px){.home-video-dialog-head{padding:12px;gap:8px}.home-video-dialog-head button{padding:8px 10px;font-size:.85rem}}


.home-video-dialog-head h2{flex:1;min-width:0;overflow-wrap:anywhere}
.home-video-dialog-head button{width:auto;max-width:none}

.home-video-dialog{width:min(1100px,calc(100% - 32px),calc((100dvh - 120px) * 1.777778))}
.home-video-dialog-head{position:sticky;top:0;z-index:1;background:#071b2b}
