/* Individual model room. The AWEmpire target itself receives an explicit computed height. */
.xcg-model-room {
    width: 100%;
    margin: 0 0 20px;
}

.xcg-model-room__embed {
    position: relative;
    width: 100%;
}

.xcg-model-room__container {
    width: 100% !important;
    height: var(--xcg-room-height, 560px) !important;
    min-height: var(--xcg-room-height, 560px) !important;
    overflow: hidden;
}

.xcg-model-room__container > div,
.xcg-model-room__container iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
}


.xcg-model-room__overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
}

.xcg-model-room__overlay--blocked {
    cursor: default;
}

.xcg-model-room__actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.xcg-model-room__photos-link--mobile {
    display: none !important;
}

@media (max-width: 1024px) {
    .xcg-model-room__container {
        height: var(--xcg-room-height-mobile, 520px) !important;
        min-height: var(--xcg-room-height-mobile, 520px) !important;
    }

    .xcg-model-room__photos-link--desktop {
        display: none !important;
    }

    .xcg-model-room__photos-link--mobile {
        display: inline-flex !important;
    }
}

/* The visual title bar owns the RetroTube .widget-title skin.
 * The structural H1 and dynamic status remain DOM siblings inside it. */
.xcg-model-profile-header {
    display: block;
}

.xcg-model-profile-titlebar {
    display: flow-root;
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
}

.xcg-model-profile-title {
    display: block;
    clear: none;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    overflow-wrap: anywhere;
}

.xcg-model-profile-title i {
    margin: 0 .4em 0 0;
}

.xcg-model-profile-title-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.xcg-model-profile-status {
    float: right;
    display: inline-flex;
    align-items: center;
    margin: 0 0 0 12px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: .72em;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.xcg-model-profile-status.status-free {
    background: rgba(40, 167, 69, .16);
    color: #187535;
}

.xcg-model-profile-status.status-member {
    background: rgba(0, 123, 255, .15);
    color: #075fae;
}

.xcg-model-profile-status.status-private {
    background: rgba(128, 0, 128, .14);
    color: #761276;
}

.xcg-model-profile-status.status-offline {
    background: rgba(108, 117, 125, .15);
    color: #555d66;
}

.xcg-model-profile-status.status-unavailable {
    background: rgba(217, 119, 6, .14);
    color: #9a5800;
}

.xcg-model-room--unavailable {
    min-height: 220px;
}

.xcg-model-room__fallback {
    position: relative;
    width: 100%;
    min-height: 220px;
    overflow: hidden;
    background: rgba(0,0,0,.04);
}

.xcg-model-room__fallback img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.xcg-model-room__fallback-copy {
    padding: 12px 0 0;
}

.xcg-model-room__fallback-copy p {
    margin: 0 0 10px;
}

@media (max-width: 767px) {
    .xcg-model-room__actions {
        justify-content: center;
    }

    .xcg-model-profile-status {
        font-size: .68em;
        padding: 3px 7px;
    }
}


/* Provider-only profiles are real model entities; only their local video area is empty. */
.xcg-model-no-videos {
    margin: 18px 0 24px;
    padding: 16px 18px;
    border: 1px solid rgba(127, 127, 127, .24);
    border-radius: 6px;
    background: rgba(127, 127, 127, .06);
}

.xcg-model-no-videos h2 {
    margin: 0 0 6px;
    padding: 0;
    font-size: 18px;
    line-height: 1.25;
}

.xcg-model-no-videos p {
    margin: 0;
    line-height: 1.5;
    opacity: .84;
}
