/* 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) — la cinta roja sigue las esquinas */
html.is-pc .tt-slide .feed-item,
html.is-pc .play-shell .play-slide .feed-item,
html.is-pc .play-shell .feed-item {
        height: 100%;
        max-height: 100%;
        width: auto;
        max-width: min(calc(100vh * 9 / 16), 100%);
        aspect-ratio: 9 / 16;
        border-radius: 18px !important; /* más redondeado: se ve bien la cinta */
        overflow: hidden !important;
        background: #000;
        box-shadow: 0 0 0 1px rgba(255,255,255,.06);
        align-self: center;
        position: relative;
        -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 ↑↓ 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;
    }
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 (#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: 12;
    left: 0 !important;
    right: 0 !important;
    bottom: 3px !important; /* 3px del borde del marco */
    height: 2.5px !important;
    max-height: 2.5px !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: rgba(255,255,255,.18) !important;
    overflow: hidden !important;
    pointer-events: none !important;
    transition: none !important;
}
html.is-pc #feed .feed-progress-row {
    display: block !important;
    height: 100% !important;
    gap: 0 !important;
}
html.is-pc #feed .feed-progress-track {
    height: 2.5px !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}
html.is-pc #feed .feed-progress-bar {
    max-height: 2.5px !important;
    height: 2.5px !important;
    background: #fe2c55 !important;
    border-radius: 0 !important;
}
html.is-pc #feed .feed-progress-bar::after {
    display: none !important;
    content: none !important;
}
html.is-pc #feed .feed-progress-time {
    display: none !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; /* más bajo / pegado al pie del marco */
    background: linear-gradient(to top, rgba(0,0,0,.4), transparent 85%) !important;
    overflow: visible !important;
    pointer-events: none !important;
    z-index: 18 !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 {
    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;
}
html.is-pc .vp.open .play-shell .feed-item .feed-progress-track {
    height: 3px !important;
    background: rgba(180,180,180,.45) !important; /* gris track */
    border-radius: 999px !important;
    overflow: visible !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 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;
    }
}
