.match-hero-card {
    background-image:
        linear-gradient(135deg, rgba(0, 0, 0, 0.62) 8%, rgba(0, 0, 0, 0.42) 100%),
        linear-gradient(105deg, var(--team1-primary, #2b2f36) 10%, var(--team2-primary, #1f2937) 90%);
    background-size: cover;
}

.map-ban-overlay {
    position: absolute;
    top: 50%;
    transform:translateY(-50%);
    bottom: 0;
    z-index: 4;
    width: 95px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.map-ban-overlay-left,
.map-ban-overlay-right{
    display:flex;
}

.map-ban-overlay-left{
    left: 16px;
    justify-content: flex-start;
}

.map-ban-overlay-right{
    right: 16px;
    justify-content: flex-end;
}

@media (max-width:767.98px){
    .map-ban-overlay{
        width:74px !important;
        top:auto !important;
        bottom:22px !important;
        transform:none !important;
        align-items:flex-end !important;
    }
    .map-ban-overlay-left{
        left: 2px;
    }
    .map-ban-overlay-right{
        right: 2px;
    }
    .map-ban-chip{
        min-height:auto;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;

        background:linear-gradient(
            to top,
            rgba(15,23,42,0.55),
            rgba(15,23,42,0.25)
        ) !important;
        gap: 3px;
        padding: 4px 4px 5px;
    }
    .map-ban-icon{
        width:22px;
        height:22px;
    }
    .map-ban-marker{
        width:14px;
        height:14px;
        margin-bottom:1px;
        font-size:0.55rem;
    }
    .map-ban-label{
       
        display:none !important;
    }
    .map-ban-name{
        font-size:0.58rem;
        line-height:1;
    }
    .map-result-center-overlay{
        padding-left:72px;
        padding-right:72px;
    }
    .map-result-center-overlay h5{
        font-size:1.1rem;
        line-height: 1.1;
        text-align: center;
    }
    .map-result-center-overlay .small{
        font-size: 0.64rem;
        line-height: 1.05;
        letter-spacing:0.01em;
        text-align: center;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-width: 78%;
        margin-left: auto;
        margin-right: auto;
    }

    .map-result-center-overlay .small span,
    .map-result-center-overlay .small strong{
        font-weight:600;
    }

}


.map-ban-chip{
    width: 100%;
    min-width: 0;
    min-height:92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 4px;
    border-radius: clamp(6px, 1vw,12px);
    background: rgba(15,23,42,0.35);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0);
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.map-ban-chip:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.map-ban-icon{
    width: clamp(24px, 4vw, 38px);
    height: clamp(24px, 4vw, 38px);
    object-fit: contain;
}

.map-ban-label{
    font-size: 0.52rem;
    line-height: 1;
    text-transform: uppercase;
    opacity: 0.85;
    text-align: center;
    color:rgba(255,255,255,0.9);
    letter-spacing: 0.015em;
    text-shadow:
        0 1px 2px rgba(0,0,0,0.6),
        0 0 4px rgba(0,0,0,0.4);
    overflow:hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height:2.2em;
    word-break:break-word;
}

.map-ban-name{
    font-size:0.7rem;
    line-height: 1.1;
    font-weight: 700;
    text-align: center;
    word-break:keep-all;
    overflow-wrap:normal;
    overflow:hidden;
    text-overflow:ellipsis;
}

.map-ban-marker{
    display:flex;
    align-items:center;
    justify-content: center;
    width: clamp(16px,2.5vw,26px);
    height: clamp(16px,2.5vw,26px);
    margin-bottom: clamp(1px,0.3vw,4px);
    border-radius: 999px;

    background: rgba(255,50,50,0.2);
    border: 1px solid rgba(255,50,50,0.5);

    font-size: clamp(0.55rem, 1vw, 0.9rem);
    color: #ff3b3b;
    box-shadow: 0 0 8px rgba(255,50,50,0.4);
}

.score-entry-field{
    display:flex;
    flex-direction: column;
    height:100%;
    margin-bottom: 0.25rem;
}

.score-entry-label{
    font-size: 0.72rem;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--phoenix-gray-700);
    margin-bottom:0.45rem;

    white-space:normal;
    overflow:visible;
    text-overflow:unset;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width:768px){
    .score-entry-label{
        font-size:0.66rem;
    }
}

.score-entry-field .form-control,
.score-entry-field input,
.score-entry-field select {
    width:100%;
}

.mobile-ban-order-group{
    display:flex;
    gap: 0.5rem;
    align-items:stretch;
}

.mobile-ban-order-btn{

    flex: 1 1 0;

    min-height:44px;

    padding: 0.5rem 0.4rem;

    display:flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    gap: 2px;

    text-align: center;
    font-weight: 700;
    text-transform:uppercase;
    border-radius:0.5rem;

    transition: all 0.2s ease;

    overflow:hidden;
}

.mobile-ban-order-btn .team-name,
.mobile-ban-order-btn .ban-text{
    display:block;
    width: 100%;
    max-width:100%;
}

.mobile-ban-order-btn .team-name{
    font-size: 0.64rem;
    line-height: 1.05;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    word-break:break-word;
    overflow-wrap: anywhere;
}

.mobile-ban-order-btn .ban-text{
    font-size:0.56rem;
    opacity:0.7;
    line-height: 1;
}

.mobile-ban-order-btn:hover{
    transform: translateY(-1px);
}

.mobile-ban-order-btn.btn-phoenix-primary{
    border: 1px solid rgba(79,140,255,0.7);
    box-shadow:
        0 0 0 1px rgba(79,140,255,0.4),
        0 6px 18px rgba(0,0,0,0.35),
        0 0 12px rgba(79,140,255,0.4);
    
    transform: translateY(-2px) scale(1.02);
}

.mobile-ban-order-btn.btn-phoenix-primary:active{
    transform:scale(0.98);
}

@media (min-width: 768px){
    .mobile-ban-order-group{
        display:none;
    }
}

@media (max-width:767.98px){
    .ban-order-field-wrapper select,
    .ban-order-field-wrapper .form-select,
    .ban-order-field-wrapper .form-control{
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0,0,0,0) !important;
        white-space:nowrap !important;
        border:0 !important;
    }
}

.ban-section-label{
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    color: var(--phoenix-gray-700);
    display:block;
}

@media (max-width: 767.98px) {
    .hero-ban-select-wrapper {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
}

@media (min-width: 768px){
    .mobile-hero-ban-group{
        display:none;
    }
}

.hero-role-row{
    display:grid;
    gap:0.35rem;
    grid-template-columns: repeat(3,1fr);
    margin-bottom:0.25rem;
}

.hero-role-btn{
   min-height: 36px;
    padding: 0.3rem 0.25rem;
    border: 1px solid rgba(79,140,255,0.7);
    box-shadow:
        0 0 0 1px rgba(79,140,255,0.4),
        0 4px 14px rgba(0,0,0,0.28),
        0 0 10px rgba(79,140,255,0.35);
    font-size: 0.7rem;
    color: #fff;
    cursor: pointer;
    border-radius: 0.375rem;
    background: transparent;
}

.hero-role-btn.active{
    border: 1px solid rgba(79,140,255,0.7);
    box-shadow:
        0 0 0 1px rgba(79,140,255,0.4),
        0 4px 14px rgba(0,0,0,0.28),
        0 0 10px rgba(79,140,255,0.35);
    background: rgba(79,140,255,0.8);
    color: #fff;
}

.hero-grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap:0.35rem;
}
@media (max-width: 767.98px){
    .hero-grid{
        grid-template-columns: repeat(2,1fr);
    }
}

.hero-btn{
    min-height: 36px;
    padding: 0.3rem 0.25rem;
    border-radius: 0.45rem;
    background: rgba(255,255,255,0.0085) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    box-shadow: none;
    font-size: 0.7rem;
    line-height:1.05;
    color: rgba(255,255,255,0.75);
    transition: all 0.2s ease;
    cursor: pointer;
}

.hero-btn:hover{
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    will-change: transform;
    backface-visibility: hidden;
}

.hero-btn.active{
    border: 1px solid rgba(79,140,255,0.7);
    box-shadow:
        0 0 0 1px rgba(79,140,255,0.4),
        0 4px 14px rgba(0, 0, 0, 0.28),
        0 0 10px rgba(79,140,255,0.35);
    background: rgba(79,140,255,0.8);
    color: #fff;
}

.mobile-hero-ban-group{
    margin-top:0.35rem;
    margin-bottom: 0.25rem;
}

.selected-hero-ban-btn{
    width:100%;
    min-height:38px;
    padding:0.45rem 0.5rem;
    margin-bottom:0.4rem;
    border-radius:0.5rem;
    text-transform:uppercase;
    font-size:0.66rem;
    color: var(--phoenix-primary);
    text-shadow: 0 0 6px rgba(var(--phoenix-primary-rgb),0.35);
    font-weight:700;
    text-align:center;
    border: 1px solid rgba(79,140,255,0.7);
    box-shadow:
        0 0 0 1px rgba(79,140,255,0.4),
        0 4px 14px rgba(0,0,0,0.28),
        0 0 12px rgba(79,140,255,0.35);
    background:rgba(0,0,0,0.25);
}

.mobile-hero-ban-group.is-collapsed .hero-role-row,
.mobile-hero-ban-group.is-collapsed .hero-grid{
    display:none;
}

/* Light Mode Adjustment (This took way to long to figure out) */

body.phoenix-theme-light .hero-role-btn,
body.phoenix-theme-light .hero-btn,
body.phoenix-theme-light .selected-hero-ban-btn,
body.phoenix-theme-light .mobile-ban-order-btn{
    color: var(--phoenix-primary) !important;
    background: #fff !important;
    border: 1px solid rgba(var(--phoenix-primary-rgb), 0.65) !important;
    box-shadow:
        0 0 0 1px rgba(var(--phoenix-primary-rgb),0.18),
        0 4px 10px rgba(15,23,42,0.08) !important;
    
}

body.phoenix-theme-light .hero-btn:hover,
body.phoenix-theme-light .hero-role-btn:hover,
body.phoenix-theme-light .mobile-ban-order-btn:hover,
body.phoenix-theme-light .selected-hero-ban-btn:hover{
    color: var(--phoenix-primary) !important;
    border-color: rgba(var(--phoenix-primary-rgb), 0.85) !important;
    box-shadow:
        0 0 0 1px rgba(var(--phoenix-primary-rgb), 0.28),
        0 6px 14px rgba(15,23,42,0.12) !important;
}

body.phoenix-theme-light .hero-role-btn.active,
body.phoenix-theme-light .hero-btn.active,
body.phoenix-theme-light .mobile-ban-order-btn.btn-phoenix-primary,
body.phoenix-theme-light .selected-hero-ban-btn{
    color: #fff !important;
    background: linear-gradient(180deg, rgba(103,156,255,1)0%, rgba(79,140,255,1)100%) !important;
    border: 1px solid rgba(var(--phoenix-primary-rgb), 0.95) !important;
    box-shadow:
        0 0 0 1px rgba(var(--phoenix-primary-rgb), 0.25),
        0 6px 16px rgba(var(--phoenix-primary-rgb), 0.28) !important;
}

body.phoenix-theme-light .ban-section-label{
    color: var(--phoenix-gray-800) !important;
}

body.phoenix-theme-light .mobile-ban-order-btn .team-name,
body.phoenix-theme-light .mobile-ban-order-btn .ban-text,
body.phoenix-theme-light .hero-btn,
body.phoenix-theme-light .hero-role-btn,
body.phoenix-theme-light .selected-hero-ban-btn{
    text-shadow:none !important;
}

.match-hero-card .team-name-primary {
    color: var(--team1-secondary, #f8fafc);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.45),
        0 4px 10px rgba(0, 0, 0, 0.35);
}

.match-hero-card .team-name-secondary {
    color: var(--team2-secondary, #f8fafc);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.45),
        0 4px 10px rgba(0, 0, 0, 0.35);
}

.caster-lineup-meta {
    font-size: 0.76rem;
    line-height: 1.25;
    color: var(--phoenix-gray-700);
}

.caster-lineup-label {
    font-weight: 600;
    color: var(--phoenix-gray-800);
}

.caster-lineup-value {
    display: inline-block;
    max-width: 42%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.match-stream-card {
    display: block;
    border: 1px solid var(--phoenix-border-color);
    border-radius: 0.6rem;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    background: var(--phoenix-body-bg);
}

.match-stream-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.2rem rgba(15, 23, 42, 0.16);
}

.match-stream-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.match-stream-thumbnail .match-stream-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-stream-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.65rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 8%, rgba(15, 23, 42, 0.76) 100%);
    color: #fff;
}

.match-stream-title {
    min-height: 2.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.match-stream-team-logo {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(15, 23, 42, 0.4);
}

.match-stream-player-avatar {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 575px) {
    .match-stream-overlay {
        padding: 0.5rem;
    }
}
