.briefing-player {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* avoid mobile browser chrome causing overflow */
    overflow: hidden;
    background: #000;
    color: #fff;
    outline: none;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.briefing-center {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    gap: 1rem;
    overflow-y: auto;
}

/* ── Title / start / completed screens ───────────────────────────────────
   Styled here rather than leaning on the site's button classes: the briefing
   runs on arbitrary CMS sites and on suite screens, so it must look the same
   whether or not the host site's CSS framework is loaded. */

.briefing-player h1,
.briefing-player h2,
.briefing-player h3 {
    color: #fff;
    margin: 0;
    line-height: 1.1;
}

.briefing-center h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.briefing-center h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
}

.briefing-center p {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.5;
    max-width: 46rem;
    margin: 0;
    opacity: 0.85;
}

.briefing-start {
    display: inline-block;
    width: auto;
    align-self: center;
    margin-top: 1rem;
    padding: 0.9rem 3rem;
    border: 0;
    border-radius: 3px;
    background: #c8102e;
    color: #fff;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.briefing-start:hover {
    background: #e6122f;
}

.briefing-start:active {
    transform: translateY(1px);
}

.briefing-start:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ── Standby ─────────────────────────────────────────────────────────────
   Shown on a suite screen when no briefing/event is set. This sits on a TV in
   a room all day and guests may see it, so it reads as a deliberate resting
   state, not an error. It updates itself the moment a briefing is assigned. */

.briefing-standby {
    gap: 1.5rem;
}

.briefing-standby-mark {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    flex: 0 0 auto;
}

.briefing-standby-mark::after {
    content: "";
    position: absolute;
    inset: -2px;
    border: 2px solid #c8102e;
    border-radius: 50%;
    opacity: 0;
    animation: briefing-pulse 2.6s ease-out infinite;
}

@keyframes briefing-pulse {
    0% { transform: scale(0.92); opacity: 0.7; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* Quieter than the deck's title screen - this is a resting state, not a headline. */
.briefing-standby h1 {
    font-size: clamp(1.5rem, 3.2vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    opacity: 0.9;
}

.briefing-standby p {
    opacity: 0.55;
    max-width: 34rem;
}

.briefing-standby-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.45;
}

.briefing-standby-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #3fb950;
    flex: 0 0 auto;
}

.briefing-standby-dot.offline {
    background: #c8102e;
}

@media (prefers-reduced-motion: reduce) {
    .briefing-standby-mark::after { animation: none; }
}

/* Asset pre-caching progress, shown under the Start button until the deck is ready. */
.briefing-preload {
    margin: 0;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    opacity: 0.5;
    font-variant-numeric: tabular-nums;
}

/* Fallback for any host-site button class that slips through. */
.briefing-center .button {
    width: auto;
    align-self: center;
    display: inline-block;
}

.briefing-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Images / native video: fill the stage, scaling up or down while preserving aspect ratio. */
img.briefing-media,
video.briefing-media {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Cloudflare Stream player: fill the stage (it letterboxes internally). */
iframe.briefing-media {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.briefing-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.briefing-controls {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.85);
}

.briefing-nav {
    font-size: 2rem;
    line-height: 1;
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 0 0.5rem;
}

.briefing-nav[disabled] {
    opacity: 0.3;
    cursor: default;
}

.briefing-counter {
    min-width: 5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.briefing-fs {
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
}

.briefing-breadcrumbs {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.85);
}

.briefing-breadcrumbs li {
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}

.briefing-breadcrumbs li.active {
    background: #c8102e;
}

.briefing-breadcrumbs a {
    color: #fff;
    cursor: pointer;
}

/* Questions can be long - scroll them internally rather than growing the page. */
.briefing-questions {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    max-height: 40vh;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.9);
}

.briefing-question {
    margin-bottom: 0.75rem;
}

.briefing-question label {
    display: block;
    cursor: pointer;
}

.briefing-hint {
    margin-left: 1rem;
    opacity: 0.8;
}
