﻿:root {
    --bg: #0b0d10;
    --card: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.12);
    --accent: #00e676;
    --text-muted: #a0a0a0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, #111827, #020617);
    font-family: 'Inter', system-ui, sans-serif;
    color: #fff;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
    background: rgba(5,8,15,0.7);
    border-bottom: 1px solid var(--border);
    padding: 18px 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

/* Layout */
.container {
    padding: 40px;
}

/* Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* Card */
.video-card {
    position: relative;
    background: var(--card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all .35s ease;
}

    .video-card:hover {
        transform: translateY(-10px) scale(1.015);
        box-shadow: 0 40px 90px rgba(0,0,0,.6);
    }

/* Thumbnail */
.video-thumb {
    position: relative;
    height: 190px;
    background: #000;
}

    .video-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Play Overlay */
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
    opacity: 0;
    transition: .3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0,0,0,.7);
    display: grid;
    place-items: center;
    font-size: 28px;
    border: 1px solid var(--border);
}

/* Info */
.video-info {
    padding: 18px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.video-views {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.96);
    z-index: 999;
}

    .modal video {
        width: 88%;
        max-height: 75vh;
        margin: 90px auto 20px;
        display: block;
        border-radius: 14px;
    }

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 28px;
    cursor: pointer;
}

.modal-actions {
    text-align: center;
}

    .modal-actions a {
        display: inline-block;
        background: var(--accent);
        color: #000;
        padding: 14px 28px;
        border-radius: 999px;
        text-decoration: none;
        font-weight: 700;
    }

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .modal video {
        width: 95%;
    }
}
