.activity-type,
.activity-title,
.activity-subtitle,
.activity-rating,
.activity-time {
    font-family: 'OCR-A', monospace;
    /* ... */
}


#activity {
    display: grid;

    grid-template-columns:
        repeat(12, minmax(0, 1fr));

    gap: 8px;

    width: 100%;
    margin-top:22px;
}


.activity-artist-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.activity-plays {
    margin-left: auto;
    white-space: nowrap;
}



/*
 * ------------------------------------------------------------
 * Cards
 * ------------------------------------------------------------
 */

.activity-card {
    position: relative;

    display: block;

    overflow: hidden;

    border-radius: 2px;

    background: #000;

    text-decoration: none;

    color: inherit;
    
}




/*
 * Albums
 *
 * 4 across
 */

.activity-music {
    grid-column: span 3;
    aspect-ratio: 1 / 1
}


/*
 * Films
 *
 * 6 across
 */

.activity-film {
    grid-column: span 2;
    aspect-ratio: 1 / 1.5
}


/*
 * ------------------------------------------------------------
 * Images
 * ------------------------------------------------------------
 */

.activity-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}


.activity-card:hover .activity-image {
    transform: scale(1.035);

    filter: brightness(0.75);
}


/*
 * Dark gradient over image
 */

.activity-card::after {
    content: '';

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.8),
            rgba(0, 0, 0, 0) 55%
        );
}


/*
 * ------------------------------------------------------------
 * Information
 * ------------------------------------------------------------
 */

.activity-info {
    position: absolute;

    z-index: 2;

    left: 7px;
    right: 7px;
    bottom: 7px;

    padding: 6px 8px;

    background: rgba(0, 0, 0, 0.82);

    color: #fff;

    border-radius: 3px;

    line-height: 1.15;
}


.activity-type {
    font-size: 9px;

    opacity: 0.6;

    letter-spacing: 0.08em;

    margin-bottom: 3px;
}


.activity-title {
    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.activity-subtitle {
    font-size: 11px;

    opacity: 0.75;

    margin-top: 2px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.activity-rating {
    font-size: 12px;

    letter-spacing: 1px;

    margin-top: 3px;
}


.activity-time {
    font-size: 9px;

    opacity: 0.5;

    margin-top: 4px;
}


/*
 * ------------------------------------------------------------
 * Desktop
 * ------------------------------------------------------------
 *
 * 12 columns
 *
 * Music = 3 columns each
 * Film  = 2 columns each
 *
 * 4 music + 6 films
 * = exactly the layout you're after
 */


/*
 * ------------------------------------------------------------
 * Tablet
 * ------------------------------------------------------------
 */

@media (max-width: 900px) {

    #activity {
        grid-template-columns:
            repeat(6, minmax(0, 1fr));

        gap: 6px;
    }


    /*
     * 2 albums across
     */

    .activity-music {
        grid-column: span 3;
    }


    /*
     * 3 films across
     */

    .activity-film {
        grid-column: span 2;
    }
}


/*
 * ------------------------------------------------------------
 * Mobile
 * ------------------------------------------------------------
 */

@media (max-width: 550px) {

    #activity {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 5px;
    }


    /*
     * Albums = 2 across
     */

    .activity-music {
        grid-column: span 1;
    }


    /*
     * Films = 2 across
     */

    .activity-film {
        grid-column: span 1;
    }


    .activity-info {
        left: 5px;
        right: 5px;
        bottom: 5px;

        padding: 5px 6px;
    }


    .activity-title {
        font-size: 12px;
    }


    .activity-subtitle {
        font-size: 10px;
    }


    .activity-rating {
        font-size: 10px;
    }
}