/* feed-desktop.css — SOLO PC. No editar para arreglar móvil.
 * Candado: @media (min-width:768px) + prefijo html.is-pc
 */
@media (min-width: 768px) {
html.is-pc .tt-slide {
        padding-right: 0;
        box-sizing: border-box;
        gap: 0;
    }
/* Marco 9:16 redondeado (como TikTok) — ~10px aire arriba/abajo (no de extremo a extremo) */
html.is-pc .tt-slide .feed-item,
html.is-pc .play-shell .play-slide .feed-item,
html.is-pc .play-shell .feed-item {
        height: calc(100% - 20px) !important;
        max-height: calc(100% - 20px) !important;
        width: auto;
        max-width: min(calc((100vh - 20px) * 9 / 16), 100%);
        aspect-ratio: 9 / 16;
        border-radius: 18px !important;
        overflow: hidden !important;
        background: #000;
        box-shadow: 0 0 0 1px rgba(255,255,255,.06);
        align-self: center;
        position: relative;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        -webkit-mask-image: -webkit-radial-gradient(white, black); /* clip Safari */
    }
html.is-pc .tt-slide .feed-item > .feed-video,
html.is-pc .tt-slide .feed-item > .feed-poster,
html.is-pc .play-shell .feed-item > .feed-video,
html.is-pc .play-shell .feed-item > .feed-poster {
        object-fit: cover !important;
        object-position: center center !important;
        width: 100% !important;
        height: 100% !important;
        background: #000 !important;
        border-radius: 0 !important;
    }
html.is-pc .tt-slide .feed-item > .feed-overlay,
html.is-pc .play-shell .feed-item > .feed-overlay {
        border-radius: 0 !important;
        background: linear-gradient(
            to bottom,
            transparent 55%,
            rgba(0,0,0,.25) 78%,
            rgba(0,0,0,.55) 100%
        ) !important;
    }
/* Cinta al pie: recortada por el overflow redondeado del marco */
html.is-pc .play-shell .feed-item .feed-progress,
html.is-pc .tt-slide .feed-item .feed-progress {
        border-radius: 0 0 18px 18px;
    }
html.is-pc .topbar-menu {
        background: rgba(255,255,255,.12);
        border-color: rgba(255,255,255,.2);
    }

    /* Flechas ↑↓: esquina derecha de la pantalla (lejos del video) */
html.is-pc .tt-nav {
        position: fixed;
        left: auto !important;
        right: 28px !important;
        top: 50%;
        transform: translateY(-50%);
        z-index: 250;
        display: flex;
        flex-direction: column;
        gap: 12px;
        pointer-events: none;
    }
html.is-pc .tt-nav button {
        width: 48px; height: 48px;
        border-radius: 50%;
        border: none;
        background: rgba(37,37,37,.88);
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background .15s, transform .1s, opacity .15s;
        pointer-events: auto;
        box-shadow: 0 2px 12px rgba(0,0,0,.35);
        padding: 0;
    }
html.is-pc .tt-nav button svg {
        width: 22px; height: 22px;
        fill: none; stroke: #fff; stroke-width: 2.2;
        stroke-linecap: round; stroke-linejoin: round;
    }
html.is-pc .tt-nav button:hover { background: rgba(55,55,55,.95); }
html.is-pc .tt-nav button:active { transform: scale(.94); }
html.is-pc .tt-nav button:disabled { opacity: .28; cursor: default; pointer-events: none; }

    /* Nombre + caption DENTRO del video, abajo izquierda (TikTok desktop For You) */
html.is-pc .feed-meta {
        position: absolute !important;
        left: 14px !important;
        right: 72px !important;
        top: auto !important;
        bottom: 16px !important;
        width: auto !important;
        max-width: calc(100% - 90px) !important;
        padding: 0 0 6px !important;
        text-align: left;
        z-index: 16 !important;
        pointer-events: auto;
        opacity: 1 !important;
        visibility: visible !important;
    }
html.is-pc .feed-meta .feed-nombre {
        font-size: 1rem;
        font-weight: 800;
        margin-bottom: 3px;
        text-shadow: 0 1px 8px rgba(0,0,0,.75);
        color: #fff;
        line-height: 1.25;
    }
html.is-pc .feed-meta .feed-nombre a {
        color: #fff !important;
        text-decoration: none !important;
    }
html.is-pc .feed-meta .feed-nombre a:hover { text-decoration: underline !important; }
/* En PC no duplicamos @slug aparte: va en el nombre */
html.is-pc .feed-meta .feed-user {
        display: none !important;
    }
/* PC index: meta cerca del pie (solo hay cinta fina, sin reloj) */
html.is-pc .feed-meta {
        left: 12px !important;
        right: 56px !important;
        bottom: 12px !important;
        padding-right: 5em !important;
        max-width: none !important;
    }
html.is-pc .feed-meta-line {
        display: block !important;
        width: 100% !important;
        position: relative !important;
        min-height: 1.35em !important;
        padding-right: 0 !important;
    }
html.is-pc .feed-meta .cap-text {
        text-shadow: 0 1px 6px rgba(0,0,0,.65);
        color: rgba(255,255,255,.95) !important;
        font-size: .88rem !important;
        display: none !important;
        max-width: 100% !important;
    }
html.is-pc .feed-meta .cap-text.is-open {
        display: block !important;
        margin-top: 6px !important;
    }
html.is-pc .feed-meta .cap-more,
html.is-pc .feed-meta.is-cap-open .cap-more {
        position: absolute !important;
        right: -32px !important;
        bottom: 2px !important;
        left: auto !important;
        top: auto !important;
        display: inline-block !important;
        margin: 0 !important;
        color: #fff !important;
        font-size: .95rem !important;
        font-weight: 400 !important;
    }
/*
 * INDEX PC: rail al costado del video (posición final la fija pc.js por rect).
 * overflow visible en el slide para no recortar el rail.
 */
html.is-pc .app-feed-wrap #feed .play-slide,
html.is-pc .app-feed-wrap #feed.play-shell .play-slide {
        overflow: visible !important;
        box-sizing: border-box !important;
        /* Aire negro arriba/abajo tipo TikTok desktop */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
html.is-pc .app-feed-wrap #feed .play-slide > .feed-item,
html.is-pc .app-feed-wrap #feed .feed-item {
        position: relative !important;
        overflow: hidden !important;
        width: auto !important;
        height: calc(100% - 20px) !important;
        max-height: calc(100% - 20px) !important;
        max-width: min(calc((100vh - 20px) * 9 / 16), calc(100% - 80px)) !important;
        margin: 10px auto !important;
    }
