.cg-0095811f-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .cg-0095811f-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cg-0095811f-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cg-0095811f-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background: #000; /* Dark background default for cinema feel */
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cg-0095811f-card:hover {
    transform: scale(1.05); /* Enlarge the poster on hover */
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    z-index: 10;
}

.cg-entire-clickable .cg-0095811f-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

.cg-0095811f-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
    flex-grow: 1;
}

/* Aspect Ratio Options */
.cg-aspect-auto .cg-0095811f-thumbnail {
    aspect-ratio: auto;
}

.cg-aspect-2-3 .cg-0095811f-thumbnail,
.cg-aspect-2-3 .cg-0095811f-placeholder {
    aspect-ratio: 2/3;
}

.cg-aspect-16-9 .cg-0095811f-thumbnail,
.cg-aspect-16-9 .cg-0095811f-placeholder {
    aspect-ratio: 16/9;
}

.cg-aspect-1-1 .cg-0095811f-thumbnail,
.cg-aspect-1-1 .cg-0095811f-placeholder {
    aspect-ratio: 1/1;
}

.cg-0095811f-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
}

/* Object Fit Options */
.cg-fit-cover .cg-0095811f-thumbnail img {
    object-fit: cover;
}

.cg-fit-contain .cg-0095811f-thumbnail img {
    object-fit: contain;
}

.cg-0095811f-placeholder {
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
}

/* Card titles and details styling overlaying or cleanly styled */
.cg-0095811f-content {
    padding: 12px;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    position: relative;
    background: #000;
}

.cg-0095811f-title {
    font-size: 14px;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.cg-0095811f-title a {
    text-decoration: none;
    color: #fff;
    transition: color 0.2s ease;
}

.cg-0095811f-title a:hover {
    color: #e50914; /* Cinematic red accent on hover */
}

.cg-0095811f-meta {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.cg-0095811f-pagination {
    text-align: center;
    margin-top: 30px;
}

.cg-0095811f-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #333;
    border-radius: 4px;
    text-decoration: none;
    color: #ccc;
    background: #111;
    transition: all 0.2s ease;
}

.cg-0095811f-pagination .page-numbers.current,
.cg-0095811f-pagination .page-numbers:hover {
    background-color: #e50914;
    color: #fff;
    border-color: #e50914;
}

.cg-0095811f-nav-links .disabled {
    opacity: 0.3;
    pointer-events: none;
}
