/* =====================================================
   DEMO SLOT — MAIN CSS
   Mobile-first. Purple-dark. No build step.
   ===================================================== */

/* ─── TOKENS ─────────────────────────────────────── */
:root {
    /* surfaces */
    --bg:         #0a0710;
    --bg-elev:    #100b1a;
    --surface:    #14101f;
    --surface-2:  #1b1530;
    --header-bg:  rgba(12, 8, 20, .88);

    /* brand */
    --primary:     #7c3aed;
    --primary-2:   #a78bfa;
    --primary-ink: #ede9fe;
    --primary-rgb: 124, 58, 237;

    --accent:     #ffc93c;
    --accent-2:   #ffab00;
    --accent-rgb: 255, 201, 60;

    --hot:    #ff7a3d;
    --hot-2:  #ff4d6d;
    --ok:     #22e07a;
    --warn:   #ff9f1c;
    --danger: #ff5470;

    /* text */
    --text:         #ece9f4;
    --text-muted:   #9d93b8;
    --text-heading: #ffffff;

    /* lines + shape */
    --border:      rgba(var(--primary-rgb), .18);
    --border-soft: rgba(255, 255, 255, .07);
    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 18px;
    --radius-pill: 999px;

    --shadow:    0 4px 18px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, .6);
    --glow:      0 0 0 1px rgba(var(--primary-rgb), .35), 0 6px 24px rgba(var(--primary-rgb), .28);

    /* type */
    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* metrics */
    --header-h:    56px;
    --tabbar-h:    62px;
    --container:   1280px;
    --pad:         14px;
    --gap:         14px;
    --safe-b:      env(safe-area-inset-bottom, 0px);

    /* legacy aliases — older markup/CSS still resolves */
    --bg-primary:    var(--bg);
    --bg-card:       var(--surface);
    --bg-card-hover: var(--surface-2);
    --bg-header:     var(--bg-elev);
    --bg-section:    var(--bg-elev);
    --neon-purple:   var(--primary);
    --neon-purple-2: var(--primary-2);
    --neon-gold:     var(--accent);
    --neon-gold-2:   var(--accent-2);
    --neon-green:    var(--ok);
    --neon-red:      var(--danger);
    --text-primary:  var(--text);
    --border-card:   var(--border);
    --border-muted:  var(--border-soft);
    --font-main:     var(--font);
    --container-max: var(--container);
}


/* ─── RESET & BASE ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
}

body.ds-locked {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--primary-2); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--primary-2);
    outline-offset: 2px;
    border-radius: 4px;
}

h1, h2, h3, h4 { color: var(--text-heading); line-height: 1.25; font-weight: 700; }

::selection { background: rgba(var(--primary-rgb), .45); color: #fff; }

/* Firefox / WebKit scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(var(--primary-rgb), .5) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), .45); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }


/* ─── LAYOUT PRIMITIVES ──────────────────────────── */
.ds-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad);
}
.ds-container--narrow { max-width: 820px; }

.ds-main { display: block; padding-bottom: 40px; }

