/* =============================================================
   Video Portal — Dark / Gray / Yellow Theme
   โครงสร้าง:
     1. ตัวแปรสี & Reset
     2. Layout พื้นฐาน
     3. Header + ช่องค้นหา
     4. แถบแท็ก (Tag bar) + chip
     5. หัวข้อหน้า (Section head)
     6. การ์ดคลิป + Grid
     7. หน้าดูคลิป (Watch)
     8. Pagination
     9. Modal แท็กทั้งหมด
    10. Footer + ปุ่มลอย
    11. Responsive
   ============================================================= */

/* ---------- 1. ตัวแปรสี & Reset ---------- */
:root {
    --bg:            #0a0a0c;
    --bg-soft:       #101014;
    --surface:       #16161b;
    --surface-2:     #1e1e25;
    --surface-3:     #26262f;
    --line:          #26262f;
    --line-soft:     #1c1c23;

    --text:          #f2f2f5;
    --muted:         #9c9caa;
    --muted-2:       #6d6d7a;

    --yellow:        #ffc933;
    --yellow-strong: #ffb300;
    --yellow-dim:    rgba(255, 201, 51, 0.14);
    --yellow-glow:   rgba(255, 201, 51, 0.28);

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 20px;

    --shadow:    0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);

    --header-h: 64px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(255, 201, 51, 0.07), transparent 60%),
        radial-gradient(760px 380px at 92% 0%, rgba(255, 179, 0, 0.05), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Noto Sans Thai', 'Inter', 'Segoe UI', Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 700; }

::selection { background: var(--yellow); color: #14140c; }

/* สกรอลบาร์ทั้งเว็บ */
::-webkit-scrollbar { width: 10px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #33333e; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #45454f; }

/* ---------- 2. Layout พื้นฐาน ---------- */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 18px;
}

.page { padding-top: 26px; padding-bottom: 60px; }

/* ---------- 3. Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(10, 10, 12, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #14140c;
    background: linear-gradient(145deg, var(--yellow) 0%, var(--yellow-strong) 100%);
    box-shadow: 0 0 0 1px rgba(255, 201, 51, .35), 0 6px 18px rgba(255, 179, 0, .25);
    transition: transform .25s var(--ease);
}
.brand-mark.small { width: 26px; height: 26px; border-radius: 8px; }
.brand:hover .brand-mark { transform: scale(1.08) rotate(-6deg); }

.brand-text { background: linear-gradient(100deg, #fff 30%, var(--yellow) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ช่องค้นหา */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 420px;
}
.search-box .search-icon {
    position: absolute;
    left: 14px;
    color: var(--muted-2);
    pointer-events: none;
    transition: color .2s;
}
.search-box input {
    width: 100%;
    height: 42px;
    padding: 0 74px 0 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.search-box input::placeholder { color: var(--muted-2); }
.search-box input:focus {
    border-color: var(--yellow);
    background: var(--bg-soft);
    box-shadow: 0 0 0 4px var(--yellow-dim);
}
.search-box input:focus ~ .search-icon,
.search-box:focus-within .search-icon { color: var(--yellow); }

.search-clear {
    position: absolute;
    right: 44px;
    width: 22px; height: 22px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--muted);
    font-size: 16px; line-height: 1;
}
.search-clear:hover { background: var(--yellow); color: #14140c; }

.search-kbd {
    position: absolute;
    right: 12px;
    padding: 2px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--muted-2);
    font-size: 11px;
    font-family: inherit;
}

/* ---------- 4. แถบแท็ก ---------- */
.tagbar-wrap {
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
}

.tagbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.tagbar-scroll {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.tagbar-scroll::-webkit-scrollbar { display: none; }

.chip {
    flex: 0 0 auto;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: #d7d7e0;
    font-size: 13px;
    font-weight: 500;
    transition: all .2s var(--ease);
}
.chip:hover {
    color: var(--yellow);
    border-color: var(--yellow);
    background: var(--yellow-dim);
    transform: translateY(-1px);
}
.chip.is-active {
    background: linear-gradient(145deg, var(--yellow), var(--yellow-strong));
    border-color: transparent;
    color: #14140c;
    font-weight: 700;
}

.tagbar-arrow {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    display: none;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
}
.tagbar-arrow:hover { color: var(--yellow); border-color: var(--yellow); }

.btn-tags {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--yellow), var(--yellow-strong));
    color: #14140c;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(255, 179, 0, .22);
    transition: transform .2s var(--ease), box-shadow .2s;
}
.btn-tags:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 179, 0, .34); }

