/* ═════════════════════════════════════════════════════════════════════
 * yt-sync.css — Styles pour la synchronisation YouTube
 * ─────────────────────────────────────────────────────────────────────
 *  1. Stage YT (lecture sync, sticky corner) — yt-stage-*
 *  2. Side-panel éditeur (drawer droite, non bloquant) — yt-sync-panel-*
 *  3. Highlight de la note courante en lecture sync
 *
 *  Palette : alignée sur opus.php (#006699, blue-grey, #f5a623 accent)
 * ═════════════════════════════════════════════════════════════════════ */


/* ═════════════════ 1. STAGE YT (lecture sync) ═════════════════════ */

.yt-stage {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 4000;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    user-select: none;
    transition: opacity .25s, width .2s, height .2s;
}
.yt-stage-handle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 7px 5px 10px;
    background: linear-gradient(180deg, #1d1d1d, #0c0c0c);
    color: #d9d9d9;
    font-size: 11px;
    cursor: move;
    min-height: 24px;
}
.yt-stage-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: .02em;
    color: #fff;
}
.yt-stage-controls {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}
.yt-stage-btn {
    background: rgba(255,255,255,.06);
    border: none;
    color: #ddd;
    width: 22px; height: 22px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    padding: 0;
    line-height: 1;
}
.yt-stage-btn:hover { background: rgba(255,255,255,.14); }
.yt-stage-btn-size { font-weight: 700; font-size: 10px; }
.yt-stage-btn-close { color: #ffb4b4; }
.yt-stage-btn-close:hover { background: rgba(255,80,80,.25); }

.yt-stage-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    transition: max-height .2s, opacity .2s;
    position: relative;
}
.yt-stage-player iframe,
.yt-stage-player > div {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    position: absolute;
    top: 0; left: 0;
}
.yt-stage-collapsed .yt-stage-player {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.yt-stage-practice-row {
    padding: 6px 10px;
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    color: #ccc;
    font-size: 11px;
}
.yt-stage-practice-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.yt-stage-practice-label input { margin: 0; }

/* Tailles presets desktop — n'agissent qu'en mode FLOTTANT */
.yt-stage.yt-stage-floating.yt-stage-size-small  { width: 240px; }
.yt-stage.yt-stage-floating.yt-stage-size-medium { width: 360px; }
.yt-stage.yt-stage-floating.yt-stage-size-large  { width: 520px; }

/* En mode dock les boutons S/M/L n'ont pas de sens (la taille se règle
   au drag de la grip-bar). On les cache pour ne pas encombrer. */
.yt-stage.yt-stage-docked .yt-stage-btn-size { display: none; }

/* Bouton mode (📌/🪟) : plus visible que les autres icônes */
.yt-stage-btn-mode {
    font-size: 13px;
    margin-right: 4px;
}

/* Mode masqué pendant pratique */
.yt-stage-hidden-by-practice .yt-stage-player {
    display: none;
}


/* ── Mode DOCK : bandeau pleine largeur en haut du viewport ─────────
   La hauteur de la zone vidéo est portée par --yt-dock-video-h (px),
   réglée par le JS (auto 16:9 ou drag de la grip-bar).
   La partition reçoit un padding-top de --yt-stage-h pour ne jamais
   être recouverte. */
.yt-stage.yt-stage-docked {
    top: 0; left: 0; right: 0;
    width: 100% !important;
    border-radius: 0;
    background: #000;
    box-shadow: 0 2px 12px rgba(0,0,0,.35);
    transition: opacity .15s;     /* pas de transition sur width/height en dock */
}
.yt-stage.yt-stage-docked .yt-stage-handle {
    cursor: default;              /* pas draggable en mode dock */
}
/* La vidéo en mode dock : aspect 16:9 préservé via height fixe,
   centrée horizontalement avec une largeur max raisonnable. */
.yt-stage.yt-stage-docked .yt-stage-player {
    aspect-ratio: auto;
    height: var(--yt-dock-video-h, 220px);
    width: auto;
    max-width: 100%;
    /* Calcule la largeur 16:9 depuis la hauteur, sans dépasser le viewport */
    aspect-ratio: 16 / 9;
    margin: 0 auto;
}

/* Grip-bar : seulement en mode dock, drag vertical pour redimensionner */
.yt-stage-grip {
    display: none;
    height: 8px;
    background: linear-gradient(180deg, #0c0c0c, #1d1d1d);
    border-top: 1px solid #2a2a2a;
    cursor: ns-resize;
    position: relative;
    user-select: none;
    flex-shrink: 0;
}
.yt-stage.yt-stage-docked .yt-stage-grip { display: block; }
.yt-stage-grip::before {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 36px; height: 3px;
    background: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,.35) 0 3px,
        transparent 3px 6px
    );
    border-radius: 2px;
}
.yt-stage-grip:hover { background: linear-gradient(180deg, #1a1a1a, #2a2a2a); }

/* Padding-top sur le BODY pour réserver l'espace du bandeau dock.
   On l'applique sur body (pas sur #svg_output) parce que :
     - #svg_output peut avoir une position absolute/fixed qui ignore le padding
     - d'autres règles CSS peuvent surcharger #svg_output avec plus de spécificité
     - body { padding-top: ... } décale TOUT le contenu en flux, le bandeau
       reste en position:fixed donc inaffecté
   Résultat : la partition descend toujours sous le bandeau, peu importe son
   layout interne. */
body.has-yt-stage-docked {
    padding-top: var(--yt-stage-h, 0px);
    transition: padding-top .15s ease;
}

/* Mode collapsed : la zone vidéo et la grip sont cachées */
.yt-stage.yt-stage-collapsed .yt-stage-player,
.yt-stage.yt-stage-collapsed .yt-stage-grip {
    max-height: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    display: none;
}
/* En collapsed-dock, le padding-top doit refléter juste le handle (~28px) */
body.has-yt-stage-docked .yt-stage.yt-stage-collapsed {
    --yt-stage-h: 28px;
}


/* Mobile : on garde le bandeau en haut (équivalent au mode dock) */
@media (max-width: 720px) {
    .yt-stage:not(.yt-stage-floating) {
        top: 0; left: 0; right: 0;
        width: 100% !important;
        border-radius: 0;
    }
    .yt-stage:not(.yt-stage-floating) .yt-stage-handle { cursor: default; }
    /* Fallback historique pour les pages sans la classe explicite dock */
    body.has-yt-stage:not(.has-yt-stage-docked) {
        padding-top: calc(100vw * 9 / 16 + 36px);
    }
    /* En mobile, on n'autorise pas le mode flottant (peu pratique) */
    .yt-stage-btn-mode { display: none; }
}


/* ═════════════════ 2. SIDE-PANEL ÉDITEUR ═══════════════════════════ */

.yt-sync-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0,0,0,.18);
    z-index: 9500;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s ease;
    font-family: inherit;
    color: #2c4858;
}
.yt-sync-panel.open {
    transform: translateX(0);
}

