.home-video-section { padding-block: 48px; }
.home-video-card { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: center; gap: 40px; padding: 36px; border: 1px solid var(--line); border-radius: 28px; background: #eaf0e3; }
.home-video-copy h2 { margin: 12px 0; font-size: clamp(1.5rem,2.5vw,2.3rem); line-height: 1.6; }
.home-video-copy p { color: var(--muted); }
.home-video-copy .video-playback-note { font-size: .78rem; }
.home-video-screen { min-width: 0; }
.home-video-screen .video-frame, .home-video-screen video { aspect-ratio: 16/9; width: 100%; border-radius: 18px; background: #102f28; object-fit: contain; }
.home-media-empty { aspect-ratio: 16/9; display: grid; align-content: center; justify-items: center; padding: 24px; border-radius: 18px; text-align: center; background: var(--accent); color: white; }
.home-media-empty > span { font-size: 3rem; color: var(--lime); }
.home-media-empty p { max-width: 360px; margin: 0; font-size: .85rem; }
.home-gallery-section .section-heading p, .home-schedule-section .section-heading p { max-width: 650px; color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.home-gallery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.home-gallery-grid figure { margin: 0; min-width: 0; }
.home-gallery-grid a { position: relative; display: block; overflow: hidden; border-radius: 20px; background: #e5ecdf; }
.home-gallery-grid img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; transition: transform .35s; }
.gallery-expand { position: absolute; inset-inline-end: 12px; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--panel); color: var(--accent); font-size: 1.3rem; }
.home-gallery-grid figcaption { padding: 10px 4px; font-size: .83rem; overflow-wrap: anywhere; }
.home-gallery-grid figcaption small { display: block; color: var(--muted); }
.home-section-empty { padding: 28px; border: 1px dashed #b9c7b8; border-radius: 18px; color: var(--muted); }
.premium-section.home-schedule-section { padding-block: 36px; background: #edf2e7; }
.home-schedule-section .section-heading { margin-bottom: 18px; gap: 16px; }
.home-schedule-section .section-heading h2 { margin-block: 6px; font-size: clamp(1.3rem,2.2vw,1.8rem); }
.home-schedule-section .section-heading p { max-width: 780px; font-size: .8rem; line-height: 1.9; }
.home-schedule-section .section-heading > a { flex-shrink: 0; }
.home-schedule-list { list-style: none; margin: 0; padding: 0 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.home-schedule-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr) auto; align-items: center; gap: 12px 20px; padding-block: 14px; }
.home-schedule-row + .home-schedule-row { border-top: 1px solid var(--line); }
.schedule-class { min-width: 0; }
.schedule-class h3 { margin: 0; font-size: .9rem; line-height: 1.8; color: var(--accent); overflow-wrap: anywhere; }
.schedule-class small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.8; overflow-wrap: anywhere; }
.schedule-days { display: flex; flex-wrap: wrap; gap: 5px; }
.schedule-days span { padding: 2px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: .75rem; white-space: nowrap; }
.home-schedule-row .session-time { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: #edf3df; color: var(--accent); font-size: .87rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gallery-dialog { width: min(1000px,calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); color: var(--ink); }
.gallery-dialog::backdrop { background: #0c211beb; }
.gallery-dialog > img { width: 100%; height: min(60dvh,640px); object-fit: contain; }
.gallery-dialog > p { text-align: center; margin: 12px 0; }
.gallery-close, .gallery-controls button { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--panel); }
.gallery-close { display: block; margin-inline-start: auto; width: 44px; margin-bottom: 12px; font-size: 1.6rem; }
.gallery-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; }
.gallery-controls button { padding: 8px 14px; }
body:has(.gallery-dialog[open]) { overflow: hidden; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) { .home-gallery-grid a:hover img { transform: scale(1.04); } }
@media (max-width:1000px) { .home-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .home-video-card { gap: 24px; padding: 24px; } }
@media (max-width:700px) {
    .home-video-card { grid-template-columns: minmax(0,1fr); }
    .home-video-screen { grid-row: 1; }
    .premium-section.home-schedule-section { padding-block: 28px; }
    .home-schedule-section .section-heading { align-items: flex-start; gap: 10px; }
    .home-schedule-list { padding-inline: 14px; }
    .home-schedule-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; padding-block: 12px; }
    .schedule-days { grid-column: 1 / -1; grid-row: auto; }
    .home-schedule-row .session-time { grid-column: 2; grid-row: 1; gap: 5px; padding: 5px 8px; font-size: .8rem; }
}
@media (max-width:360px) {
    .home-schedule-row { grid-template-columns: minmax(0,1fr); }
    .home-schedule-row .session-time { grid-column: 1; grid-row: auto; justify-self: start; }
}
@media (max-width:420px) { .home-gallery-grid { gap: 12px; } .home-video-card { padding: 16px; } .gallery-dialog { padding: 14px; } }
