/* =========================================
   DPL GROUP STAGE V2
   ========================================= */

.group-page {
    overflow-x: hidden;
}

.group-main {
    width: min(1440px, calc(100% - 64px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.group-page-heading {
    padding: 0 0 22px;
    border-bottom: 1px solid #252c34;
}

.group-page-heading .hero-label {
    margin-bottom: 8px;
}

.group-page-heading h1 {
    margin: 0;
    color: #f4f6f8;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -1.5px;
}

.group-page-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 22px;
    margin-top: 13px;
    color: #8290a0;
    font-size: 12px;
    font-weight: 700;
}

.group-page-summary strong {
    color: #e6ebf0;
    font-weight: 900;
}

.group-archive-bar {
    margin: 18px 0 0;
}

.group-stage-v2 {
    padding-top: 22px;
}

.groups-v2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.groups-v2.one-group {
    grid-template-columns: minmax(0, 1fr);
}

.group-v2-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #2a333d;
    border-radius: 10px;
    background: linear-gradient(180deg, #111820 0%, #0b1117 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
}

.group-v2-card-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    min-height: 80px;
    padding: 17px 18px 15px;
    border-bottom: 1px solid #28313a;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 67, 73, .09), transparent 38%),
        rgba(18, 25, 33, .92);
}

.group-v2-kicker {
    display: block;
    margin-bottom: 4px;
    color: #ff5359;
    font-size: 9px;
    font-weight: 1000;
    letter-spacing: 1.45px;
    text-transform: uppercase;
}

.group-v2-card-head h2,
.group-v2-section-head h3 {
    margin: 0;
    color: #f3f6f8;
    font-weight: 900;
}

.group-v2-card-head h2 {
    font-size: 24px;
    line-height: 1;
}

.group-v2-head-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.group-v2-head-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 0 10px;
    border: 1px solid #34404b;
    border-radius: 6px;
    background: #0c1218;
    color: #9dadbc;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.group-v2-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.group-v2-table {
    min-width: 570px;
}

.group-v2-row {
    display: grid;
    grid-template-columns: 62px minmax(190px, 1fr) 70px 105px 68px;
    align-items: center;
    min-height: 56px;
    border-bottom: 1px solid #252e37;
    color: #dce3e9;
    font-size: 12px;
    transition: background .15s ease;
}

.group-v2-row:last-child {
    border-bottom: 0;
}

.group-v2-row > span {
    padding: 0 11px;
}

.group-v2-table-head {
    min-height: 38px;
    background: #141c24;
    color: #8393a4;
    font-size: 9px;
    font-weight: 1000;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.group-v2-table-head > span:not(:nth-child(2)),
.group-v2-row > span:not(:nth-child(2)) {
    text-align: center;
}

.group-v2-row:not(.group-v2-table-head):hover {
    background: rgba(255, 255, 255, .018);
}

.group-v2-place {
    color: #9cabb9;
    font-weight: 900;
}

.group-v2-team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-align: left !important;
}

.group-v2-team-cell strong {
    overflow: hidden;
    color: #f0f3f6;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-v2-team-logo,
.group-v2-match-logo,
.group-v2-modal-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid #37434f;
    border-radius: 50%;
    background: #151e27;
    color: #8494a4;
    font-weight: 900;
}

.group-v2-team-logo {
    width: 30px;
    height: 30px;
    font-size: 10px;
}

.group-v2-team-logo img,
.group-v2-match-logo img,
.group-v2-modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-v2-maps {
    color: #8493a1;
    font-weight: 800;
}

.group-v2-maps b {
    color: #eef2f5;
}

.group-v2-maps i {
    padding: 0 3px;
    color: #4e5c69;
    font-style: normal;
}

.group-v2-points {
    color: #eef2f5;
    font-size: 14px;
    font-weight: 1000;
}

.group-v2-row.is-eliminated {
    background: linear-gradient(90deg, rgba(145, 36, 43, .17), rgba(145, 36, 43, .05));
    box-shadow: inset 3px 0 0 #8f3036;
}

.group-v2-row.is-eliminated .group-v2-place,
.group-v2-row.is-eliminated .group-v2-points {
    color: #d4777b;
}

.group-v2-empty-row {
    opacity: .65;
}

