html,
body.cpd-display-body {
    margin: 0 !important;
    padding: 0 !important;
    background: #07111f;
}

@media (min-width: 801px) {
    html,
    body.cpd-display-body {
        height: 100%;
        overflow: hidden !important;
        overscroll-behavior: none;
    }
}

.cpd-display-body {
    margin: 0 !important;
    background: #07111f;
}

.cpd-display-body #wpadminbar,
.cpd-display-body .site-header,
.cpd-display-body header,
.cpd-display-body footer.site-footer {
    display: none;
}

.cpd-display-body html,
html.cpd-display-html {
    margin-top: 0 !important;
}

.cpd-display {
    position: relative;
    isolation: isolate;
    min-height: 100dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
    color: #f6f1e7;
    background: #07111f;
}

.cpd-display::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--cpd-bg);
    background-size: cover;
    background-position: center;
    opacity: var(--cpd-bg-opacity, 0.25);
    z-index: 0;
    pointer-events: none;
}

.cpd-display.is-image-only::before {
    opacity: 1;
}

.cpd-display.is-image-only .cpd-stage,
.cpd-display.is-image-only .cpd-running-label,
.cpd-display.is-image-only .cpd-running-stats,
.cpd-display.is-image-only .cpd-screen-actions {
    display: none;
}

.cpd-image-fullscreen {
    display: none;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 6;
    border: 1px solid rgba(212, 175, 55, 0.8);
    background: rgba(7, 17, 31, 0.72);
    color: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 14px;
}

.cpd-display.is-image-only .cpd-image-fullscreen {
    display: inline-flex;
}

.cpd-display.is-image-only.is-fullscreen .cpd-image-fullscreen {
    display: none;
}

@media (min-width: 801px) {
    .cpd-display {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }
}

.cpd-display.cpd-theme-light {
    color: #1c2430;
    background:
        radial-gradient(900px 480px at 50% -10%, rgba(184, 146, 46, 0.18), transparent 60%),
        linear-gradient(180deg, #fbf7ef 0%, #efe6d4 100%);
}

.cpd-stage {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    text-align: center;
    padding: 1.5vh 3vw 1vh;
    box-sizing: border-box;
}

.cpd-heading {
    margin: 0 0 1vh;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: clamp(14px, 1.6vw, 22px);
    font-weight: 650;
    opacity: 0.72;
}

.cpd-eyebrow {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: clamp(16px, 2vw, 28px);
    color: #d4af37;
}

.cpd-theme-light .cpd-eyebrow {
    color: #8a6a12;
}

.cpd-name-block {
    flex: 1.15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.cpd-name,
.cpd-plant {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    white-space: nowrap;
    text-align: center;
    overflow: visible;
}

.cpd-name {
    font-size: clamp(36px, 7vw, 150px);
    line-height: 1.15;
    font-weight: 650;
    padding: 0.08em 0 0.12em;
    color: #fff;
}

.cpd-theme-light .cpd-name {
    color: #1c2430;
}

.cpd-plant {
    margin-top: 1vh;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: clamp(28px, 3.4vw, 64px);
    letter-spacing: 0.02em;
    color: #d4af37;
    opacity: 1;
}

.cpd-figures {
    flex: 1;
    display: flex;
    gap: 2vw;
    justify-content: stretch;
    align-items: stretch;
    width: 100%;
    min-height: 0;
}

.cpd-figure {
    flex: 1 1 0;
    margin: 0;
    min-height: 0;
    padding: 1.2vh 2vw;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.38);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.cpd-theme-light .cpd-figure {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(138, 106, 18, 0.28);
    box-shadow: 0 14px 30px rgba(70, 52, 10, 0.08);
}

.cpd-figure span {
    display: block;
    font-family: "Segoe UI", system-ui, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: clamp(16px, 2.1vw, 34px);
    margin-bottom: 1.4vh;
    opacity: 0.8;
}

.cpd-figure strong {
    display: block;
    font-size: clamp(56px, 10vh, 180px);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

.cpd-works {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.cpd-works strong {
    font-size: clamp(72px, 16vw, 240px);
    line-height: 0.9;
}

.cpd-works span {
    margin-top: 1vh;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: clamp(22px, 3vw, 48px);
    color: #d4af37;
}

.cpd-image-wrap,
.cpd-image-fallback {
    width: min(680px, 70vw);
    flex: 1 1 auto;
    height: auto;
    max-height: 34vh;
    min-height: 0;
    margin: 0 auto 1.5vh;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.cpd-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.18);
}

.cpd-theme-light .cpd-image-wrap img {
    background: rgba(255, 255, 255, 0.5);
}

.cpd-image-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: "Segoe UI", system-ui, sans-serif;
}

.cpd-image-fallback span {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 14px;
}

.cpd-image-fallback small {
    opacity: 0.7;
}

.cpd-running {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 24px 10px;
    background: transparent;
    color: inherit;
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    font-family: "Segoe UI", system-ui, sans-serif;
}

.cpd-theme-light .cpd-running {
    color: #1c2430;
}

.cpd-running-label {
    min-width: 220px;
}

.cpd-running-label strong {
    display: block;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 14px;
}

.cpd-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 4px;
}

.cpd-live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3dce7a;
    box-shadow: 0 0 0 0 rgba(61, 206, 122, 0.7);
    animation: cpd-pulse 1.8s infinite;
}

