/* Explain: Styles for rich media embed cards in articles. */
.embed-card {
    margin: 2rem 0;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
}

.embed-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(140deg, var(--sage-dark), #22331f);
}

.embed-thumb {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.embed-media iframe {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    border: 0;
}

.embed-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(180deg, rgba(15, 23, 18, 0.1), rgba(15, 23, 18, 0.5));
    color: #ffffff;
    transition: background 300ms ease;
}

.embed-play:hover {
    background: linear-gradient(180deg, rgba(15, 23, 18, 0.2), rgba(15, 23, 18, 0.62));
}

.embed-play-icon {
    display: inline-flex;
    height: 4.25rem;
    width: 4.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.94);
    color: var(--sage-dark);
    font-size: 1.5rem;
    box-shadow: var(--shadow-button);
    transition: transform 300ms ease;
}

.embed-play:hover .embed-play-icon {
    transform: scale(1.06);
}

.embed-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.6rem;
}

.embed-caption {
    padding: 1rem 1.4rem 1.2rem;
}

.embed-platform {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    padding: 0.3rem 0.75rem;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.embed-caption h3 {
    margin-top: 0.7rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
}

.embed-source {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-color);
    transition: color 300ms ease;
}

.embed-source:hover {
    color: var(--sage-dark);
}