body.tv-player {
    margin: 0;
    min-height: 100vh;
    background: #0f172a;
    color: #f8fafc;
    font-family: Inter, system-ui, sans-serif;
}

.tv-player-marco,
.tv-player-marco iframe {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #0f172a;
}

.tv-player-espera {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.tv-player-espera h1 { margin: 0 0 0.5rem; font-size: 2rem; }
.tv-player-espera p { margin: 0.35rem 0; color: #cbd5e1; }
.tv-player-id {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    background: #1e293b;
    font-size: 1.6rem;
    letter-spacing: 0.04em;
}

.tv-player-ajuste {
    position: fixed;
    right: 0.6rem;
    bottom: 0.6rem;
    z-index: 3;
    border: 0;
    border-radius: 999px;
    width: 2.4rem;
    height: 2.4rem;
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    cursor: pointer;
}

.tv-player-panel {
    position: fixed;
    right: 0.6rem;
    bottom: 3.4rem;
    z-index: 3;
    width: min(420px, calc(100vw - 1.2rem));
    background: #fff;
    color: #0f172a;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.tv-player-panel label { display: block; font-size: 0.85rem; color: #64748b; margin: 0.6rem 0 0.25rem; }
.tv-player-panel input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
}
.tv-player-panel .fila { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.tv-player-version { margin: 0.7rem 0 0; font-size: 0.82rem; color: #64748b; }
.tv-player-estado { white-space: pre-wrap; margin: 0.7rem 0 0; font-size: 0.82rem; color: #334155; }
.tv-player-estado.err { color: #b91c1c; }
.tv-player-panel button.secundario { background: #e2e8f0; color: #0f172a; }
.tv-player-panel button {
    border: 0;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    background: #2563eb;
    color: #fff;
    font: inherit;
    cursor: pointer;
}
