@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("./fonts/dm-sans-regular.ttf") format("truetype");
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("./fonts/dm-sans-semibold.ttf") format("truetype");
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("./fonts/dm-sans-semibold.ttf") format("truetype");
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("./fonts/dm-sans-semibold.ttf") format("truetype");
}

:root {
    color-scheme: dark;
    --fn-bg: #111315;
    --fn-surface: #1a1d20;
    --fn-surface-raised: #202427;
    --fn-text: #f3f1ed;
    --fn-muted: #a4a8ac;
    --fn-line: #303437;
    --fn-accent: #e4b66d;
    --fn-danger: #e78272;
    --fn-live: #bd5142;
    --fn-focus: #f0cc91;
    --fn-radius: 8px;
    --fn-content-width: 1460px;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--fn-bg); }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--fn-text);
    background: var(--fn-bg);
    font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

button, input, select { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; }

button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
    outline: 2px solid var(--fn-focus);
    outline-offset: 2px;
}

[hidden] { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.player-header {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 28px;
    border-bottom: 1px solid var(--fn-line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    text-decoration: none;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -1px;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    color: var(--fn-accent);
}

.brand-mark svg { width: 25px; height: 25px; }

.primary-nav {
    display: flex;
    align-self: stretch;
    gap: 5px;
    margin-left: 20px;
}

.primary-nav button {
    position: relative;
    min-width: 68px;
    padding: 0 13px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--fn-muted);
    font-weight: 500;
}

.primary-nav button:hover { color: var(--fn-text); background: #ffffff08; }
.primary-nav button[aria-current="page"] { color: var(--fn-text); }
.primary-nav button[aria-current="page"]::after {
    position: absolute;
    right: 12px;
    bottom: -1px;
    left: 12px;
    height: 2px;
    background: var(--fn-accent);
    content: "";
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
}

.icon-button:hover { background: #ffffff0d; }
.icon-button svg { width: 19px; height: 19px; }

.account-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-left: 5px;
    border-radius: 50%;
    background: #36322c;
    color: #f3d6a6;
    font-size: 12px;
    font-weight: 600;
}

.player-main {
    width: min(100%, var(--fn-content-width));
    min-height: calc(100vh - 76px);
    margin: 0 auto;
    padding: 28px;
}

.status-banner {
    width: min(100% - 56px, var(--fn-content-width) - 56px);
    margin: 16px auto 0;
    padding: 10px 14px;
    border-left: 2px solid var(--fn-accent);
    background: var(--fn-surface);
    color: var(--fn-text);
}

.status-banner.is-error { border-left-color: var(--fn-danger); }

.setup-view {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    align-items: center;
    gap: clamp(40px, 9vw, 140px);
    max-width: 1020px;
    min-height: calc(100vh - 132px);
    margin: 0 auto;
}

.setup-copy { max-width: 510px; }
.setup-copy h1 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -1.8px; }
.setup-copy p { max-width: 440px; margin: 0; color: var(--fn-muted); font-size: 16px; }

.access-form {
    padding: 24px;
    border: 1px solid var(--fn-line);
    border-radius: 10px;
    background: var(--fn-surface);
}

.access-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: -24px -24px 22px;
    border-bottom: 1px solid var(--fn-line);
}

.access-methods button {
    position: relative;
    min-height: 48px;
    padding: 10px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--fn-muted);
    font-weight: 600;
}

