/* ===== css/features.css — akifrzayev.com v2 · new features (group: features) =====
   Scoping: every rule sits under html.f-<id> (that feature is on). The dialogs are shared by several
   features, so their rules sit under html.ft-sheet-open — a class that exists only while one of this
   module's dialogs is open. Anything that moves continuously is also gated by html.cx-motion.
   Colours: the rules hold plain values for the default blue; the versions that follow the theme's --accent
   through color-mix() sit in one @supports block at the end ("Accent mixes"). A plain fallback written
   just before a color-mix(var(…)) declaration would never apply: the var() one wins the cascade and an
   engine without color-mix() then drops it to nothing.
   Note: the feature ids already start with "f-", so the <html> classes read html.f-f-…            */

/* ===================================================================================
   Shared bits
   =================================================================================== */
:is(html.f-f-online-now-presence, html.f-f-azpixel-live-card, html.ft-sheet-open) .ft-gdot {
    position: relative;
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #23a55a;
    box-shadow: 0 0 0 2px rgba(35, 165, 90, 0.18), 0 0 8px rgba(35, 165, 90, 0.85);
}

html.cx-motion:is(.f-f-online-now-presence, .f-f-azpixel-live-card) .ft-gdot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #23a55a;
    animation: ft-ping 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ft-ping {
    0% { transform: scale(1); opacity: 0.55; }
    70%, 100% { transform: scale(2.6); opacity: 0; }
}

/* everything this module injects stays out of the layout until its data has arrived */
html.f-f-online-now-presence :is(.ft-online, .ft-vstars)[hidden],
html.f-f-respect-counter .ft-respect[hidden],
html.f-f-discord-presence-lanyard :is(.ft-pdot, .ft-presence-line)[hidden],
html.f-f-real-playlist .ft-queue-btn[hidden],
html.f-f-synced-lyrics .ft-lyric[hidden],
html.f-f-follower-counts .ft-fcount[hidden],
html.f-f-azpixel-live-card .ft-azp-tag[hidden],
html.ft-sheet-open .ft-layer [hidden] {
    display: none !important;
}

/* loading placeholder (no numbers until the real ones arrive) */
:is(html.f-f-azpixel-live-card, html.ft-sheet-open) .ft-skel {
    display: inline-block;
    width: 74px;
    height: 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
}

:is(html.f-f-azpixel-live-card, html.ft-sheet-open) .ft-skel--s {
    width: 52px;
}

html.cx-motion:is(.f-f-azpixel-live-card, .ft-sheet-open) .ft-skel {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.08) 75%) 0 0 / 300% 100%;
    animation: ft-shimmer 1.3s linear infinite;
}

@keyframes ft-shimmer {
    to { background-position: -150% 0; }
}

/* guild logo: a text monogram until the real icon has loaded */
:is(html.f-f-azpixel-live-card, html.ft-sheet-open) .ft-mono {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #2456ff, #0125a1);
    font: 700 14px/1 'Unbounded', 'Inter', system-ui, sans-serif;
    letter-spacing: 0.02em;
    color: #fff;
}

:is(html.f-f-azpixel-live-card, html.ft-sheet-open) .ft-mono > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

:is(html.f-f-azpixel-live-card, html.ft-sheet-open) .ft-mono.has-img > img {
    opacity: 1;
}

:is(html.f-f-azpixel-live-card, html.ft-sheet-open) .ft-mono.has-img > .ft-mono-t {
    visibility: hidden;
}

html.cx-motion:is(.f-f-azpixel-live-card, .ft-sheet-open) .ft-mono > img {
    transition: opacity 0.3s ease;
}

/* ===================================================================================
   1 + 2. Stat pills: online now · respect (injected into .stats-container)
   =================================================================================== */
html.f-f-online-now-presence .stats-container > .stat-item[data-stat="hash"],
html.f-f-respect-counter .stats-container > .stat-item[data-stat="fire"] {
    display: none;
}

:is(html.f-f-online-now-presence, html.f-f-respect-counter) .stats-container > button.stat-item {
    margin: 0;
    font: inherit;
    line-height: normal;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

:is(html.f-f-online-now-presence, html.f-f-respect-counter) .stats-container > button.stat-item:hover {
    border-color: rgba(255, 255, 255, 0.24);
}

:is(html.f-f-online-now-presence, html.f-f-respect-counter) .stats-container > button.stat-item:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

:is(html.f-f-online-now-presence, html.f-f-respect-counter) .stats-container .ft-num {
    font-variant-numeric: tabular-nums;
}

html.f-f-online-now-presence .ft-online {
    gap: 5px;
}

html.f-f-online-now-presence .ft-online .ft-gdot {
    margin: 0 1px 0 2px;
}

html.f-f-online-now-presence .ft-online .ft-word {
    color: rgba(255, 255, 255, 0.78);
}

html.f-f-online-now-presence .ft-online.ft-compact .ft-word {
    display: none;
}

html.cx-motion.f-f-online-now-presence .ft-online .ft-num.ft-tick {
    animation: ft-tick 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes ft-tick {
    from { transform: translateY(-5px); opacity: 0.15; }
    to { transform: none; opacity: 1; }
}

/* each online visitor = one soft star in the sky (between the sky overlay and the sparkles) */
html.f-f-online-now-presence .ft-vstars {
    position: fixed;
    inset: 0;
    z-index: -8;
    overflow: hidden;
    pointer-events: none;
}

html.f-f-online-now-presence .ft-vstar {
    position: absolute;
    width: var(--sz, 3px);
    height: var(--sz, 3px);
    margin: calc(var(--sz, 3px) / -2) 0 0 calc(var(--sz, 3px) / -2);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px 1px rgba(205, 220, 255, 0.85), 0 0 16px 4px rgba(120, 150, 255, 0.32);
    opacity: 0.85;
}

html.cx-motion.f-f-online-now-presence .ft-vstar {
    animation: ft-twinkle var(--tw, 4s) ease-in-out var(--dl, 0s) infinite;
}

@keyframes ft-twinkle {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7); }
}

html.f-f-online-now-presence .ft-vstar.is-you {
    opacity: 1;
    box-shadow: 0 0 6px 2px #fff, 0 0 18px 6px #2e61ff;
}

html.cx-motion.f-f-online-now-presence .ft-vstar.is-you {
    animation: ft-breathe 3.6s ease-in-out infinite;
}

@keyframes ft-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

html.f-f-online-now-presence .ft-vstar-you {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    font: 600 10px/1 'Inter', system-ui, sans-serif;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 0 8px rgba(120, 150, 255, 0.9);
    white-space: nowrap;
}

/* near the right edge the label sits on the star's left, so it is never cut off */
html.f-f-online-now-presence .ft-vstar.is-flip .ft-vstar-you {
    left: auto;
    right: calc(100% + 8px);
}

html.cx-motion.f-f-online-now-presence .ft-vstar.is-new {
    animation: ft-star-in 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes ft-star-in {
    0% { opacity: 0; transform: scale(0); }
    40% { opacity: 1; transform: scale(2.4); }
    100% { opacity: 0.9; transform: scale(1); }
}

html.f-f-online-now-presence .ft-vstar.is-leaving {
    opacity: 0;
    transform: scale(0.3);
    animation: none;
}

html.cx-motion.f-f-online-now-presence .ft-vstar.is-leaving {
    transition: opacity 0.85s ease, transform 0.85s ease;
}

html.f-f-online-now-presence .ft-vstar.is-you.is-ping {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.32), 0 0 8px 3px #fff, 0 0 26px 10px #275aff;
}

html.cx-motion.f-f-online-now-presence .ft-vstar.is-you.is-ping::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    animation: ft-ring 1.25s ease-out 2;
}

@keyframes ft-ring {
    from { transform: scale(0.4); opacity: 1; }
    to { transform: scale(4.2); opacity: 0; }
}

/* respect: the fire pill as a real button */
html.f-f-respect-counter .ft-respect {
    gap: 4px;
}

html.f-f-respect-counter .ft-respect .ft-flame {
    width: 14px;
    height: 14px;
    color: #fff;
}

