.asas-multi-player {
    width: 100%;
    margin: 0;
    background: #000;
    position: relative;
    overflow: visible;
}

.asas-player-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 180px;
    background: #000;
}

.asas-player-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.asas-player-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    padding: 7px 8px;
    min-height: 34px;
    background: #fff;
    border-top: 1px solid #ddd;
    z-index: 20;
}

.asas-server-toggle {
    appearance: none;
    border: 1px solid #cfcfcf;
    background: #fff;
    color: #444;
    border-radius: 2px;
    padding: 5px 24px 5px 8px;
    font-size: 11px;
    line-height: 1.2;
    cursor: pointer;
    position: relative;
}

.asas-server-toggle:hover,
.asas-server-toggle:focus {
    background: #f5f5f5;
    outline: none;
}

.asas-server-menu {
    position: absolute;
    left: 8px;
    top: 100%;
    min-width: 220px;
    max-width: calc(100% - 16px);
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 5px 15px rgba(0,0,0,.2);
    overflow-y: auto;
    overflow-x: hidden;
    max-height: min(600px, calc(100vh - 24px));
    z-index: 2147483647;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.asas-server-menu[hidden] { display: none; }

.asas-server-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    color: #444;
    padding: 9px 10px;
    text-align: left;
    cursor: pointer;
    font-size: 12px;
}

.asas-server-option:hover,
.asas-server-option:focus,
.asas-server-option.is-active { background: #f1f1f1; outline: none; }
.asas-server-option-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asas-server-option-status { flex: 0 0 auto; font-size: 10px; color: #888; }
.asas-server-option-status.is-available { color: #388e3c; }
.asas-server-option-status.is-checking { color: #9a7a00; }
.asas-server-option-status.is-unavailable { color: #c62828; }

.asas-player-status {
    min-height: 0;
    padding: 0;
    background: #fff;
    color: #777;
    font-size: 11px;
    line-height: 1.4;
}
.asas-player-status:empty { display: none; }

@media (max-width: 600px) {
    .asas-player-frame { min-height: 160px; }
    .asas-player-toolbar { padding: 6px; }
    .asas-server-toggle { font-size: 11px; padding: 5px 22px 5px 8px; }
    .asas-server-menu { left: 6px; max-width: calc(100vw - 12px); max-height: min(600px, calc(100dvh - 24px)); }
    .asas-server-option { min-height: 40px; }
}
