/* Spider Features page. Built on inner.css (EliteZone system, Spider red).
   Hero → category gallery (apple.com «Explore the lineup») → sticky category bar →
   one section per category: product card on the left, hairline feature list on the right
   → feature details in an Apple product modal. */

:root {
    --chips-h: 61px;
}

/* ---------- hero poster ----------
   In the manner of the home page's demo poster (16:9, like its film): white on the left for
   the copy, fading into a close view of the same concrete frame with its red detailing lines
   (features_poster.py). Below 1069 px the copy sits above the picture. The picture settles in
   from 1.04× as the copy rises (Apple hero). */
.f-hero {
    padding-top: 24px;
}

.f-poster {
    position: relative;
    display: flex;
    align-items: center;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-big);
    background: #fff;
    /* lifted off the white page by a light shadow (user, 2026-10-17): Apple's resting card shadow */
    box-shadow: 2px 4px 12px rgb(0 0 0 / .08);
    overflow: hidden;
    isolation: isolate;
}

.f-poster-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.f-poster-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 100% 50%;
    animation: f-poster-in 1.6s cubic-bezier(.25, .1, .25, 1) both;
}

@keyframes f-poster-in {
    from {
        opacity: 0;
        transform: scale(1.04);
    }
}

.f-poster-copy {
    width: 44%;
    padding: 48px 0 48px 5.5%;
}

.f-poster .h1 {
    margin-top: 14px;
    font-size: clamp(2.5rem, 3.6vw, 3.5rem);
    line-height: 1.07;
    letter-spacing: -.01em;
}

.f-poster .lead {
    margin-top: 20px;
    max-width: 30ch;
    font-size: clamp(1.0625rem, 1.3vw, 1.3125rem);
    line-height: 1.55;
}

.f-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 32px;
}

/* two lines: what is inside, then what it works with */
.f-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 28px 0 0;
}

.f-meta-sep {
    display: none;
}

.f-arrow {
    color: var(--red-ink);
}

/* Stacked: the copy on white, then the photo, fading in from the white at the top.
   Tablet shows canvas x 820–1920 / y 140–940 of 1920 × 1080, phones x 1000–1920 full height. */
@media (max-width: 1068px) {
    .f-poster {
        flex-direction: column;
        align-items: stretch;
        aspect-ratio: auto;
    }

    .f-poster-copy {
        width: auto;
        padding: 48px 48px 0;
    }

    .f-poster-media {
        position: relative;
        inset: auto;
        z-index: 0;
        order: 2;
        aspect-ratio: 1100 / 800;
        -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%);
        mask-image: linear-gradient(to bottom, transparent, #000 22%);
    }

    .f-poster-media img {
        inset: auto;
        top: -17.5%;     /* 140 / 800 */
        left: -74.5%;    /* 820 / 1100 */
        width: 174.5%;   /* 1920 / 1100 */
        height: auto;
    }
}

@media (max-width: 734px) {
    .f-poster-media {
        aspect-ratio: 920 / 1080;
    }

    .f-poster-media img {
        top: 0;
        left: -108.7%;   /* 1000 / 920 */
        width: 208.7%;   /* 1920 / 920 */
    }
}

