/* =========================================================
  ẨN HOÀN TOÀN PANEL GỐC (tránh bị hiển thị dài nguyên trang)
========================================================= */
.as-item-country-select .as-item-country-select-content {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* =========================================================
  KHUNG VÀ HEADER
========================================================= */
.as-item-country-select {
    position: relative;
    display: inline-block;
    min-width: 110px;
}

.as-item-country-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #2A3038;
    background: #141516;
    color: #fff;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.as-item-country-select-header:hover {
    background: #1b1c1f;
}

.as-item-country-select-header svg {
    transition: transform 0.2s ease;
}

.as-item-country-select.is-open .as-item-country-select-header svg {
    transform: rotate(180deg);
}

.as-item-country-select-header span {
    text-transform: uppercase;
    /* Header text luôn in hoa */
}

/* Khi mở menu, header đổi nền gradient */
.as-item-country-select.is-open .as-item-country-select-header {
    background-image: linear-gradient(180deg, #1f3644, #00411d);
    background-color: transparent;
    border-color: #2A3038;
}

/* =========================================================
  LAYER DROPDOWN (portal ra body)
========================================================= */
.as-country-layer {
    position: fixed;
    top: 0;
    left: 0;
    /* vị trí sẽ được JS tính lại */
    min-width: 160px;
    max-height: 300px;
    overflow-y: auto;
    background: #141516;
    border: 1px solid #2A3038;
    border-radius: 6px;
    z-index: 9999;
    display: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

/* =========================================================
  OPTION ITEM
========================================================= */
.as-country-option {
    cursor: pointer;
    padding: 5px 10px;
    color: #fff;
    font-size: 13px;
    text-transform: none;
    /* mặc định in thường */
    transition: all 0.15s ease;
    white-space: nowrap;
}

/* Hover / Focus / Active */
.as-country-layer .as-country-option:hover,
.as-country-layer .as-country-option.is-focused,
.as-country-layer .as-country-option.is-active {
    background-image: linear-gradient(180deg, #1f3644, #00411d) !important;
    background-color: transparent !important;
    color: var(--as-filter-league-item-active-color, #ffffff) !important;
    text-transform: uppercase !important;
    /* chỉ khi hover/active mới in hoa */
}

/* Đánh dấu item active */
.as-country-option.is-active::after {
    float: right;
    opacity: 0.7;
}

/* =========================================================
  OVERRIDE CŨ (để giữ tương thích trong .as-filter-tags)
========================================================= */
.as-filter-tags .as-filter-country-top .as-item-country-select-content .as-select-content div.as-active,
.as-filter-tags .as-filter-country-top .as-item-country-select-content .as-select-content div:hover {
    background: var(--as-filter-league-item-active);
    color: var(--as-filter-league-item-active-color);
    text-transform: uppercase;
}




/* =========================================================
   DROPDOWN: .as-dropdown-toggle__select
   (clone style từ .as-item-country-select)
========================================================= */

/* --- Container --- */
.as-dropdown-toggle__select {
    position: relative;
    display: inline-block;
    min-width: 110px;
    font-family: inherit;
    color: #fff;
}

/* --- Header --- */
.as-dropdown-toggle__select__as-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #2A3038;
    background: #141516;
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.as-dropdown-toggle__select__as-head:hover {
    background: #1b1c1f;
}

.as-dropdown-toggle__select__as-head svg {
    transition: transform 0.2s ease;
}

.as-dropdown-toggle__select.is-open .as-dropdown-toggle__select__as-head svg {
    transform: rotate(180deg);
}

/* --- Dropdown body --- */
.as-dropdown-toggle__select__as-body {
    position: absolute;
    top: 100%;
    left: 0;
    /* ✅ bằng đúng header */
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 4px;
    border: 1px solid #2A3038;
    border-radius: 6px;
    background: #141516;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    z-index: 999;
    display: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}


/* Khi mở menu */
.as-dropdown-toggle__select.is-open .as-dropdown-toggle__select__as-body {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* --- Option items --- */
.as-item-dropdown {
    cursor: pointer;
    padding: 5px 10px;
    font-size: 13px;
    color: #fff;
    text-transform: none;
    /* mặc định in thường */
    transition: all 0.15s ease;
    white-space: nowrap;
}

/* Hover & Active */
.as-item-dropdown:hover,
.as-item-dropdown.as-active {
    background-image: linear-gradient(180deg, #1f3644, #00411d);
    background-color: transparent;
    color: var(--as-filter-league-item-active-color, #ffffff);
    text-transform: uppercase;
    /* chỉ khi hover/active mới in hoa */
}

/* --- Header gradient khi mở --- */
.as-dropdown-toggle__select.is-open .as-dropdown-toggle__select__as-head {
    background-image: linear-gradient(180deg, #1f3644, #00411d);
    background-color: transparent;
    border-color: #2A3038;
}

.is-active {
    background: var(--as-filter-league-item-active) !important;
    border: .075rem solid var(--as-filter-league-item-active-border) !important;
    color: var(--as-filter-league-item-active-color) !important;
    font-weight: var(--as-filter-league-item-active-font-weight);
    position: relative;
}