/* Production figure chrome for promo-anim packs (still + canvas + transport). */

.tc-comms-demo {
    position: relative;
    margin: 2.75rem 0 1.75rem;
    max-width: 795px;
}

.tc-comms-frame {
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
}

.tc-comms-stage {
    position: relative;
    aspect-ratio: 795 / 447;
    background: #0b1220;
    cursor: pointer;
}

.tc-comms-still {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    vertical-align: top;
}

.tc-comms-stage canvas.tc-comms-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.tc-comms-demo.is-live canvas.tc-comms-canvas {
    opacity: 1;
}

.tc-comms-play-hint {
    position: absolute;
    top: -2.15rem;
    right: 0.55rem;
    z-index: 4;
    margin: 0;
    padding: 0.32rem 0.7rem 0.36rem;
    border: 2px solid #22c55e;
    border-radius: 8px;
    background: #86efac;
    color: #052e16;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    pointer-events: none;
    user-select: none;
    box-shadow: 0 1px 4px rgba(21, 128, 61, 0.35);
}

.tc-comms-play-hint::before,
.tc-comms-play-hint::after {
    content: "";
    position: absolute;
    top: 100%;
    border-style: solid;
    border-color: transparent;
}

.tc-comms-play-hint::before {
    right: 0.8rem;
    border-width: 10px;
    border-top-color: #22c55e;
}

.tc-comms-play-hint::after {
    right: 0.95rem;
    border-width: 8px;
    border-top-color: #86efac;
}

.tc-comms-demo.has-played .tc-comms-play-hint {
    display: none;
}

.tc-comms-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    padding: 0.55rem 0.7rem 0.65rem;
    background: #1e293b;
    border-top: 1px solid #334155;
}

.tc-comms-bar button {
    appearance: none;
    border: 1px solid #64748b;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 6px;
    padding: 0.28rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.tc-comms-bar button:hover {
    background: #334155;
}

.tc-comms-bar button[aria-pressed="true"] {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #e2e8f0;
}

.tc-comms-seek {
    flex: 1 1 8rem;
    min-width: 7rem;
    accent-color: #38bdf8;
}

.tc-comms-demo > figcaption {
    margin: 0.55rem 0.1rem 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}
