/* Story pages: video players inside stories and the "Related" box. */

/* ---- Video players (App\Support\VideoEmbed) ---------------------------- */
.article-video {
    margin: 1.6em 0;
    max-width: 100%;
}
.article-video__play,
.article-video iframe,
.article-video__file {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 6px;
    background: #0d1b2a;
}
.article-video--vertical {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
.article-video--vertical .article-video__play,
.article-video--vertical iframe {
    aspect-ratio: 9 / 16;
}
.article-video__play {
    position: relative;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #14263d, #0d1b2a);
}
.article-video__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease, opacity .2s ease;
}
.article-video__play:hover .article-video__thumb,
.article-video__play:focus-visible .article-video__thumb {
    transform: scale(1.02);
    opacity: .9;
}
.article-video__brand {
    position: absolute;
    left: 16px;
    bottom: 14px;
    color: rgba(255, 255, 255, .85);
    font: 600 14px/1 Arial, Helvetica, sans-serif;
    letter-spacing: .02em;
}
.article-video__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 48px;
    margin: -24px 0 0 -34px;
    border-radius: 12px;
    background: rgba(200, 16, 46, .92);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
    transition: background .15s ease, transform .15s ease;
}
.article-video__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -6px;
    border-style: solid;
    border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #fff;
}
.article-video__play:hover .article-video__icon,
.article-video__play:focus-visible .article-video__icon {
    background: #c8102e;
    transform: scale(1.06);
}
.article-video__play:focus-visible {
    outline: 3px solid #c8102e;
    outline-offset: 3px;
}
.article-video__caption {
    margin-top: 6px;
    font: 13px/1.4 Arial, Helvetica, sans-serif;
    color: #5b6470;
}
.article-video__caption a {
    color: inherit;
    text-decoration: underline;
}

/* ---- "Related" box inside the story ---------------------------------- */
.related-inline {
    margin: 1.8em 0;
    padding: 14px 16px;
    border-top: 3px solid #c8102e;
    background: #f6f7f9;
    border-radius: 0 0 6px 6px;
    font-family: Arial, Helvetica, sans-serif;
}
.related-inline__label {
    margin: 0 0 10px !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #c8102e;
}
.related-inline__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.related-inline__link {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #0d1b2a;
    text-decoration: none !important;
}
.related-inline__thumb {
    flex: 0 0 auto;
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
}
.related-inline__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.related-inline__section {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #5b6470;
}
.related-inline__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}
.related-inline__link:hover .related-inline__title,
.related-inline__link:focus-visible .related-inline__title {
    text-decoration: underline;
}
@media (min-width: 768px) {
    .related-inline__list { grid-template-columns: 1fr 1fr; }
}

/* Inside the story text, the theme's own image and link rules would stretch
   the thumbnails; these keep the related box's layout. */
.article-body .related-inline__link { display: flex !important; flex-direction: row; }
.article-body .related-inline__thumb {
    width: 96px !important;
    height: 64px !important;
    max-width: none !important;
    margin: 0 !important;
    flex: 0 0 96px;
}
.article-body .related-inline__text { flex: 1 1 auto; }
.article-body .article-video__thumb { max-width: none; height: 100% !important; margin: 0 !important; }
