/* =================== Feature video chips =================== */

/* One small pill for each tutorial video of a feature card: a red play button,
   a short name, and the length of the video. The name stays on one line. */
.feature-video-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding-block: 0.25rem;
    padding-inline: 0.3rem 0.75rem;
    border-radius: 50rem;
    background-color: #f1ecff;
    color: #3d1fa3;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.feature-video-play {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: #ff0000;
    color: #ffffff;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* The triangle points to the right in every language, as on every video player. */
.feature-video-play svg {
    width: 0.6rem;
    height: 0.6rem;
    margin-left: 0.1rem;
}

.feature-video-label {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.feature-video-duration {
    flex-shrink: 0;
    color: #5b2be0;
    font-weight: 400;
    transition: color 0.2s ease;
}

/* The hover effect changes only the colors. */
a.feature-video-chip:hover,
a.feature-video-chip:focus-visible {
    background-color: #5b2be0;
    color: #ffffff;
}

a.feature-video-chip:hover .feature-video-play,
a.feature-video-chip:focus-visible .feature-video-play {
    background-color: #ffffff;
    color: #ff0000;
}

a.feature-video-chip:hover .feature-video-duration,
a.feature-video-chip:focus-visible .feature-video-duration {
    color: #ffffff;
}