/* Fallback CSS; JS reescribe left/bottom con getBoundingClientRect */
html.is-pc .app-feed-wrap #feed .play-slide > .feed-actions,
html.is-pc .app-feed-wrap #feed .feed-actions.feed-actions-side {
        position: absolute !important;
        z-index: 50 !important;
        width: 48px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        pointer-events: auto !important;
    }
/* Si aún no reparentó, sácalo del video por CSS (no ideal) */
html.is-pc .app-feed-wrap #feed .feed-item > .feed-actions {
        /* se reparenta en JS; fallback más abajo */
        bottom: 56px !important;
        right: 10px !important;
        top: auto !important;
    }
/* Tamaños compactos tipo TikTok + hover */
html.is-pc .app-feed-wrap #feed .feed-actions .feed-action-icon {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        background: rgba(47, 47, 47, .95) !important;
        border: none !important;
        box-shadow: none !important;
        transition: background .15s ease, transform .12s ease !important;
    }
html.is-pc .app-feed-wrap #feed .feed-actions .feed-action-icon svg {
        width: 20px !important;
        height: 20px !important;
        filter: none !important;
    }
html.is-pc .app-feed-wrap #feed .feed-actions .feed-action-label {
        font-size: 11px !important;
        font-weight: 600 !important;
        margin-top: 2px !important;
        color: #fff !important;
        text-shadow: none !important;
    }
html.is-pc .app-feed-wrap #feed .feed-actions .feed-action-btn:hover {
        transform: scale(1.06);
    }
html.is-pc .app-feed-wrap #feed .feed-actions .feed-action-btn:hover .feed-action-icon {
        background: rgba(72, 72, 72, .98) !important;
    }
html.is-pc .app-feed-wrap #feed .feed-actions .feed-action-btn:active {
        transform: scale(.96);
    }
html.is-pc .app-feed-wrap #feed .feed-action-perfil-wrap {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 4px !important;
    }
html.is-pc .app-feed-wrap #feed .feed-action-perfil-img {
        width: 40px !important;
        height: 40px !important;
        border: 1.5px solid #fff !important;
    }
html.is-pc .app-feed-wrap #feed .feed-actions .feed-action-btn:hover .feed-action-perfil-wrap {
        transform: scale(1.06);
    }
html.is-pc .app-feed-wrap #feed .feed-action-perfil-plus {
        width: 16px !important;
        height: 16px !important;
        font-size: 12px !important;
        bottom: -3px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
