/* static/style.css - COMPLETE FILE */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
}

header {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 2px solid #e94560;
}

header h1 {
    font-size: 3rem;
    color: #e94560;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

header p {
    color: #aaa;
    margin-top: 0.5rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.warning {
    background: rgba(233, 69, 96, 0.2);
    border: 2px solid #e94560;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
    font-weight: bold;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.video-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
    border-color: #e94560;
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #0f3460;
}

.video-details {
    padding: 1rem;
}

.video-title {
    font-size: 0.9rem;
    line-height: 1.4;
    height: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.modal-content {
    position: relative;
    margin: 3% auto;
    width: 90%;
    max-width: 1200px;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #e94560;
}

#modal-video {
    width: 100%;
    max-height: 80vh;
    background: #000;
    border-radius: 10px;
}

#video-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 10px;
}

.loading {
    text-align: center;
    padding: 4rem;
    font-size: 1.5rem;
    color: #e94560;
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: #e94560;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

footer a:hover {
    color: #ff5574;
    text-decoration: underline;
}

/* Mobile Responsive - 2 columns */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .video-card {
        min-width: 0;
    }
    
    .video-thumbnail {
        height: 150px;
    }
    
    .video-title {
        font-size: 0.85rem;
        height: 50px;
        -webkit-line-clamp: 2;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .warning {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .close {
        top: -35px;
        font-size: 35px;
    }
    
    #video-info {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    footer {
        font-size: 0.85rem;
        padding: 1.5rem 1rem;
    }
}

/* Very small phones - still 2 columns but tighter */
@media (max-width: 400px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .video-thumbnail {
        height: 120px;
    }
    
    .video-title {
        font-size: 0.75rem;
        height: 45px;
        padding: 0.5rem;
    }
    
    .video-details {
        padding: 0.5rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .warning {
        font-size: 0.8rem;
        padding: 0.6rem;
        margin: 1rem 0;
    }
}

/* Disable video download controls */
video::-webkit-media-controls-download-button {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

video::-moz-media-controls-download-button {
    display: none !important;
}