/* Below-the-fold sections skip layout/paint until scrolled near. */
.ds-defer {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

.ds-hl {
    background: linear-gradient(100deg, var(--primary-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ds-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 0 0 var(--radius) 0;
}
.ds-skip:focus { left: 0; color: #fff; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}


/* ─── BUTTONS ────────────────────────────────────── */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.ds-btn:active { transform: scale(.97); }

.ds-btn-primary {
    background: linear-gradient(135deg, var(--primary), #9d5cf5);
    color: #fff;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), .38);
}
.ds-btn-primary:hover { color: #fff; box-shadow: 0 8px 26px rgba(var(--primary-rgb), .5); }

.ds-btn-ghost {
    background: rgba(var(--primary-rgb), .1);
    border: 1px solid var(--border);
    color: var(--text);
}
.ds-btn-ghost:hover {
    color: var(--text);
    background: rgba(var(--primary-rgb), .18);
    border-color: rgba(var(--primary-rgb), .4);
}

.ds-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(255, 255, 255, .04);
    transition: background .18s ease, color .18s ease;
}
.ds-icon-btn:hover { background: rgba(var(--primary-rgb), .22); color: #fff; }


/* ─── HEADER ─────────────────────────────────────── */
.ds-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: transform .3s ease, border-color .25s ease, box-shadow .25s ease;
}
.ds-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 6px 26px rgba(0, 0, 0, .5);
}
.ds-header.is-hidden { transform: translateY(-100%); }

.ds-header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--header-h);
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.ds-brand { display: flex; align-items: center; margin-right: auto; min-width: 0; }
.ds-brand img,
.ds-brand .custom-logo { max-height: 34px; width: auto; }

.ds-brand-text {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ds-brand-text:hover { color: var(--accent); }

.ds-nav { display: none; }

.ds-header-actions { display: flex; align-items: center; gap: 4px; }


/* ─── HERO ───────────────────────────────────────── */
.ds-hero {
    position: relative;
    overflow: hidden;
    padding: 30px var(--pad) 34px;
    background:
        radial-gradient(120% 90% at 50% -20%, rgba(var(--primary-rgb), .38), transparent 62%),
        linear-gradient(180deg, #150e26, var(--bg));
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.ds-hero-inner { max-width: 720px; margin-inline: auto; }

.ds-hero-title {
    font-size: clamp(1.6rem, 7vw, 2.9rem);
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

.ds-hero-sub {
    color: var(--text-muted);
    font-size: clamp(.86rem, 3.4vw, 1rem);
    max-width: 44ch;
    margin-inline: auto;
}

.ds-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--text-muted);
}
.ds-hero-stat strong { color: var(--accent); font-weight: 700; }
.ds-hero-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); opacity: .6; }

.ds-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}


/* ─── CHIP STRIP (touch-native, snapping) ────────── */
.ds-chips-wrap {
    position: relative;
    margin: 16px 0;
    /* fade the edges so the strip reads as scrollable */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}

.ds-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 14px;
    margin-inline: -14px;
}
.ds-chips::-webkit-scrollbar { display: none; }

.ds-chip {
    flex: 0 0 auto;
    scroll-snap-align: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 15px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.ds-chip:hover { color: var(--text); border-color: rgba(var(--primary-rgb), .45); }

.ds-chip.is-active {
    background: linear-gradient(135deg, var(--primary), #9d5cf5);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.ds-chip-count {
    font-size: 10.5px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .1);
    color: var(--text-muted);
}
.ds-chip.is-active .ds-chip-count { background: rgba(0, 0, 0, .25); color: #fff; }


/* ─── SECTION HEADINGS ───────────────────────────── */
.ds-section { margin: 26px 0; }

.ds-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(1.05rem, 4.4vw, 1.45rem);
    margin-bottom: 14px;
}
.ds-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}
.ds-section-title--hot { color: var(--accent); }
.ds-section-flame { font-size: 1em; }

.ds-section-more { display: flex; justify-content: center; margin-top: 18px; }


/* ─── GRID + RAIL ────────────────────────────────── */
.ds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: var(--gap);
}

/* Rail: horizontal snap scroller on phones, grid from 900px up. */
.ds-rail {
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 14px 8px;
    margin-inline: -14px;
}
.ds-rail::-webkit-scrollbar { display: none; }
.ds-rail > * {
    flex: 0 0 clamp(148px, 44vw, 220px);
    scroll-snap-align: start;
}


/* ─── GAME CARD ──────────────────────────────────── */
.ds-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ds-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--primary-rgb), .5);
    box-shadow: var(--glow);
}
.ds-card:active { transform: scale(.985); }

.ds-card--hot { border-color: rgba(var(--accent-rgb), .35); }

.ds-card-link { display: block; color: inherit; }
.ds-card-link:hover { color: inherit; }

.ds-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
    overflow: hidden;
}
.ds-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.ds-card:hover .ds-card-thumb img { transform: scale(1.06); }

.ds-card-thumb--empty {
    display: grid;
    place-items: center;
    padding: 10px;
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
}
.ds-card-thumb-fallback {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ds-card-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(10, 7, 16, .5);
    opacity: 0;
    transition: opacity .22s ease;
}
.ds-card-play svg {
    padding: 9px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), .9);
    box-sizing: content-box;
}
.ds-card:hover .ds-card-play { opacity: 1; }

.ds-card-badge-hot,
.ds-card-badge-rtp {
    position: absolute;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 7px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.ds-card-badge-hot {
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, var(--hot), var(--hot-2));
    color: #fff;
}
.ds-card-badge-rtp {
    bottom: 6px;
    right: 6px;
    background: rgba(10, 7, 16, .82);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), .35);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.ds-card-body { padding: 9px 10px 11px; }

.ds-card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.ds-card-provider {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ─── PROVIDER GRID ──────────────────────────────── */
.ds-provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
}