/* Quand le panel est ouvert, on rétrécit l'aire de la partition pour
   garder la partition visible et utilisable. */
body.yt-sync-panel-open #svg_output,
body.yt-sync-panel-open #score-container,
body.yt-sync-panel-open #bottom-controls-bar {
    margin-right: 420px;
    transition: margin-right .3s ease;
}

/* Décalage des contrôles de page (positionnés `position: fixed` à droite/centre)
   pour qu'ils restent accessibles malgré le side-panel de 420px. transform évite
   d'avoir à connaître la valeur exacte de leur `right` actuel. */
body.yt-sync-panel-open #page-navigation,
body.yt-sync-panel-open #immersive-pagination,
body.yt-sync-panel-open #immersivePrevPage,
body.yt-sync-panel-open #immersiveNextPage {
    transform: translateX(-420px) !important;
    transition: transform .3s ease;
}

@media (max-width: 900px) {
    .yt-sync-panel {
        width: 100%;
        max-width: 100%;
    }
    body.yt-sync-panel-open #svg_output,
    body.yt-sync-panel-open #score-container,
    body.yt-sync-panel-open #bottom-controls-bar {
        margin-right: 0;
    }
}

.yt-sync-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e6eef3;
    background: linear-gradient(180deg, #f5fbff, #eef6fb);
    flex-shrink: 0;
}
.yt-sync-panel-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a3a4a;
    letter-spacing: .01em;
}
.yt-sync-panel-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6699aa;
    font-size: 22px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
}
.yt-sync-panel-close:hover { color: #003355; background: #d0e8f2; }

.yt-sync-stage {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 13px;
}

.yt-sync-intro {
    margin: 0;
    color: #5b7a8a;
    font-size: 12px;
    line-height: 1.5;
}

.yt-sync-section-title {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #5b7a8a;
}

/* ── Liste des syncs existantes ────────────────────────────────────── */
.yt-sync-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.yt-sync-empty {
    padding: 12px;
    color: #93a8b4;
    font-style: italic;
    text-align: center;
    background: #f6fafc;
    border-radius: 6px;
    font-size: 12px;
}
.yt-sync-empty.yt-sync-error { color: #b04040; font-style: normal; }

.yt-sync-li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #e0eaf0;
    border-radius: 8px;
    background: #fbfdfe;
    transition: background .15s, border-color .15s;
}
.yt-sync-li:hover { background: #f3f9fc; border-color: #c8dde7; }

.yt-sync-thumb {
    width: 72px;
    height: 41px;
    object-fit: cover;
    border-radius: 4px;
    background: #ccc;
    flex-shrink: 0;
}

.yt-sync-li-info { flex: 1; min-width: 0; }
.yt-sync-li-title {
    font-weight: 600;
    color: #1a3a4a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}
.yt-sync-li-meta {
    font-size: 11px;
    color: #6f8a98;
    margin-top: 2px;
}

.yt-sync-badge {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-left: 4px;
    vertical-align: middle;
}
.yt-sync-badge-flagged  { background: #fff2c2; color: #8a6300; }
.yt-sync-badge-rejected { background: #fadbd6; color: #a02020; }

.yt-sync-li-actions {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
}
.yt-sync-li-action {
    font-size: 10px;
    padding: 3px 8px;
    border: 1px solid #c8dde7;
    background: #fff;
    color: #2c4858;
    border-radius: 4px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.yt-sync-li-action:hover { background: #eaf3f8; border-color: #88b0c2; }
.yt-sync-li-delete { color: #a04040; border-color: #e0c0c0; }
.yt-sync-li-delete:hover { background: #fbeaea; }
.yt-sync-li-use {
    background: #006699 !important;
    color: #fff !important;
    border-color: #006699 !important;
    font-weight: 700;
}
.yt-sync-li-use:hover { background: #005580 !important; }

/* ── Création row (URL input) ──────────────────────────────────────── */
.yt-sync-create-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.yt-sync-url-input {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid #c8dde7;
    border-radius: 6px;
    font-size: 12px;
    color: #2c4858;
    background: #fff;
    min-width: 0;
}
.yt-sync-url-input:focus {
    outline: none;
    border-color: #006699;
    box-shadow: 0 0 0 3px rgba(0,102,153,.15);
}

/* ── Stage édition ─────────────────────────────────────────────────── */
.yt-sync-player-host {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.yt-sync-player-host iframe,
.yt-sync-player-host > div {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    position: absolute;
    top: 0; left: 0;
}

.yt-sync-edit-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.yt-sync-hint {
    margin: 0;
    font-size: 11px;
    color: #5b7a8a;
    line-height: 1.45;
    padding: 6px 9px;
    background: #eef6fb;
    border-left: 3px solid #006699;
    border-radius: 0 6px 6px 0;
}
.yt-sync-click-hint {
    font-size: 12px;
    color: #d4891a;
    font-weight: 600;
    background: #fff8ec;
    border: 1px dashed #f5a623;
    border-radius: 6px;
    padding: 6px 10px;
    text-align: center;
}
.yt-sync-cur-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #f6fafc;
    border-radius: 6px;
}
.yt-sync-cur-label { color: #5b7a8a; font-size: 11px; }
.yt-sync-cur-row strong { font-size: 14px; color: #006699; min-width: 50px; }

.yt-sync-anchors-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #5b7a8a;
    margin-top: 4px;
}
.yt-sync-btn-tiny {
    font-size: 10px;
    padding: 2px 8px;
    border: 1px solid #c8dde7;
    background: #fff;
    color: #2c4858;
    border-radius: 4px;
    cursor: pointer;
}
.yt-sync-btn-tiny:hover { background: #eaf3f8; }

.yt-sync-anchors {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0eaf0;
    border-radius: 6px;
    background: #fbfdfe;
}
.yt-sync-anchor-li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    font-size: 11px;
    border-bottom: 1px solid #ecf2f5;
}
.yt-sync-anchor-li:last-child { border-bottom: none; }
.yt-sync-anchor-idx {
    background: #006699;
    color: #fff;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}
.yt-sync-anchor-yt {
    font-family: 'SF Mono', 'Consolas', monospace;
    color: #4a6a7a;
    font-size: 10px;
}
.yt-sync-anchor-arrow { color: #93a8b4; }
.yt-sync-anchor-score { flex: 1; color: #1a3a4a; font-weight: 600; font-size: 11px; }
.yt-sync-anchor-del {
    background: none;
    border: none;
    color: #b04040;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
    border-radius: 3px;
    line-height: 1;
}
.yt-sync-anchor-del:hover { background: #fbeaea; }

/* ── Ancres incohérentes temporellement (monotonie violée) ─────────── */
.yt-sync-anchor-li-bad {
    background: #fff4e3;
    border-left: 3px solid #e67e22;
    padding-left: 5px;
}
.yt-sync-anchor-li-bad .yt-sync-anchor-yt {
    color: #b35400;
    font-weight: 700;
}
.yt-sync-anchor-li-bad .yt-sync-anchor-score {
    color: #8a4500;
}
.yt-sync-anchor-idx-bad {
    background: #e67e22 !important;
    box-shadow: 0 0 0 2px rgba(230,126,34,.25);
}

/* ── Footer (sticky bottom) ────────────────────────────────────────── */
.yt-sync-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f6fafc;
    border-top: 1px solid #e6eef3;
    gap: 10px;
    flex-shrink: 0;
}
.yt-sync-status {
    flex: 1;
    font-size: 11px;
    color: #5b7a8a;
    line-height: 1.3;
}
.yt-sync-status-error { color: #b04040; }
.yt-sync-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* ── Boutons génériques (panel) ────────────────────────────────────── */
.yt-sync-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s, border-color .15s, opacity .15s;
}
.yt-sync-btn:disabled { opacity: .45; cursor: not-allowed; }
.yt-sync-btn-primary {
    background: #006699;
    color: #fff;
    border-color: #006699;
}
.yt-sync-btn-primary:hover:not(:disabled) { background: #005580; }
.yt-sync-btn-ghost {
    background: #fff;
    color: #2c4858;
    border-color: #c8dde7;
}
.yt-sync-btn-ghost:hover:not(:disabled) { background: #eaf3f8; }

/* Hover protégé en tactile (pas de hover persistant) */
@media (hover: none) {
    .yt-sync-li:hover { background: #fbfdfe; border-color: #e0eaf0; }
    .yt-sync-btn-ghost:hover:not(:disabled) { background: #fff; }
}/* ═════════════════════════════════════════════════════════════════════
 * yt-sync-anchors.css — Pastilles d'ancres sur partition (mode édition)
 * ─────────────────────────────────────────────────────────────────────
 * À concaténer à la fin de yt-sync.css.
 * Palette alignée sur le reste de l'éditeur (#006699 primaire,
 * #f5a623 accent pour la pastille sélectionnée).
 * ═════════════════════════════════════════════════════════════════════ */


/* ── Pastilles (rendues en SVG) ───────────────────────────────────── */

/* Conteneur overlay : pointer-events:none par défaut (laisse passer les
   clics vers la partition), les pastilles remettent pointer-events:auto. */
#yt-sync-anchors-wrap {
    pointer-events: none;
}

/* La pastille en survol — apparaît plus grosse via une animation CSS sur
   le SVG ne marche pas pour les coords viewBox, mais on peut passer par
   une transition d'opacité et de filtre. */
.yts-pin {
    transition: filter .15s ease, opacity .15s ease;
}
.yts-pin:hover {
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.45)) brightness(1.08);
}
.yts-pin-selected {
    filter: drop-shadow(0 2px 6px rgba(245,166,35,.55));
}

/* Pendant le drag : pas de transition (la pastille suit le pointeur) */
.yts-pin.yts-dragging {
    transition: none;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)) brightness(1.1);
}

/* Mesure survolée pendant un drag de pastille : halo orange discret */
.yts-measure-hover {
    outline: 2px dashed #f5a623;
    outline-offset: 2px;
    background-color: rgba(245,166,35,.07);
}
/* Verovio dessine les mesures en SVG, donc outline ne s'applique pas
   en SVG. Fallback : filter glow. */
g.yts-measure-hover, .measure.yts-measure-hover {
    filter: drop-shadow(0 0 4px #f5a623);
}


/* ── Popup HTML flottant ──────────────────────────────────────────── */

.yts-popup {
    position: absolute;
    background: #fff;
    border: 1px solid #c8dde7;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 2px 4px rgba(0,0,0,.08);
    padding: 10px 12px;
    min-width: 220px;
    max-width: 280px;
    font-size: 13px;
    color: #2c4858;
    z-index: 9600;            /* au-dessus du side-panel (9500) */
    pointer-events: auto;
    user-select: none;
}

.yts-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ecf2f5;
}
.yts-popup-head strong {
    color: #1a3a4a;
    font-size: 13px;
    letter-spacing: .01em;
}
.yts-popup-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6699aa;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    margin: -2px -4px 0 0;
}
.yts-popup-close:hover { color: #003355; background: #eaf3f8; }

.yts-popup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.yts-popup-label {
    color: #5b7a8a;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.yts-popup-val {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 14px;
    color: #006699;
    font-weight: 700;
}

.yts-popup-nudges {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 4px;
    margin-bottom: 10px;
}
.yts-nudge {
    padding: 5px 4px;
    border: 1px solid #c8dde7;
    background: #fff;
    color: #2c4858;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .12s, border-color .12s, transform .08s;
}
.yts-nudge:hover {
    background: #eaf3f8;
    border-color: #88b0c2;
}
.yts-nudge:active {
    transform: scale(.96);
    background: #d0e4ee;
}

.yts-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.yts-popup-btn {
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: background .12s, border-color .12s;
}
.yts-popup-recap {
    background: #006699;
    color: #fff;
    border-color: #006699;
}
.yts-popup-recap:hover { background: #005580; }
.yts-popup-del {
    background: #fff;
    color: #a04040;
    border-color: #e0c0c0;
}
.yts-popup-del:hover { background: #fbeaea; border-color: #c89090; }

/* Touch : pas de hover persistant */
@media (hover: none) {
    .yts-nudge:hover,
    .yts-popup-btn:hover,
    .yts-popup-recap:hover,
    .yts-popup-del:hover {
        background: inherit;
        border-color: inherit;
    }
}

/* Mobile : popup légèrement plus compact */
@media (max-width: 720px) {
    .yts-popup {
        min-width: 200px;
        max-width: calc(100vw - 20px);
        font-size: 12px;
    }
    .yts-popup-nudges { grid-template-columns: 1fr 1fr; }
}