/* =============================================================================
   media.sahasritha.com — Epics & Poojas, streaming-style browse.

   The browse components (.stx-*) are ported from the speaker site's
   assets/css/youtube.css; what is new here is the site header and footer, the
   per-channel blocks (a videos row and a Shorts row under each channel's
   name), and the Instagram Follow buttons. Designed in
   mockups/youtube-languages.html (option C) in the speaker site's project.
   ============================================================================= */

:root {
    /* The billboard fills the first screen less this header. */
    --header-h: 72px;
    --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Author styles beat the UA's [hidden] rule, and several elements here set
   their own display — state it once for the page. */
[hidden] { display: none !important; }

/* ======================================================================
   Site header and footer
   ====================================================================== */
.site-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--header-h);
    padding-inline: var(--gutter);
    background: #0c0b0a;
    border-bottom: 1px solid var(--on-dark-11);
}
/* The logo is the emblem + wordmark lockup (assets/img/logo.*, 330x104 —
   twice the 52px it shows at, so it stays sharp on high-density screens). */
.site-head__brand { display: block; flex: none; }
.site-head__brand img { width: auto; height: 52px; }
.site-head__host {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 600 13px/1 var(--font-sans);
    color: var(--on-dark-70);
    white-space: nowrap;
    transition: color .2s ease;
}
.site-head__host:hover { color: #fff; }
.site-head__host svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.site-head__host-short { display: none; }

.site-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 22px var(--gutter) 28px;
    border-top: 1px solid var(--on-dark-11);
    font: 500 12.5px/1.6 var(--font-sans);
    color: var(--on-dark-55);
}
.site-foot a { color: var(--on-dark-74); text-decoration: underline; text-underline-offset: 3px; }
.site-foot a:hover { color: #fff; }

/* ======================================================================
   Browse — billboard + channel blocks
   ====================================================================== */
.stx {
    position: relative;
    background: #0c0b0a;
    color: var(--ivory);
    padding-bottom: clamp(48px, 7vw, 88px);
    overflow: hidden;
}

/* ---- Billboard -------------------------------------------------------- */
.stx-bill {
    position: relative;
    min-height: min(calc(100svh - var(--header-h)), 760px);
    display: flex;
    align-items: flex-end;
    isolation: isolate;
}
.stx-bill__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #000;
}
.stx-bill__media img,
.stx-bill__media iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 0;
    transform: translate(-50%, -50%);
}
.stx-bill__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .8s ease;
}
/* Oversized so YouTube's own chrome falls outside the crop */
.stx-bill__media iframe {
    width: max(100%, calc(100svh * 16 / 9 * 1.25));
    height: max(100%, calc(100vw * 9 / 16 * 1.25));
    min-width: 125%;
    min-height: 125%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease;
}
.stx-bill.is-previewing iframe { opacity: 1; }
.stx-bill.is-previewing img { opacity: 0; }
.stx-bill__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, #0c0b0a 0%, rgba(12, 11, 10, .55) 22%, transparent 48%),
        linear-gradient(77deg, rgba(12, 11, 10, .88) 0%, rgba(12, 11, 10, .45) 38%, transparent 70%);
}

.stx-bill__body {
    width: 100%;
    padding: 0 var(--gutter) clamp(36px, 6vw, 72px);
}
.stx-bill__brand {
    font: var(--t-label);
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--on-dark-70);
}
.stx-bill__title {
    margin-top: 18px;
    max-width: 17ch;
    font: 400 clamp(32px, 5.4vw, 64px)/1.04 var(--font-serif);
    letter-spacing: -.01em;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}