.ds-provider-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 8px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    color: var(--text);
    text-align: center;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.ds-provider-card:hover {
    transform: translateY(-2px);
    color: var(--text);
    border-color: rgba(var(--primary-rgb), .45);
    background: var(--surface-2);
}

.ds-provider-logo {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: rgba(var(--primary-rgb), .12);
    overflow: hidden;
}
.ds-provider-logo img { width: 100%; height: 100%; object-fit: contain; }
.ds-provider-initials { font-size: 14px; font-weight: 700; color: var(--primary-2); }

.ds-provider-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ds-provider-count { font-size: 10.5px; color: var(--text-muted); }


/* ─── FEATURES ───────────────────────────────────── */
.ds-features {
    display: grid;
    gap: 10px;
    margin: 26px 0;
}
.ds-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
}
.ds-feature-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(var(--primary-rgb), .16);
    color: var(--primary-2);
}
.ds-feature-title { font-size: 14px; margin-bottom: 3px; }
.ds-feature-text { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }


/* ─── BREADCRUMB / TITLES ────────────────────────── */
.ds-breadcrumb { padding: 12px 0 4px; font-size: 12px; color: var(--text-muted); }
.ds-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
}
.ds-breadcrumb li + li::before {
    content: '/';
    margin-right: 6px;
    color: var(--border);
}
.ds-breadcrumb a { color: var(--text-muted); }
.ds-breadcrumb a:hover { color: var(--primary-2); }
.ds-bc-current {
    color: var(--text);
    max-width: 55vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-page-title {
    font-size: clamp(1.35rem, 5.6vw, 2.1rem);
    letter-spacing: -.02em;
    margin: 8px 0 4px;
}

.ds-result-count { font-size: 13px; color: var(--text-muted); }


/* ─── FILTER BAR / SORT ──────────────────────────── */
.ds-filterbar {
    position: sticky;
    top: var(--header-h);
    z-index: 900;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    margin-top: 10px;
}
.ds-filterbar .ds-chips-wrap { margin: 8px 0; }

.ds-sort {
    display: flex;
    gap: 6px;
    margin: 16px 0;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.ds-sort::-webkit-scrollbar { display: none; }

.ds-sort-btn {
    flex: 0 0 auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
}
.ds-sort-btn:hover { color: var(--text); }
.ds-sort-btn.is-active { background: rgba(var(--primary-rgb), .28); color: #fff; font-weight: 600; }


/* ─── PROVIDER ARCHIVE HEADER ────────────────────── */
.ds-provider-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px 0 4px;
}
.ds-provider-head-logo {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    border-radius: var(--radius);
    object-fit: contain;
    background: rgba(var(--primary-rgb), .12);
    padding: 6px;
}
.ds-provider-head-logo--empty {
    display: grid;
    place-items: center;
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-2);
    padding: 0;
}
.ds-provider-head-text { min-width: 0; }
.ds-provider-head-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ─── PAGINATION ─────────────────────────────────── */
.ds-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 28px 0 8px;
}
.ds-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
}
.ds-pagination .page-numbers:hover {
    color: #fff;
    border-color: rgba(var(--primary-rgb), .5);
    background: var(--surface-2);
}
.ds-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--primary), #9d5cf5);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
}
.ds-pagination .page-numbers.dots { background: none; border: 0; min-width: 24px; }
.ds-pagination .prev span,
.ds-pagination .next span { display: none; }


/* ─── EMPTY STATE / 404 ──────────────────────────── */
.ds-empty {
    text-align: center;
    padding: 44px 16px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    margin: 20px 0;
}
.ds-empty-icon { font-size: 40px; display: block; margin-bottom: 10px; }
.ds-empty-text { font-size: 15px; font-weight: 600; color: var(--text-heading); }
.ds-empty-hint { font-size: 13px; color: var(--text-muted); margin-top: 5px; }
.ds-empty-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.ds-404-title { font-size: clamp(3rem, 16vw, 5.5rem); line-height: 1; margin-bottom: 4px; }


/* ─── SEARCH AGAIN (results page) ────────────────── */
.ds-searchagain { margin: 16px 0; }
.ds-searchagain form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 5px 5px 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}
.ds-searchagain svg { flex: 0 0 auto; color: var(--text-muted); }
.ds-searchagain input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 0;
    background: none;
    outline: none;
    font-size: 14px;
}
.ds-searchagain input::placeholder { color: var(--text-muted); }
.ds-searchagain .ds-btn { min-height: 40px; padding: 0 18px; }