@media (max-width: 734px) {
    .f-hero {
        padding-top: 12px;
    }

    .f-poster-copy {
        padding: 36px 24px 0;
    }

    .f-poster .h1 {
        font-size: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .f-poster-media img {
        animation: none;
    }
}

/* ---------- category gallery ---------- */
.f-gallery {
    margin-top: calc(var(--section-space) - 12px);   /* + the track's 12 px = 64 px to the tiles */
}

.f-gallery-track {
    --edge: max(var(--gutter), (100% - var(--col)) / 2);
    display: flex;
    gap: 20px;
    padding: 12px var(--edge) 20px;
    scroll-padding-inline: var(--edge);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.f-gallery-track::-webkit-scrollbar {
    display: none;
}

.ctile {
    --scale: 1;
    position: relative;
    flex: none;
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 400px;
    padding: 28px;
    border-radius: var(--radius-card);
    background: var(--media);
    scroll-snap-align: start;
    box-shadow: 2px 4px 12px rgb(0 0 0 / .08);
    transform: scale(var(--scale));
    transition: transform .3s cubic-bezier(0, 0, .5, 1), box-shadow .3s cubic-bezier(0, 0, .5, 1);
}

.ctile:hover {
    --scale: 1.02;
    box-shadow: 2px 4px 16px rgb(0 0 0 / .16);
}

.ctile-media {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    place-items: center;
}

.ctile-media img {
    max-width: 100%;
    max-height: 230px;
    object-fit: contain;
}

.ctile-name {
    margin-top: 18px;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
}

.ctile-count {
    margin-top: 4px;
    color: var(--g700);
    font-size: 14px;
}

.ctile-plus {
    position: absolute;
    right: 20px;
    bottom: 20px;
}

@media (max-width: 734px) {
    .ctile {
        width: 250px;
        height: 340px;
        padding: 22px;
    }

    .ctile-media img {
        max-height: 180px;
    }
}

/* the product images sit on the card; their edges fade into it */
.fade-edges {
    --fade: 8%;
    -webkit-mask-image:
        linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent),
        linear-gradient(to bottom, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent),
        linear-gradient(to bottom, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
    mask-composite: intersect;
}

/* Iconsax Bulk icon in Spider red for categories without a product image */
.cat-icon {
    width: 112px;
    height: 112px;
    color: var(--red);
}

.f-paddles {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    margin-top: 12px;
}

.f-paddles .ctl:disabled {
    opacity: .42;
    cursor: default;
}

/* ---------- sticky category bar ---------- */
.f-chips {
    position: sticky;
    top: var(--lnav-h);
    z-index: 60;
    margin-top: calc(var(--section-space) - 12px);   /* + the bar's 12 px = 64 px to the chips */
    background: rgb(255 255 255 / .86);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease);
}

.f-chips.stuck {
    border-bottom-color: var(--g300);
}

.f-chips-row {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.f-chips-row::-webkit-scrollbar {
    display: none;
}

.chip,
.inner button.chip {
    flex: none;
    padding: 6px 16px;
    border: 1px solid var(--g900);
    border-radius: 999px;
    color: var(--g900);
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    transition: background-color .25s var(--ease), color .25s var(--ease);
}

.chip:hover,
.inner button.chip:hover {
    background: var(--g200);
}

/* the chosen one: black with white text (also on <button> chips, which inner.css resets) */
.chip[aria-current="true"],
.inner button.chip[aria-current="true"] {
    background: var(--g900);
    color: #fff;
}

/* ---------- category sections ---------- */
.cat {
    padding-top: var(--section-space);
    scroll-margin-top: calc(var(--lnav-h) + var(--chips-h) - var(--section-space) + 32px);
}

.cat:first-child {
    padding-top: calc(var(--section-space) - 13px);   /* 64 px under the chips (the bar keeps 12 px + its 1 px line) */
    scroll-margin-top: calc(var(--lnav-h) + var(--chips-h) - var(--section-space) + 13px + 32px);
}

.cat-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: var(--title-gap);
}

.cat-head .meta {
    flex: none;
    white-space: nowrap;
    text-box: trim-both cap alphabetic;   /* ends on the title's baseline: the 32px starts there */
}

@supports not (text-box: trim-both cap alphabetic) {
    .cat-head .meta {
        margin-bottom: -.44em;           /* Montserrat at line-height 1.6 */
    }
}

.cat-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 24px;
    align-items: start;
}

.cat-card {
    position: sticky;
    top: calc(var(--lnav-h) + var(--chips-h) + 24px);
    display: flex;
    flex-direction: column;
    min-height: 500px;
    padding: 40px;
    border-radius: var(--radius-big);
    background: var(--media);
}

.cat-card h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
    text-wrap: balance;
}

.cat-card .meta {
    margin: 12px 0 0;
}

.cat-card-media {
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    margin-top: 24px;
    min-height: 0;
}

.cat-card-media img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.cat-card .cat-icon {
    width: 160px;
    height: 160px;
}

.flist {
    margin: 0;
    padding: 0 32px;
    list-style: none;
    border-radius: var(--radius-card);
    background: var(--card);
}

.flist li + li {
    border-top: 1px solid var(--g300);
}

.frow {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    width: 100%;
    padding: 28px 0;
    border: 0;
    background: none;
    text-align: left;
}