/* A long Hindi or Telugu title would run four lines at the full size */
.stx-bill__title.is-long { max-width: 26ch; font-size: clamp(24px, 3vw, 38px); line-height: 1.15; }
.stx-bill__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 18px;
    font: 600 14px/1 var(--font-sans);
    color: var(--on-dark-74);
}
.stx-new { color: #6fd08c; font-weight: 800; }
.stx-tag {
    padding: 3px 6px;
    border: 1px solid var(--on-dark-45);
    border-radius: 3px;
    font: 700 11px/1 var(--font-sans);
    letter-spacing: .04em;
    color: var(--on-dark-74);
}
.stx-bill__syn {
    margin-top: 16px;
    max-width: 46ch;
    font: var(--t-body-md);
    color: var(--on-dark-74);
    text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.stx-bill__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}
.stx-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px 12px 20px;
    border: 0;
    border-radius: 4px;
    font: 700 16px/1 var(--font-sans);
    cursor: pointer;
    transition: background-color .2s ease, filter .2s ease;
}
.stx-btn svg { width: 22px; height: 22px; fill: currentColor; }
.stx-btn--play { background: var(--ivory); color: #0c0b0a; }
.stx-btn--play:hover { background: rgba(247, 243, 237, .78); }
.stx-btn--sub { background: #e62117; color: #fff; }
.stx-btn--sub:hover { background: #c4170f; }
.stx-btn--ig { background: var(--ig-gradient); color: #fff; }
.stx-btn--ig:hover { filter: brightness(.9); }
.stx-btn .stx-caret { width: 14px; height: 14px; margin-left: -2px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .2s ease; }
.stx-btn[aria-expanded="true"] .stx-caret { transform: rotate(180deg); }

/* The Instagram glyph is drawn in strokes, unlike the filled YouTube one */
.stx-igglyph { fill: none !important; stroke: currentColor; stroke-width: 2.2; }

/* Subscribe and Follow menus — one entry per language */
.stx-subwrap { position: relative; }
/* Without JavaScript the menus open on focus instead of on click. */
html:not(.js) .stx-subwrap:focus-within .stx-submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.stx-submenu {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    z-index: 6;
    width: max-content;
    min-width: 100%;
    padding: 6px;
    background: rgba(24, 23, 22, .96);
    backdrop-filter: blur(10px);
    border: 1px solid var(--on-dark-14);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s .15s;
}
.stx-submenu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* the second menu opens from its own right edge, so it can't run off a phone */
.stx-subwrap--end .stx-submenu { left: auto; right: 0; }
.stx-submenu__head {
    padding: 8px 10px 6px;
    font: var(--t-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--on-dark-55);
}

/* Channel / account row inside a menu */
.stx-chan {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #fff;
    transition: background-color .15s ease;
}
a.stx-chan:hover { background: var(--on-dark-11); }
.stx-chan__mono {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--terracotta);
    border-radius: 50%;
    font: 400 17px/1 var(--font-serif);
    color: #fff;
}
.stx-chan__name { display: block; font: 700 14px/1.25 var(--font-sans); }
.stx-chan__lang { display: block; margin-top: 3px; font: 500 12px/1 var(--font-sans); color: var(--on-dark-60); }
.stx-chan__go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #e62117;
    border-radius: 999px;
    font: 700 12.5px/1 var(--font-sans);
    color: #fff;
    white-space: nowrap;
    transition: background-color .15s ease, filter .15s ease;
}
.stx-chan__go svg { width: 14px; height: 14px; fill: currentColor; }
.stx-chan__go--ig { background: var(--ig-gradient); }
a.stx-chan:hover .stx-chan__go--ig { filter: brightness(.9); }

.stx-bill__side {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(36px, 6vw, 72px);
    display: flex;
    align-items: center;
    gap: 14px;
}
.stx-round {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--on-dark-55);
    border-radius: 50%;
    color: var(--ivory);
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}
.stx-round:hover { border-color: var(--ivory); background: var(--on-dark-11); }
.stx-round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---- Channel blocks --------------------------------------------------- */
.stx-rows {
    position: relative;
    z-index: 1;
    margin-top: clamp(-90px, -6vw, -30px);
}
/* The first block clears the billboard's buttons by a row's own gap (the
   rows are pulled up into the billboard's foot); after that, more air
   between channels than between a channel's own two rows. */
.stx-group { margin-top: clamp(20px, 3vw, 36px); }
.stx-group + .stx-group { margin-top: clamp(40px, 5vw, 64px); }

.stx-chanhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-inline: var(--gutter);
}
.stx-chanhead__id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.stx-chanhead__id .stx-chan__mono { flex: none; width: 40px; height: 40px; }
.stx-chanhead__name { font: 700 clamp(17px, 1.6vw, 21px)/1.2 var(--font-sans); color: #e8e4de; transition: color .2s ease; }
.stx-chanhead__id:hover .stx-chanhead__name { color: #fff; }
.stx-chanhead__meta { display: block; margin-top: 4px; font: 500 12.5px/1.2 var(--font-sans); color: var(--on-dark-60); }
.stx-chanhead__acts { display: flex; flex: none; align-items: center; gap: 8px; }
.stx-chanhead .stx-chan__go:hover { background: #c4170f; }

/* Instagram Follow beside each channel's Subscribe. Outlined, so YouTube
   stays the primary ask; the glyph carries Instagram's colours. */
.stx-ig {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 14px 4px 5px;
    border: 1px solid var(--on-dark-30);
    border-radius: 999px;
    font: 700 12.5px/1 var(--font-sans);
    color: #fff;
    white-space: nowrap;
    transition: border-color .15s ease, background-color .15s ease;
}
.stx-ig:hover { border-color: var(--ivory); background: var(--on-dark-11); }
.stx-ig__icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    color: #fff;
}
.stx-ig__icon svg { width: 13px; height: 13px; }

/* ---- Rows ------------------------------------------------------------- */
.stx-row { position: relative; margin-top: clamp(20px, 3vw, 36px); }
.stx-chanhead + .stx-row { margin-top: 14px; }
/* the hovered row paints above the rows after it */
.stx-row:hover { z-index: 3; }
.stx-row__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-inline: var(--gutter);
}
.stx-sub {
    font: 700 11px/1 var(--font-sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--on-dark-60);
}
.stx-sub span { margin-left: 6px; color: var(--on-dark-40); }
.stx-pager { display: flex; gap: 3px; }
.stx-pager i {
    width: 14px;
    height: 2px;
    background: var(--on-dark-30);
}
.stx-pager i.is-on { background: var(--on-dark-74); }

.stx-slider { position: relative; }
.stx-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 8px * (var(--per) - 1)) / var(--per));
    gap: 8px;
    align-items: start;
    /* room for hover cards (and their info panel) to grow without being
       clipped; the padding overlaps neighbouring rows, so the track lets
       pointer events through and only the cards catch them */
    padding: 48px var(--gutter) 160px;
    margin-block: -40px -152px;
    pointer-events: none;
    scroll-padding-inline: var(--gutter);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    --per: 2.15;
}
.stx-track::-webkit-scrollbar { display: none; }
.stx-track--tall { --per: 2.6; }
.stx-track > * { pointer-events: auto; }
/* the page's last row keeps room so the section's overflow doesn't clip its panel */
.stx-group:last-child > .stx-row:last-child .stx-track { margin-bottom: -60px; }