/* =====================================================
   SINGLE GAME PAGE
   ===================================================== */

.ds-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width .1s linear;
}

.ds-game-title {
    font-size: clamp(1.25rem, 5.4vw, 2rem);
    letter-spacing: -.02em;
    margin: 6px 0 12px;
}

/* Player goes edge-to-edge on phones so it clears the fold. */
.ds-player-bleed { margin-bottom: 16px; }
.ds-player-bleed .ds-container { padding-inline: 0; }

.ds-player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #06040b;
    border: 1px solid var(--border);
    border-inline: 0;
    overflow: hidden;
}

.ds-player-overlay,
.ds-player-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ds-player-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    filter: brightness(.55) saturate(1.1);
}

.ds-player-play {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.ds-player-play-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #9d5cf5);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), .55);
    transition: transform .2s ease;
}
.ds-player-play-icon svg { margin-left: 3px; }
.ds-player-play:hover .ds-player-play-icon { transform: scale(1.08); }
.ds-player-play-label { font-size: 14px; font-weight: 600; }

.ds-player-loading { background: #06040b; color: var(--text-muted); font-size: 13px; }
.ds-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(var(--primary-rgb), .22);
    border-top-color: var(--primary-2);
    border-radius: 50%;
    animation: ds-spin .8s linear infinite;
}
@keyframes ds-spin { to { transform: rotate(360deg); } }

.ds-noscript { padding: 14px; font-size: 13px; color: var(--text-muted); text-align: center; }


/* ─── PROMO BANNER ───────────────────────────────── */
.ds-promo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: linear-gradient(120deg, rgba(var(--primary-rgb), .3), rgba(var(--accent-rgb), .14));
    border: 1px solid rgba(var(--accent-rgb), .28);
    color: var(--text);
    overflow: hidden;
    flex-wrap: wrap;
}
.ds-promo:hover { color: var(--text); border-color: rgba(var(--accent-rgb), .5); }

.ds-promo-icon { font-size: 26px; flex: 0 0 auto; }
.ds-promo-img { width: 54px; height: 54px; object-fit: cover; border-radius: var(--radius-sm); flex: 0 0 auto; }

.ds-promo-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ds-promo-badge {
    align-self: flex-start;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 3px 7px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #2a1a00;
}
.ds-promo-title { font-size: 14px; font-weight: 700; color: var(--text-heading); }
.ds-promo-sub { font-size: 12px; color: var(--text-muted); }

.ds-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 0 15px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #2a1a00;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    flex: 0 0 auto;
}


/* ─── SINGLE LAYOUT ──────────────────────────────── */
.ds-single-layout { display: block; }
.ds-single-body { min-width: 0; }


/* ─── GAME INFO CARD ─────────────────────────────── */
.ds-gi {
    --risk: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 18px;
}

.ds-gi-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-2);
    text-transform: uppercase;
    letter-spacing: .05em;
    padding-bottom: 11px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-soft);
}

.ds-gi-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.ds-gi-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 11px 6px;
    background: var(--bg-elev);
    border-radius: var(--radius-sm);
    text-align: center;
}
.ds-gi-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.ds-gi-value { font-size: 14px; font-weight: 700; color: var(--text-heading); line-height: 1.3; }
.ds-gi-value--rtp { color: var(--ok); }
.ds-gi-value--win { color: var(--accent); }

.ds-gi-dots { display: flex; gap: 3px; justify-content: center; }
.ds-gi-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}
.ds-gi-dot.is-on { background: var(--risk); box-shadow: 0 0 6px var(--risk); }
.ds-gi-risk { display: block; font-size: 11px; font-weight: 600; color: var(--risk); margin-top: 3px; }

.ds-gi-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.ds-gi-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
}
.ds-gi-badge.is-yes { background: rgba(34, 224, 122, .12); border-color: rgba(34, 224, 122, .3); color: var(--ok); }
.ds-gi-badge.is-no  { background: rgba(255, 255, 255, .04); border-color: var(--border-soft); color: var(--text-muted); }

.ds-gi-rows { margin-top: 12px; border-top: 1px solid var(--border-soft); }
.ds-gi-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 13px;
}
.ds-gi-row:last-child { border-bottom: 0; }
.ds-gi-row dt { color: var(--text-muted); flex: 0 0 auto; }
.ds-gi-row dd { text-align: right; font-weight: 600; color: var(--text-heading); min-width: 0; }
.ds-gi-link { color: var(--primary-2); }
.ds-gi-sep { color: var(--text-muted); font-weight: 400; }