.fnum {
    padding-top: 4px;
    color: var(--g600);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.ftitle {
    display: block;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 600;
    transition: color .25s var(--ease);
}

.fsum {
    display: block;
    margin-top: 6px;
    color: var(--g700);
    font-size: 15px;
    line-height: 1.6;
}

.fside {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fvid {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--g700);
    font-size: 13px;
}

.fvid svg {
    width: 16px;
    height: 16px;
    color: var(--red);
}

.frow .ctl svg {
    transition: transform .3s var(--ease);
}

.frow:hover .ftitle {
    color: var(--red-ink);
}

.frow:hover .ctl {
    background: var(--g300);
    color: var(--g900);
}

.frow:hover .ctl svg {
    transform: rotate(90deg);
}

@media (max-width: 900px) {
    .cat-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cat-card {
        position: static;
        min-height: 0;
        padding: 28px;
    }

    .cat-card-media img {
        max-height: 240px;
    }
}

@media (max-width: 734px) {
    .flist {
        padding: 0 20px;
    }

    .frow {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px;
        padding: 22px 0;
    }

    .fnum,
    .fvid span {
        display: none;
    }

    .ftitle {
        font-size: 19px;
    }
}

/* ---------- closing call to action ---------- */
/* room above the footer too (user, 2026-10-17: «کادر با فوتر فاصله داشته باشد») */
.f-cta {
    padding-block: var(--section-space);
}

.f-cta-card {
    padding: 64px;
    border-radius: var(--radius-big);
    background: var(--card);
}

.f-cta-card .lead {
    margin-top: 16px;
}

@media (max-width: 734px) {
    .f-cta-card {
        padding: 36px 24px;
    }
}

/* ---------- feature details (modal) ---------- */
.f-dlg {
    padding: 56px 64px 40px;
}

.f-dlg .ctl[data-close] {
    position: absolute;
    top: 20px;
    right: 20px;
}

.d-eyebrow {
    margin: 0;
    color: var(--g700);
    font-size: 14px;
}

.d-eyebrow b {
    color: var(--red-ink);
    font-weight: 600;
}

.d-title {
    margin: 10px 0 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 600;
    text-wrap: balance;
}

.d-lead {
    margin: 20px 0 0;
    max-width: 46ch;
    font-size: 21px;
    line-height: 1.5;
}

.d-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.vid {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 168px;
    padding: 28px;
    border-radius: 22px;
    background: var(--media);
    overflow: hidden;
}

.vid-play {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    transition: background-color .25s var(--ease), transform .3s cubic-bezier(0, 0, .5, 1);
}

.vid-play svg {
    width: 18px;
    height: 18px;
    margin-left: 3px;
}

.vid:hover .vid-play {
    background: var(--red-h);
    transform: scale(1.06);
}

.vid-text {
    position: relative;
    z-index: 1;
}

.vid-text strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
}

.vid-text span {
    color: var(--g700);
    font-size: 14px;
}

/* single video: the product image sits on the right half, never under the text */
.vid img {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 42%;
    max-height: 92%;
    object-fit: contain;
    transform: translateY(-50%);
    pointer-events: none;
}

.vid:has(img) .vid-text {
    max-width: 44%;
}

/* the player that takes the tiles' place (features.js play()) */
.d-videos.is-playing {
    display: block;
}

.d-player {
    animation: dPlayer .5s var(--ease-out) both;
}

@keyframes dPlayer {
    from {
        opacity: 0;
        transform: scale(.98);
    }
}

.d-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    border-radius: 18px;
    background: #000;
    overflow: hidden;
}

.d-frame iframe,
.d-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.d-blocked {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 18px;
    padding: 24px;
    text-align: center;
}

.d-blocked p {
    margin: 0;
    color: rgb(255 255 255 / .82);
    font-size: 17px;
}

.d-player-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 14px;
    font-size: 15px;
}

.d-parts {
    display: flex;
    gap: 8px;
}

.vid {
    width: 100%;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.d-body {
    margin-top: 36px;
    max-width: 68ch;
    color: var(--g700);
    font-size: 17px;
    line-height: 1.7;
}

.d-body p {
    margin: 0 0 16px;
}

.d-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    margin: 8px 0 20px;
    padding: 0;
    list-style: none;
    color: var(--g900);
}

.d-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--g300);
    font-size: 15px;
    line-height: 1.5;
}