.group-v2-matches {
    padding: 17px 17px 18px;
    border-top: 1px solid #28313a;
    background: #0b1117;
}

.group-v2-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.group-v2-section-head h3 {
    font-size: 18px;
}

.group-v2-match-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 26px;
    padding: 0 7px;
    border: 1px solid #303b46;
    border-radius: 6px;
    color: #8494a3;
    font-size: 10px;
    font-weight: 900;
}

.group-v2-match-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
}

.groups-v2.one-group .group-v2-match-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.group-v2-match {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 70px minmax(0, 1fr);
    align-items: center;
    min-height: 68px;
    overflow: hidden;
    border: 1px solid #27323d;
    border-radius: 8px;
    background: #0f161d;
    cursor: pointer;
    outline: none;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.group-v2-match:hover,
.group-v2-match:focus-visible {
    border-color: #455464;
    background: #121b24;
    transform: translateY(-1px);
}

.group-v2-match.is-played {
    border-left: 3px solid #2f78cf;
    background: linear-gradient(90deg, rgba(29, 81, 139, .12), #0f161d 24%);
}

.group-v2-match-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    padding: 0 10px;
    border-right: 1px solid #26313a;
    color: #f1f4f7;
}

.group-v2-match-date strong {
    font-size: 11px;
    font-weight: 900;
}

.group-v2-match-date span {
    margin-top: 3px;
    color: #6f8192;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.15;
}

.group-v2-match-team {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 0 10px;
}

.group-v2-match-team-left {
    justify-content: flex-end;
    text-align: right;
}

.group-v2-match-team-right {
    justify-content: flex-start;
    text-align: left;
}

.group-v2-match-team strong {
    overflow: hidden;
    color: #e9eef2;
    font-size: 11px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-v2-match-team.is-winner strong {
    color: #50d687;
}

.group-v2-match-logo {
    width: 30px;
    height: 30px;
    font-size: 9px;
}

.group-v2-match-score {
    text-align: center;
}

.group-v2-match-score strong,
.group-v2-match-score span {
    display: block;
}

.group-v2-match-score strong {
    color: #ff575d;
    font-size: 15px;
    font-weight: 1000;
    line-height: 1;
}

.group-v2-match.is-played .group-v2-match-score strong {
    color: #5bc58b;
}

.group-v2-match-score span {
    margin-top: 4px;
    color: #637587;
    font-size: 8px;
    font-weight: 900;
}

.group-v2-no-matches,
.group-v2-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    border: 1px dashed #2b3640;
    border-radius: 8px;
    color: #718294;
    font-size: 12px;
    font-weight: 700;
}

.group-v2-empty-state {
    width: min(900px, 100%);
    margin: 28px auto 0;
}

/* =========================================
   GROUP MATCH MODAL
   ========================================= */

.group-v2-modal[hidden] {
    display: none;
}

.group-v2-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.group-v2-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 8, .78);
    backdrop-filter: blur(6px);
}

.group-v2-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(840px, 100%);
    max-height: min(860px, calc(100vh - 48px));
    overflow-y: auto;
    padding: 26px 28px 28px;
    border: 1px solid #3a4652;
    border-radius: 13px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 61, 69, .09), transparent 38%),
        #111820;
    box-shadow: 0 28px 100px rgba(0, 0, 0, .55);
}

.group-v2-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid #394654;
    border-radius: 8px;
    background: #0c1218;
    color: #9db7d2;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.group-v2-modal-close:hover {
    color: #fff;
    border-color: #667789;
}

.group-v2-modal-kicker {
    color: #ff5359;
    font-size: 10px;
    font-weight: 1000;
    letter-spacing: 1.7px;
}

.group-v2-modal-dialog h2 {
    margin: 6px 50px 18px 0;
    color: #f3f6f8;
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
}

.group-v2-modal-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.group-v2-modal-meta > div {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #2e3a45;
    border-radius: 8px;
    background: #0b1218;
}

.group-v2-modal-meta span,
.group-v2-modal-meta strong {
    display: block;
}