/* ─── ARTICLE ────────────────────────────────────── */
.ds-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 12px;
    color: var(--text-muted);
}
.ds-meta { display: inline-flex; align-items: center; gap: 5px; }
.ds-meta--cat {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: rgba(var(--primary-rgb), .18);
    color: var(--primary-2);
    font-weight: 600;
}

.ds-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}
.ds-tags-label { font-size: 12px; color: var(--text-muted); }
.ds-tag {
    font-size: 12px;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    color: var(--text);
}
.ds-tag:hover { color: #fff; border-color: rgba(var(--primary-rgb), .5); background: var(--surface-2); }


/* ─── TABLE OF CONTENTS ──────────────────────────── */
/* Mobile: bottom sheet (see PANELS). Desktop: sticky rail. */
.ds-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0 12px;
    border-bottom: 1px solid var(--border-soft);
}
.ds-toc-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--primary-2);
}

.ds-toc-list { list-style: none; padding: 10px 0 0; }
.ds-toc-item--h3 { padding-left: 14px; }
.ds-toc-link {
    display: block;
    padding: 8px 10px;
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}
.ds-toc-link:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.ds-toc-link.is-active {
    color: var(--primary-2);
    border-left-color: var(--primary);
    background: rgba(var(--primary-rgb), .1);
    font-weight: 600;
}

/* Floating trigger, bottom-left above the tab bar. */
.ds-toc-trigger {
    position: fixed;
    left: 14px;
    bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px);
    z-index: 950;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow);
}


/* ─── PROSE (article body / pages) ───────────────── */
.ds-prose { font-size: 15px; line-height: 1.75; }
.ds-prose > * + * { margin-top: 1.05em; }

.ds-prose h2 {
    font-size: clamp(1.15rem, 4.6vw, 1.5rem);
    margin-top: 1.7em;
    padding-bottom: .35em;
    border-bottom: 1px solid var(--border-soft);
}
.ds-prose h3 { font-size: clamp(1.02rem, 4vw, 1.22rem); margin-top: 1.5em; }
.ds-prose h4 { font-size: 1rem; margin-top: 1.3em; color: var(--primary-2); }

.ds-prose p { color: var(--text); }
.ds-prose strong { color: var(--text-heading); font-weight: 600; }
.ds-prose em { color: var(--primary-2); }
.ds-prose a { text-decoration: underline; text-underline-offset: 2px; }

.ds-prose ul, .ds-prose ol { padding-left: 1.3em; }
.ds-prose li { margin-top: .45em; }
.ds-prose li::marker { color: var(--primary-2); }

.ds-prose blockquote {
    padding: 12px 16px;
    border-left: 3px solid var(--primary);
    background: rgba(var(--primary-rgb), .08);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
    font-style: italic;
}

.ds-prose code {
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(var(--primary-rgb), .16);
    color: var(--accent);
    font-size: .88em;
}
.ds-prose pre {
    padding: 14px;
    border-radius: var(--radius);
    background: #06040b;
    border: 1px solid var(--border-soft);
    overflow-x: auto;
}
.ds-prose pre code { background: none; padding: 0; color: var(--text); }

.ds-prose img { border-radius: var(--radius); margin-inline: auto; }
.ds-prose hr { border: 0; height: 1px; background: var(--border-soft); margin: 2em 0; }

.ds-prose table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ds-prose figure.wp-block-table,
.ds-prose .ds-table-scroll { overflow-x: auto; }
.ds-prose th, .ds-prose td {
    padding: 9px 11px;
    border: 1px solid var(--border-soft);
    text-align: left;
}
.ds-prose th { background: rgba(var(--primary-rgb), .14); color: var(--text-heading); font-weight: 600; }

.ds-heading-anchor {
    margin-left: .4em;
    color: var(--border);
    font-weight: 400;
    opacity: 0;
    transition: opacity .18s ease;
}
.ds-prose h2:hover .ds-heading-anchor,
.ds-prose h3:hover .ds-heading-anchor { opacity: 1; }

