@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px;
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #f5f5f5;
}

/* Title */
h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 28px;
    color: #ff8383;
}

/* Search */
#search {
    width: 100%;
    max-width: 420px;

    padding: 14px 18px;

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;

    background: rgba(255,255,255,0.04);
    color: white;

    outline: none;

    backdrop-filter: blur(10px);

    transition: all 0.25s ease;

    font-size: 15px;

    margin-bottom: 40px;
}

#search::placeholder {
    color: rgba(255,255,255,0.4);
}

#search:focus {
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);

    box-shadow:
        0 0 0 4px rgba(255,255,255,0.03),
        0 10px 30px rgba(0,0,0,0.3);
}

/* Grid */
#videos {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 24px;
}

/* Card */
.video-card {
    position: relative;

    padding: 24px;

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.05),
            rgba(255,255,255,0.02)
        );

    border: 1px solid rgba(255,255,255,0.06);

    backdrop-filter: blur(16px);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* subtle glow */
.video-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at top left,
            rgba(255,255,255,0.08),
            transparent 40%
        );

    pointer-events: none;
}

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

    border-color: rgba(255,255,255,0.12);

    box-shadow:
        0 20px 40px rgba(0,0,0,0.45),
        0 0 30px rgba(255,255,255,0.03);
}

/* Title */
.video-card h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #d0ff00;
    letter-spacing: -0.5px;
}

/* Description */
.video-card p {
    margin: 0 0 20px 0;

    font-size: 14px;
    line-height: 1.6;

    color: rgba(255,255,255,0.62);
}

/* Button */
.video-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border-radius: 14px;

    background: white;
    color: black;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}

.video-card a:hover {
    transform: scale(1.04);
    opacity: 0.92;
}

/* Mobile */
@media (max-width: 700px) {
    body {
        padding: 24px;
    }

    h1 {
        font-size: 32px;
    }

    #videos {
        gap: 18px;
    }

    .video-card {
        padding: 20px;
    }
}