.stx-edge {
    position: absolute;
    top: 48px;
    bottom: 160px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: calc(var(--gutter) - 4px);
    min-width: 36px;
    border: 0;
    background: rgba(12, 11, 10, .55);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity .25s ease, background-color .2s ease;
}
.stx-edge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .2s ease; }
.stx-edge:hover { background: rgba(12, 11, 10, .75); }
.stx-edge:hover svg { transform: scale(1.25); }
.stx-edge--prev { left: 0; border-radius: 0 12px 12px 0; }
.stx-edge--next { right: 0; border-radius: 12px 0 0 12px; }
.stx-slider:hover .stx-edge:not([hidden]) { opacity: 1; }

/* ---- Cards ------------------------------------------------------------ */
.stx-card {
    position: relative;
    scroll-snap-align: start;
    transform-origin: center;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1) 0s, z-index 0s .3s;
    z-index: 1;
}
.stx-card__btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.stx-card__art {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: var(--ink-slot);
}
.stx-card--short .stx-card__art { aspect-ratio: 2 / 3; }
.stx-card__art img { width: 100%; height: 100%; object-fit: cover; }
.stx-card__art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 11, 10, .85), transparent 55%);
}
.stx-card__ribbon {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 1;
    transform: translateX(-50%);
    padding: 4px 8px 3px;
    background: var(--terracotta);
    border-radius: 3px 3px 0 0;
    font: 800 10px/1 var(--font-sans);
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
}
.stx-card__name {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font: 700 13px/1.25 var(--font-sans);
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.stx-card__ribbon ~ .stx-card__name { bottom: 26px; }

/* Hover panel (desktop pointer only) */
.stx-card__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 12px 12px 14px;
    background: #1c1a18;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .7);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease 0s, visibility 0s .2s;
}
.stx-card__ctrls { display: flex; gap: 6px; }
.stx-card__ctrls .stx-round { width: 30px; height: 30px; }
.stx-card__ctrls .stx-round svg { width: 13px; height: 13px; }
.stx-card__ctrls .stx-round--fill,
.stx-card__ctrls .stx-round--fill:hover { background: var(--ivory); border-color: var(--ivory); color: #0c0b0a; }
.stx-card__ctrls .stx-round--fill svg { fill: currentColor; stroke: none; margin-left: 2px; }
.stx-card__ctrls .stx-round--end { margin-left: auto; }
.stx-card__facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-top: 10px;
    font: 600 10.5px/1 var(--font-sans);
    color: var(--on-dark-70);
}
.stx-card__facts .stx-tag { font-size: 9px; padding: 2px 4px; }
.stx-card__genre {
    margin-top: 8px;
    font: 500 10.5px/1.3 var(--font-sans);
    color: var(--on-dark-74);
}
.stx-card__genre span + span::before { content: "•"; margin: 0 6px; color: var(--on-dark-40); }

