/********************************************************
 * New TV Show Home Page Grid
 ********************************************************/
.mc-tv-home-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    width: 100%;
}

.mc-tv-home-card
{
    display: block;
    text-decoration: none;
    color: inherit;
}

.mc-tv-home-poster-wrap
{
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
}

.mc-tv-home-poster
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.mc-tv-home-poster-placeholder
{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    color: var(--default_table_text_color);
    background: rgba(255,255,255,0.05);
    font-size: 14px;
}

.mc-tv-home-overlay
{
    position: absolute;
    inset: 0;
    display: block;
    padding: 12px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mc-tv-home-card:hover .mc-tv-home-overlay
{
    opacity: 1;
}

.mc-tv-home-card:hover .mc-tv-home-poster
{
    transform: scale(1.05);
}

.mc-tv-home-overlay-content
{
    color: #ffffff;
    width: 100%;
}

.mc-tv-home-rating
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: 600;
}

.mc-tv-grid-error,
.mc-tv-grid-empty
{
    color: var(--default_table_text_color);
    text-align: center;
    padding: 20px;
}

@media (max-width: 767px)
{
    .mc-tv-home-grid
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .mc-tv-home-rating
    {
        font-size: 13px;
    }
}