.xmu-page {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(165deg, var(--color-bg) 0%, #e8eef9 45%, var(--color-bg) 100%);
    color: var(--color-text);
}

.xmu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) clamp(12px, 1.5vw, 24px);
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.xmu-header__logo {
    height: 36px;
    width: auto;
    display: block;
}

.xmu-header__badge {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.7);
}

.xmu-main {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(12px, 1.5vw, 24px) var(--space-8);
    box-sizing: border-box;
}

.xmu-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
    gap: clamp(16px, 2vw, 28px);
    align-items: start;
}

.xmu-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    min-width: 0;
}

.xmu-promo {
    position: sticky;
    top: var(--space-4);
    align-self: start;
}

.xmu-promo__card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    padding: 12px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xmu-promo__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.xmu-promo__next {
    appearance: none;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    background: #f8fafc;
    color: var(--color-text);
    border-radius: 10px;
    padding: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.xmu-promo__next:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.xmu-promo__next:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.xmu-promo__slides {
    position: relative;
}

.xmu-promo__slide {
    margin: 0;
}

.xmu-promo__slide[hidden] {
    display: none !important;
}

.xmu-promo__title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: var(--font-bold);
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--color-text);
    padding-top: 6px;
}

.xmu-promo__video-wrap {
    position: relative;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    cursor: pointer;
}

.xmu-promo__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f172a;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.xmu-promo__video::-webkit-media-controls {
    display: none !important;
}

.xmu-promo__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

.xmu-promo__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    opacity: 0.92;
    transition: opacity 0.15s ease;
}

.xmu-promo__brand:hover {
    opacity: 1;
}

.xmu-promo__brand img {
    display: block;
    max-height: 34px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.xmu-title {
    margin: 0 0 var(--space-3);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    letter-spacing: -0.02em;
}

.xmu-lead {
    margin: 0 0 var(--space-3);
    color: var(--color-text-muted);
    line-height: 1.55;
}

.xmu-warn {
    margin: 0 0 var(--space-4);
}

.xmu-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.xmu-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: var(--font-medium);
}

.xmu-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.xmu-actions .btn.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    pointer-events: none;
    opacity: 0.92;
}

.xmu-actions .btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.xmu-actions .btn.is-loading:disabled {
    opacity: 0.92;
}

.xmu-spinner {
    width: 0.95rem;
    height: 0.95rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    flex-shrink: 0;
    animation: xmu-spin 0.7s linear infinite;
}

@keyframes xmu-spin {
    to { transform: rotate(360deg); }
}

.xmu-hidden {
    display: none !important;
}

.xmu-result__title {
    margin: 0 0 var(--space-3);
    font-size: var(--text-lg);
}

.xmu-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

.xmu-status--ok { background: #e7f6ed; color: #0b6b34; }
.xmu-status--warning { background: #fff6e5; color: #8a5a00; }
.xmu-status--manual_review { background: #fdecea; color: #8a1f11; }
.xmu-status--failed { background: #fdecea; color: #8a1f11; }
.xmu-status--analyzed { background: #e8eef9; color: #1e3a5f; }

.xmu-hint {
    margin: 0;
}

.xmu-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.xmu-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.xmu-modal__panel {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    margin: 0;
    padding: var(--space-5);
}

.xmu-modal__title {
    margin: 0 0 var(--space-3);
    font-size: var(--text-lg);
}

.xmu-modal__text {
    margin: 0 0 var(--space-5);
    color: var(--color-text-muted);
    line-height: 1.55;
    white-space: pre-line;
}

.xmu-modal__actions {
    display: flex;
    justify-content: flex-end;
}

.xmu-modal--error .xmu-modal__title {
    color: #8a1f11;
}

.xmu-modal--success .xmu-modal__title {
    color: #0b6b34;
}

.xmu-frame {
    display: block;
    width: 100%;
    min-height: 200px;
    height: 200px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .xmu-layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    }
}

@media (max-width: 900px) {
    .xmu-layout {
        grid-template-columns: 1fr;
    }

    .xmu-promo {
        position: static;
    }

    .xmu-promo__video-wrap {
        max-width: 380px;
    }
}
