/* 国家筛选容器：不用 GENRE 的 float:left，统一 flex 换行 */
#filter_country,
div.country[data-name="country"] {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 10px;
    width: calc(100% - 180px) !important;
    line-height: normal !important;
    float: none !important;
    height: auto !important;
    margin-bottom: 0 !important;
}

.screenbg .screencon .country > #filter_country .elect,
.screenbg .screencon .country > #filter_country .elected,
.screenbg .screencon .country > #filter_country img,
.screenbg .screencon .country > #filter_country .country-flag-fallback,
div.country[data-name="country"] > .elect,
div.country[data-name="country"] > .elected,
div.country[data-name="country"] > img,
div.country[data-name="country"] > .country-flag-fallback {
    float: none !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    height: auto !important;
}

.screenbg .screencon .country > #filter_country img,
div.country[data-name="country"] > img {
    display: block;
    width: 32px;
    height: auto;
    flex-shrink: 0;
}

/* 无国旗图时：与 32px 宽国旗同尺寸的缩写块 */
.country-flag-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    margin: 0;
    padding: 0 2px;
    box-sizing: border-box;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 7px;
    font-weight: 600;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: -0.04em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(180deg, #4a4a4e 0%, #353538 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}

.country-flag-fallback--3 {
    font-size: 6.5px;
    letter-spacing: -0.06em;
}

.country-flag-fallback--4 {
    font-size: 5.5px;
    letter-spacing: -0.08em;
    padding: 0;
}

.country .elect.country-flag-fallback {
    opacity: 0.5;
}

.country .elected.country-flag-fallback {
    opacity: 1;
    color: #ffdd46;
    border-color: rgba(255, 221, 70, 0.45);
}

.country .elect,
.country .elected {
    cursor: pointer;
}
