/* ==================== Details Header Shell ==================== */

.detailsHeader {
    padding: 0 4px 6px;
    background: none;
    border: none;
    box-shadow: none;
}

.detailsHeader__top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detailsHeader__title {
    font-size: 22px;
    font-weight: 650;
    color: #ffffff;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.detailsHeader__meta {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 12px;
    opacity: 0.8;
}

/* ==================== Underline Tabs ==================== */

.detailsHeader__tabs {
    display: flex;
    gap: 28px;
    margin-top: 14px;
    padding-bottom: 10px;
    position: relative;
}

.detailsHeader__tabs::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255,255,255,0.04);
}

.tab {
    position: relative;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    padding-bottom: 8px;
    cursor: pointer;
}
.tab:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
    border-radius: 2px;
}

.tab--active {
    color: #ffffff;
}

.tab--active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #2563eb, #1e3a8a);
    box-shadow:
        0 0 8px rgba(37,99,235,0.35),
        0 0 14px rgba(37,99,235,0.2);
}

/* ==================== Flat Match Header ==================== */

.flatMatchHeader {
    width: min(100%, 1120px);
    margin: 0 auto;
    display: grid;
     padding: 10px 0 20px;
    grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr);
    align-items: center;
    column-gap: 36px;
}

.flatTeam {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    isolation: isolate;
}

.flatTeam--radiant {
    justify-content: flex-end;
    text-align: right;
}

.flatTeam--dire {
    justify-content: flex-start;
    text-align: left;
}

.flatMatchHeader .teamName {
     min-width: 0;
     max-width: 100%;
     display: block;
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
     font-size: 30px;
     font-weight: 700;
 }

.flatMatchHeader .trophy {
    margin-left: 6px;
    flex: 0 0 auto;
    font-size: 26px;
    line-height: 1;
}

.flatCenter {
    width: 210px;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.flatMatchHeader .liveBadge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    color: #55ff8a;
    background: rgba(85, 255, 138, 0.12);
    border: 1px solid rgba(85, 255, 138, 0.28);
}

.flatMatchHeader .liveDot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #55ff8a;
}

.flatScore {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.scoreDivider {
    margin: 0 7px;
    color: rgba(255,255,255,0.72);
}

.flatTime {
    height: 28px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.075);
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.72);
    white-space: nowrap;
}

.flatTeam::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    transform: translateY(-50%);
    width: min(42vw, 520px);
    height: 120px;
    pointer-events: none;
    filter: blur(24px);
    opacity: 1;
}

.flatTeam--radiant::before {
    right: -80px;
    background:
        radial-gradient(
            ellipse at 55% 50%,
            rgba(85, 255, 138, 0.26) 0%,
            rgba(85, 255, 138, 0.16) 28%,
            rgba(85, 255, 138, 0.07) 52%,
            rgba(85, 255, 138, 0) 78%
        );
}

.flatTeam--dire::before {
    left: -80px;
    background:
        radial-gradient(
            ellipse at 45% 50%,
            rgba(255, 92, 92, 0.26) 0%,
            rgba(255, 92, 92, 0.16) 28%,
            rgba(255, 92, 92, 0.07) 52%,
            rgba(255, 92, 92, 0) 78%
        );
}