.group-v2-modal-meta span {
    color: #7089a1;
    font-size: 8px;
    font-weight: 1000;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.group-v2-modal-meta strong {
    margin-top: 5px;
    overflow: hidden;
    color: #f0f3f6;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-v2-modal-matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    gap: 10px;
    padding: 20px;
    border: 1px solid #2e3a45;
    border-radius: 10px;
    background: #091016;
}

.group-v2-modal-side {
    min-width: 0;
}

.group-v2-modal-team-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.group-v2-modal-side-right .group-v2-modal-team-main {
    justify-content: flex-end;
    text-align: right;
}

.group-v2-modal-team-main > strong {
    overflow: hidden;
    color: #edf1f4;
    font-size: 15px;
    font-weight: 1000;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-v2-modal-logo {
    width: 48px;
    height: 48px;
    font-size: 13px;
}

.group-v2-modal-score {
    margin-top: 10px;
    color: #f2f5f7;
    font-size: 34px;
    font-weight: 1000;
    line-height: 1;
    text-align: center;
}

.group-v2-modal-vs {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 16px;
    color: #ff4e54;
    font-size: 15px;
    font-weight: 1000;
}

.group-v2-modal-roster {
    margin-top: 14px;
    padding: 10px;
    border: 1px solid #26333e;
    border-radius: 9px;
    background: rgba(14, 21, 28, .8);
}

.group-v2-modal-roster-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #8696a6;
    font-size: 8px;
    font-weight: 1000;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.group-v2-modal-roster-title::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff5157;
}

.group-v2-modal-side-right .group-v2-modal-roster-title {
    justify-content: flex-end;
}

.group-v2-modal-roster-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.group-v2-roster-player {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    padding: 6px 8px;
    border: 1px solid #26323d;
    border-radius: 7px;
    background: #0a1117;
    color: inherit;
    text-decoration: none;
    transition: border-color .14s ease, background .14s ease, transform .14s ease;
}

.group-v2-roster-player:hover {
    border-color: #4a5968;
    background: #111b24;
    transform: translateY(-1px);
}

.group-v2-roster-copy,
.group-v2-roster-rating {
    min-width: 0;
}

.group-v2-roster-copy strong,
.group-v2-roster-copy small,
.group-v2-roster-copy em,
.group-v2-roster-rating strong,
.group-v2-roster-rating small {
    display: block;
}

.group-v2-roster-copy strong {
    overflow: hidden;
    color: #eef2f5;
    font-size: 11px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-v2-roster-copy small {
    margin-top: 2px;
    overflow: hidden;
    color: #768798;
    font-size: 8px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-v2-roster-copy em {
    margin-top: 3px;
    color: #f1a45b;
    font-size: 7px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.group-v2-roster-rating {
    min-width: 38px;
    padding-left: 8px;
    border-left: 1px solid #29343e;
    text-align: right;
}

.group-v2-roster-rating strong {
    color: #f2f5f7;
    font-size: 13px;
    font-weight: 1000;
}

.group-v2-roster-rating small {
    margin-top: 2px;
    color: #ff5a60;
    font-size: 7px;
    font-weight: 1000;
    letter-spacing: .8px;
}

.group-v2-roster-empty {
    display: block;
    padding: 10px 8px;
    color: #627485;
    font-size: 10px;
    font-weight: 700;
}

body.group-modal-open {
    overflow: hidden;
}

@media (max-width: 1180px) {
    .groups-v2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .groups-v2 .group-v2-match-list,
    .groups-v2.one-group .group-v2-match-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .group-main {
        width: min(100% - 28px, 1440px);
        padding-top: 20px;
    }

    .groups-v2 .group-v2-match-list,
    .groups-v2.one-group .group-v2-match-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .group-v2-modal-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .group-v2-modal-matchup {
        grid-template-columns: minmax(0, 1fr);
    }

    .group-v2-modal-vs {
        padding: 0;
    }

    .group-v2-modal-side-right .group-v2-modal-team-main,
    .group-v2-modal-side-right .group-v2-modal-roster-title {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 620px) {
    .group-v2-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .group-v2-head-badges {
        justify-content: flex-start;
    }

    .group-v2-match {
        grid-template-columns: 58px minmax(0, 1fr) 54px minmax(0, 1fr);
    }

    .group-v2-match-team {
        padding: 0 5px;
        gap: 5px;
    }

    .group-v2-match-logo {
        width: 24px;
        height: 24px;
    }

    .group-v2-modal {
        padding: 10px;
    }

    .group-v2-modal-dialog {
        padding: 22px 15px 18px;
    }
}
