/**
 * Styles pour la page watch.php
 */

/* Iframe container 16:9 responsive */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Modal Animations */
@keyframes slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slide-up 0.3s ease-out;
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

/* Video iframe styles */
.video-wrapper {
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Radio button hover effect */
input[type="radio"]:checked + div .font-medium {
    color: #ef4444;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .video-container {
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
    }
}

@media (max-width: 640px) {
    .animate-slide-up {
        animation: slide-up 0.2s ease-out;
    }
    
    /* Better mobile modal */
    #reportModal > div {
        max-width: 100%;
        margin: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

/* Custom scrollbar for modal */
#reportModal > div {
    scrollbar-width: thin;
    scrollbar-color: #4b5563 #1f2937;
}

#reportModal > div::-webkit-scrollbar {
    width: 8px;
}

#reportModal > div::-webkit-scrollbar-track {
    background: #1f2937;
}

#reportModal > div::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

#reportModal > div::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Viewed indicator animation */
.viewed-indicator {
    transition: all 0.3s ease;
}

/* Copy button animation */
#copyLinkBtn {
    transition: all 0.3s ease;
}

/* Form input focus styles */
input:focus, 
textarea:focus, 
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Report form radio buttons */
#reportForm input[type="radio"] {
    accent-color: #ef4444;
}

#reportForm label {
    transition: all 0.2s ease;
}

#reportForm label:hover {
    transform: translateX(2px);
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Video card hover effects */
.video-card {
    transition: transform 0.2s ease;
}

.video-card:hover {
    transform: translateY(-2px);
}

/* Tags styling */
.tag-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.tag-pill:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}