/**
 * Article Embeds — YouTube watch card 样式
 * wallprintbox.com
 */

/* ========== Video Card Container ========== */
.external-video-card {
    background: #1e1e2e;
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s ease;
}

.external-video-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

/* ========== Card Link (Grid Layout) ========== */
.external-video-card-link {
    display: grid;
    grid-template-columns: 280px 1fr;
    text-decoration: none;
    color: inherit;
    min-height: 160px;
}

.external-video-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* ========== Thumbnail Area ========== */
.external-video-card-media {
    position: relative;
    overflow: hidden;
}

.external-video-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== Play Button ========== */
.external-video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.external-video-card-play::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 16px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}

.external-video-card:hover .external-video-card-play {
    background: rgba(255,0,0,0.85);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ========== Text Area ========== */
.external-video-card-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.external-video-card-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff0000;
    margin-bottom: 0.5rem;
}

.external-video-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.external-video-card-meta {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.55);
    margin-top: auto;
}

/* ========== Responsive ========== */
@media (max-width: 767.98px) {
    .external-video-card-link {
        grid-template-columns: 1fr;
    }

    .external-video-card-media {
        aspect-ratio: 16 / 9;
    }

    .external-video-card-body {
        padding: 1rem 1.25rem 1.25rem;
    }
}