/* WP core alignment */
.alignleft   { float: left;  margin: 0 1.2em 1em 0; }
.alignright  { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .ds-prose figcaption {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 6px;
}


/* ─── BACK TO TOP ────────────────────────────────── */
.ds-backtop {
    position: fixed;
    right: 14px;
    bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px);
    z-index: 950;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.ds-backtop.is-visible { opacity: 1; visibility: visible; transform: none; }


/* =====================================================
   MOBILE NAVIGATION: TAB BAR, SCRIM, PANELS
   ===================================================== */

/* ─── BOTTOM TAB BAR ─────────────────────────────── */
.ds-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tabbar-h) + var(--safe-b));
    padding-bottom: var(--safe-b);
    background: rgba(12, 8, 20, .93);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid var(--border);
}

.ds-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    transition: color .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.ds-tab:hover { color: var(--text); }
.ds-tab:active .ds-tab-icon { transform: scale(.9); }

.ds-tab-icon {
    display: grid;
    place-items: center;
    transition: transform .18s ease;
}
.ds-tab-label { line-height: 1; letter-spacing: .01em; }

.ds-tab.is-active { color: var(--primary-2); }
.ds-tab.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 2.5px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}


/* ─── SCRIM ──────────────────────────────────────── */
.ds-scrim {
    position: fixed;
    inset: 0;
    z-index: 1250;
    background: rgba(5, 3, 10, .65);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .26s ease;
}
.ds-scrim.is-open { opacity: 1; }


/* ─── PANEL BASE ─────────────────────────────────── */
.ds-panel {
    position: fixed;
    z-index: 1300;
    background: var(--bg-elev);
    box-shadow: var(--shadow-lg);
    transition: transform .28s cubic-bezier(.32, .72, 0, 1), opacity .2s ease;
    overscroll-behavior: contain;
}

.ds-panel-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    flex: 0 0 auto;
}
.ds-panel-close:hover { color: var(--text); background: rgba(255, 255, 255, .06); }


/* ─── DRAWER (right slide-in) ────────────────────── */
.ds-drawer {
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
    transform: translateX(100%);
}
.ds-drawer.is-open { transform: none; }

.ds-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px 12px 18px;
    border-bottom: 1px solid var(--border-soft);
    flex: 0 0 auto;
}
.ds-drawer-title { font-size: 15px; }

.ds-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px calc(24px + var(--safe-b));
}

.ds-drawer-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    margin-bottom: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}
.ds-drawer-search svg { color: var(--text-muted); flex: 0 0 auto; }
.ds-drawer-search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 0;
    background: none;
    outline: none;
    font-size: 14px;
}

.ds-drawer-menu { list-style: none; }
.ds-drawer-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14.5px;
    font-weight: 500;
}
.ds-drawer-menu a:hover { background: rgba(var(--primary-rgb), .14); color: #fff; }
.ds-drawer-menu .current-menu-item > a,
.ds-drawer-menu .current_page_item > a {
    background: rgba(var(--primary-rgb), .22);
    color: #fff;
}
.ds-drawer-menu--sub a { font-size: 13px; color: var(--text-muted); }
.ds-drawer-menu .sub-menu { list-style: none; padding-left: 12px; }

.ds-drawer-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 20px 0 7px;
    padding-left: 12px;
}

.ds-drawer-providers { list-style: none; }
.ds-drawer-providers a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
}
.ds-drawer-providers a:hover { background: rgba(var(--primary-rgb), .14); color: #fff; }
.ds-drawer-providers a.is-active { background: rgba(var(--primary-rgb), .25); color: #fff; font-weight: 600; }
.ds-drawer-count {
    font-size: 10.5px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .07);
    color: var(--text-muted);
}


/* ─── BOTTOM SHEET (provider picker, TOC) ────────── */
.ds-sheet,
.ds-toc.ds-panel {
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 82vh;
    max-height: 82svh;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-top: 1px solid var(--border);
    transform: translateY(100%);
}
.ds-sheet.is-open,
.ds-toc.ds-panel.is-open { transform: none; }

.ds-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .18);
    margin: 9px auto 4px;
    flex: 0 0 auto;
}

.ds-sheet-head,
.ds-toc.ds-panel .ds-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 12px 10px 18px;
    border-bottom: 1px solid var(--border-soft);
    flex: 0 0 auto;
}
.ds-sheet-title { font-size: 15px; }

.ds-sheet-body,
.ds-toc.ds-panel .ds-toc-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px calc(20px + var(--safe-b));
}

.ds-sheet-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
    gap: 8px;
    align-content: start;
}

.ds-sheet-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    color: var(--text);
    text-align: center;
}
.ds-sheet-item:hover { color: var(--text); background: var(--surface-2); border-color: rgba(var(--primary-rgb), .4); }
.ds-sheet-item.is-active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), .18);
    color: #fff;
}

