.dp-replacement-root {
    width: 100%;
    max-width: 960px;
}

.dp-launch,
.dp-panel {
    width: 100%;
    max-width: 960px;
    margin: 16px auto 0;
}

.dp-launch {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: flex-start;
}

.dp-link {
    padding: 0;
    color: #f5c842;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

.dp-link:focus-visible {
    outline: 3px solid #f5c842;
    outline-offset: 3px;
}

.dp-link[hidden],
.dp-check-status[hidden] {
    display: none;
}

.dp-check-status {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.875rem;
}

.dp-check-status:empty {
    display: none;
}

.dp-legacy-replaced .app-container {
    display: none !important;
}

.dp-panel {
    color: #eef2ff;
    background: rgba(10, 14, 26, 0.96);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
}

.dp-panel[hidden] {
    display: none;
}

.dp-header,
.dp-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dp-header {
    margin-bottom: 12px;
}

.dp-header h2 {
    color: #f5c842;
    font-size: 1.2rem;
    line-height: 1.35;
}

.dp-button,
.dp-select,
.dp-item-button {
    color: #eef2ff;
    background: #172033;
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 8px;
    font: inherit;
}

.dp-button {
    min-height: 44px;
    padding: 9px 14px;
    cursor: pointer;
}

.dp-button:hover,
.dp-item-button:hover {
    background: #25324a;
}

.dp-button-secondary {
    margin-left: 8px;
}

.dp-field-label,
.dp-published,
.dp-duration,
.dp-state-message,
.dp-refresh-banner,
.dp-item-error,
.dp-complete {
    display: block;
    margin: 12px 0;
    line-height: 1.5;
}

.dp-field-label {
    font-weight: 700;
}

.dp-select {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
}

.dp-status:empty {
    display: none;
}

.dp-status,
.dp-state-message {
    color: #dbeafe;
}

.dp-refresh-banner {
    padding: 12px;
    color: #fff4d1;
    background: #633d09;
    border-left: 4px solid #f5c842;
    border-radius: 6px;
}

.dp-published,
.dp-duration,
.dp-refresh-status {
    color: #cbd5e1;
}

.dp-refresh-status:empty { display: none; }

.dp-video {
    display: block;
    width: 100%;
    max-height: 70vh;
    margin: 0;
    background: #000;
    border-radius: 8px;
}

.dp-stage {
    position: relative;
    margin: 14px 0;
    isolation: isolate;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    min-height: 230px;
}

.dp-stage .dp-video { min-height: 230px; object-fit: contain; }
.dp-stage:fullscreen { display: flex; align-items: center; border-radius: 0; }
.dp-stage:fullscreen .dp-video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.dp-fullscreen { position: absolute; top: 8px; right: 8px; z-index: 3; font-size: 14px; }
.dp-overlay { position: absolute; inset: 0; pointer-events: none; color: white; z-index: 2; }
.dp-local-clock { position: absolute; top: 8px; left: 8px; max-width: calc(100% - 155px); background: #080c16ed; padding: 8px; border-radius: 6px; font-size: 14px; line-height: 1.4; }
.dp-headlines, .dp-headlines-unavailable { position: absolute; left: 8px; right: 8px; bottom: 58px; margin: 0; padding: 10px 12px; background: #080c16ed; border-radius: 6px; font-size: 16px; line-height: 1.4; }
.dp-headlines { pointer-events: auto; border-left: 3px solid #f5c842; max-height: calc(100% - 150px); overflow-y: auto; overflow-wrap: anywhere; }
.dp-headlines:focus-visible { outline: 3px solid #f5c842; outline-offset: -3px; }
.dp-headlines[hidden], .dp-headlines-unavailable[hidden] { display: none; }
.dp-headline { margin: 0; }
.dp-headline-asof { display: block; color: #cbd5e1; font-size: 14px; margin-top: 4px; }
.dp-headline-list { margin: 0; padding-left: 20px; }
.dp-headline-list li + li { margin-top: 10px; }
.dp-headlines-unavailable { font-size: 14px; }
.dp-position { line-height: 1.5; color: #f5df9b; }

.dp-items {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    padding-left: 28px;
}

.dp-item-row {
    padding-left: 4px;
}

.dp-item-button {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.dp-item-button[aria-pressed="true"] {
    border-color: #f5c842;
    box-shadow: inset 3px 0 #f5c842;
}

.dp-feedback {
    margin-top: 12px;
}

.dp-footer {
    margin-top: 16px;
    padding-top: 12px;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.9rem;
    line-height: 1.5;
}

.dp-button:focus-visible,
.dp-select:focus-visible,
.dp-item-button:focus-visible {
    outline: 3px solid #f5c842;
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .dp-stage, .dp-stage .dp-video { min-height: 340px; }
    .dp-launch,
    .dp-panel {
        margin-top: 12px;
    }

    .dp-panel {
        padding: 16px;
    }

    .dp-header {
        align-items: flex-start;
    }

    .dp-controls {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Theater layout: the selected show's player is the main feature at the top of the panel;
   the show list sits directly under it; channel picker and publish info move below. */
.dp-panel:not([hidden]) { display: flex; flex-direction: column; }
.dp-panel #dp-content, .dp-panel .dp-result { display: contents; }
.dp-panel > *, .dp-panel .dp-result > *, .dp-panel #dp-content > * { order: 20; }
.dp-panel .dp-header { order: 0; margin-bottom: 8px; }
.dp-panel .dp-status, .dp-panel .dp-refresh-banner, .dp-panel .dp-refresh-status,
.dp-panel .dp-state-message { order: 1; }
.dp-panel .dp-stage { order: 2; margin: 0 0 10px; }
.dp-panel .dp-position { order: 3; margin: 0 0 8px; }
.dp-panel .dp-controls { order: 4; justify-content: flex-start; }
.dp-panel .dp-items { order: 5; }
.dp-panel .dp-feedback { order: 6; }
.dp-panel .dp-field-label, .dp-panel .dp-select { order: 30; }
.dp-panel .dp-footer { order: 40; }
@media (max-width: 640px) { .dp-panel .dp-stage .dp-video { min-height: 180px; } }
