/* Index video / playlist thumbnails + panel 2.2 */
.thumb-wrap {
    position: relative;
    display: block;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.thumb-img {
    height: 190px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.thumb-img-sm {
    height: 140px;
}

.play-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 15, 0.28);
    pointer-events: none;
    transition: background 0.2s ease;
}

.thumb-wrap:hover .play-watermark {
    background: rgba(15, 15, 15, 0.4);
}

.play-watermark .fa-play-circle {
    font-size: 68px;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.playlist-overlay-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #242952;
    border: 0;
    border-radius: 8px;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    white-space: nowrap;
}

.thumb-wrap.open-playlist::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.28);
    pointer-events: none;
}

.thumb-title {
    text-align: center;
    font-size: 16px;
    margin: 10px 0 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #242952;
    min-height: 2.4em;
}

.thumb-title-sm {
    font-size: 14px;
    min-height: 2.6em;
}

#panel-playlist {
    background: #242952;
    min-height: 80vh;
}

.playlist-panel-inner {
    padding: 16px 18px 24px;
}

.playlist-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.playlist-panel-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
}

.playlist-panel-grid {
    overflow-y: auto;
    max-height: calc(80vh - 90px);
    padding-right: 4px;
}

.back-to-index {
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .thumb-img {
        height: 160px;
    }
    .play-watermark .fa-play-circle {
        font-size: 54px;
    }
}