.d-list li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 11px;
    margin: 3px 4px 0 2px;
    border-right: 1.75px solid var(--red);
    border-bottom: 1.75px solid var(--red);
    transform: rotate(40deg);
}

.d-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--g300);
}

.d-step {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    max-width: 40%;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
}

.d-step.next {
    align-items: flex-end;
    text-align: right;
}

.d-step small {
    color: var(--g600);
    font-size: 13px;
}

.d-step span {
    font-size: 15px;
    font-weight: 600;
    transition: color .2s var(--ease);
}

.d-step:hover span {
    color: var(--red-ink);
}

.d-step:disabled {
    visibility: hidden;
}

@media (max-width: 734px) {
    .ovl {
        padding: 12px;
        place-items: start center;
    }

    .f-dlg {
        padding: 64px 22px 28px;
    }

    .d-lead {
        font-size: 18px;
    }

    .d-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .vid img {
        display: none;
    }

    .d-foot .btn {
        display: none;
    }
}

/* UI review (2026-10-25): a category with three features or fewer left a large empty block beside
   its tall picture card. The card is shorter there and the list fills the card's height, its rows
   centred, so the two columns end together. */
@media (min-width: 1069px) {
    .cat-grid:not(:has(.flist li:nth-child(4))) {
        align-items: stretch;
    }

    .cat-grid:not(:has(.flist li:nth-child(4))) .cat-card {
        min-height: 380px;
    }

    .cat-grid:not(:has(.flist li:nth-child(4))) .flist {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Button levels (user, 2026-10-25): the category pills and the carousel arrows are level 3 —
   white, black text, an Apple shadow (no outline); the chosen pill stays black with white text */
.chip,
.inner button.chip {
    border-color: transparent;
    background: #fff;
    box-shadow: var(--b3-shadow);
    transition: box-shadow .3s cubic-bezier(0, 0, .5, 1), background-color .25s var(--ease), color .25s var(--ease);
}

.chip:hover,
.inner button.chip:hover {
    background: #fff;
    box-shadow: var(--b3-shadow-h);
}

.chip[aria-current="true"],
.inner button.chip[aria-current="true"] {
    background: var(--b2, #1D1D1F);
}

.f-chips-row {
    /* the page's column + 4 px each side: room for the pills' shadow, the first pill on the column edge.
       (Was margin-inline: -4px, which also cancelled .wrap's centring: the row sat on the window's left edge.) */
    width: min(var(--col) + 8px, 100% - 2 * var(--gutter) + 8px);
    margin-inline: auto;
    padding-inline: 4px;
}

/* all ten categories on one line in the 1200 px column, from the first chip's left edge to the last
   chip's right edge (the tenth, Miscellaneous, was hidden until the row was scrolled) */
@media (min-width: 1280px) {
    .f-chips-row {
        justify-content: space-between;
        gap: 4px;                      /* the row still scrolls if a fallback font runs wider */
    }

    .f-chips-row .chip {
        padding-inline: 12px;
        font-size: 13px;
        line-height: 21px;             /* the chips' height stays, so nothing below them moves */
    }
}

.f-paddles .ctl {
    background: #fff;
    color: var(--b2, #1D1D1F);
    box-shadow: var(--b3-shadow);
}

.f-paddles .ctl:hover {
    box-shadow: var(--b3-shadow-h);
}

/* Button levels (2026-10-25): a feature row opens more about it — information blue on hover */
.frow:hover .ftitle,
.d-step:hover span {
    color: var(--info, #0066CC);
}

/* The category pictures keep their place before they load (2026-11-07): the page was up to 705 px
   shorter at 1920, and 2400 px on phones and tablets, until they arrived, so everything below jumped and a
   link to a category landed in the wrong place. The width is what the browser draws once the picture is
   there: the column, the file's own width or the height limit, whichever is smallest. */
.pic-sized {
    --mh: 320px;
    width: min(100%, calc(var(--iw) * 1px), calc(var(--mh) * var(--iw) / var(--ih)));
    height: auto;
    aspect-ratio: var(--iw) / var(--ih);
}

.ctile-media .pic-sized {
    --mh: 230px;
}

@media (max-width: 900px) {
    .cat-card-media .pic-sized {
        --mh: 240px;
    }
}

@media (max-width: 734px) {
    .ctile-media .pic-sized {
        --mh: 180px;
    }
}

/* ===== phones and tablets (2026-11-07), everything here sits inside a width query, the desktop stays as it was ===== */
@media (max-width: 1068px) {
    /* the chips ran from the window's edge and stopped short of the other one: now the whole width,
       and they scroll under the page's own margin */
    .f-chips-row {
        width: 100%;
        margin-inline: 0;
        padding-inline: var(--gutter);
        scroll-padding-inline: var(--gutter);
    }
}

@media (max-width: 1068px) {
    /* the tile itself is the button, so its «+» keeps its size and stays off the title */
    .ctile-plus {
        width: 36px;
        height: 36px;
    }
}

/* The chip row goes on past the screen (user report 2026-11-08: «Gestalt — the visitor feels these are
   all the items»): at 390 three chips happened to end right at the edge, so the row looked complete.
   The edge with more chips behind it fades out over 56 px (continuity: a shape that fades reads as one that
   carries on). features.js marks the edges (.more-before / .more-after). Every width since 2026-11-09 (on the
   desktop the row scrolls below 1280). */
@media screen {
    html body .f-chips-row.more-after {
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
    }

    html body .f-chips-row.more-before {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 56px);
        mask-image: linear-gradient(to right, transparent, #000 56px);
    }

    html body .f-chips-row.more-before.more-after {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
        mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
    }
}

/* Features page, phones and tablets (user reports 2026-11-09):
   - list rows: «more visual appeal, a nicer play button» → a small picture of the row's video poster with a
     white play disc on it, in place of the bare red triangle (phones also drop the «+»: the whole row opens);
   - the feature window: «show this picture before it plays too … one family, more appeal» → the poster itself,
     large, with a white play disc and a soft pulsing ring, in place of the empty «Watch the feature video» tile;
   - the category row: «Gestalt, or an arrow» → an arrow on each edge that has more chips behind it.
   Same day the user asked for all of it on the desktop too: these rules now hold at every width, and the
   desktop block further down sizes them for the wide page. */
@media screen {
    html body .frow:has(.fthumb) {
        grid-template-columns: 160px minmax(0, 1fr) auto;
        gap: 20px;
        align-items: start;
    }

    html body .fthumb {
        position: relative;
        display: block;
        width: 160px;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
        overflow: hidden;
        background: var(--media, #e8eaed);
        box-shadow: 0 0 0 1px rgb(0 0 0 / .05), 0 4px 12px rgb(0 0 0 / .08);
    }

    html body .fthumb img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s cubic-bezier(.22, .61, .36, 1);
    }

    html body .fthumb i {
        position: absolute;
        left: 50%;
        top: 50%;
        display: grid;
        place-items: center;
        width: 32px;
        height: 32px;
        margin: -16px 0 0 -16px;
        border-radius: 50%;
        background: rgb(255 255 255 / .94);
        color: var(--red, #ED1C29);
        box-shadow: 0 2px 8px rgb(0 0 0 / .18);
    }

    html body .fthumb i svg {
        width: 13px;
        height: 13px;
        margin-left: 2px;
    }

    html body .frow:active .fthumb img {
        transform: scale(1.04);
    }

    html body .frow:has(.fthumb) :is(.fvid, .fnum) {
        display: none;
    }

    /* the window: the poster before it plays */
    html body .d-videos:has(.d-cover) > .vid {
        display: none;
    }

    html body .d-cover {
        display: block;
        grid-column: 1 / -1;
    }

    html body .d-cover-frame {
        position: relative;
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        padding: 0;
        border: 0;
        border-radius: 18px;
        overflow: hidden;
        background: var(--media, #e8eaed);
        box-shadow: 0 0 0 1px rgb(0 0 0 / .05);
        cursor: pointer;
    }

    html body .d-cover-frame img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s cubic-bezier(.22, .61, .36, 1);
    }

    html body .d-cover-frame:active img {
        transform: scale(1.02);
    }

    html body .d-cover-play {
        position: absolute;
        left: 50%;
        top: 50%;
        display: grid;
        place-items: center;
        width: 72px;
        height: 72px;
        margin: -36px 0 0 -36px;
        border-radius: 50%;
        background: rgb(255 255 255 / .94);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
        color: var(--red, #ED1C29);
        box-shadow: 0 8px 24px rgb(0 0 0 / .18);
    }

    html body .d-cover-play::after {
        content: "";
        position: absolute;
        inset: -8px;
        border-radius: 50%;
        border: 2px solid rgb(255 255 255 / .8);
        animation: dCoverPulse 2.4s cubic-bezier(.22, .61, .36, 1) infinite;
    }

    html body .d-cover-play svg {
        width: 24px;
        height: 24px;
        margin-left: 4px;
    }

    html body .d-cover .d-parts {
        display: flex;
        gap: 8px;
        margin-top: 12px;
    }

    /* the category row's arrows: Apple's white control on the faded edge */
    html body .f-chips {
        position: sticky;
    }

    html body .f-chips-arrow {
        position: absolute;
        top: 50%;
        z-index: 2;
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        margin-top: -18px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #fff;
        color: var(--g900, #212529);
        box-shadow: 0 2px 8px rgb(0 0 0 / .14), 0 0 0 1px rgb(0 0 0 / .04);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s cubic-bezier(.22, .61, .36, 1);
    }

    html body .f-chips-arrow svg {
        width: 16px;
        height: 16px;
    }

    html body .f-chips-arrow.next {
        right: max(8px, var(--sa-r, 0px));
    }

    html body .f-chips-arrow.prev {
        left: max(8px, var(--sa-l, 0px));
    }

    html body .f-chips:has(.f-chips-row.more-after) .f-chips-arrow.next,
    html body .f-chips:has(.f-chips-row.more-before) .f-chips-arrow.prev {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 734px) {
    html body .frow:has(.fthumb) {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 14px;
    }

    html body .fthumb {
        width: 104px;
    }

    html body .frow:has(.fthumb) .fside {
        display: none;
    }

    /* the picture at the top of its row, the line kept to three lines (the window has the rest) */
    html body .frow:has(.fthumb) {
        align-items: start;
    }

    html body .frow:has(.fthumb) .ftitle {
        font-size: 17px;
        line-height: 1.3;
    }

    html body .frow:has(.fthumb) .fsum {
        display: -webkit-box;
        margin-top: 4px;
        font-size: 14px;
        line-height: 1.5;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Features page on the desktop (user 2026-11-09): the phone/tablet pieces at the computer's size.
   - rows: a 224 px poster (16:9 = 126 tall) beside the title and line, «+» on the right, the number gone
     like on tablets; on hover the picture grows a little and the play disc turns red;
   - the window: the poster in the words' column, at most 560 tall so the text above stays in view;
   - the chip row (scrolls only below 1280): the arrows sit on the row's own edges, not the window's. */
@media (min-width: 1069px) {
    html body .frow:has(.fthumb) {
        grid-template-columns: 224px minmax(0, 1fr) auto;
        gap: 28px;
        align-items: center;
        cursor: pointer;
    }

    html body .fthumb {
        width: 224px;
        border-radius: 14px;
    }

    html body .fthumb i {
        width: 40px;
        height: 40px;
        margin: -20px 0 0 -20px;
        transition: background-color .3s cubic-bezier(0, 0, .5, 1), color .3s cubic-bezier(0, 0, .5, 1), transform .3s cubic-bezier(0, 0, .5, 1);
    }

    html body .fthumb i svg {
        width: 15px;
        height: 15px;
    }

    html body .frow:hover .fthumb img {
        transform: scale(1.04);
    }

    html body .frow:hover .fthumb i {
        background: var(--red, #ED1C29);
        color: #fff;
        transform: scale(1.06);
    }

    html body .frow:focus-visible .fthumb {
        outline: 2px solid var(--info, #0066CC);
        outline-offset: 3px;
    }

    html body .d-cover-frame {
        max-height: 560px;
        border-radius: 22px;
    }

    html body .d-cover-play {
        width: 80px;
        height: 80px;
        margin: -40px 0 0 -40px;
        transition: background-color .3s cubic-bezier(0, 0, .5, 1), color .3s cubic-bezier(0, 0, .5, 1), transform .3s cubic-bezier(0, 0, .5, 1);
    }

    html body .d-cover-frame:hover img {
        transform: scale(1.02);
    }

    html body .d-cover-frame:hover .d-cover-play {
        background: var(--red, #ED1C29);
        color: #fff;
        transform: scale(1.06);
    }

    html body .d-cover-frame:focus-visible {
        outline: 2px solid var(--info, #0066CC);
        outline-offset: 4px;
    }

    html body .f-chips-arrow.next {
        right: calc((100% - min(var(--col) + 8px, 100% - 2 * var(--gutter) + 8px)) / 2);
    }

    html body .f-chips-arrow.prev {
        left: calc((100% - min(var(--col) + 8px, 100% - 2 * var(--gutter) + 8px)) / 2);
    }

    html body .f-chips-arrow:hover {
        box-shadow: 0 4px 14px rgb(0 0 0 / .18), 0 0 0 1px rgb(0 0 0 / .04);
    }
}

@keyframes dCoverPulse {
    0% {
        opacity: .9;
        transform: scale(.92);
    }

    70%,
    100% {
        opacity: 0;
        transform: scale(1.25);
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .d-cover-play::after {
        animation: none;
        opacity: 0;
    }
}

/* The play buttons (user report 2026-11-09: «make the play button more attractive, in every version»):
   Spider red, light at the top to deep at the bottom, a white glass rim, a red glow; the window's button also
   breathes a red ring outwards. Rows: the same button, small. Every width; the mouse adds hover and press. */
@media screen {
    html body .d-cover-play,
    html body .fthumb i {
        background: linear-gradient(180deg, #FF4A55 0%, #ED1C29 55%, #D41926 100%);
        color: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        transition: transform .3s cubic-bezier(0, 0, .5, 1), box-shadow .3s cubic-bezier(0, 0, .5, 1), filter .3s cubic-bezier(0, 0, .5, 1);
    }

    html body .d-cover-play {
        box-shadow: 0 0 0 6px rgb(255 255 255 / .6), inset 0 1px 1px rgb(255 255 255 / .35), inset 0 -3px 6px rgb(0 0 0 / .12),
            0 14px 34px rgb(237 28 41 / .45), 0 2px 6px rgb(0 0 0 / .16);
    }

    html body .d-cover-play::after {
        inset: -6px;
        border: 2px solid rgb(237 28 41 / .6);
        animation: dPlayBreathe 2.6s cubic-bezier(.22, .61, .36, 1) infinite;
    }

    html body .d-cover-play svg {
        width: 26px;
        height: 26px;
        margin-left: 4px;
        filter: drop-shadow(0 1px 1px rgb(0 0 0 / .18));
    }

    html body .fthumb i {
        box-shadow: 0 0 0 3px rgb(255 255 255 / .6), inset 0 1px 1px rgb(255 255 255 / .35), 0 4px 12px rgb(237 28 41 / .4);
    }

    html body .fthumb i svg {
        filter: drop-shadow(0 1px 1px rgb(0 0 0 / .18));
    }

    html body .d-cover-frame:active .d-cover-play,
    html body .frow:active .fthumb i {
        transform: scale(.94);
        filter: brightness(.94);
    }
}

@media (hover: hover) {
    html body .d-cover-frame:hover .d-cover-play,
    html body .frow:hover .fthumb i {
        background: linear-gradient(180deg, #FF5761 0%, #F91D2B 55%, #E01A27 100%);
        color: #fff;
        transform: scale(1.06);
    }

    html body .d-cover-frame:hover .d-cover-play {
        box-shadow: 0 0 0 6px rgb(255 255 255 / .7), inset 0 1px 1px rgb(255 255 255 / .35), inset 0 -3px 6px rgb(0 0 0 / .12),
            0 18px 40px rgb(237 28 41 / .55), 0 2px 6px rgb(0 0 0 / .16);
    }
}

@keyframes dPlayBreathe {
    0% {
        opacity: .9;
        transform: scale(1);
    }

    70%,
    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

/* Narrow phones (final QA 2026-11-11): at 320 a long category name pushed «10 features» past the screen's edge;
   the count now moves under the name when the row is full. */
@media (max-width: 734px) {
    html body .cat-head {
        flex-wrap: wrap;
        row-gap: 8px;
    }
}

/* Final QA (2026-11-11): small grey numbers were #6C757D on #F5F5F7 (4.31:1, under 4.5) → #495057. */
@media screen {
    html body .fnum {
        color: #495057;
    }
}
/* ===== end of phones and tablets ===== */