/*
 * INDEX PC (#feed): cinta roja SIEMPRE visible, sin reloj.
 * Selectores acotados a #feed para NO contaminar el perfil.
 */
html.is-pc #feed .feed-progress,
html.is-pc #feed.play-shell .feed-progress {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 20 !important;
    left: 0 !important;
    right: 0 !important;
    /* Dentro del marco, al pie (el aire de 10px es fuera del .feed-item) */
    bottom: 0 !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    pointer-events: none !important;
    transition: none !important;
}
html.is-pc #feed .feed-progress-row {
    display: block !important;
    height: 2.5px !important;
    gap: 0 !important;
    position: relative !important;
}
html.is-pc #feed .feed-progress-track {
    height: 2.5px !important;
    background: rgba(255,255,255,.18) !important;
    border-radius: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    cursor: grab !important;
    touch-action: none !important;
    padding: 0 !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}
html.is-pc #feed .feed-item.is-scrubbing .feed-progress-track {
    cursor: grabbing !important;
}
html.is-pc #feed .feed-progress-bar {
    max-height: 2.5px !important;
    height: 2.5px !important;
    top: 0 !important;
    margin-top: 0 !important;
    background: #fe2c55 !important;
    border-radius: 0 !important;
}
html.is-pc #feed .feed-progress-bar::after {
    display: block !important;
    content: '' !important;
}
html.is-pc #feed .feed-item:hover .feed-progress-bar::after,
html.is-pc #feed .feed-item.is-scrubbing .feed-progress-bar::after {
    opacity: 1 !important;
}
html.is-pc #feed .feed-progress-time {
    display: none !important;
}
html.is-pc #feed .feed-item.is-scrubbing .feed-progress-time,
html.is-pc #feed .feed-progress.is-scrubbing .feed-progress-time {
    display: block !important;
    bottom: 14px !important;
}

/*
 * PERFIL PC (.vp.open): barra + tiempo SOLO con mouse sobre el video.
 * Color gris (no rojo del index). Un poco más abajo.
 */
html.is-pc .vp.open .play-shell .feed-item .feed-progress {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity .18s ease, visibility .18s ease !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 0 14px 4px !important;
    background: linear-gradient(to top, rgba(0,0,0,.4), transparent 85%) !important;
    overflow: visible !important;
    pointer-events: none !important;
    z-index: 20 !important;
}
html.is-pc .vp.open .play-shell .feed-item:hover .feed-progress,
html.is-pc .vp.open .play-shell .feed-item.is-hover .feed-progress,
html.is-pc .vp.open .play-shell .feed-item.is-scrubbing .feed-progress {
    opacity: 1 !important;
    visibility: visible !important;
}
html.is-pc .vp.open .play-shell .feed-item .feed-progress-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    height: auto !important;
    position: relative !important;
}
html.is-pc .vp.open .play-shell .feed-item .feed-progress-track {
    height: 3px !important;
    background: rgba(180,180,180,.45) !important;
    border-radius: 999px !important;
    overflow: visible !important;
    pointer-events: auto !important;
    cursor: grab !important;
    touch-action: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    bottom: auto !important;
}
html.is-pc .vp.open .play-shell .feed-item.is-scrubbing .feed-progress-track {
    cursor: grabbing !important;
}
html.is-pc .vp.open .play-shell .feed-item.is-scrubbing .feed-progress-time {
    display: block !important;
    bottom: 14px !important;
}
html.is-pc .vp.open .play-shell .feed-item .feed-progress-bar {
    height: 3px !important;
    max-height: 3px !important;
    background: rgba(200,200,200,.92) !important; /* gris avance */
    border-radius: 999px !important;
}
html.is-pc .vp.open .play-shell .feed-item .feed-progress-bar::after {
    display: block !important;
    content: '' !important;
    position: absolute;
    right: -4px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: rgba(210,210,210,.95);
    box-shadow: 0 0 3px rgba(0,0,0,.35);
}
html.is-pc .vp.open .play-shell .feed-item .feed-progress-time {
    display: none !important; /* solo visible en hover */
    font-size: 11px;
    font-weight: 500;
    color: rgba(200,200,200,.9) !important;
}
html.is-pc .vp.open .play-shell .feed-item:hover .feed-progress-time,
html.is-pc .vp.open .play-shell .feed-item.is-hover .feed-progress-time {
    display: block !important;
}

    /* Rail genérico PC (fallback); index #feed se define arriba al costado */
html.is-pc .feed-actions {
        right: 10px;
        bottom: 16%;
        gap: 12px;
        z-index: 14;
    }
html.is-pc .feed-actions .feed-action-icon {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        background: rgba(84,84,84,.55) !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,.25) !important;
        transition: background .15s ease, transform .12s ease !important;
    }