.ds-sheet-logo {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(var(--primary-rgb), .14);
    overflow: hidden;
}
.ds-sheet-logo img { width: 100%; height: 100%; object-fit: contain; }
.ds-sheet-initials { font-size: 12px; font-weight: 700; color: var(--primary-2); }

.ds-sheet-name {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ds-sheet-count { font-size: 10px; color: var(--text-muted); }
.ds-sheet-item--all .ds-sheet-initials { color: var(--accent); }


/* ─── SEARCH PANEL ───────────────────────────────── */
.ds-searchpanel {
    top: 0;
    left: 0;
    right: 0;
    padding: 12px var(--pad) 18px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
}
.ds-searchpanel.is-open { transform: none; }

.ds-searchpanel-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 5px 5px 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}
.ds-searchpanel-icon { color: var(--text-muted); flex: 0 0 auto; }
.ds-searchpanel-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 0;
    background: none;
    outline: none;
    font-size: 16px; /* >=16px stops iOS zooming on focus */
}
.ds-searchpanel-input::placeholder { color: var(--text-muted); }

.ds-searchpanel-submit {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--primary), #9d5cf5);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
/* Visible on phones where there is no click-outside affordance. */
.ds-searchpanel-close { flex: 0 0 auto; }

.ds-searchpanel-quick { margin-top: 14px; }
.ds-searchpanel-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.ds-searchpanel-quick .ds-chips { padding-inline: 0; margin-inline: 0; flex-wrap: wrap; overflow: visible; }


/* ─── FOOTER ─────────────────────────────────────── */
.ds-footer {
    margin-top: 40px;
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
}

.ds-footer-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: 26px var(--pad) 8px;
}

.ds-footer-brand { margin-bottom: 18px; }
.ds-footer-brand img { max-height: 34px; width: auto; }
.ds-footer-tagline { font-size: 12.5px; color: var(--text-muted); margin-top: 7px; max-width: 46ch; }

/* Accordion on phones; forced open from 640px up. */
.ds-footer-col { border-top: 1px solid var(--border-soft); }
.ds-footer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    cursor: pointer;
    list-style: none;
}
.ds-footer-heading::-webkit-details-marker { display: none; }
.ds-footer-heading::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
}
.ds-footer-col[open] > .ds-footer-heading::after { transform: rotate(-135deg) translateY(-2px); }

.ds-footer-list { list-style: none; padding-bottom: 12px; }
.ds-footer-list a {
    display: block;
    padding: 7px 0;
    font-size: 13px;
    color: var(--text-muted);
}
.ds-footer-list a:hover { color: var(--primary-2); }

.ds-footer-bottom {
    max-width: var(--container);
    margin-inline: auto;
    padding: 16px var(--pad) 24px;
    border-top: 1px solid var(--border-soft);
    font-size: 11.5px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}
.ds-footer-disclaimer { margin-top: 5px; opacity: .8; }


/* =====================================================
   BREAKPOINTS (mobile-first)
   ===================================================== */

/* ─── ≥ 480px ────────────────────────────────────── */
@media (min-width: 480px) {
    .ds-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .ds-features { grid-template-columns: repeat(2, 1fr); }
}

/* ─── ≥ 640px ────────────────────────────────────── */
@media (min-width: 640px) {
    :root { --pad: 20px; --gap: 16px; }

    .ds-footer-inner {
        display: grid;
        grid-template-columns: 1.6fr 1fr 1fr;
        gap: 30px;
        padding-bottom: 24px;
    }
    .ds-footer-brand { margin-bottom: 0; }
    .ds-footer-col { border-top: 0; }
    .ds-footer-heading { cursor: default; padding-top: 0; pointer-events: none; }
    .ds-footer-heading::after { display: none; }

    .ds-promo { padding: 15px 18px; flex-wrap: nowrap; }
    .ds-promo-title { font-size: 15px; }
}

