:root {
    --bg: #050709;
    --bg-soft: #080c0f;
    --panel: #0d1216;
    --panel-2: #11171b;
    --line: #20272c;
    --line-soft: #171d21;
    --text: #f5f7f8;
    --muted: #98a1a7;
    --red: #e21e2b;
    --red-dark: #b9111d;
    --green: #22c875;
    --yellow: #f3b533;
    --radius: 14px;
    --radius-sm: 9px;
    --content: 1180px;
    --nav-height: 70px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; min-height: 100vh; background: radial-gradient(circle at 40% -10%, #10171b 0, var(--bg) 34rem); color: var(--text); font-size: 15px; line-height: 1.45; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-150%); background: #fff; color: #000; padding: .7rem 1rem; border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }

h1, h2, h3, .brand-word, .button, .eyebrow { font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif; letter-spacing: .01em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .3rem; font-size: clamp(2rem, 10vw, 3.4rem); line-height: .95; text-transform: uppercase; }
h2 { margin-bottom: .65rem; font-size: 1.2rem; line-height: 1.1; }
h3 { margin-bottom: .3rem; font-size: 1rem; }
.muted { color: var(--muted); }

.app-shell { width: min(100%, var(--content)); margin: 0 auto; min-height: 100vh; padding: 16px 14px calc(var(--nav-height) + env(safe-area-inset-bottom) + 24px); }
.desktop-header { display: none; }
.mobile-brandbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 4px 0 6px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: .85; }
.brand-word { font-size: 1.55rem; font-weight: 900; font-style: italic; letter-spacing: -.04em; }
.brand-word span { color: var(--red); }
.brand small { margin-top: 4px; font-size: .47rem; font-weight: 800; letter-spacing: .08em; }
.notification-link { position: relative; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 1.4rem; }
.notification-link i { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--bg); }
.location-strip { display: flex; align-items: center; gap: .4rem; margin: 4px 0 12px; color: var(--muted); font-size: .78rem; }