.access-methods button[aria-selected="true"] { color: var(--fn-text); }
.access-methods button[aria-selected="true"]::after { position: absolute; right: 18px; bottom: -1px; left: 18px; height: 2px; background: var(--fn-accent); content: ""; }
.form-fields { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .check-field span { color: var(--fn-muted); font-size: 12px; }
.field input, .search-field input, .select-field select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--fn-line);
    border-radius: var(--fn-radius);
    outline: 0;
    background: #141719;
    color: var(--fn-text);
}
.field input::placeholder, .search-field input::placeholder { color: #72777b; }
.field input:focus, .search-field:focus-within, .select-field select:focus { border-color: var(--fn-accent); outline: 2px solid #e4b66d44; }
.check-field { display: flex; align-items: center; gap: 9px; margin: 18px 0; cursor: pointer; }
.check-field input { width: 16px; height: 16px; accent-color: var(--fn-accent); }
.primary-button, .secondary-button, .danger-button {
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 7px;
    font-weight: 600;
}
.primary-button { width: 100%; border: 1px solid var(--fn-accent); background: var(--fn-accent); color: #171715; }
.primary-button:hover { background: #f0c985; }
.secondary-button { border: 1px solid var(--fn-line); background: var(--fn-surface-raised); }
.secondary-button:hover { border-color: #62676a; }
.danger-button { border: 1px solid #723f38; background: transparent; color: var(--fn-danger); }
.danger-button:hover { background: #a744351c; }
.privacy-note { margin: 15px 0 0; color: var(--fn-muted); font-size: 11px; line-height: 1.45; }
.form-error { margin: 0 0 14px; color: var(--fn-danger); font-size: 13px; }

.content-view { min-width: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -1px; }
.section-heading p { margin: 5px 0 0; color: var(--fn-muted); }
.select-field { display: inline-block; min-width: 130px; }
.select-field select { min-height: 42px; padding: 9px 30px 9px 11px; appearance: auto; background: var(--fn-surface); }

.live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; }
.viewer-column { min-width: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 9px; background: #070909; }
.video-frame video { display: block; width: 100%; height: 100%; background: #070909; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--fn-muted); text-align: center; pointer-events: none; }
.video-placeholder svg { width: 42px; height: 42px; margin-bottom: 5px; color: var(--fn-accent); }
.video-placeholder strong { color: var(--fn-text); font-size: 15px; font-weight: 500; }
.video-placeholder span { font-size: 12px; }
.video-message { position: absolute; right: 16px; bottom: 16px; left: 16px; padding: 12px 14px; border-left: 2px solid var(--fn-danger); background: #17191acc; color: var(--fn-text); }
.media-actions { display: flex; flex-wrap: wrap; gap: 3px 12px; padding: 10px 0 0; }
.text-button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 0; border: 0; background: transparent; color: var(--fn-muted); font-size: 12px; }
.text-button:hover:not(:disabled) { color: var(--fn-text); }
.text-button svg { width: 16px; height: 16px; }
.now-playing { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-top: 18px; }
.now-playing h2 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.5px; }
.now-playing p { margin: 5px 0 0; color: var(--fn-muted); font-size: 13px; }
.live-badge { flex: 0 0 auto; margin-top: 3px; padding: 3px 7px; border-radius: 4px; background: var(--fn-live); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.epg-panel { margin-top: 23px; padding: 18px 0; border-top: 1px solid var(--fn-line); }
.epg-line { display: flex; align-items: baseline; gap: 14px; }
.epg-line strong { font-weight: 500; }
.epg-line time, .epg-next time { color: var(--fn-muted); font-size: 12px; }
.epg-progress { height: 3px; margin: 12px 0 15px; overflow: hidden; border-radius: 2px; background: #3c3d3d; }
.epg-progress span { display: block; width: 0; height: 100%; background: var(--fn-accent); transition: width 160ms ease; }
.epg-next { display: flex; gap: 12px; color: var(--fn-muted); font-size: 13px; }

.channel-browser { min-width: 0; }
.browser-tools { display: grid; gap: 8px; }
.search-field { display: flex; align-items: center; gap: 9px; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--fn-line); border-radius: var(--fn-radius); background: var(--fn-surface); color: var(--fn-muted); }
.search-field svg { flex: 0 0 auto; width: 17px; height: 17px; }
.search-field input { min-width: 0; min-height: 0; padding: 0; border: 0; outline: 0; background: transparent; }
.compact-select { width: 100%; }
.compact-select select { min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 12px; }
.list-tabs { display: flex; gap: 20px; margin: 13px 0 5px; border-bottom: 1px solid var(--fn-line); }
.list-tabs button { position: relative; min-height: 40px; padding: 9px 0; border: 0; border-radius: 0; background: transparent; color: var(--fn-muted); font-size: 13px; }
.list-tabs button[aria-selected="true"] { color: var(--fn-text); }
.list-tabs button[aria-selected="true"]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--fn-accent); content: ""; }
.large-tabs { margin: 0 0 20px; gap: 25px; }
.large-tabs button { font-size: 14px; }

.media-list { max-height: min(580px, calc(100vh - 245px)); margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.media-item { margin: 2px 0; display:flex; align-items:center; }
.media-item button { display: flex; align-items: center; width: 100%; gap: 12px; padding: 11px 8px; border: 0; border-radius: 6px; background: transparent; text-align: left; }
.media-item button:hover { background: #ffffff08; }
.media-item button[aria-current="true"] { background: #282a29; box-shadow: inset 2px 0 var(--fn-accent); }
.media-item > button:first-child { flex:1; min-width:0; }
.media-item > .favorite-button { flex:0 0 38px; width:38px; height:44px; padding:10px; }
.media-mark img { width:100%; height:100%; object-fit:contain; }
.media-mark { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 32px; border-radius: 4px; background: #2c3032; color: var(--fn-text); font-size: 11px; font-weight: 700; }
.media-copy { min-width: 0; flex: 1; }
.media-copy strong, .media-copy span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.media-copy strong { font-size: 14px; font-weight: 500; }
.media-copy span { margin-top: 3px; color: var(--fn-muted); font-size: 12px; }
.favorite-button { display: inline-grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; padding: 5px; border: 0; border-radius: 5px; background: transparent; color: var(--fn-muted); }
.favorite-button:hover { color: var(--fn-accent); background: #ffffff0d; }
.favorite-button[aria-pressed="true"] { color: var(--fn-accent); }
.favorite-button svg { width: 15px; height: 15px; }
.empty-state { margin: 0; padding: 25px 8px; color: var(--fn-muted); }
.load-more { display: block; width: 100%; min-height: 38px; margin-top: 10px; padding: 7px 10px; border: 1px solid var(--fn-line); border-radius: 7px; background: transparent; color: var(--fn-muted); }
.load-more:hover { border-color: #64696b; color: var(--fn-text); }

.heading-search { width: min(300px, 42%); }
.filter-row, .catalog-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.catalog-tools { justify-content: flex-end; margin-top: -64px; }
.filter-button { min-height: 34px; padding: 6px 12px; border: 1px solid var(--fn-line); border-radius: 7px; background: transparent; color: var(--fn-muted); font-size: 12px; }
.filter-button:hover { color: var(--fn-text); }
.filter-button[aria-pressed="true"] { border-color: var(--fn-text); background: var(--fn-text); color: #111315; }
.event-list { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 24px; }
.event-feature { min-width: 0; border: 1px solid var(--fn-line); border-radius: 9px; overflow: hidden; background: var(--fn-surface); }
.event-feature-head { min-height: 52px; display: flex; align-items: flex-end; padding: 18px; background: var(--fn-surface); position:relative; }
.event-feature-head:has(img) { aspect-ratio:16/7; }
.event-feature-head img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.event-feature-head .event-badge { position:relative; }
.event-feature-head.is-upcoming { background: #30302b; }
.event-badge { align-self: flex-start; padding: 3px 7px; border-radius: 4px; background: var(--fn-live); color: #fff; font-size: 11px; font-weight: 700; }
.event-feature-body { padding: 20px; }
.event-feature-body > p { margin: 0 0 8px; color: var(--fn-muted); font-size: 12px; }
.event-feature-body h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.4px; }
.event-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 21px; color: var(--fn-muted); font-size: 13px; }
.event-broadcasts { display: flex; flex-wrap: wrap; gap: 8px; }
.event-broadcast { min-height: 40px; padding: 8px 12px; border: 1px solid var(--fn-line); border-radius: 7px; background: transparent; color: var(--fn-text); font-size: 12px; }
.event-broadcast:hover { border-color: var(--fn-accent); }
.event-upcoming h2 { margin: 0 0 10px; font-size: 17px; font-weight: 500; }
.event-fixture { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; padding: 17px 0; border: 0; border-bottom: 1px solid var(--fn-line); background: transparent; text-align: left; }
.event-fixture:hover strong { color: var(--fn-accent); }
.event-fixture strong { display: block; font-size: 14px; font-weight: 500; }
.event-fixture span { display: block; margin-top: 4px; color: var(--fn-muted); font-size: 12px; }
.event-fixture time { flex: 0 0 auto; color: var(--fn-muted); font-size: 13px; }

.catalog-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(165px,1fr)); gap:28px 20px; }
.catalog-item { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 0 0 8px; position:relative; }
.catalog-item > .favorite-button { position:absolute; top:8px; right:8px; background:var(--fn-bg); }
.catalog-item > .catalog-play { display:none; }
.catalog-item-main { min-width: 0; flex: 1; }
.catalog-item-main button { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: var(--fn-text); text-align: left; }
.catalog-item-main strong { display: block; overflow: hidden; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.catalog-item-main span { display: block; margin-top: 4px; overflow: hidden; color: var(--fn-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-item-main .catalog-art { display:grid; place-items:center; aspect-ratio:2/3; margin:0 0 12px; background:var(--fn-surface); border:1px solid var(--fn-line); border-radius:6px; }
.catalog-art img { width:100%; height:100%; object-fit:cover; }
.catalog-art svg { width:30px; height:30px; color:var(--fn-muted); }
.catalog-play { display: inline-grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid var(--fn-line); border-radius: 6px; background: transparent; color: var(--fn-accent); }
.catalog-play:hover { border-color: var(--fn-accent); }
.catalog-play svg { width: 15px; height: 15px; }
.series-detail { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--fn-line); }
.series-detail h2 { margin: 0 0 15px; font-size: 21px; font-weight: 600; }
.season-section { padding: 15px 0; border-top: 1px solid var(--fn-line); }
.season-section h3 { margin: 0 0 10px; font-size: 14px; font-weight: 500; }
.episode-list { display: flex; flex-wrap: wrap; gap: 7px; }
.episode-button { min-height: 35px; padding: 6px 10px; border: 1px solid var(--fn-line); border-radius: 6px; background: transparent; color: var(--fn-muted); font-size: 12px; }
.episode-button:hover { border-color: var(--fn-accent); color: var(--fn-text); }
.mini-player { display:flex; align-items:center; justify-content:space-between; gap:16px; background:var(--fn-surface); padding:12px 28px; border-bottom:1px solid var(--fn-line); }
.mini-player > button:first-child { display:flex; align-items:center; gap:16px; min-width:0; padding:0; border:0; background:none; text-align:left; }
.mini-player #mini-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mini-player > button span:last-child { color:var(--fn-accent); font-size:13px; flex-shrink:0; }
.track-options { display:flex; gap:16px; flex-wrap:wrap; }
.track-options label { font-size:13px; color:var(--fn-muted); display:flex; align-items:center; gap:8px; }
.track-options select { width:auto; max-width:200px; }
.dialog-choice { text-decoration:none; }
#media-video[hidden] { display:none; }
.video-frame { background:#08090a; }
.search-field:focus-within { outline:2px solid var(--fn-focus); outline-offset:2px; }

.settings-sections { max-width: 840px; }
.settings-section { padding: 20px 0; border-top: 1px solid var(--fn-line); }
.settings-section h2 { margin: 0 0 8px; font-size: 17px; font-weight: 500; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid #24282a; }
.settings-row strong { font-weight: 500; }
.settings-row p { margin: 4px 0 0; color: var(--fn-muted); font-size: 12px; }
.settings-row .select-field { flex: 0 0 170px; }

.dialog-backdrop { position: fixed; z-index: 10; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: 100px 16px 20px; background: #000b; }
.dialog { width: min(100%, 420px); max-height: calc(100vh - 120px); overflow: auto; padding: 22px; border: 1px solid #404447; border-radius: 9px; background: #202326; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.dialog-heading h2 { margin: 0; font-size: 18px; font-weight: 600; }
.dialog-content p { margin: 0 0 14px; color: var(--fn-muted); font-size: 13px; }
.dialog-choice { display: flex; align-items: center; width: 100%; gap: 12px; min-height: 47px; padding: 11px 5px; border: 0; border-bottom: 1px solid var(--fn-line); background: transparent; text-align: left; }
.dialog-choice:hover { color: var(--fn-accent); }
.dialog-choice svg { width: 17px; height: 17px; margin-left: auto; }

.bottom-nav { display: none; }

@media (max-width: 900px) {
    .primary-nav { margin-left: 0; }
    .primary-nav button { min-width: auto; padding: 0 9px; }
    .live-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; }
    .event-list { gap: 18px; }
    .catalog-list { column-gap: 24px; }
}

@media (max-width: 680px) {
    .player-header { height: 64px; padding: 0 20px; }
    .brand { font-size: 22px; }
    .primary-nav { display: none; }
    .header-actions .icon-button:first-child, .account-mark { display: none; }
    .player-main { min-height: calc(100vh - 126px); padding: 22px 18px 92px; }
    .status-banner { width: calc(100% - 36px); margin-top: 10px; }
    .setup-view { display: block; min-height: auto; padding: 24px 0 10px; }
    .setup-copy { margin-bottom: 26px; }
    .setup-copy h1 { font-size: 32px; }
    .setup-copy p { font-size: 14px; }
    .access-form { padding: 20px; }
    .access-methods { margin: -20px -20px 20px; }
    .section-heading { align-items: flex-end; margin-bottom: 20px; }
    .section-heading h1 { font-size: 27px; }
    .section-heading p { font-size: 12px; }
    .section-heading > .select-field { min-width: 114px; }
    .live-layout { display: flex; flex-direction: column; gap: 12px; }
    .video-frame { border-radius: 7px; }
    .media-actions { gap: 2px 14px; }
    .now-playing h2 { font-size: 21px; }
    .epg-panel { margin-top: 16px; padding-bottom: 12px; }
    .media-list { max-height: none; }
    .media-item button { min-height: 65px; padding: 12px 10px; }
    .media-copy strong { font-size: 14px; }
    .media-copy span { font-size: 12px; }
    .search-field { height: 44px; }
    .browser-tools { grid-template-columns: minmax(0, 1fr) 130px; }
    .heading-search { width: min(190px, 47%); }
    .catalog-tools { justify-content: flex-start; margin-top: -7px; }
    .catalog-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 16px; }
    .event-list { grid-template-columns: 1fr; gap: 26px; }
    .event-feature-head { min-height:52px; }
    .bottom-nav { position: fixed; z-index: 5; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; padding: 7px 5px 14px; border-top: 1px solid var(--fn-line); background: var(--fn-bg); }
    .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 55px; min-height: 48px; padding: 5px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--fn-muted); font-size: 11px; }
    .bottom-nav button[aria-current="page"] { color: var(--fn-accent); }
    .bottom-nav button:hover { background: #ffffff08; }
    .bottom-nav svg { width: 19px; height: 19px; }
    .settings-row { align-items: flex-start; }
    .settings-row .select-field { flex-basis: 135px; }
}

@media (max-width: 430px) {
    .form-row { grid-template-columns: 1fr; }
    .section-heading:has(.heading-search) { align-items: flex-start; flex-direction: column; gap: 12px; }
    .heading-search { width: 100%; }
    .event-meta { align-items: flex-start; flex-direction: column; }
    .settings-row { align-items: flex-start; flex-direction: column; gap: 11px; }
    .settings-row .select-field { width: 100%; flex-basis: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