/* ---------- 5. หัวข้อหน้า ---------- */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--yellow), var(--yellow-strong));
}
.section-title .accent { color: var(--yellow); }

.section-sub { color: var(--muted); font-size: 13.5px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13.5px;
    transition: color .2s;
}
.back-link:hover { color: var(--yellow); }

.count-pill {
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 12.5px;
}
.count-pill b { color: var(--yellow); }

/* ---------- 6. การ์ดคลิป ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 201, 51, .45);
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 201, 51, .1);
}

.card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #16161b, #22222a);
    overflow: hidden;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s var(--ease), filter .3s;
}
.card:hover .card-thumb img { transform: scale(1.07); filter: brightness(.72); }

.card-thumb::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .65));
    pointer-events: none;
}

.card-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(.7);
    display: grid; place-items: center;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--yellow), var(--yellow-strong));
    color: #14140c;
    opacity: 0;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.card:hover .card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.card-duration {
    position: absolute;
    right: 8px; bottom: 8px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .78);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .3px;
}

.card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 8px; }

.card-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    min-height: 2.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.card:hover .card-title { color: var(--yellow); }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tag {
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* สถานะว่าง */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    background: rgba(22, 22, 27, .5);
    color: var(--muted);
}
.empty-icon { font-size: 40px; margin-bottom: 10px; }

.btn-primary {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 20px;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--yellow), var(--yellow-strong));
    color: #14140c;
    font-weight: 700;
    font-size: 13.5px;
}
.btn-primary:hover { filter: brightness(1.06); }

/* ---------- 7. หน้าดูคลิป ---------- */
.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 26px;
    align-items: start;
}

.player-shell {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #000;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 201, 51, .06);
}
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}
.embed-container iframe,
.embed-container video,
.embed-container embed,
.embed-container object {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.watch-title {
    font-size: 21px;
    margin: 18px 0 10px;
    line-height: 1.45;
}

.watch-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 13px;
}
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.meta-pill.hot { color: var(--yellow); border-color: rgba(255, 201, 51, .35); background: var(--yellow-dim); }

.panel {
    margin-top: 18px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}
.panel-label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.panel-desc { color: #d5d5de; font-size: 14px; line-height: 1.75; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-link {
    padding: 6px 13px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid transparent;
    color: var(--yellow);
    font-size: 12.5px;
    font-weight: 500;
    transition: all .2s var(--ease);
}
.tag-link:hover { background: var(--yellow); color: #14140c; transform: translateY(-1px); }

/* คลิปที่เกี่ยวข้อง (คอลัมน์ขวา) */
.sidebar-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    margin-bottom: 14px;
}
.sidebar-title::before {
    content: '';
    width: 4px; height: 18px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--yellow), var(--yellow-strong));
}

.related-list { display: flex; flex-direction: column; gap: 10px; }