html.f-f-respect-counter .ft-respect.is-sent {
    border-color: rgba(255, 138, 31, 0.5);
    background: rgba(56, 22, 6, 0.85);
}

html.f-f-respect-counter .ft-respect.is-sent .ft-flame {
    color: #ff8a1f;
    filter: drop-shadow(0 0 6px rgba(255, 122, 26, 0.95));
}

html.cx-motion.f-f-respect-counter .ft-respect.ft-pop {
    animation: ft-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes ft-pop {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.18); }
}

html.cx-motion.f-f-respect-counter .ft-respect.ft-nope {
    animation: ft-nope 0.38s ease;
}

@keyframes ft-nope {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

html.f-f-respect-counter .ft-burst {
    position: fixed;
    z-index: 7000;
    width: 0;
    height: 0;
    pointer-events: none;
}

html.f-f-respect-counter .ft-burst-p {
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 5px rgba(255, 122, 26, 0.9));
}

html.f-f-respect-counter .ft-burst-p .icon {
    display: block;
    width: 100%;
    height: 100%;
}

html.f-f-respect-counter .ft-burst-plus {
    position: absolute;
    left: 0;
    top: 0;
    font: 800 17px/1 'Inter', system-ui, sans-serif;
    color: #fff;
    text-shadow: 0 0 6px rgba(255, 138, 31, 1), 0 0 16px rgba(255, 90, 31, 0.9);
    white-space: nowrap;
}

/* ===================================================================================
   3. Discord presence (Lanyard) + 12. Baku status line
   =================================================================================== */
html.f-f-discord-presence-lanyard .ft-pdot {
    position: absolute;
    right: 2.5%;
    bottom: 2.5%;
    z-index: 3;
    box-sizing: border-box;
    width: 27px;
    height: 27px;
    border: 5px solid #000;
    border-radius: 50%;
    background: #23a55a;
}

html.f-f-discord-presence-lanyard .ft-pdot[data-status="idle"] { background: #f0b232; }
html.f-f-discord-presence-lanyard .ft-pdot[data-status="dnd"] { background: #f23f43; }

:is(html.f-f-discord-presence-lanyard, html.f-f-baku-clock-status) .ft-status-line {
    display: flex;
    flex-basis: 100%;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    margin: 6px auto 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.22);
    white-space: nowrap;
}

html.cx-motion:is(.f-f-discord-presence-lanyard, .f-f-baku-clock-status) .ft-status-line {
    transition: opacity 0.22s ease;
}

html.f-f-discord-presence-lanyard .ft-status-line.is-swap {
    opacity: 0;
}

:is(html.f-f-discord-presence-lanyard, html.f-f-baku-clock-status) .ft-status-line .ft-pl-ic {
    flex: none;
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.82);
}

html.f-f-discord-presence-lanyard .ft-status-line .ft-pl-img {
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

html.f-f-discord-presence-lanyard .ft-status-line .ft-pl-ic--spotify {
    color: #1ed760;
    filter: drop-shadow(0 0 6px rgba(30, 215, 96, 0.45));
}

:is(html.f-f-discord-presence-lanyard, html.f-f-baku-clock-status) .ft-status-line .ft-pl-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.f-f-discord-presence-lanyard .ft-status-line .ft-pl-lead {
    color: rgba(255, 255, 255, 0.62);
}


/* ===================================================================================
   4. AzPixel live card (inside the card, under the icons)
   =================================================================================== */
html.f-f-azpixel-live-card .ft-azp {
    display: flex;
    align-items: center;
    gap: 11px;
    max-width: 520px;
    margin: -8px auto 18px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)), var(--player-tint, rgba(0, 15, 50, 0.45));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 26px rgba(0, 0, 0, 0.22);
    color: #fff;
    text-align: left;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s ease;
}

html.f-f-follower-counts.f-f-azpixel-live-card .ft-azp {
    margin-top: -1px;
}

html.f-f-azpixel-live-card .ft-azp:hover {
    border-color: rgba(255, 255, 255, 0.26);
}

html.f-f-azpixel-live-card .ft-azp:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

html.f-f-azpixel-live-card .ft-azp-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 4px 14px rgba(0, 98, 224, 0.4);
}

html.f-f-azpixel-live-card .ft-azp-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

:is(html.f-f-azpixel-live-card, html.ft-sheet-open) .ft-azp-name {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.1;
}

html.f-f-azpixel-live-card .ft-azp-name > b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(html.f-f-azpixel-live-card, html.ft-sheet-open) .ft-azp-tag {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 4px;
    padding: 3px 6px 3px 5px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.11);
    font: 600 10.5px/1 'Geist Mono', ui-monospace, monospace;
    letter-spacing: 0.04em;
    color: #fff;
    vertical-align: middle;
}

:is(html.f-f-azpixel-live-card, html.ft-sheet-open) .ft-azp-tag-ic {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, #ffe27a, #ffc300 55%, #d99700);
    transform: rotate(45deg);
}

html.f-f-azpixel-live-card .ft-azp-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 15px;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.74);
    white-space: nowrap;
}

html.f-f-azpixel-live-card :is(.ft-azp-m, .ft-azp-o) {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

html.f-f-azpixel-live-card .ft-sdot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9aa3b5;
}

html.f-f-azpixel-live-card .ft-azp-sep {
    opacity: 0.45;
}

html.f-f-azpixel-live-card .ft-azp-join {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    background: #5865f2;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.45);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

html.f-f-azpixel-live-card .ft-azp:hover .ft-azp-join {
    background: #6b77f5;
}

html.f-f-azpixel-live-card .ft-azp-join-ic {
    width: 15px;
    height: 15px;
}

@media (max-width: 420px) {
    html.f-f-azpixel-live-card .ft-azp { gap: 9px; padding: 7px; }
    html.f-f-azpixel-live-card .ft-azp-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
    html.f-f-azpixel-live-card .ft-azp-stats { gap: 5px; font-size: 11.5px; }
    html.f-f-azpixel-live-card .ft-azp-join { height: 32px; padding: 0 12px; }
    html.f-f-azpixel-live-card .ft-azp-join-ic { display: none; }
}

/* ===================================================================================
   5. Real playlist — queue button in the progress row
   =================================================================================== */
html.f-f-real-playlist .ft-queue-btn {
    display: grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    margin: 0 -5px 0 -4px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

html.f-f-real-playlist .ft-queue-btn .icon {
    width: 17px;
    height: 17px;
}

html.f-f-real-playlist .ft-queue-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

html.f-f-real-playlist .ft-queue-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
    color: #fff;
}

/* ===================================================================================
   6. akif FM chip (sticker on the player's top edge)
   =================================================================================== */
html.f-f-akif-fm-radio .music-player {
    position: relative;
}

html.f-f-akif-fm-radio .ft-fm {
    position: absolute;
    top: -12px;
    left: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 28px);
    height: 23px;
    padding: 0 10px 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(9, 10, 18, 0.94);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    font: 500 11px/1 'Inter', system-ui, sans-serif;
    color: #fff;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

html.f-f-akif-fm-radio .ft-fm:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

html.f-f-akif-fm-radio .ft-fm:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

html.f-f-akif-fm-radio .ft-fm-dot {
    position: relative;
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8b93a7;
}

html.f-f-akif-fm-radio .ft-fm.is-live .ft-fm-dot {
    background: #ff3b47;
    box-shadow: 0 0 8px rgba(255, 59, 71, 0.9);
}

html.cx-motion.f-f-akif-fm-radio .ft-fm.is-live.is-playing .ft-fm-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #ff3b47;
    animation: ft-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

html.f-f-akif-fm-radio .ft-fm-live {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ff6b74;
}

html.f-f-akif-fm-radio .ft-fm-live[hidden] {
    display: none;
}

html.f-f-akif-fm-radio .ft-fm-brand {
    font-weight: 700;
    letter-spacing: 0.01em;
}

html.f-f-akif-fm-radio .ft-fm-text {
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.76);
}

html.f-f-akif-fm-radio .ft-fm-text::before {
    content: '·';
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.4);
}

html.f-f-akif-fm-radio .ft-fm:not(.is-live) .ft-fm-text {
    color: #fff;
}

