/* --- YouTube-style overlay treatment, only for items that are actual
       video links (leaves logo/business-card .pcs-logo-item pages alone) --- */

.pcs-logo-item:has(.pcs-video-link) {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: #0f0f0f;
}

.pcs-logo-item:has(.pcs-video-link) .pcs-video-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.pcs-logo-item:has(.pcs-video-link) .pcs-showcase-img {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    border: none;
    background-color: #0f0f0f;
    object-fit: cover;
    aspect-ratio: auto;
    padding: 0;
    display: block;
}

/* top gradient so the title/logo overlay stays legible */
.pcs-logo-item:has(.pcs-video-link) .pcs-video-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.32) 60%, rgba(0,0,0,0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* bottom-right "Watch on YouTube" pill */
.pcs-logo-item:has(.pcs-video-link) .pcs-video-link::after {
    content: "▶  Watch on YouTube";
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    background: rgba(20, 20, 20, 0.85);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    pointer-events: none;
}

/* center red play button */
.pcs-logo-item:has(.pcs-video-link) .pcs-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 44px;
    background: #ff0000;
    border-radius: 12px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.pcs-logo-item:has(.pcs-video-link) .pcs-play-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 56%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #fff;
}

/* top-left overlay: logo badge + title/subtitle, built from the existing
   caption markup — first span becomes the title line, second the subtitle */
.pcs-logo-item:has(.pcs-video-link) .pcs-image-caption {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 96px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.6rem;
    pointer-events: none;
}

.pcs-logo-item:has(.pcs-video-link) .pcs-image-caption::before {
    content: "IH";
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5f6d, #4facfe);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcs-logo-item:has(.pcs-video-link) .pcs-image-caption span {
    display: block;
    text-align: left;
}

.pcs-logo-item:has(.pcs-video-link) .pcs-image-caption span:first-child {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

.pcs-logo-item:has(.pcs-video-link) .pcs-image-caption span:last-child {
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 2px;
}

/* bottom-left share/time chip */
.pcs-logo-item:has(.pcs-video-link)::after {
    content: "↗  🕐";
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    background: rgba(20, 20, 20, 0.6);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    pointer-events: none;
}