html.is-pc .feed-actions .feed-action-btn:hover .feed-action-icon {
        background: rgba(120,120,120,.88) !important;
        transform: scale(1.06);
    }
html.is-pc .feed-actions .feed-action-icon svg {
        width: 22px !important;
        height: 22px !important;
        filter: none !important;
    }
html.is-pc .feed-actions .feed-action-label {
        font-size: 11px;
        font-weight: 700;
        margin-top: 2px;
        text-shadow: 0 1px 3px rgba(0,0,0,.5);
    }
html.is-pc .feed-action-perfil-wrap {
        width: 42px;
        height: 42px;
        margin-bottom: 2px;
    }
html.is-pc .feed-action-perfil-img {
        width: 42px;
        height: 42px;
        border: 2px solid #fff;
    }
    /* Columna: sin mute en rail (va en top chrome) */
html.is-pc .feed-actions .feed-mute-btn { display: none !important; }

/*
 * TOP del video INDEX PC (ref. TikTok):
 * izq: volumen horizontal | der: ⋯ + pantalla completa
 */
/* Top chrome: invisible hasta hover del video (override del display:none base) */
html.is-pc #feed .feed-top-chrome {
        display: flex !important;
        position: absolute;
        left: 0; right: 0; top: 0;
        z-index: 25;
        padding: 12px 12px 0;
        box-sizing: border-box;
        justify-content: space-between;
        align-items: flex-start;
        pointer-events: none;
        background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, transparent 100%);
        height: 72px;
        opacity: 0;
        visibility: hidden !important;
        transition: opacity .18s ease, visibility .18s ease;
    }
html.is-pc #feed .feed-item:hover .feed-top-chrome,
html.is-pc #feed .feed-item.is-hover .feed-top-chrome,
html.is-pc #feed .feed-top-chrome:focus-within {
        opacity: 1;
        visibility: visible !important;
    }
html.is-pc #feed .feed-item:hover .feed-top-chrome,
html.is-pc #feed .feed-top-chrome:focus-within {
        pointer-events: none; /* hijos con pointer-events auto */
    }
html.is-pc #feed .feed-item:hover .feed-top-chrome .ftc-left,
html.is-pc #feed .feed-item:hover .feed-top-chrome .ftc-right,
html.is-pc #feed .feed-top-chrome:focus-within .ftc-left,
html.is-pc #feed .feed-top-chrome:focus-within .ftc-right {
        pointer-events: auto;
    }
html.is-mobile .feed-top-chrome { display: none !important; }

html.is-pc #feed .feed-top-chrome .ftc-left,
html.is-pc #feed .feed-top-chrome .ftc-right {
        display: flex;
        align-items: center;
        gap: 8px;
        pointer-events: auto;
    }
/* Volumen: pill que se estira al hover */
html.is-pc #feed .ftc-vol-wrap {
        display: flex;
        align-items: center;
        gap: 0;
        height: 36px;
        border-radius: 999px;
        background: rgba(37,37,37,.55);
        padding: 0 4px 0 4px;
        transition: background .15s, padding .2s ease, max-width .2s ease;
        max-width: 44px;
        overflow: hidden;
    }
html.is-pc #feed .ftc-vol-wrap:hover,
html.is-pc #feed .ftc-vol-wrap.is-open {
        max-width: 200px;
        padding-right: 14px;
        background: rgba(37,37,37,.82);
    }
html.is-pc #feed .ftc-vol-wrap .ftc-mute,
html.is-pc #feed .ftc-vol-wrap .feed-mute-desktop {
        display: flex !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        margin: 0 !important;
        flex-direction: row !important;
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
html.is-pc #feed .ftc-vol-wrap .feed-mute-icon-lg,
html.is-pc #feed .ftc-vol-wrap .feed-action-icon {
        width: 36px !important;
        height: 36px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 50% !important;
    }
html.is-pc #feed .ftc-vol-wrap .feed-mute-label { display: none !important; }
html.is-pc #feed .ftc-vol-wrap .ftc-mute[data-muted="0"] .feed-mute-icon-lg {
        background: transparent !important;
    }
html.is-pc #feed .ftc-vol-track {
        width: 0;
        opacity: 0;
        overflow: hidden;
        transition: width .2s ease, opacity .15s ease;
        display: flex;
        align-items: center;
        height: 36px;
    }
html.is-pc #feed .ftc-vol-wrap:hover .ftc-vol-track,
html.is-pc #feed .ftc-vol-wrap.is-open .ftc-vol-track {
        width: 120px;
        opacity: 1;
        margin-left: 2px;
    }