/* ===================================================================================
   7. Language pill (bottom-left, mirrors the volume/mixer dock)
   =================================================================================== */
html.f-f-i18n-az-en-tr .ft-lang {
    position: fixed;
    left: calc(20px + env(safe-area-inset-left, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 2px;
    box-sizing: border-box;
    width: 148px;
    height: 40px;
    padding: 3px;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    background: rgba(18, 18, 18, 0.9);
}

html.f-f-i18n-az-en-tr .ft-lang-ic {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0 4px 0 7px;
    color: rgba(255, 255, 255, 0.7);
}

html.f-f-i18n-az-en-tr .ft-lang-btn {
    flex: 1;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: 600 12px/1 'Inter', system-ui, sans-serif;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

html.f-f-i18n-az-en-tr .ft-lang-btn:hover {
    color: #fff;
}

html.f-f-i18n-az-en-tr .ft-lang-btn[aria-pressed="true"] {
    background: #fff;
    color: #05070f;
}

html.cx-motion.f-f-i18n-az-en-tr .ft-lang-btn {
    transition: background-color 0.2s ease, color 0.2s ease;
}

html.f-f-i18n-az-en-tr .ft-lang-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 420px) {
    html.f-f-i18n-az-en-tr .ft-lang { width: 112px; }
    html.f-f-i18n-az-en-tr .ft-lang-ic { display: none; }
}

/* the enter splash (motion module) hides the dock: the bottom-left controls and the visitor stars
   (with their "sən" label) step aside with it */
html.mx-splash-open :is(.ft-lang, .ft-theme-btn, .ft-theme-pop, .ft-vstars) {
    visibility: hidden;
}

/* ===================================================================================
   8 + 11 + 13. Call-to-action pills under the bio
   =================================================================================== */
:is(html.f-f-collab-inbox, html.f-f-anon-questions, html.f-f-tiktok-latest-embed) .ft-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    margin: 12px 3px 0;
    padding: 0 13px 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    background: rgba(6, 8, 22, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    font: 500 13px/1 'Inter', system-ui, sans-serif;
    color: #fff;
    text-shadow: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

html.cx-motion:is(.f-f-collab-inbox, .f-f-anon-questions, .f-f-tiktok-latest-embed) .ft-cta {
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

:is(html.f-f-collab-inbox, html.f-f-anon-questions, html.f-f-tiktok-latest-embed) .ft-cta:hover {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.1);
}

html.cx-motion:is(.f-f-collab-inbox, .f-f-anon-questions, .f-f-tiktok-latest-embed) .ft-cta:active {
    transform: scale(0.96);
}

:is(html.f-f-collab-inbox, html.f-f-anon-questions, html.f-f-tiktok-latest-embed) .ft-cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

:is(html.f-f-collab-inbox, html.f-f-anon-questions, html.f-f-tiktok-latest-embed) .ft-cta .ft-cta-ic {
    flex: none;
    width: 15px;
    height: 15px;
}

html.f-f-collab-inbox .ft-cta--primary {
    border-color: rgba(66, 124, 255, 0.75);
    background: rgba(8, 35, 140, 0.77);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 18px rgba(0, 51, 255, 0.5);
}

html.f-f-collab-inbox .ft-cta--primary:hover {
    background: rgba(6, 42, 186, 0.79);
}

:is(html.f-f-anon-questions, html.f-f-tiktok-latest-embed) .ft-cta .ft-cta-s,
:is(html.f-f-anon-questions, html.f-f-tiktok-latest-embed) .ft-cta.ft-has-short.ft-short .ft-cta-l {
    display: none;
}

:is(html.f-f-anon-questions, html.f-f-tiktok-latest-embed) .ft-cta.ft-has-short.ft-short .ft-cta-s {
    display: inline;
}

:is(html.f-f-collab-inbox, html.f-f-anon-questions, html.f-f-tiktok-latest-embed) .ft-cta.ft-short {
    gap: 5px;
    margin-inline: 2px;
    padding: 0 10px 0 9px;
    font-size: 12.5px;
}

/* ===================================================================================
   9. Briefcase chip in the social row
   =================================================================================== */
html.f-f-business-ventures-sheet .social-links {
    gap: clamp(6px, calc((100% - 252px) / 6), 16px);
}

html.f-v-brand-hover-socials.f-f-business-ventures-sheet .social-links {
    gap: clamp(4px, calc((100% - 7 * clamp(36px, 10.5vw, 46px)) / 6), 8px);
}

html.f-v-brand-hover-socials.f-f-business-ventures-sheet .social-link {
    width: clamp(36px, 10.5vw, 46px);
    height: clamp(36px, 10.5vw, 46px);
}

/* very narrow phones (≤ 340 px): slightly smaller chips keep all seven on one row (no lone briefcase) */
@media (max-width: 340px) {
    html.f-v-brand-hover-socials.f-f-business-ventures-sheet .social-links {
        gap: clamp(3px, calc((100% - 7 * clamp(30px, 10vw, 46px)) / 6), 8px);
    }

    html.f-v-brand-hover-socials.f-f-business-ventures-sheet .social-link {
        width: clamp(30px, 10vw, 46px);
        height: clamp(30px, 10vw, 46px);
    }
}

html.f-f-business-ventures-sheet .ft-biz-chip {
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.07);
    font: inherit;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

html.f-f-business-ventures-sheet .ft-biz-chip .icon {
    width: 19px;
    height: 19px;
}

html.f-f-business-ventures-sheet .ft-biz-chip:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

html.f-f-business-ventures-sheet .ft-biz-chip:focus-visible .tooltip {
    opacity: 1;
}

@media (max-width: 620px) {
    html.f-f-business-ventures-sheet .ft-biz-chip .icon {
        width: 17px;
        height: 17px;
    }
}

/* ===================================================================================
   10. Share button (first in the fixed dock)
   =================================================================================== */
html.f-f-share-qr-copy .ft-share-btn {
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}

html.f-f-share-qr-copy .ft-share-btn .icon {
    width: 18px;
    height: 18px;
}

html.f-f-share-qr-copy .ft-share-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ===================================================================================
   12. Baku clock pill (banner top-left)
   =================================================================================== */
html.f-f-baku-clock-status .ft-clock {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 150;
    gap: 5px;
}

html.f-f-baku-clock-status .ft-clock .ft-clock-ic {
    width: 13px;
    height: 13px;
    color: #fff;
}

html.f-f-baku-clock-status .ft-clock .ft-city {
    color: rgba(255, 255, 255, 0.78);
}

html.f-f-baku-clock-status .ft-clock .ft-time {
    display: inline-flex;
    font-variant-numeric: tabular-nums;
}

html.f-f-baku-clock-status .ft-clock .ft-diff {
    color: rgba(255, 255, 255, 0.62);
}

html.f-f-baku-clock-status .ft-clock .ft-diff[hidden] {
    display: none;
}

html.cx-motion.f-f-baku-clock-status .ft-clock .ft-colon {
    animation: ft-blink 2s steps(1) infinite;
}

@keyframes ft-blink {
    50% { opacity: 0.35; }
}

html.f-f-baku-clock-status .ft-clock.ft-compact :is(.ft-city, .ft-diff) {
    display: none;
}

html.f-f-baku-clock-status .ft-clock.ft-row2 {
    top: 36px;
}

/* ===================================================================================
   14. Synced lyric line (under the progress bar)
   =================================================================================== */
html.f-f-synced-lyrics .ft-lyric {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 7px 0 -3px;
    padding: 2px 0;
    border: 0;
    border-radius: 6px;
    background: none;
    font: 500 12.5px/18px 'Inter', system-ui, sans-serif;
    color: #d7deff;
    text-shadow: 0 0 10px rgba(0, 51, 255, 0.7);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

html.f-f-synced-lyrics .ft-lyric .ft-ly-ic {
    flex: none;
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

html.f-f-synced-lyrics .ft-lyric .ft-ly-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.f-f-synced-lyrics .ft-lyric[aria-pressed="false"] {
    color: rgba(255, 255, 255, 0.42);
    text-shadow: none;
}

html.f-f-synced-lyrics .ft-lyric:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

html.cx-motion.f-f-synced-lyrics .ft-lyric .ft-ly-text.ft-ly-in {
    animation: ft-ly-in 0.38s ease-out;
}

@keyframes ft-ly-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: none; }
}

/* ===================================================================================
   15. Countdown chip (banner, left column)
   =================================================================================== */
html.f-f-kv-drops-countdown .ft-drop {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 150;
    gap: 5px;
    max-width: calc(100% - 16px);
    border-color: rgba(48, 108, 255, 0.69);
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

html.f-f-kv-drops-countdown a.ft-drop {
    cursor: pointer;
}

html.f-f-kv-drops-countdown .ft-drop.ft-row2 { top: 36px; }
html.f-f-kv-drops-countdown .ft-drop.ft-row3 { top: 64px; }

/* narrow phones: the chip shares row 2 with the compact clock (features.js sets its left), a little tighter */
html.f-f-kv-drops-countdown .ft-drop.ft-beside {
    gap: 4px;
    padding-inline: 7px;
}

html.f-f-kv-drops-countdown a.ft-drop:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

html.f-f-kv-drops-countdown .ft-drop:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

html.f-f-kv-drops-countdown .ft-drop-icw {
    display: inline-flex;
    flex: none;
    align-items: center;
}

html.f-f-kv-drops-countdown .ft-drop .ft-drop-ic {
    width: 13px;
    height: 13px;
    color: #ffd27a;
}

html.f-f-kv-drops-countdown .ft-drop .ft-drop-label {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
}

html.f-f-kv-drops-countdown .ft-drop .ft-drop-sep {
    color: rgba(255, 255, 255, 0.45);
}

html.f-f-kv-drops-countdown .ft-drop .ft-drop-time {
    flex: none;
    font-variant-numeric: tabular-nums;
}

html.f-f-kv-drops-countdown .ft-drop.is-live {
    border-color: rgba(255, 59, 71, 0.6);
    background: rgba(58, 6, 12, 0.88);
}

html.f-f-kv-drops-countdown .ft-drop.is-live .ft-drop-time {
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ff8a92;
}

html.f-f-kv-drops-countdown .ft-drop-dot {
    position: relative;
    flex: none;
    width: 8px;
    height: 8px;
    margin: 0 2px;
    border-radius: 50%;
    background: #ff3b47;
    box-shadow: 0 0 8px rgba(255, 59, 71, 0.95);
}

html.cx-motion.f-f-kv-drops-countdown .ft-drop-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #ff3b47;
    animation: ft-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ===================================================================================
   16. Theme presets — the palette is a set of token overrides on <html>; every module reads
       the --accent family, so a preset recolours the whole page. Blue = the default tokens.
   =================================================================================== */
html.f-f-theme-presets-seasonal[data-ft-theme="purple"] {
    --accent: #8b2bff;
    --overlay: #7b2bff55;
    --banner-tint: #6a00ff66;
    --divider: #2e0063;
    --divider-soft: rgba(46, 0, 99, 0.4);
    --player-tint: rgba(26, 0, 52, 0.48);
    --eq-tint: rgb(30, 10, 54);
}

/* --overlay is only ever used as a background, so the winter skin may use a gradient: a frosty, lighter sky */
html.f-f-theme-presets-seasonal[data-ft-theme="winter"] {
    --accent: #7cb4ff;
    --overlay: linear-gradient(180deg, rgba(170, 205, 255, 0.34) 0%, rgba(60, 110, 255, 0.3) 55%, rgba(30, 70, 200, 0.36) 100%);
    --banner-tint: #5a8cff55;
    --divider: #26498f;
    --divider-soft: rgba(38, 73, 143, 0.4);
    --player-tint: rgba(12, 28, 64, 0.48);
    --eq-tint: rgb(14, 26, 54);
}

/* palette button (bottom-left) + popover */
html.f-f-theme-presets-seasonal .ft-theme-btn {
    position: fixed;
    left: calc(20px + env(safe-area-inset-left, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 200;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #2a2a2a;
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.9);
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

html.f-f-i18n-az-en-tr.f-f-theme-presets-seasonal .ft-theme-btn {
    left: calc(20px + 148px + 10px + env(safe-area-inset-left, 0px));
}

@media (max-width: 420px) {
    html.f-f-i18n-az-en-tr.f-f-theme-presets-seasonal .ft-theme-btn {
        left: calc(20px + 112px + 8px + env(safe-area-inset-left, 0px));
    }
}

/* very narrow phones (≤ 340 px): a slimmer pill at the dock's 16 px edge, so the palette stays clear of the
   share / mute / mixer dock on the right */
@media (max-width: 340px) {
    html.f-f-i18n-az-en-tr .ft-lang {
        left: calc(16px + env(safe-area-inset-left, 0px));
        width: 100px;
    }

    html.f-f-i18n-az-en-tr.f-f-theme-presets-seasonal .ft-theme-btn {
        left: calc(16px + 100px + 8px + env(safe-area-inset-left, 0px));
    }
}

/* desktop: the palette stands on the language pill, so the bottom-left dock stays 148 px wide and a
   card in a ~1000 px window does not run into it */
@media (min-width: 900px) {
    html.f-f-i18n-az-en-tr.f-f-theme-presets-seasonal .ft-theme-btn {
        left: calc(20px + env(safe-area-inset-left, 0px));
        bottom: calc(20px + 40px + 10px + env(safe-area-inset-bottom, 0px));
    }

    html.f-f-i18n-az-en-tr.f-f-theme-presets-seasonal .ft-theme-pop {
        bottom: calc(20px + 40px + 10px + 40px + 12px + env(safe-area-inset-bottom, 0px));
    }
}

/* a thin ring in the preset colours says "themes" at a glance */
html.f-f-theme-presets-seasonal .ft-theme-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    z-index: -1;
    border-radius: 50%;
    background: conic-gradient(from 200deg, #0033ff, #8b2bff, #7cb4ff, #0033ff);
    -webkit-mask: radial-gradient(circle, transparent 20.5px, #000 21px);
    mask: radial-gradient(circle, transparent 20.5px, #000 21px);
    opacity: 0.85;
}

html.f-f-theme-presets-seasonal .ft-theme-btn .icon {
    width: 18px;
    height: 18px;
}

html.f-f-theme-presets-seasonal .ft-theme-btn[aria-expanded="true"] {
    background: rgba(40, 40, 40, 0.95);
}

html.f-f-theme-presets-seasonal .ft-theme-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

html.f-f-theme-presets-seasonal .ft-theme-pop {
    position: fixed;
    left: calc(16px + env(safe-area-inset-left, 0px));
    bottom: calc(20px + 40px + 12px + env(safe-area-inset-bottom, 0px));
    z-index: 2900;
    box-sizing: border-box;
    width: min(364px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    background: var(--eq-tint, rgb(10, 20, 50));   /* solid: the page must not show through */
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-family: 'Inter', system-ui, sans-serif;
    color: #fff;
    text-align: left;
    transform-origin: 0 100%;
}

html.f-f-theme-presets-seasonal .ft-theme-pop[hidden] {
    display: none;
}

html.cx-motion.f-f-theme-presets-seasonal .ft-theme-pop:not([hidden]) {
    animation: ft-pop-in 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

@keyframes ft-pop-in {
    from { opacity: 0; transform: translateY(8px) scale(0.94); }
    to { opacity: 1; transform: none; }
}

html.f-f-theme-presets-seasonal .ft-theme-h,
html.f-f-theme-presets-seasonal .ft-theme-foot {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.66);
}

html.f-f-theme-presets-seasonal .ft-theme-h {
    margin: 0 2px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

html.f-f-theme-presets-seasonal .ft-theme-foot {
    margin: 10px 2px 0;
}

html.f-f-theme-presets-seasonal .ft-theme-auto {
    margin: 0;
}

html.f-f-theme-presets-seasonal .ft-theme-h-ic {
    flex: none;
    width: 14px;
    height: 14px;
}

html.f-f-theme-presets-seasonal .ft-theme-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

html.f-f-theme-presets-seasonal .ft-theme-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 46px;
    padding: 0 10px 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.05);
    font: inherit;
    color: #fff;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

html.f-f-theme-presets-seasonal .ft-theme-chip:hover {
    background: rgba(255, 255, 255, 0.09);
}

html.f-f-theme-presets-seasonal .ft-theme-chip[aria-pressed="true"] {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
}

html.f-f-theme-presets-seasonal .ft-theme-chip:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

html.f-f-theme-presets-seasonal .ft-swatch {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.4);
}

html.f-f-theme-presets-seasonal .ft-swatch--blue { background: linear-gradient(135deg, #3d63ff, #0033ff 55%, #001657); }
html.f-f-theme-presets-seasonal .ft-swatch--purple { background: linear-gradient(135deg, #b77bff, #8b2bff 50%, #2e0063); }
html.f-f-theme-presets-seasonal .ft-swatch--winter { background: radial-gradient(circle at 35% 30%, #ffffff, #b9d6ff 35%, #7cb4ff 60%, #26498f); }

html.f-f-theme-presets-seasonal .ft-theme-txt {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

html.f-f-theme-presets-seasonal .ft-theme-name {
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.f-f-theme-presets-seasonal .ft-theme-sub {
    font-size: 11px;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.58);
}

html.f-f-theme-presets-seasonal .ft-theme-ok {
    display: none;
    flex: none;
    width: 14px;
    height: 14px;
}

html.f-f-theme-presets-seasonal .ft-theme-chip[aria-pressed="true"] .ft-theme-ok {
    display: inline-block;
}

/* falling snow (winter) — between the sparkles (z 50) and the card (z 100) */
html.f-f-theme-presets-seasonal .ft-weather {
    position: fixed;
    inset: 0;
    z-index: 60;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* lite tier (weak phones): no snow canvas */
html.lite .ft-weather {
    display: none;
}

/* circular reveal from the tap point (View Transitions) — only during this module's own transition */
html.f-f-theme-presets-seasonal.ft-vt::view-transition-old(root),
html.f-f-theme-presets-seasonal.ft-vt::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

/* ===================================================================================
   18. Follower counts (under the icons, inside the row's bottom padding)
   =================================================================================== */
html.f-f-follower-counts .social-link .ft-fcount {
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    font: 600 10px/1 'Geist Mono', ui-monospace, monospace;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.86);
    white-space: nowrap;
    pointer-events: none;
}

html.f-m-social-icon-feel.f-f-follower-counts .social-link .ft-fcount {
    top: calc(100% - 7px);
}

html.f-v-brand-hover-socials.f-f-follower-counts .social-link .ft-fcount {
    top: calc(100% + 4px);
}

/* ===================================================================================
   19. Easter eggs
   =================================================================================== */
html.f-f-easter-eggs .avatar-container {
    touch-action: manipulation;   /* seven quick taps must not zoom the page */
}

html.f-f-easter-eggs .ft-egg-ring {
    position: absolute;
    inset: -10px;
    z-index: -1;
    border-radius: 50%;
    background: conic-gradient(var(--accent, #0033ff), #ffffff, #c8d6ff, var(--accent, #0033ff));
    filter: blur(10px);
    opacity: 0.9;
    pointer-events: none;
}

html.cx-motion.f-f-easter-eggs .ft-egg-ring {
    animation: ft-egg-ring 2.7s ease-out forwards;
}

@keyframes ft-egg-ring {
    0% { opacity: 0; transform: scale(0.8) rotate(0deg); }
    20% { opacity: 1; transform: scale(1.06) rotate(60deg); }
    100% { opacity: 0; transform: scale(1.2) rotate(240deg); }
}

html.cx-motion.f-f-easter-eggs .avatar-container.ft-egg-tap {
    animation: ft-egg-tap 0.22s ease;
}

@keyframes ft-egg-tap {
    50% { transform: scale(0.94); }
}

/* ===================================================================================
   Dialogs ("sheets") — exist only while open (html.ft-sheet-open)
   =================================================================================== */
html.ft-sheet-open .ft-layer {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: #f3f5ff;
    text-align: left;
    -webkit-font-smoothing: antialiased;
}

html.ft-sheet-open .ft-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 3, 14, 0.62);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    touch-action: none;
}

html.lite.ft-sheet-open .ft-backdrop {
    background: rgba(1, 3, 14, 0.8);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

html.ft-sheet-open .ft-sheet {
    --ft-line: rgba(255, 255, 255, 0.1);
    --ft-ink2: rgba(233, 238, 255, 0.72);
    --ft-ink3: rgba(233, 238, 255, 0.52);
    --ft-hi: #5a8aff;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    max-height: min(90dvh, 780px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(180deg, #0b1742, #070a18 42%);
    box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    outline: none;
}

html.ft-sheet-open .ft-sheet-grip {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 38px;
    height: 4px;
    margin-left: -19px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.22);
}

@media (min-width: 621px) {
    html.ft-sheet-open .ft-layer {
        align-items: center;
        padding: 24px;
    }

    html.ft-sheet-open .ft-sheet {
        width: min(460px, 100%);
        max-height: min(88vh, 780px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 22px;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    html.ft-sheet-open .ft-sheet--wide {
        width: min(640px, 100%);
    }

    html.ft-sheet-open .ft-sheet--share {
        width: min(580px, 100%);
    }

    html.ft-sheet-open .ft-sheet-grip {
        display: none;
    }
}

html.cx-motion.ft-sheet-open .ft-backdrop {
    animation: ft-fade-in 0.24s ease both;
}

html.cx-motion.ft-sheet-open .ft-sheet {
    animation: ft-sheet-up 0.32s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

@media (min-width: 621px) {
    html.cx-motion.ft-sheet-open .ft-sheet {
        animation-name: ft-sheet-zoom;
    }
}

html.cx-motion.ft-sheet-open .ft-layer.is-closing .ft-backdrop {
    animation: ft-fade-out 0.17s ease both;
}

html.cx-motion.ft-sheet-open .ft-layer.is-closing .ft-sheet {
    animation: ft-fade-out 0.17s ease both;
}

@keyframes ft-fade-in { from { opacity: 0; } }
@keyframes ft-fade-out { to { opacity: 0; } }
@keyframes ft-sheet-up { from { opacity: 0.6; transform: translateY(48px); } }
@keyframes ft-sheet-zoom { from { opacity: 0.6; transform: translateY(12px) scale(0.96); } }

html.ft-sheet-open .ft-sheet-head {
    display: flex;
    flex: none;
    align-items: center;
    gap: 12px;
    padding: 20px 16px 12px 20px;
}

html.ft-sheet-open .ft-sheet-badge {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 13px;
    background: rgba(20, 81, 255, 0.42);
    box-shadow: 0 0 22px rgba(0, 51, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    color: #fff;
}

html.ft-sheet-open .ft-sheet-badge .icon {
    width: 20px;
    height: 20px;
}

html.ft-sheet-open .ft-sheet-titles {
    flex: 1;
    min-width: 0;
}

html.ft-sheet-open .ft-sheet-title {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #fff;
}

html.ft-sheet-open .ft-sheet-sub {
    margin: 3px 0 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--ft-ink2);
}

html.ft-sheet-open .ft-sheet-close {
    display: grid;
    flex: none;
    align-self: flex-start;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: -2px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

html.ft-sheet-open .ft-sheet-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

html.ft-sheet-open .ft-sheet-close .icon {
    width: 18px;
    height: 18px;
}

html.ft-sheet-open .ft-sheet-body {
    flex: 1;
    min-height: 0;
    padding: 4px 20px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

html.ft-sheet-open .ft-layer :focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

html.ft-sheet-open .ft-layer .icon {
    display: inline-block;
    flex: none;
}

html.ft-sheet-open .ft-offscreen,
html.ft-sheet-open .ft-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

/* ---- buttons ---- */
html.ft-sheet-open .ft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 600 15px/1 'Inter', system-ui, sans-serif;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

html.ft-sheet-open .ft-btn .icon {
    width: 17px;
    height: 17px;
}

html.ft-sheet-open .ft-btn--primary {
    background: #fff;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.16);
    color: #05070f;
}

html.ft-sheet-open .ft-btn--primary:hover {
    background: #e9edff;
}

html.ft-sheet-open .ft-btn--ghost {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

html.ft-sheet-open .ft-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.11);
}

html.ft-sheet-open .ft-btn--block {
    width: 100%;
}

html.ft-sheet-open .ft-btn + .ft-btn--block,
html.ft-sheet-open .ft-tt-note + .ft-btn--block {
    margin-top: 12px;
}

html.ft-sheet-open .ft-btn:disabled {
    cursor: progress;
    opacity: 0.75;
}

html.cx-motion.ft-sheet-open .ft-btn {
    transition: background-color 0.18s ease, transform 0.18s ease;
}

html.cx-motion.ft-sheet-open .ft-btn:not(:disabled):active {
    transform: scale(0.98);
}

/* sending state: the send icon turns into a small spinner */
html.ft-sheet-open .ft-spin {
    display: none;
    flex: none;
    width: 15px;
    height: 15px;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}

html.ft-sheet-open .ft-btn.is-busy .ft-spin,
html.ft-sheet-open .ft-tt-wait .ft-spin {
    display: inline-block;
}

html.ft-sheet-open .ft-btn.is-busy .ft-btn-ic {
    display: none;
}

html.cx-motion.ft-sheet-open .ft-spin {
    animation: ft-spin 0.8s linear infinite;
}

@keyframes ft-spin {
    to { transform: rotate(360deg); }
}

/* ---- forms ---- */
html.ft-sheet-open .ft-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

html.ft-sheet-open .ft-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 420px) {
    html.ft-sheet-open .ft-row2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

html.ft-sheet-open .ft-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

html.ft-sheet-open .ft-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ft-ink2);
}

html.ft-sheet-open .ft-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.055);
    font: 400 16px/1.35 'Inter', system-ui, sans-serif;   /* 16 px: iOS does not zoom into the field */
    color: #fff;
    -webkit-user-select: text;
    user-select: text;
}

html.ft-sheet-open .ft-input::placeholder {
    color: rgba(233, 238, 255, 0.56);   /* ≈ 4.6:1 on the field; typed text (#fff) stays brighter */
}

html.ft-sheet-open .ft-input:focus {
    border-color: var(--ft-hi);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 51, 255, 0.45);
}

html.ft-sheet-open .ft-input[aria-invalid="true"] {
    border-color: #ff6b74;
}

html.ft-sheet-open .ft-textarea {
    min-height: 104px;
    padding-bottom: 24px;
    resize: vertical;
}

html.ft-sheet-open .ft-count {
    position: absolute;
    right: 10px;
    bottom: 8px;
    font: 500 11px/1 'Geist Mono', ui-monospace, monospace;
    color: var(--ft-ink3);
    pointer-events: none;
}

html.ft-sheet-open .ft-count.is-near {
    color: #ffb86b;
}

/* segmented radio chips (Reklam / Collab / Biznes) */
html.ft-sheet-open .ft-seg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

html.ft-sheet-open .ft-seg-in {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

html.ft-sheet-open .ft-seg-btn {
    display: grid;
    place-items: center;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
    font-weight: 600;
    color: var(--ft-ink2);
    cursor: pointer;
}

html.ft-sheet-open .ft-seg-in:checked + .ft-seg-btn {
    border-color: #fff;
    background: #fff;
    color: #05070f;
}

html.ft-sheet-open .ft-seg-in:focus-visible + .ft-seg-btn {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* checkbox */
html.ft-sheet-open .ft-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
}

html.ft-sheet-open .ft-check-in {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

html.ft-sheet-open .ft-check-box {
    display: grid;
    flex: none;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 7px;
    color: transparent;
}

html.ft-sheet-open .ft-check-box .icon {
    width: 14px;
    height: 14px;
}

html.ft-sheet-open .ft-check-in:checked + .ft-check-box {
    border-color: #fff;
    background: #fff;
    color: #05070f;
}

html.ft-sheet-open .ft-check-in:focus-visible + .ft-check-box {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

html.ft-sheet-open .ft-err {
    margin: -4px 0 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #ff8a92;
}

html.ft-sheet-open .ft-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--ft-ink3);
}

html.ft-sheet-open .ft-form .ft-note {
    margin-top: 0;
}

html.ft-sheet-open .ft-note-ic {
    flex: none;
    width: 14px;
    height: 14px;
    margin-top: 2px;
}

html.ft-sheet-open .ft-selectable {
    -webkit-user-select: all;
    user-select: all;
}

/* success state */
html.ft-sheet-open .ft-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 6px 6px;
    text-align: center;
}

html.ft-sheet-open .ft-done-ic {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: #23a55a;
    box-shadow: 0 0 30px rgba(35, 165, 90, 0.55);
    color: #fff;
}

html.ft-sheet-open .ft-done-ic .icon {
    width: 28px;
    height: 28px;
}

html.cx-motion.ft-sheet-open .ft-done-ic {
    animation: ft-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}

html.ft-sheet-open .ft-done-h {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
    color: #fff;
    outline: none;
}

html.ft-sheet-open .ft-done-p {
    max-width: 340px;
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--ft-ink2);
}

html.ft-sheet-open .ft-done-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* direct contact rows (collab) */
html.ft-sheet-open .ft-direct {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--ft-line);
}

html.ft-sheet-open .ft-direct-h {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ft-ink2);
}

html.ft-sheet-open .ft-direct-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 8px 10px 8px 12px;
    border: 1px solid var(--ft-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    text-decoration: none;
}

html.ft-sheet-open .ft-direct-row + .ft-direct-row {
    margin-top: 8px;
}

html.ft-sheet-open a.ft-direct-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

html.ft-sheet-open .ft-direct-link {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

html.ft-sheet-open .ft-direct-ic {
    width: 22px;
    height: 22px;
    color: #fff;
}

html.ft-sheet-open .ft-direct-ic--tg {
    color: #26a5e4;
}

html.ft-sheet-open .ft-direct-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 14px;
}

html.ft-sheet-open .ft-direct-main b {
    font-weight: 600;
}

/* a long address wraps instead of being cut off (the copy button below gives it room first) */
html.ft-sheet-open .ft-direct-main > span {
    overflow-wrap: anywhere;
    color: var(--ft-ink2);
}

html.ft-sheet-open .ft-direct-go {
    width: 18px;
    height: 18px;
    color: var(--ft-ink3);
}

/* copy buttons (collab + share) */
html.ft-sheet-open .ft-copy {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    font: 600 13px/1 'Inter', system-ui, sans-serif;
    color: #fff;
    cursor: pointer;
}

html.ft-sheet-open .ft-copy:hover {
    background: rgba(255, 255, 255, 0.13);
}

html.ft-sheet-open .ft-copy .icon {
    width: 15px;
    height: 15px;
}

html.ft-sheet-open .ft-copy.is-done {
    border-color: rgba(35, 165, 90, 0.7);
    background: rgba(35, 165, 90, 0.22);
}

/* In a narrow row (phones; the share sheet beside its QR) the copy button shows only its icon, so
   the address beside it keeps one line. Its aria-label still reads "Kopyala: …", and a copy still
   turns it green with a check mark and a toast. */
html.ft-sheet-open :is(.ft-copy-row, .ft-direct-row) {
    container-type: inline-size;
}

@container (max-width: 360px) {
    html.ft-sheet-open .ft-copy {
        justify-content: center;
        width: 36px;
        padding: 0;
    }

    html.ft-sheet-open .ft-copy-l {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* ---- share sheet ---- */
html.ft-sheet-open .ft-share-grid {
    display: grid;
    grid-template-columns: 172px 1fr;
    gap: 16px;
    align-items: center;
}

@media (max-width: 520px) {
    html.ft-sheet-open .ft-share-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

html.ft-sheet-open .ft-qr-fig {
    margin: 0;
    text-align: center;
}

html.ft-sheet-open .ft-qr {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 172px;
    height: 172px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 34px rgba(0, 0, 0, 0.45);
}

html.ft-sheet-open .ft-qr-img {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

html.ft-sheet-open .ft-qr.is-failed {
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
}

html.ft-sheet-open .ft-qr-fail {
    font-size: 13px;
    color: var(--ft-ink2);
    text-align: center;
}

html.ft-sheet-open .ft-qr-cap {
    margin-top: 8px;
    font: 500 11.5px/1.2 'Geist Mono', ui-monospace, monospace;
    color: var(--ft-ink3);
}

html.ft-sheet-open .ft-copy-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

html.ft-sheet-open .ft-copy-row {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 9px 9px 9px 10px;
    border: 1px solid var(--ft-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

/* the e-mail row: badge and text open the mail app, the copy button stays separate */
html.ft-sheet-open .ft-copy-link {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 11px;
    min-width: 0;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
}

html.ft-sheet-open .ft-copy-link:hover .ft-copy-val {
    text-decoration: underline;
    text-underline-offset: 3px;
}

html.ft-sheet-open .ft-copy-badge {
    display: grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

html.ft-sheet-open .ft-copy-badge .icon {
    width: 17px;
    height: 17px;
}

html.ft-sheet-open .ft-copy-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

html.ft-sheet-open .ft-copy-k {
    font-size: 11.5px;
    color: var(--ft-ink3);
}

/* wraps rather than ending in "…": the contact e-mail is always shown whole */
html.ft-sheet-open .ft-copy-val {
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* ---- queue sheet ---- */
html.ft-sheet-open .ft-q-shuffle {
    display: inline-flex;
    flex: none;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    height: 34px;
    margin-top: 1px;
    padding: 0 12px 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font: 600 13px/1 'Inter', system-ui, sans-serif;
    color: var(--ft-ink2);
    cursor: pointer;
}

html.ft-sheet-open .ft-q-shuffle .icon {
    width: 15px;
    height: 15px;
}

html.ft-sheet-open .ft-q-shuffle[aria-pressed="true"] {
    border-color: #fff;
    background: #fff;
    color: #05070f;
}

html.ft-sheet-open .ft-q-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

html.ft-sheet-open .ft-q-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 10px 8px 8px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    font: inherit;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

html.ft-sheet-open .ft-q-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

html.ft-sheet-open .ft-q-row.is-current {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(30, 90, 255, 0.25);
}

html.ft-sheet-open .ft-q-cover {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

html.ft-sheet-open .ft-q-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

html.ft-sheet-open .ft-q-title {
    overflow: hidden;
    font-size: 14.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.ft-sheet-open .ft-q-artist {
    overflow: hidden;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ft-ink3);
}

html.ft-sheet-open .ft-q-row.is-current .ft-q-artist {
    color: var(--ft-hi);
}

html.ft-sheet-open .ft-q-dur {
    flex: none;
    font: 500 12px/1 'Geist Mono', ui-monospace, monospace;
    color: var(--ft-ink3);
}

html.ft-sheet-open .ft-q-eq {
    display: flex;
    flex: none;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

html.ft-sheet-open .ft-q-eq i {
    width: 3px;
    height: 6px;
    border-radius: 2px;
    background: var(--ft-hi);
    transform-origin: 50% 100%;
}

html.ft-sheet-open .ft-q-eq i:nth-child(2) { height: 12px; }
html.ft-sheet-open .ft-q-eq i:nth-child(3) { height: 9px; }

html.cx-motion.ft-sheet-open .ft-q-row.is-playing .ft-q-eq i {
    animation: ft-eq 0.9s ease-in-out infinite alternate;
}

html.cx-motion.ft-sheet-open .ft-q-row.is-playing .ft-q-eq i:nth-child(2) { animation-delay: -0.3s; }
html.cx-motion.ft-sheet-open .ft-q-row.is-playing .ft-q-eq i:nth-child(3) { animation-delay: -0.6s; }

@keyframes ft-eq {
    from { transform: scaleY(0.35); }
    to { transform: scaleY(1.15); }
}

/* ---- ventures sheet ---- */
html.ft-sheet-open .ft-ventures {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

html.ft-sheet-open .ft-venture {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

html.ft-sheet-open .ft-venture-logo {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(0, 98, 224, 0.35);
    font-size: 16px;
}

html.ft-sheet-open .ft-venture-main {
    flex: 1;
    min-width: 0;
}

html.ft-sheet-open .ft-venture-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
}

html.ft-sheet-open .ft-venture-name {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 650;
    color: #fff;
}

html.ft-sheet-open .ft-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
}

html.ft-sheet-open .ft-status-chip.is-active {
    background: rgba(35, 165, 90, 0.18);
    color: #6ee39a;
}

html.ft-sheet-open .ft-status-chip.is-active i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #23a55a;
}

html.ft-sheet-open .ft-status-chip.is-soon {
    background: rgba(255, 184, 107, 0.14);
    color: #ffc58a;
}

html.ft-sheet-open .ft-venture-desc {
    margin: 6px 0 0;
    font-size: 13.5px;
    color: var(--ft-ink2);
}

html.ft-sheet-open .ft-venture-meta {
    min-height: 18px;
    margin: 4px 0 0;
    font-size: 12.5px;
    line-height: 18px;
    color: var(--ft-ink3);
}

html.ft-sheet-open .ft-venture-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 8px 12px 8px 10px;
    border-radius: 999px;
    background: #5865f2;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

html.ft-sheet-open .ft-venture-link:hover {
    background: #6b77f5;
}

html.ft-sheet-open .ft-venture-link .icon {
    width: 15px;
    height: 15px;
}

/* ---- TikTok sheet: a tap-to-load card, then TikTok's own creator embed ---- */
html.ft-sheet-open .ft-tt-stage {
    min-height: 120px;
}

html.ft-sheet-open .ft-tt-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 22px 16px 16px;
    border: 1px solid var(--ft-line);
    border-radius: 18px;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(37, 244, 238, 0.16), transparent 60%),
        radial-gradient(120% 90% at 100% 100%, rgba(254, 44, 85, 0.18), transparent 60%),
        rgba(255, 255, 255, 0.03);
    text-align: center;
}

html.ft-sheet-open .ft-tt-logo {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #000;
    box-shadow: -3px -2px 0 rgba(37, 244, 238, 0.75), 3px 2px 0 rgba(254, 44, 85, 0.75);
    color: #fff;
}

html.ft-sheet-open .ft-tt-logo .icon {
    width: 28px;
    height: 28px;
}

html.ft-sheet-open .ft-tt-handle {
    font-size: 16px;
    font-weight: 650;
}

html.ft-sheet-open .ft-tt-note {
    margin: 12px 2px 0;
}

html.ft-sheet-open .ft-tt-stage .tiktok-embed {
    margin: 0 auto;
}

html.ft-sheet-open .ft-tt-stage iframe {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    border: 0;
    border-radius: 12px;
}

html.ft-sheet-open .ft-tt-stage.is-loading .tiktok-embed {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

html.ft-sheet-open .ft-tt-wait {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 40px 0;
    font-size: 14px;
    color: var(--ft-ink2);
}

html.ft-sheet-open .ft-tt-fail {
    margin: 0;
    padding: 18px 4px;
    font-size: 14px;
    color: var(--ft-ink2);
    text-align: center;
}

/* ===================================================================================
   Tight fit: when the rows this module adds push the card and player past the bottom of
   the viewport, features.js sets html.ft-tight and the rows get tighter (the AzPixel card
   drops to one line). Nothing changes while everything fits.
   =================================================================================== */
html.ft-tight:is(.f-f-collab-inbox, .f-f-anon-questions, .f-f-tiktok-latest-embed) .ft-cta {
    height: 30px;
    margin-top: 9px;
}

html.ft-tight.f-f-azpixel-live-card .social-links {
    padding-bottom: 18px;
}

html.ft-tight.f-f-azpixel-live-card .ft-azp {
    gap: 8px;
    margin: -4px auto 12px;
    padding: 5px 5px 5px 6px;
    border-radius: 12px;
}

html.ft-tight.f-f-follower-counts.f-f-azpixel-live-card .ft-azp {
    margin-top: 2px;
}

html.ft-tight.f-f-azpixel-live-card .ft-azp-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 11px;
}

html.ft-tight.f-f-azpixel-live-card .ft-azp-main {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

html.ft-tight.f-f-azpixel-live-card .ft-azp .ft-azp-name {
    font-size: 14px;
}

html.ft-tight.f-f-azpixel-live-card .ft-azp :is(.ft-azp-tag, .ft-azp-m, .ft-azp-sep) {
    display: none;
}

html.ft-tight.f-f-azpixel-live-card .ft-azp-join {
    height: 28px;
    padding: 0 11px;
    font-size: 12.5px;
}

html.ft-tight:is(.f-f-discord-presence-lanyard, .f-f-baku-clock-status) .ft-status-line {
    margin-top: 3px;
}

html.ft-tight.f-f-synced-lyrics .ft-lyric {
    margin-top: 4px;
}

/* the page's own spacing gets tighter too — only while this module's rows overflow */
html.ft-tight .divider-line {
    margin-block: 11px;
}

html.ft-tight .name-section {
    margin-top: 16px;
}

html.ft-tight .bio-section {
    margin-top: 8px;
}

html.ft-tight .social-links {
    margin-top: 4px;
}

/* step 2: still too tall — the minimum spacing */
html.ft-tighter .main-container {
    padding-block: 12px;
    gap: 8px;
}

html.ft-tighter .divider-line {
    margin-block: 8px;
}

html.ft-tighter .name-section {
    margin-top: 12px;
}

html.ft-tighter .player-inner {
    padding-block: 9px;
}

html.ft-tighter.f-f-azpixel-live-card .social-links {
    padding-bottom: 15px;
}

html.ft-tighter:is(.f-f-collab-inbox, .f-f-anon-questions, .f-f-tiktok-latest-embed) .ft-cta {
    height: 28px;
    margin-top: 7px;
}

html.ft-tighter:is(.f-f-discord-presence-lanyard, .f-f-baku-clock-status) .ft-status-line {
    margin-top: 1px;
}

html.ft-tighter.f-f-synced-lyrics .ft-lyric {
    margin: 3px 0 -4px;
}

/* step 3 (very short screens, e.g. 360 × 640): the AzPixel row gets slimmer */
html.ft-tightest .divider-line {
    margin-block: 6px;
}

html.ft-tightest:is(.f-f-collab-inbox, .f-f-anon-questions, .f-f-tiktok-latest-embed) .ft-cta {
    margin-top: 5px;
}

html.ft-tightest.f-f-azpixel-live-card .ft-azp {
    margin-bottom: 10px;
    padding: 3px 4px 3px 5px;
}

html.ft-tightest.f-f-azpixel-live-card .ft-azp-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 10px;
}

html.ft-tightest.f-f-azpixel-live-card .ft-azp-join {
    height: 26px;
}

/* ===================================================================================
   Touch targets (phones and tablets): every control here answers to a finger over at least
   44 px of height while nothing visible changes size — a transparent ::after grows the hit
   area into the free space around the control. The rows above may still get tighter: only
   the visible pills shrink, never these areas.
   =================================================================================== */
@media (pointer: coarse) {
    /* banner pills: a 44 px band from the banner's top edge (8 px above the pills; the banner
       clips anything higher) */
    :is(html.f-f-online-now-presence, html.f-f-respect-counter) .stats-container > button.stat-item {
        position: relative;
    }

    :is(html.f-f-online-now-presence, html.f-f-respect-counter) .stats-container > button.stat-item::after,
    html.f-f-kv-drops-countdown a.ft-drop::after {
        content: '';
        position: absolute;
        top: -8px;
        left: 0;
        right: 0;
        height: 44px;
    }

    /* a countdown on row 2 or 3 (rows are 28 px apart) stays clear of the row above and grows downwards;
       one step above the stat pills (z 150), so their taller areas never cover the chip itself */
    html.f-f-kv-drops-countdown a.ft-drop {
        z-index: 151;
    }

    html.f-f-kv-drops-countdown a.ft-drop:is(.ft-row2, .ft-row3)::after {
        top: -2px;
    }

    /* call-to-action pills: 5 px up (the smallest gap between two rows of pills), the rest below,
       so a wrapped second row never takes the first row's own pixels */
    :is(html.f-f-collab-inbox, html.f-f-anon-questions, html.f-f-tiktok-latest-embed) .ft-cta {
        position: relative;
    }

    :is(html.f-f-collab-inbox, html.f-f-anon-questions, html.f-f-tiktok-latest-embed) .ft-cta::after {
        content: '';
        position: absolute;
        top: -5px;
        left: 0;
        right: 0;
        height: 44px;
    }

    /* AZ / EN / TR: taller only (the three buttons are 2 px apart) */
    html.f-f-i18n-az-en-tr .ft-lang-btn {
        position: relative;
    }

    html.f-f-i18n-az-en-tr .ft-lang-btn::after,
    html.f-f-azpixel-live-card .ft-azp::after {
        content: '';
        position: absolute;
        top: calc(50% - 22px);
        bottom: calc(50% - 22px);
        left: 0;
        right: 0;
    }

    /* the AzPixel card in its slimmest form (ft-tightest) is 34 px tall */
    html.f-f-azpixel-live-card .ft-azp {
        position: relative;
    }

    /* the palette button: 44 × 44 around the 40 px circle (its ring is only paint) */
    html.f-f-theme-presets-seasonal .ft-theme-btn::after {
        content: '';
        position: absolute;
        inset: calc(50% - 22px);
    }
}

/* ===================================================================================
   Accent mixes — the colours above that follow the theme's --accent (engines with color-mix();
   the others keep the plain default-blue values written in each rule)
   =================================================================================== */
@supports (color: color-mix(in oklab, red, blue)) {
    :is(html.f-f-azpixel-live-card, html.ft-sheet-open) .ft-mono {
        background: linear-gradient(145deg, color-mix(in oklab, var(--accent, #0033ff) 70%, #6b8cff), color-mix(in oklab, var(--accent, #0033ff) 60%, #020b26));
    }

    html.f-f-online-now-presence .ft-vstar.is-you {
        box-shadow: 0 0 6px 2px #fff, 0 0 18px 6px color-mix(in oklab, var(--accent, #0033ff) 70%, #8fa6ff);
    }

    html.f-f-online-now-presence .ft-vstar.is-you.is-ping {
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.32), 0 0 8px 3px #fff, 0 0 26px 10px color-mix(in oklab, var(--accent, #0033ff) 75%, #8fa6ff);
    }

    html.f-f-collab-inbox .ft-cta--primary {
        border-color: color-mix(in oklab, var(--accent, #0033ff) 55%, rgba(255, 255, 255, 0.45));
        background: color-mix(in oklab, var(--accent, #0033ff) 42%, rgba(6, 8, 22, 0.6));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 18px color-mix(in oklab, var(--accent, #0033ff) 50%, transparent);
    }

    html.f-f-collab-inbox .ft-cta--primary:hover {
        background: color-mix(in oklab, var(--accent, #0033ff) 58%, rgba(6, 8, 22, 0.5));
    }

    html.f-f-synced-lyrics .ft-lyric {
        text-shadow: 0 0 10px color-mix(in oklab, var(--accent, #0033ff) 70%, transparent);
    }

    html.f-f-kv-drops-countdown .ft-drop {
        border-color: color-mix(in oklab, var(--accent, #0033ff) 55%, rgba(255, 255, 255, 0.3));
    }

    html.ft-sheet-open .ft-sheet {
        --ft-hi: color-mix(in oklab, var(--accent, #0033ff) 55%, #c9d4ff);
        background: linear-gradient(180deg, color-mix(in oklab, var(--accent, #0033ff) 17%, #0a0e22), #070a18 42%);
    }

    html.ft-sheet-open .ft-sheet-badge {
        background: color-mix(in oklab, var(--accent, #0033ff) 38%, rgba(255, 255, 255, 0.06));
        box-shadow: 0 0 22px color-mix(in oklab, var(--accent, #0033ff) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }

    html.ft-sheet-open .ft-input:focus {
        box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent, #0033ff) 45%, transparent);
    }

    html.ft-sheet-open .ft-q-row.is-current {
        background: color-mix(in oklab, var(--accent, #0033ff) 22%, rgba(255, 255, 255, 0.04));
    }
}
