.youtube-embed {
    margin: 12px 16px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.1);
}

.youtube-thumbnail {
    position: relative;
    cursor: pointer;
    aspect-ratio: 16/9;
    display: block;
    text-decoration: none;
}

.youtube-embed.youtube-short .youtube-thumbnail {
    aspect-ratio: 9/16;
    max-width: 280px;
    margin: 0 auto;
}

.youtube-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.youtube-thumbnail:hover img {
    transform: scale(1.02);
    filter: brightness(0.85);
}

.youtube-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    pointer-events: none;
}

.youtube-thumbnail:hover .youtube-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-play-btn svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.youtube-short-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.youtube-short-badge svg {
    width: 16px;
    height: 16px;
    fill: #f00;
}

.youtube-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    text-decoration: none;
    transition: background 0.2s ease;
}

.youtube-info:hover {
    background: rgba(255,255,255,0.08);
}

.youtube-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.youtube-icon svg {
    width: 100%;
    height: 100%;
}

.youtube-text {
    flex: 1;
    min-width: 0;
}

.youtube-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2px;
}

.youtube-cta {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.youtube-arrow {
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.youtube-thumbnail:hover + .youtube-info .youtube-arrow {
    color: #fff;
}


.yt-video-card {
    display: block;
    position: relative;
    margin: 12px 16px;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    text-decoration: none;
    cursor: pointer;
}

.yt-video-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.yt-video-card:hover .yt-video-card-bg {
    transform: scale(1.05);
}

.yt-video-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.1) 40%,
        rgba(0,0,0,0.5) 100%
    );
}

.yt-video-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.yt-video-card-badge svg {
    width: 18px;
    height: 18px;
}

.yt-video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(255,0,0,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.yt-video-card:hover .yt-video-card-play {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ff0000;
}

.yt-video-card-play svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.yt-video-card-cta {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    transition: background 0.2s ease;
    z-index: 2;
}

.yt-video-card:hover .yt-video-card-cta {
    background: rgba(255,255,255,0.25);
}

.yt-video-card-cta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}