.cpd-display.is-offline .cpd-live i {
    background: #d4783a;
    animation: none;
}

@keyframes cpd-pulse {
    70% { box-shadow: 0 0 0 8px rgba(61, 206, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 206, 122, 0); }
}

.cpd-running-stats {
    display: flex;
    gap: 36px;
    flex: 1;
}

.cpd-running-stats span {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.72;
}

.cpd-running-stats strong {
    font-size: clamp(28px, 3.4vw, 52px);
    font-variant-numeric: tabular-nums;
    font-family: Georgia, "Palatino Linotype", Palatino, serif;
}

.cpd-screen-actions {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cpd-fullscreen,
.cpd-exit {
    border: 1px solid rgba(212, 175, 55, 0.6);
    background: transparent;
    color: #f6f1e7;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font: inherit;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 12px;
    min-width: 118px;
}

.cpd-fullscreen:hover,
.cpd-fullscreen:focus,
.cpd-exit:hover,
.cpd-exit:focus {
    background: rgba(212, 175, 55, 0.16);
}

.cpd-start {
    position: fixed;
    inset: 0;
    z-index: 30;
    border: 0;
    background: rgba(6, 16, 28, 0.72);
    color: #f6f1e7;
    font: inherit;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: clamp(18px, 3vw, 36px);
    cursor: pointer;
}

.cpd-start[hidden] {
    display: none;
}

.cpd-figure.is-changed strong,
.cpd-running-stats strong.is-changed {
    animation: cpd-flash 0.7s ease;
}

@keyframes cpd-flash {
    0% { color: #d4af37; }
    100% { color: inherit; }
}

@media (max-width: 800px) {
    html,
    body.cpd-display-body {
        height: auto;
        overflow: auto !important;
    }
    .cpd-display {
        height: auto;
        max-height: none;
        overflow: visible;
        min-height: 100dvh;
    }
    .cpd-stage {
        padding: 28px 16px 12px;
    }
    .cpd-name {
        flex: none;
        font-size: clamp(36px, 12vw, 64px);
        margin: 12px 0 20px;
    }
    .cpd-figures {
        flex-direction: column;
        gap: 14px;
    }
    .cpd-figure {
        min-height: 140px;
        padding: 18px 14px;
    }
    .cpd-figure span {
        font-size: 14px;
    }
    .cpd-figure strong {
        font-size: clamp(48px, 14vw, 84px);
    }
    .cpd-image-wrap,
    .cpd-image-fallback {
        width: 100%;
        max-height: none;
        height: 220px;
        margin: 8px 0 18px;
    }
    .cpd-running {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px 16px 28px;
    }
    .cpd-running-stats {
        flex-direction: column;
        gap: 12px;
    }
    .cpd-running-stats strong {
        font-size: 32px;
    }
    .cpd-start,
    .cpd-fullscreen,
    .cpd-screen-actions {
        display: none;
    }
}
