/* 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 — ~10px aire arriba/abajo (como TikTok desktop) */
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);
    }
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 ↑↓ junto al video (no al borde lejano de la pantalla) */
html.is-pc .tt-nav {
        position: fixed;
        left: calc(50% + min(50vh * 9 / 16, 42vw) + 18px);
        right: auto;
        top: 50%;
        transform: translateY(-50%);
        z-index: 250;
        display: flex;
        flex-direction: column;
        gap: 14px;
        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;
        width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: normal !important;
    }
html.is-pc .feed-meta .cap-text.is-open {
        display: block !important;
        margin-top: 6px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !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 (#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;
    bottom: 2px !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;
    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): misma idea que index — cinta roja al pie + tiempo al hover/scrub.
 * Subida un poco (bottom ~6px) para verse bien dentro del marco.
 */
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: 6px !important;
    padding: 0 10px !important;
    background: transparent !important;
    overflow: visible !important;
    pointer-events: none !important;
    z-index: 22 !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: block !important;
    height: 3px !important;
    position: relative !important;
    width: 100% !important;
    gap: 0 !important;
}
html.is-pc .vp.open .play-shell .feed-item .feed-progress-track {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 3px !important;
    width: 100% !important;
    background: rgba(255,255,255,.22) !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;
}
html.is-pc .vp.open .play-shell .feed-item.is-scrubbing .feed-progress-track,
html.is-pc .vp.open .play-shell .feed-item.is-scrubbing .feed-progress-track::after {
    cursor: grabbing !important;
}
html.is-pc .vp.open .play-shell .feed-item .feed-progress-bar {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 3px !important;
    max-height: 3px !important;
    margin-top: 0 !important;
    background: #fe2c55 !important; /* misma cinta roja del index */
    border-radius: 999px !important;
    z-index: 2 !important;
}
html.is-pc .vp.open .play-shell .feed-item .feed-progress-bar::after {
    display: block !important;
    content: '' !important;
    position: absolute;
    right: -5px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,.45);
    opacity: 0;
}
html.is-pc .vp.open .play-shell .feed-item:hover .feed-progress-bar::after,
html.is-pc .vp.open .play-shell .feed-item.is-hover .feed-progress-bar::after,
html.is-pc .vp.open .play-shell .feed-item.is-scrubbing .feed-progress-bar::after {
    opacity: 1 !important;
}
html.is-pc .vp.open .play-shell .feed-item .feed-progress-time {
    display: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,.95) !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 14px !important;
    transform: translateX(-50%) !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    background: rgba(0,0,0,.5) !important;
    pointer-events: none !important;
    white-space: nowrap !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,
html.is-pc .vp.open .play-shell .feed-item.is-scrubbing .feed-progress-time {
    display: block !important;
}

    /* Rail de acciones: círculos semioscuros + compartir visible */
html.is-pc .feed-actions {
        right: 10px;
        bottom: 16%;
        gap: 14px;
        z-index: 14;
    }
html.is-pc .feed-actions .feed-action-icon {
        width: 46px !important;
        height: 46px !important;
        border-radius: 50% !important;
        background: rgba(37,37,37,.55) !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,.25) !important;
    }
html.is-pc .feed-actions .feed-action-icon svg {
        width: 24px !important;
        height: 24px !important;
        filter: none !important;
    }
html.is-pc .feed-actions .feed-action-label {
        font-size: 12px;
        font-weight: 700;
        margin-top: 3px;
        text-shadow: 0 1px 3px rgba(0,0,0,.5);
    }
html.is-pc .feed-action-perfil-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 4px;
    }
html.is-pc .feed-action-perfil-img {
        width: 48px;
        height: 48px;
        border: 2px solid #fff;
    }
    /* Columna: sin mute en rail (va arriba) */
html.is-pc .feed-actions .feed-mute-btn { display: none !important; }
    /* Mute PC: esquina superior derecha DENTRO del video */
html.is-pc .feed-mute-desktop {
        display: flex !important;
        position: absolute;
        top: 16px;
        right: 16px;
        z-index: 16;
        margin: 0;
        flex-direction: column;
        align-items: center;
        pointer-events: auto;
    }
html.is-pc .feed-mute-desktop .feed-mute-icon-lg {
        width: 42px !important;
        height: 42px !important;
        background: rgba(0,0,0,.5) !important;
        border: 1px solid rgba(255,255,255,.28) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,.35) !important;
        border-radius: 50% !important;
    }
html.is-pc .feed-mute-desktop .feed-mute-label { display: none; }
html.is-pc .feed-mute-desktop[data-muted="0"] .feed-mute-icon-lg {
        background: rgba(254,44,85,.85) !important;
    }
}
