/* Filimo-style 3D Stacked Card Effect for TV Series - Subtle Top Edges */
.tvshow-stacked-card {
    position: relative;
    margin-top: 10px;
}

.tvshow-stacked-card .stack-layer {
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(80,80,80,0.8), rgba(60,60,60,0.6));
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(100,100,100,0.3);
    border-bottom: none;
}

.tvshow-stacked-card .stack-layer-3 {
    top: -8px;
    left: -4px;
    right: -4px;
    z-index: 0;
}

.tvshow-stacked-card .stack-layer-2 {
    top: -4px;
    left: -2px;
    right: -2px;
    z-index: 1;
}

.tvshow-stacked-card .block-images {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.tvshow-stacked-card .image-box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.tvshow-stacked-card:hover .block-images {
    transform: translateY(-2px);
}

.tvshow-stacked-card:hover .stack-layer-2 {
    top: -6px;
}

.tvshow-stacked-card:hover .stack-layer-3 {
    top: -10px;
}

/* Movie title below thumbnail - Filimo style */
.movie-title-below {
    padding: 0 5px;
}

.movie-title-below h6 {
    color: var(--bs-body-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.iq-card:hover .movie-title-below h6 {
    color: var(--bs-white);
}

/* Increase spacing between homepage sections */
.section-wraper {
    margin-bottom: 50px;
}

.section-wraper:last-child {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .section-wraper {
        margin-bottom: 35px;
    }
}

/* Move hover info up */
.iq-card .block-images .card-description.with-transition {
    padding-top: 0.5rem !important;
}

/* Move hover info higher up - more aggressive */
.card-hover:hover .block-images .card-description.with-transition {
    padding-top: 0 !important;
    padding-bottom: 0.5rem !important;
}

.iq-card .block-images .card-description {
    padding-top: 0.5rem !important;
}
