/* Share bar on video detail page */
.video-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.video-share {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.video-share-label {
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
    margin-right: 0.15rem;
    white-space: nowrap;
}

.video-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

/* display:inline-flex arriba gana a [hidden] del UA — hay que forzar ocultar */
.video-share-btn[hidden] {
    display: none !important;
}

.video-share-btn:hover,
.video-share-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #f8fafc;
    outline: none;
    transform: translateY(-1px);
}

.video-share-btn svg {
    width: 14px;
    height: 14px;
    opacity: 0.9;
    flex-shrink: 0;
}

.video-share-btn[data-share="whatsapp"]:hover { color: #25d366; border-color: rgba(37, 211, 102, 0.4); }
.video-share-btn[data-share="telegram"]:hover { color: #2aabee; border-color: rgba(42, 171, 238, 0.4); }
.video-share-btn[data-share="twitter"]:hover { color: #e7e9ea; border-color: rgba(231, 233, 234, 0.35); }
.video-share-btn[data-share="facebook"]:hover { color: #1877f2; border-color: rgba(24, 119, 242, 0.4); }
.video-share-btn[data-share="reddit"]:hover { color: #ff4500; border-color: rgba(255, 69, 0, 0.4); }
.video-share-btn[data-share="copy"].is-copied {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.45);
}

.video-stats #reportBtn {
    margin-left: 0;
}

.video-share-toast {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: #0f172a;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.video-share-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
    .video-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 0.35rem;
        justify-content: space-between;
    }

    .video-share-label {
        display: none;
    }
}