@media (hover: hover) and (pointer: fine) {
    .stx-card:hover {
        z-index: 5;
        transform: scale(1.12) translateY(-5%);
        transition: transform .15s cubic-bezier(.2, .7, .2, 1) .22s, z-index 0s .22s;
    }
    .stx-card:hover .stx-card__art { border-radius: 12px 12px 0 0; }
    .stx-card:hover .stx-card__panel {
        opacity: 1;
        visibility: visible;
        transition: opacity .1s ease .25s, visibility 0s .25s;
    }
    .stx-card:hover .stx-card__name { opacity: 0; }
    .stx-card.is-first:hover { transform-origin: left center; }
    .stx-card.is-last:hover { transform-origin: right center; }
    .stx-card--short:hover { transform: scale(1.07) translateY(-2%); }
}

/* ---- Info modal ------------------------------------------------------- */
.stx-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow-y: auto;
    padding: 32px 12px;
    background: rgba(0, 0, 0, .72);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
}
.stx-modal.is-open { opacity: 1; visibility: visible; }
.stx-modal__box {
    position: relative;
    width: min(860px, 100%);
    margin: 0 auto;
    overflow: hidden;
    background: #181716;
    border-radius: 16px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
    transform: translateY(24px) scale(.97);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.stx-modal.is-open .stx-modal__box { transform: none; }
.stx-modal__hero {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}
.stx-modal__hero img { width: 100%; height: 100%; object-fit: cover; }
.stx-modal__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #181716 0%, transparent 55%);
}
.stx-modal__hero iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; }
.stx-modal__heroBody {
    position: absolute;
    left: clamp(18px, 5vw, 48px);
    right: clamp(18px, 5vw, 48px);
    bottom: clamp(16px, 4vw, 40px);
    z-index: 2;
}
.stx-modal__title {
    max-width: 22ch;
    font: 400 clamp(22px, 3.6vw, 36px)/1.12 var(--font-serif);
    color: #fff;
    text-wrap: balance;
}
.stx-modal__heroBody .stx-bill__actions { margin-top: 18px; gap: 10px; }
.stx-modal__heroBody .stx-btn { padding: 10px 22px 10px 16px; font-size: 15px; }
.stx-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    background: #181716;
    border-color: transparent;
}
.stx-modal__main {
    display: grid;
    gap: 18px 36px;
    padding: 8px clamp(18px, 5vw, 48px) 0;
}
.stx-modal__main .stx-bill__meta { margin-top: 0; }
.stx-modal__syn { margin-top: 14px; font: var(--t-body-md); color: #e8e4de; }
.stx-modal__aside { font: 500 13px/1.6 var(--font-sans); color: var(--on-dark-55); }
.stx-modal__aside b { font-weight: 500; color: #e8e4de; }
.stx-modal__aside a { color: #e8e4de; text-decoration: underline; }

.stx-eps { padding: 32px clamp(18px, 5vw, 48px) 40px; }
.stx-eps__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 14px;
    font: 700 21px/1.2 var(--font-sans);
    color: #fff;
}
.stx-eps__head span { font: 600 14px/1 var(--font-sans); color: var(--on-dark-70); }
.stx-ep {
    display: grid;
    grid-template-columns: 28px 132px 1fr;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 12px;
    background: none;
    border: 0;
    border-top: 1px solid #2d2b28;
    border-radius: 4px;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.stx-ep:hover, .stx-ep[aria-current="true"] { background: #2a2826; }
.stx-ep__n { font: 400 22px/1 var(--font-sans); color: var(--on-dark-70); text-align: center; }
.stx-ep__art { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--ink-slot); }
.stx-ep__art img { width: 100%; height: 100%; object-fit: cover; }
.stx-ep__art svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    padding: 9px 7px 9px 11px;
    transform: translate(-50%, -50%);
    background: rgba(12, 11, 10, .55);
    border: 1px solid #fff;
    border-radius: 50%;
    fill: #fff;
    opacity: 0;
    transition: opacity .2s ease;
}
.stx-ep:hover .stx-ep__art svg { opacity: 1; }
.stx-ep__t { font: 700 14px/1.35 var(--font-sans); color: #fff; }
.stx-ep__d { display: block; margin-top: 6px; font: 500 13px/1.5 var(--font-sans); color: var(--on-dark-66); }

/* ---- Player (full-screen, 16:9 or 9:16) ------------------------------- */
.stx-player {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
}
.stx-player.is-open { opacity: 1; visibility: visible; }
.stx-player__frame { width: min(100vw, calc(100svh * 16 / 9)); aspect-ratio: 16 / 9; }
.stx-player--short .stx-player__frame { width: auto; height: min(90svh, 800px); aspect-ratio: 9 / 16; }
.stx-player__frame iframe { width: 100%; height: 100%; border: 0; }
.stx-player__back {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 6px;
    background: none;
    border: 0;
    font: 600 15px/1 var(--font-sans);
    color: #fff;
    cursor: pointer;
}
.stx-player__back svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; }
.stx-player__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.stx-player__nav--prev { left: 20px; }
.stx-player__nav--next { right: 20px; }
.stx-player__nav:disabled { opacity: .25; cursor: default; }

/* ---- Wider screens ---------------------------------------------------- */
@media (min-width: 640px) {
    .stx-track { --per: 3.1; }
    .stx-track--tall { --per: 4.1; }
}
@media (min-width: 1024px) {
    .stx-track { --per: 4; }
    .stx-track--tall { --per: 6; }
    .stx-modal__main { grid-template-columns: 2fr 1fr; }
    .stx-modal { padding-top: 48px; }
}
@media (min-width: 1400px) {
    .stx-track { --per: 5; }
    .stx-track--tall { --per: 7; }
}

/* ---- Phones ----------------------------------------------------------- */
@media (max-width: 719px) {
    :root { --header-h: 60px; }
    .site-head__brand img { height: 42px; }
    .site-head__host-full { display: none; }
    .site-head__host-short { display: inline; }

    /* The whole 16:9 thumbnail with the copy beneath it, rather than a
       full-height crop of its middle — a portrait screen can only fill with a
       landscape image by zooming ~3x into it. */
    .stx-bill { display: block; min-height: 0; }
    .stx-bill__media { position: relative; inset: auto; aspect-ratio: 16 / 9; }
    .stx-bill__media iframe { width: 112%; height: 112%; min-width: 0; min-height: 0; }
    .stx-bill__media::after { background: linear-gradient(to top, #0c0b0a 0%, rgba(12, 11, 10, .4) 22%, transparent 45%); }
    .stx-bill__body { position: relative; margin-top: -26px; padding-bottom: 28px; text-align: center; }
    .stx-bill__title { margin-top: 12px; font-size: clamp(26px, 7.4vw, 34px); text-shadow: none; }
    .stx-bill__title.is-long { font-size: clamp(22px, 6vw, 28px); }
    .stx-bill__meta, .stx-bill__actions { justify-content: center; }
    .stx-bill__title, .stx-bill__syn { margin-inline: auto; }
    .stx-bill__syn { display: none; }
    .stx-bill__side { top: 12px; bottom: auto; right: 12px; }
    /* Play on its own line, Subscribe and Follow side by side under it */
    .stx-bill__actions > .stx-btn--play { flex-basis: 100%; justify-content: center; }
    .stx-bill__actions .stx-subwrap { flex: 1; }
    .stx-bill__actions .stx-subwrap > .stx-btn { width: 100%; justify-content: center; }

    .stx-rows { margin-top: 0; }
    /* the head holds one line beside its two buttons down to 360px */
    .stx-chanhead, .stx-chanhead__id { gap: 10px; }
    .stx-chanhead__id .stx-chan__mono { width: 34px; height: 34px; font-size: 15px; }
    .stx-chanhead__suffix, .stx-chanhead__counts { display: none; }
    .stx-chanhead__acts { gap: 6px; }
    .stx-chanhead .stx-chan__go { padding: 7px 12px; }
    .stx-ig { padding: 4px; }
    .stx-ig__label { display: none; }

    .stx-ep { grid-template-columns: 110px 1fr; }
    .stx-ep__n { display: none; }
    .stx-player__nav { top: auto; bottom: 20px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .stx *, .stx-modal, .stx-modal *, .stx-player { transition: none !important; }
}
