body {
    font-family: "Segoe UI", sans-serif;
    background: #1e1e2f;
    color: #fff;
    margin: 0;
    padding: 2rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    cursor: pointer;
    background: #2e2e3f;
    border-radius: 10px;
    padding: 1rem;
    transition: 0.3s;
}

.card:hover {
    background: #3f3f5a;
}

.card img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.card h2 {
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
}

.card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.card a {
    display: inline-block;
    margin-top: 0.5rem;
    color: #61dafb;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #ff4d4d;
    color: white;
    border: none;
    font-size: 1.2rem;
    padding: 6px 12px;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
}