.related-item {
    display: grid;
    grid-template-columns: 148px 1fr;
    gap: 11px;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.related-item:hover {
    background: var(--surface);
    border-color: var(--line);
    transform: translateX(3px);
}

.related-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 7px;
    overflow: hidden;
    background: var(--surface-2);
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-thumb .card-duration { right: 5px; bottom: 5px; font-size: 10.5px; padding: 2px 6px; }

.related-info { min-width: 0; }
.related-info h4 {
    margin: 2px 0 5px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-item:hover .related-info h4 { color: var(--yellow); }
.related-info .related-sub { color: var(--muted-2); font-size: 11.5px; }

/* หน้า 404 */
.notfound {
    text-align: center;
    padding: 90px 20px;
}
.notfound h1 { font-size: 64px; color: var(--yellow); letter-spacing: 2px; }
.notfound p { color: var(--muted); margin: 8px 0 4px; }

/* ---------- 8. Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 40px 0 10px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s var(--ease);
}
.pagination a {
    background: var(--surface);
    border: 1px solid var(--line);
    color: #ddddE6;
}
.pagination a:hover {
    background: var(--yellow-dim);
    border-color: var(--yellow);
    color: var(--yellow);
    transform: translateY(-2px);
}
.pagination .active {
    background: linear-gradient(145deg, var(--yellow), var(--yellow-strong));
    border: 1px solid transparent;
    color: #14140c;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(255, 179, 0, .25);
}
.pagination .page-dots { color: var(--muted-2); min-width: auto; padding: 0 2px; }
.pagination .disabled {
    background: var(--bg-soft);
    border: 1px solid var(--line-soft);
    color: #3d3d47;
    cursor: not-allowed;
}

/* ---------- 9. Modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeIn .18s ease;
}
.modal[hidden] { display: none; }

.modal-card {
    width: 100%;
    max-width: 860px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: popIn .22s var(--ease);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line-soft);
}
.modal-head h3 { font-size: 16.5px; }
.modal-head h3::before { content: '🏷️ '; }

.modal-close {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    transition: all .2s;
}
.modal-close:hover { background: var(--yellow); color: #14140c; border-color: transparent; }

.modal-search { padding: 14px 20px 10px; }
.modal-search input {
    width: 100%;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.modal-search input:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-dim); }

.modal-body {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    overflow-y: auto;
    padding: 6px 20px 22px;
}

.modal-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid transparent;
    color: #d8d8e2;
    font-size: 12.5px;
    transition: all .18s var(--ease);
}
.modal-tag span {
    padding: 0 6px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .06);
    color: var(--muted-2);
    font-size: 10.5px;
}
.modal-tag:hover { background: var(--yellow); color: #14140c; transform: translateY(-1px); }
.modal-tag:hover span { background: rgba(0, 0, 0, .18); color: #14140c; }

.modal-noresult { width: 100%; text-align: center; color: var(--muted-2); padding: 24px 0; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

body.modal-open { overflow: hidden; }

/* ---------- 10. Footer + ปุ่มลอย ---------- */
.site-footer {
    margin-top: 20px;
    border-top: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(22, 22, 27, .35), rgba(10, 10, 12, .9));
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 28px;
    padding-bottom: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-size: 15px; }
.footer-brand p { margin: 2px 0 0; color: var(--muted-2); font-size: 12.5px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13.5px; }
.footer-links a, .linklike {
    color: var(--muted);
    background: none;
    border: none;
    padding: 0;
    font-size: 13.5px;
    transition: color .2s;
}
.footer-links a:hover, .linklike:hover { color: var(--yellow); }

.footer-bottom {
    padding-bottom: 26px;
    color: var(--muted-2);
    font-size: 12px;
    border-top: 1px solid var(--line-soft);
    padding-top: 16px;
}

.back-to-top {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 90;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--yellow), var(--yellow-strong));
    color: #14140c;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .25s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { filter: brightness(1.07); transform: translateY(-2px); }

/* ---------- 11. Responsive ---------- */
@media (max-width: 1100px) {
    .watch-layout { grid-template-columns: 1fr; }
    .related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (min-width: 861px) {
    .tagbar-arrow { display: grid; }
}

@media (max-width: 860px) {
    .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
    .brand-text { display: none; }
    .search-kbd { display: none; }
    .search-box { flex: 1; }
    .search-box input { padding-right: 44px; }
    .search-clear { right: 12px; }
    .watch-title { font-size: 18px; }
}

@media (max-width: 560px) {
    .container { padding: 0 12px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .card-title { font-size: 12.5px; }
    .btn-tags span { display: none; }
    .btn-tags { padding: 8px 12px; }
    .related-item { grid-template-columns: 130px 1fr; }
    .related-list { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .modal-card { max-height: 88vh; }
    .notfound h1 { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
