/* Front-page embed of the NewsNow player (/newsnow/app/?video=1). */

.coverage-player {
    margin: 4px 0 14px;
}

.newsnow-embed {
    position: relative;
    width: 100%;
    /* Taller than the video itself: the frame also carries the control strip
       (country / section / length / history) and the icon row beneath it. */
    aspect-ratio: 16 / 13;
    background: #07090d;
    border: 1px solid #243040;
    border-radius: 6px;
    overflow: hidden;
}

.newsnow-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Fill-window: the player asks the host page to expand it, because an
 * iframe can't escape its own box. */
.newsnow-embed.is-filling {
    position: fixed;
    inset: 0;
    z-index: 9999;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
}

body.newsnow-fill-lock {
    overflow: hidden;
}

/* When no lead story ran this edition, the player keeps its side-rail
 * column instead of stretching across the whole page. */
.lead-no-story .coverage {
    grid-column: 2;
}

/* Phones: the player leads the page, above the lead story, and spans the
 * single column. Desktop keeps it in the right-hand rail. */
@media (max-width: 700px) {
    .lead .coverage {
        order: -1;
        grid-column: auto;
        border-top: 0;
        border-bottom: 1px solid var(--rule);
        padding: 0 0 12px;
    }

    .newsnow-embed {
        aspect-ratio: 16 / 12;
    }
}

/* Companion status pill — the front page loads only this slice of
 * newsnow.css, so the styles it needs are repeated here. */
.coverage .companion-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    font: 600 9px "IBM Plex Mono", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faded);
}

.coverage .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b8933a;
    flex: none;
}

.coverage .companion-status[data-state="ready"] .status-dot { background: #2e8b57; }
.coverage .companion-status[data-state="missing"] .status-dot { background: #c1442e; }

.coverage .companion-enable {
    margin-left: auto;
    border: 1px solid var(--ink);
    background: var(--card);
    color: var(--ink);
    font: 600 9px "IBM Plex Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 7px;
    cursor: pointer;
}

.coverage .companion-enable:hover {
    background: var(--ink);
    color: var(--paper);
}
