* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0b0f1a;
    color: white;
    font-family: Arial, sans-serif;
}

/* TOPBAR */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 35px;
    background: linear-gradient(to bottom, #09111f, #0b0f1a);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 34px;
    font-weight: bold;
    color: #8b5cf6;
}

.header-info h1 {
    margin: 0;
    font-size: 32px;
}

.header-info p {
    margin-top: 8px;
    color: #9ca3af;
}

.update-date {
    text-align: right;
    font-size: 14px;
    color: #9ca3af;
}

.update-date strong {
    display: block;
    margin-top: 5px;
    color: #c4b5fd;
}

/* CATEGORY */

.category-section {
    padding: 30px 35px;
}

.category-section h2 {
    margin-bottom: 22px;
    font-size: 28px;
}

/* GRID */

.media-grid {
    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));

    gap: 18px;
}

/* CARD */

.media-card {
    transition: transform 0.18s ease;
}

.media-card:hover {
    transform: scale(1.05);
}

.poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #111827;
    box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* META */

.meta {
    padding-top: 10px;
}

.title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.year {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 4px;
}

.added {
    color: #6b7280;
    font-size: 12px;
}

/* FOOTER */

footer {
    padding: 40px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* RESPONSIVE */

@media screen and (max-width: 1200px) {

    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media screen and (max-width: 900px) {

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media screen and (max-width: 600px) {

    .category-section {
        padding: 20px;
    }

    .media-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .title {
        font-size: 13px;
    }

    .year {
        font-size: 12px;
    }

    .added {
        font-size: 11px;
    }

    .header-info h1 {
        font-size: 24px;
    }
}