html.is-pc #feed .ftc-vol-range {
        -webkit-appearance: none;
        appearance: none;
        width: 112px;
        height: 4px;
        border-radius: 2px;
        outline: none;
        cursor: pointer;
        background: linear-gradient(
          90deg,
          #25f4ee 0%,
          #fe2c55 45%,
          #ffc107 100%
        );
        background-size: var(--vol-pct, 100%) 100%;
        background-repeat: no-repeat;
        background-color: rgba(255,255,255,.28);
    }
html.is-pc #feed .ftc-vol-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 14px; height: 14px; border-radius: 50%;
        background: #fff; border: none;
        box-shadow: 0 1px 4px rgba(0,0,0,.35);
        cursor: grab;
    }
html.is-pc #feed .ftc-vol-range::-moz-range-thumb {
        width: 14px; height: 14px; border-radius: 50%;
        background: #fff; border: none; cursor: grab;
    }
/* Botones ⋯ y fullscreen */
html.is-pc #feed .ftc-ico {
        width: 36px; height: 36px; border-radius: 50%;
        border: none; background: rgba(37,37,37,.55);
        color: #fff; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        font-size: 18px; line-height: 1;
        transition: background .15s, transform .12s;
        padding: 0;
    }
html.is-pc #feed .ftc-ico:hover { background: rgba(55,55,55,.9); transform: scale(1.05); }
html.is-pc #feed .ftc-ico svg { width: 18px; height: 18px; display: block; }
html.is-pc #feed .ftc-more-wrap { position: relative; }
html.is-pc #feed .ftc-more-menu {
        display: none;
        position: absolute;
        top: 42px; right: 0;
        width: 300px; max-width: min(300px, 70vw);
        background: #2f2f2f;
        border-radius: 12px;
        padding: 6px 0;
        box-shadow: 0 12px 40px rgba(0,0,0,.55);
        color: #fff;
        font-size: 14px;
        z-index: 60;
        overflow: hidden;
    }
html.is-pc #feed .ftc-more-menu.open { display: block; }
html.is-pc #feed .ftc-mm-row {
        display: flex; align-items: center; gap: 10px;
        padding: 11px 14px; cursor: pointer;
        border: none; background: none; color: #fff;
        width: 100%; text-align: left; font-family: inherit; font-size: 14px;
        box-sizing: border-box;
    }
html.is-pc #feed .ftc-mm-row:hover { background: rgba(255,255,255,.08); }
html.is-pc #feed .ftc-mm-row svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .9; }
html.is-pc #feed .ftc-mm-speed {
        flex-direction: row; flex-wrap: nowrap; align-items: center; cursor: default;
    }
html.is-pc #feed .ftc-mm-speed:hover { background: transparent; }
html.is-pc #feed .ftc-mm-speed-head {
        display: flex; align-items: center; gap: 8px; flex-shrink: 0; white-space: nowrap;
    }
html.is-pc #feed .ftc-mm-speed-head span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
html.is-pc #feed .ftc-mm-speed-btns {
        display: flex; gap: 2px; margin-left: auto; align-items: center;
    }
html.is-pc #feed .ftc-mm-speed-btns button {
        min-width: 28px; height: 28px; border-radius: 50%; border: none;
        background: transparent; color: rgba(255,255,255,.55);
        font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; padding: 0 4px;
    }
html.is-pc #feed .ftc-mm-speed-btns button.on {
        background: #1a1a1a; color: #fff;
        box-shadow: 0 0 0 1px rgba(255,255,255,.12);
        font-weight: 700; min-width: 30px; height: 30px;
    }
html.is-pc #feed .ftc-toggle {
        margin-left: auto; width: 42px; height: 24px; border-radius: 12px;
        background: rgba(255,255,255,.22); border: none; cursor: pointer;
        position: relative; padding: 0; flex-shrink: 0;
    }
html.is-pc #feed .ftc-toggle.on { background: #fe2c55; }
html.is-pc #feed .ftc-toggle i {
        position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
        border-radius: 50%; background: #fff; display: block;
        transition: transform .18s ease; box-shadow: 0 1px 3px rgba(0,0,0,.3);
    }
html.is-pc #feed .ftc-toggle.on i { transform: translateX(18px); }
html.is-pc #feed .ftc-mm-sep { height: 1px; background: rgba(255,255,255,.1); margin: 4px 0; }
/* Mute solo en top chrome (no flotante viejo) */
html.is-pc #feed .feed-mute-desktop:not(.ftc-mute) { display: none !important; }
}