.home-hero { position: relative; min-height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(90deg, rgba(2,3,4,.98) 0%, rgba(2,3,4,.72) 52%, rgba(2,3,4,.18) 100%), var(--hero) center/cover; }
.home-hero.no-image { background: radial-gradient(circle at 75% 20%, rgba(226,30,43,.22), transparent 26%), repeating-linear-gradient(125deg, transparent 0 35px, rgba(255,255,255,.025) 36px 37px), #0b1013; }
.hero-overlay { display: flex; min-height: 300px; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 24px; background: linear-gradient(0deg, rgba(3,5,6,.95), transparent 75%); }
.hero-overlay h1 { max-width: 340px; margin-bottom: .7rem; font-size: clamp(2.5rem, 13vw, 4.4rem); font-style: italic; }
.hero-overlay h1 span { color: var(--red); }
.hero-overlay p { max-width: 460px; color: #c1c7ca; }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 7px; padding: .75rem 1.1rem; cursor: pointer; font-weight: 800; letter-spacing: .03em; text-align: center; text-transform: uppercase; }
.button-primary { background: var(--red); color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.22); }
.button-primary:hover { background: #f02432; }
.button-outline { border: 1px solid #4a5359; background: transparent; color: #fff; }
.button.small { min-height: 34px; padding: .35rem .65rem; font-size: .74rem; }
.full-width { width: 100%; }
.text-button { border: 0; background: none; padding: .4rem; color: #d6dadd; cursor: pointer; }
.text-button.danger { color: #ff6b73; }
.icon-button { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 1.7rem; }

.announcement { display: flex; align-items: flex-start; gap: .8rem; margin: 12px 0; border: 1px solid rgba(226,30,43,.45); border-left: 4px solid var(--red); border-radius: var(--radius-sm); padding: 12px; background: rgba(226,30,43,.08); }
.announcement > span { display: grid; flex: 0 0 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--red); font-weight: 900; }
.announcement p { margin: .2rem 0 0; color: #c8ced1; font-size: .86rem; }

.section-block { margin: 24px 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 10px; }
.section-heading h2 { margin: 0; text-transform: uppercase; }
.section-heading a, .section-heading > span { color: var(--red); font-size: .78rem; font-weight: 700; }
.card-stack { display: grid; gap: 8px; }
.session-card { display: flex; align-items: center; gap: 12px; min-height: 82px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px; background: var(--panel); }
.session-card.is-live { border-color: rgba(34,200,117,.35); }
.session-icon { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border-radius: 10px; background: rgba(226,30,43,.15); color: var(--red); font-size: 1.5rem; }
.session-copy { min-width: 0; flex: 1; }
.card-title-row { display: flex; align-items: center; gap: .4rem; }
.card-title-row h3 { margin-right: auto; }
.session-time { margin: 1px 0; font-weight: 600; }
.meta-row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: .3rem 0 0; color: var(--muted); font-size: .72rem; }
.badge { display: inline-flex; width: max-content; border-radius: 4px; padding: .18rem .35rem; background: var(--red); color: #fff; font-size: .56rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.badge-live { background: #0b6f42; color: #8ff1bb; }
.lock { color: var(--muted); }

.next-session-panel { margin: 12px 0 24px; border: 1px solid rgba(226,30,43,.42); border-radius: var(--radius); padding: 14px; background: linear-gradient(135deg, rgba(226,30,43,.14), var(--panel) 50%); }
.next-session-panel > small { color: var(--red); font-weight: 900; text-transform: uppercase; }
.next-session-panel > div { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .55rem 0 .2rem; }
.next-session-panel h2, .next-session-panel p { margin: 0; }
.countdown { display: block; margin-top: .7rem; color: var(--red); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.empty-state { display: grid; min-height: 130px; place-items: center; align-content: center; border: 1px dashed #313a40; border-radius: var(--radius); padding: 24px; background: rgba(13,18,22,.65); text-align: center; }
.empty-state > span { color: var(--red); font-size: 2rem; }
.empty-state h3 { margin: .4rem 0; }
.empty-state p { margin: 0; color: var(--muted); }
.closed-state { border: 1px solid #382126; border-radius: var(--radius-sm); padding: 14px; background: #171014; color: #ffafb4; font-weight: 700; }
.closed-state.muted { border-color: var(--line); background: var(--panel); color: var(--muted); }

.horizontal-cards { display: grid; grid-auto-columns: minmax(220px, 76%); grid-auto-flow: column; gap: 10px; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 6px; scroll-snap-type: inline mandatory; }
.horizontal-cards > * { scroll-snap-align: start; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.content-grid > a { min-width: 0; }
.media-card { overflow: hidden; height: 100%; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--panel); text-align: left; }
.media-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #111; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.media-card:hover .media-thumb img { transform: scale(1.025); }
.media-placeholder { display: grid; place-items: center; background: radial-gradient(circle at 65% 25%, rgba(226,30,43,.24), transparent 30%), repeating-linear-gradient(130deg, transparent 0 20px, rgba(255,255,255,.025) 21px 22px), #0f1417; }
.media-placeholder > span { font-family: Impact, sans-serif; font-style: italic; font-weight: 900; }
.media-placeholder > span span { color: var(--red); }
.play-button { position: absolute; top: 50%; left: 50%; display: grid; width: 46px; height: 46px; place-items: center; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 1rem; }
.duration { position: absolute; right: 5px; bottom: 5px; border-radius: 3px; padding: 2px 4px; background: rgba(0,0,0,.8); }
.media-badge { position: absolute; top: 6px; left: 6px; }
.media-copy { padding: 9px; }
.media-copy h3, .media-copy p { margin: 0 0 .25rem; }
.media-copy p, .media-copy small { color: var(--muted); font-size: .72rem; }
.coach-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.coach-mini-grid a { display: flex; min-height: 70px; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); border-radius: 9px; padding: 10px; background: var(--panel); }
.coach-mini-grid small { color: var(--muted); }
.sponsors-strip > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.sponsors-strip > div:last-child span { border: 1px solid var(--line); border-radius: 7px; padding: 10px 14px; color: #ccd1d4; font-weight: 700; }
.location-card { display: grid; gap: 12px; margin: 32px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: linear-gradient(135deg, var(--panel), #0a0e10); }
.location-card .map-pin { color: var(--red); font-size: 2rem; }
.location-card p { margin: 0; color: var(--muted); }

.page-header { display: flex; min-height: 78px; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 12px; }
.page-header h1 { margin: 0; font-size: 2.25rem; }
.eyebrow { color: var(--red); font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.segmented { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 2px; margin: 10px 0 18px; border-radius: 7px; padding: 3px; background: #101519; overflow-x: auto; }
.segmented button { min-width: max-content; min-height: 38px; border: 0; border-radius: 5px; padding: .45rem .9rem; background: transparent; color: #c5cbce; cursor: pointer; font-size: .77rem; }
.segmented button[aria-selected="true"] { background: var(--red); color: #fff; font-weight: 800; }
.segmented-three { grid-template-columns: repeat(3, 1fr); }
.timetable-list { display: grid; gap: 16px; }
.day-block { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.day-block.is-today .day-heading h2 { color: var(--red); }
.day-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.day-heading h2 { margin: 0; font-size: .8rem; letter-spacing: .05em; }
.day-heading time { color: var(--muted); font-size: .72rem; }
.timetable-highlights { margin-top: 10px; }
.timetable-highlights-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 7px; }
.timetable-highlights-heading span { font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.timetable-highlights-heading small { color: var(--muted); font-size: .62rem; }
.timetable-highlight-list { display: grid; gap: 7px; }
.timetable-highlight-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; align-items: center; gap: 10px; min-height: 72px; border-radius: var(--radius-sm); padding: 10px; }
.timetable-highlight-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; }
.timetable-highlight-copy { display: flex; min-width: 0; flex-direction: column; }
.timetable-highlight-type { font-size: .58rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.timetable-highlight-copy strong { overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.timetable-highlight-copy small { overflow: hidden; color: var(--muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.timetable-highlight-arrow { width: 16px; height: 16px; color: var(--muted); }

.course-list { display: grid; gap: 10px; }
.course-card { display: grid; grid-template-columns: 42% 1fr; gap: 12px; width: 100%; min-height: 120px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; background: var(--panel); color: inherit; cursor: pointer; text-align: left; }
.course-card > div:last-child { align-self: center; padding: 12px 12px 12px 0; }
.course-card h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.course-card p, .course-card time { margin: 0; color: var(--muted); font-size: .75rem; }
.course-image { position: relative; min-height: 120px; overflow: hidden; }
.course-image img { width: 100%; height: 100%; object-fit: cover; }

dialog { color: var(--text); }
dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(5px); }
.detail-dialog, .more-sheet, .gallery-dialog { width: min(100% - 20px, 720px); max-height: calc(100dvh - 20px); margin: auto; overflow: auto; border: 1px solid rgba(255,255,255,.065); border-radius: 18px; padding: 0; background: #0b0f12; box-shadow: 0 24px 80px rgba(0,0,0,.65); }
.dialog-close { position: absolute; z-index: 2; top: 8px; right: 8px; background: rgba(0,0,0,.65); }
.detail-hero { width: 100%; max-height: 340px; object-fit: cover; }
.detail-content { display: grid; gap: 15px; padding: 22px; }
.detail-content h2 { margin: 0; font-size: 1.8rem; }
.detail-facts, .training-facts, .compact-facts { display: grid; gap: 8px; margin: 0; }
.detail-facts > div, .training-facts > div, .compact-facts > div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
dt { color: var(--muted); font-size: .75rem; }
dd { margin: 0; }
.lead-copy { color: #d7dcde; font-size: 1rem; }
.rich-copy { color: #bcc4c8; white-space: normal; }
.detail-section { border-top: 1px solid var(--line); padding-top: 16px; }
.detail-section h3, .detail-section h2 { color: #fff; text-transform: uppercase; }
.detail-section p { color: #b8c0c4; }

.coach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.coach-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; background: var(--panel); color: inherit; cursor: pointer; text-align: left; }
.coach-photo { aspect-ratio: 4/4.5; overflow: hidden; }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; }
.coach-card > div:last-child { padding: 10px; }
.coach-card h2, .coach-card p { margin: 0 0 .2rem; }
.coach-card p, .coach-card small { color: var(--muted); font-size: .72rem; }
.coach-dialog-head { display: grid; grid-template-columns: 42% 1fr; align-items: center; gap: 20px; }
.coach-dialog-head .coach-photo { aspect-ratio: 1; }
.coach-dialog-head h2 { font-size: 2rem; }

.video-feed, .event-list, .news-feed { display: grid; gap: 14px; }
.video-feed > .media-card, .video-feed > a > .media-card { border-radius: var(--radius); }
.video-feed .media-thumb { aspect-ratio: 16/9; }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.category-card { display: flex; min-height: 92px; flex-direction: column; align-items: flex-start; justify-content: flex-end; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; background: radial-gradient(circle at 70% 20%, rgba(226,30,43,.17), transparent 40%), var(--panel); cursor: pointer; text-align: left; }
.category-card span { color: var(--red); font-size: .7rem; font-weight: 900; }
.category-card.active { border-color: var(--red); }
.detail-topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.detail-topbar > a { font-size: 2.2rem; }
.detail-topbar > div { min-width: 0; flex: 1; }
.detail-topbar h1 { overflow: hidden; margin: 0; font-size: 1.2rem; text-overflow: ellipsis; white-space: nowrap; }
.detail-topbar small { color: var(--muted); }
.video-player { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius); }
.video-player img { width: 100%; height: 100%; object-fit: cover; }
.previous-next { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.compact-facts { border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); padding: 10px; background: var(--panel); }

.event-card { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.event-card img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.event-card > div { padding: 14px; }
.event-card time { color: var(--red); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.event-card h2 { margin: .4rem 0; }
.event-card p { margin: .35rem 0; color: var(--muted); }
.event-card a { color: var(--red); font-weight: 700; }
.filter-scroll { display: flex; gap: 4px; overflow-x: auto; margin: 8px -14px 16px; padding: 0 14px; }
.filter-scroll button { flex: 0 0 auto; min-height: 38px; border: 0; border-radius: 5px; padding: .45rem .85rem; background: var(--panel); color: #d5d9db; cursor: pointer; }
.filter-scroll button.active { background: var(--red); color: #fff; }
.news-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.news-card > img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.news-card > div { padding: 13px; }
.news-card h2 { margin: .45rem 0 .2rem; }
.news-card p, .news-card time { color: var(--muted); }
.news-card details { margin: .5rem 0; }
.news-card summary { color: var(--red); cursor: pointer; font-weight: 700; }
.news-card a { color: var(--red); font-weight: 750; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.gallery-grid button { aspect-ratio: 1; overflow: hidden; border: 0; border-radius: 5px; padding: 0; background: #111; cursor: pointer; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dialog { width: min(100% - 16px, 900px); background: #050607; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px; }
.gallery-stage { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; }
.gallery-stage button { height: 60px; border: 0; background: rgba(255,255,255,.06); color: #fff; font-size: 2rem; cursor: pointer; }
.gallery-stage img { width: 100%; max-height: 72dvh; object-fit: contain; }
.gallery-dialog > p { padding: 0 16px 16px; color: var(--muted); text-align: center; }

.sponsor-group { margin-bottom: 28px; }
.sponsor-group h2 { color: var(--muted); font-size: .8rem; text-transform: uppercase; }
.sponsor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sponsor-card { display: flex; min-height: 100px; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--panel); text-align: center; }
.sponsor-card img { max-width: 100%; max-height: 60px; object-fit: contain; }
.sponsor-card small { color: var(--muted); }
.brand-panel { display: flex; min-height: 220px; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: radial-gradient(circle at 85% 20%, rgba(226,30,43,.25), transparent 30%), var(--panel); }
.brand-panel .brand-word { font-size: 2.5rem; }
.brand-panel p { max-width: 580px; margin-top: 1.5rem; color: #c0c7ca; }
.value-list { display: grid; gap: 8px; margin: 18px 0; }
.value-list > div { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: var(--panel); }
.value-list span { color: var(--red); }
.affiliation-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--panel); }
.affiliation-card > span { color: var(--red); font-size: 1.5rem; }
.affiliation-card div { display: flex; flex-direction: column; }

.faq-list { display: grid; gap: 8px; margin-bottom: 20px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; background: var(--panel); }
.faq-list summary { display: flex; align-items: center; gap: 12px; padding: 13px 0; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border: 1px solid rgba(226,30,43,.5); border-radius: 50%; color: var(--red); }
.faq-list summary > div { display: flex; flex-direction: column; }
.faq-list summary small { color: var(--muted); }
.faq-list details > p, .faq-list details > .rich-copy { border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); }
.map-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.map-grid { position: relative; display: grid; min-height: 230px; place-items: center; background-color: #151a1d; background-image: linear-gradient(#262d31 1px, transparent 1px), linear-gradient(90deg, #262d31 1px, transparent 1px); background-size: 38px 38px; transform: perspective(600px) rotateX(2deg); }
.map-grid::before, .map-grid::after { position: absolute; width: 150%; height: 2px; background: #30383d; content: ""; transform: rotate(25deg); }
.map-grid::after { transform: rotate(-17deg); }
.map-pin { z-index: 1; color: var(--red); font-size: 3.4rem; text-shadow: 0 8px 12px #000; }
.contact-lines { display: grid; padding: 14px; }
.contact-lines p, .contact-lines a { display: flex; gap: 10px; margin: 0; border-bottom: 1px solid var(--line); padding: 12px 0; }
.contact-lines span { color: var(--red); }
.social-block { margin: 24px 0; }
.social-block div { display: flex; gap: 8px; }
.social-block a { border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; background: var(--panel); }
.error-page { display: grid; min-height: 70vh; place-items: center; align-content: center; text-align: center; }
.error-page > span { color: var(--red); font: 900 5rem Impact, sans-serif; }

.bottom-nav { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: grid; height: calc(var(--nav-height) + env(safe-area-inset-bottom)); grid-template-columns: repeat(6, 1fr); padding: 7px 5px env(safe-area-inset-bottom); border-top: 1px solid #262d31; background: rgba(7,10,12,.96); backdrop-filter: blur(18px); }
.bottom-nav a, .bottom-nav button { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; padding: 0; background: none; color: #939ca1; cursor: pointer; }
.bottom-nav span { min-height: 24px; font-size: 1.1rem; }
.bottom-nav small { font-size: clamp(.52rem, 2.3vw, .64rem); }
.bottom-nav [aria-current="page"] { color: var(--red); }
.more-sheet { top: auto; right: 0; bottom: 0; left: 0; width: min(100%, 600px); max-height: 88dvh; margin: 0 auto; border-radius: 20px 20px 0 0; padding: 12px 14px calc(20px + env(safe-area-inset-bottom)); }
.sheet-handle { width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 5px; background: #515a60; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.more-grid a { display: flex; min-height: 88px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: .72rem; }
.more-grid span { color: var(--red); font-size: 1.35rem; }
.mini-contact { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 15px; }
.mini-contact p { color: var(--muted); }

@media (min-width: 600px) {
    .app-shell { padding-right: 22px; padding-left: 22px; }
    .home-hero, .hero-overlay { min-height: 390px; }
    .content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .course-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .coach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .event-card { grid-template-columns: 34% 1fr; }
    .event-card img { height: 100%; aspect-ratio: auto; }
    .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
    .desktop-header { position: sticky; z-index: 40; top: 0; display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); padding: 0 max(24px, calc((100vw - var(--content)) / 2)); background: rgba(5,7,9,.94); backdrop-filter: blur(15px); }
    .desktop-header nav { display: flex; align-items: center; gap: 1.25rem; }
    .desktop-header nav a { padding: 25px 0 22px; border-bottom: 3px solid transparent; color: #bdc4c7; font-size: .83rem; font-weight: 650; }
    .desktop-header nav a:hover, .desktop-header nav a[aria-current="page"] { border-bottom-color: var(--red); color: #fff; }
    .mobile-brandbar, .bottom-nav { display: none; }
    .app-shell { min-height: calc(100vh - 72px); padding-top: 30px; padding-bottom: 60px; }
    .home-hero, .hero-overlay { min-height: 470px; }
    .home-hero { margin-top: 0; }
    .hero-overlay { padding: 50px; }
    .section-block { margin: 38px 0; }
    .schedule-now, .next-session-panel { display: inline-block; width: calc(58% - 7px); vertical-align: top; }
    .next-session-panel { width: calc(42% - 7px); min-height: 180px; margin: 24px 0 24px 10px; padding: 24px; }
    .content-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .horizontal-cards { grid-template-columns: repeat(4, 1fr); grid-auto-flow: initial; overflow: visible; }
    .page-header { min-height: 95px; }
    .course-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .coach-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .timetable-list { grid-template-columns: repeat(2, 1fr); align-items: start; }
    .day-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: rgba(10,14,17,.65); }
    .video-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .news-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .sponsor-grid { grid-template-columns: repeat(4, 1fr); }
    .map-card { display: grid; grid-template-columns: 60% 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; }
}

@media (max-width: 980px) {
    input:not([type="checkbox"]):not([type="hidden"]), textarea, select { font-size: 16px; }
}