/* ─── ≥ 900px : desktop shell ────────────────────── */
@media (min-width: 900px) {
    :root { --header-h: 64px; --gap: 18px; }

    body { padding-bottom: 0; }

    /* Desktop nav replaces the tab bar */
    .ds-tabbar { display: none; }
    .ds-toc-trigger { display: none; }
    .ds-backtop { right: 24px; bottom: 24px; width: 46px; height: 46px; }

    .ds-nav { display: block; }
    .ds-nav-list {
        display: flex;
        align-items: center;
        gap: 2px;
        list-style: none;
    }
    .ds-nav-list a {
        display: block;
        padding: 8px 14px;
        border-radius: var(--radius-pill);
        font-size: 14px;
        font-weight: 500;
        color: var(--text);
    }
    .ds-nav-list a:hover { background: rgba(var(--primary-rgb), .16); color: #fff; }
    .ds-nav-list .current-menu-item > a,
    .ds-nav-list .current_page_item > a {
        background: linear-gradient(135deg, var(--primary), #9d5cf5);
        color: #fff;
    }
    .ds-nav-list .sub-menu { display: none; }

    .ds-brand { margin-right: 26px; }
    .ds-brand-text { font-size: 19px; }
    .ds-header-actions { margin-left: auto; }
    /* Menu button stays available for the provider list on desktop too. */

    .ds-hero { padding: 58px var(--pad) 62px; }
    .ds-hero-stats { gap: 14px; font-size: 13.5px; }

    .ds-grid { grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); }

    /* Rails become grids — no horizontal scrolling with a mouse. */
    .ds-rail {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
        overflow: visible;
        padding-inline: 0;
        margin-inline: 0;
    }
    .ds-rail > * { flex: none; }

    .ds-features { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .ds-feature { flex-direction: column; padding: 22px; }
    .ds-feature-icon { width: 46px; height: 46px; }

    .ds-provider-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; }

    .ds-card-title { font-size: 14px; }

    /* Player is contained again, with rounded corners */
    .ds-player-bleed .ds-container { padding-inline: var(--pad); }
    .ds-player-frame { border-radius: var(--radius-lg); border-inline: 1px solid var(--border); }

    .ds-gi { padding: 18px; }
    .ds-gi-stat { padding: 14px 10px; }
    .ds-gi-value { font-size: 16px; }

    .ds-searchpanel {
        top: var(--header-h);
        left: auto;
        right: max(calc((100vw - var(--container)) / 2), var(--pad));
        width: min(460px, calc(100vw - 40px));
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
    }
    .ds-searchpanel.is-open { transform: none; opacity: 1; pointer-events: auto; }
    .ds-searchpanel-input { font-size: 15px; }
    /* Desktop closes on scrim click, so the X is redundant. */
    .ds-searchpanel-close { display: none; }

    .ds-pagination .prev span,
    .ds-pagination .next span { display: inline; }

    .ds-provider-head-logo { width: 78px; height: 78px; }
}

/* ─── ≥ 1100px : single-page TOC rail ────────────── */
@media (min-width: 1100px) {
    .ds-single-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 268px;
        gap: 34px;
        align-items: start;
    }

    .ds-toc-wrap { position: sticky; top: calc(var(--header-h) + 20px); }

    /* The sheet becomes a static sidebar card — [hidden] is overridden here. */
    .ds-toc.ds-panel,
    .ds-toc.ds-panel[hidden] {
        display: block;
        position: static;
        max-height: calc(100vh - var(--header-h) - 60px);
        overflow-y: auto;
        transform: none;
        opacity: 1;
        background: var(--surface);
        border: 1px solid var(--border-soft);
        border-radius: var(--radius);
        box-shadow: none;
        padding: 14px;
    }
    .ds-toc.ds-panel .ds-sheet-handle,
    .ds-toc.ds-panel .ds-panel-close { display: none; }
    .ds-toc.ds-panel .ds-toc-head { padding: 0 0 10px; }
    .ds-toc.ds-panel .ds-toc-list { padding: 8px 0 0; overflow: visible; }
}

/* ─── ≥ 1280px ───────────────────────────────────── */
@media (min-width: 1280px) {
    .ds-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .ds-rail { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}


/* ─── WP ADMIN BAR ───────────────────────────────── */
.admin-bar .ds-header { top: 32px; }
.admin-bar .ds-filterbar { top: calc(var(--header-h) + 32px); }
.admin-bar .ds-searchpanel { top: calc(var(--header-h) + 32px); }
@media screen and (max-width: 782px) {
    .admin-bar .ds-header { top: 46px; }
    .admin-bar .ds-filterbar { top: calc(var(--header-h) + 46px); }
    .admin-bar .ds-searchpanel { top: 46px; }
}


/* ─── REDUCED MOTION ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .ds-card:hover { transform: none; }
    .ds-card:hover .ds-card-thumb img { transform: none; }
}
