* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #090b0f;
    color: #f1f1f1;
    font-family: Arial, sans-serif;
}

header {
    height: 72px;
    background: #101318;
    border-bottom: 1px solid #252a31;
    display: flex;
    align-items: center;
    padding: 0 6%;
}

.logo {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #e34b4b;
    margin-right: 60px;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: #aeb4bd;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s;
}

nav a:hover,
nav a.active {
    color: #ffffff;
}

main {
    width: 88%;
    max-width: 1500px;
    margin: 0 auto;
}

.hero {
    padding: 100px 0 70px;
    border-bottom: 1px solid #252a31;
}

.hero-label {
    color: #e34b4b;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: bold;
}

.hero h1 {
    margin: 12px 0;
    font-size: 64px;
    line-height: 1;
}

.hero p {
    color: #8f97a3;
    font-size: 18px;
    max-width: 600px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 0;
}

.card {
    background: #11151b;
    border: 1px solid #252a31;
    border-radius: 8px;
    padding: 25px;
}

.card-title {
    color: #858d98;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-number {
    font-size: 34px;
    font-weight: 800;
    margin-top: 8px;
}

.section-title {
    font-size: 24px;
    margin: 30px 0 20px;
}

.matches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-bottom: 80px;
}

.match {
    background: #11151b;
    border: 1px solid #252a31;
    border-radius: 8px;
    padding: 22px;
}

.match-time {
    color: #e34b4b;
    font-size: 13px;
    margin-bottom: 15px;
}

.team {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 17px;
}

@media (max-width: 800px) {
    .hero h1 {
        font-size: 42px;
    }

    .stats,
    .matches {
        grid-template-columns: 1fr;
    }

    nav {
        gap: 15px;
    }
}
/* =========================
   TOURNAMENT BRACKET
   ========================= */

.bracket {
    display: flex;
    align-items: flex-start;
    gap: 70px;
    overflow-x: auto;
    padding: 20px 0 60px;
}

.bracket-round {
    flex: 0 0 280px;
    min-width: 280px;
}

.bracket-round-title {
    margin: 0 0 25px;
    padding-bottom: 12px;

    color: #8f9baa;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;

    border-bottom: 1px solid #272d35;
}

.bracket-matches {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.bracket-match {
    position: relative;
    overflow: visible;

    background: #11161c;
    border: 1px solid #272d35;
    border-radius: 7px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.bracket-bo {
    padding: 8px 12px;

    color: #ff4b50;
    background: #0d1116;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;

    border-bottom: 1px solid #272d35;
}

.bracket-team {
    min-height: 42px;
    padding: 0 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #f3f5f7;

    border-bottom: 1px solid #222831;
}

.bracket-team span {
    font-size: 14px;
    font-weight: 600;
}

.bracket-team strong {
    min-width: 24px;

    color: #ffffff;

    font-size: 16px;
    text-align: right;
}

.bracket-winner {
    padding: 9px 12px;

    color: #b8c0ca;
    background: #0d1116;

    font-size: 11px;
}

.bracket-path {
    padding: 7px 12px;

    font-size: 11px;
    border-top: 1px solid #222831;
}

.winner-path {
    color: #8fd5a6;
}

.loser-path {
    color: #e28787;
}


/* Расположение матчей следующих раундов */

.bracket-round:nth-child(2) .bracket-matches {
    padding-top: 55px;
}

.bracket-round:nth-child(3) .bracket-matches {
    padding-top: 110px;
}

.bracket-round:nth-child(4) .bracket-matches {
    padding-top: 165px;
}


/* Полоса прокрутки */

.bracket::-webkit-scrollbar {
    height: 8px;
}

.bracket::-webkit-scrollbar-track {
    background: #0a0e12;
}

.bracket::-webkit-scrollbar-thumb {
    background: #303844;
    border-radius: 10px;
}

.bracket::-webkit-scrollbar-thumb:hover {
    background: #414b59;
}
.bracket {
    position: relative;
}

.bracket-round,
.bracket-match {
    position: relative;
    z-index: 2;
}

.bracket-connections {
    z-index: 1;
}

.bracket-line {
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bracket-line-winner {
    stroke: #65c987;
}

.bracket-line-loser {
    stroke: #d96b6b;
}
/* =========================
   BRACKET GRID
   ========================= */

.bracket-grid {
    position: relative;

    display: grid;
    grid-template-columns: repeat(5, 280px);
    grid-template-rows: repeat(14, 80px);

    column-gap: 90px;
    row-gap: 20px;

    min-width: max-content;
    padding: 30px 0 100px;

    overflow: visible;
}

.bracket-grid .bracket-match {
    position: relative;
    z-index: 2;

    align-self: center;

    background: #11161c;
    border: 1px solid #272d35;
    border-radius: 7px;

    overflow: hidden;
}

.bracket-match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 8px 12px;

    color: #ff4b50;
    background: #0d1116;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;

    border-bottom: 1px solid #272d35;
}

.bracket-grid .bracket-connections {
    position: absolute;
    left: 0;
    top: 0;

    z-index: 1;
    pointer-events: none;
}
.bracket-round-title {
    font-size: 14px;
    font-weight: 700;
    color: #7d8790;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid #2a3036;
    padding-bottom: 10px;
    align-self: end;
}

.upper-r1 {
    grid-column: 1;
    grid-row: 1;
}

.upper-final {
    grid-column: 2;
    grid-row: 1;
}

.lower-r1 {
    grid-column: 1;
    grid-row: 7;
}

.lower-r2 {
    grid-column: 2;
    grid-row: 7;
}

.lower-r3 {
    grid-column: 3;
    grid-row: 7;
}

.lower-final {
    grid-column: 4;
    grid-row: 7;
}

.grand-final {
    grid-column: 5;
    grid-row: 1;
}
/* =========================
   DPL BRACKET FINAL LAYOUT
   ========================= */

.bracket-grid {
    grid-template-columns: repeat(5, 280px);
    grid-template-rows: repeat(12, 65px);
    column-gap: 90px;
    row-gap: 14px;
}

/* Верхняя сетка */
.upper-r1 {
    grid-column: 1;
}

.upper-final {
    grid-column: 2;
}

/* Нижняя сетка */
.lower-r1 {
    grid-column: 1;
}

.lower-r2 {
    grid-column: 2;
}

.lower-r3 {
    grid-column: 3;
}

.lower-final {
    grid-column: 4;
}

/* Гранд-финал */
.grand-final {
    grid-column: 5;
}
/* Точные позиции раундов */

.upper-r1 {
    grid-row: 1 / span 4;
}

.upper-final {
    grid-row: 2;
}

.lower-r1 {
    grid-row: 7 / span 4;
}

.lower-r2 {
    grid-row: 7 / span 4;
}

.lower-r3 {
    grid-row: 8;
}

.lower-final {
    grid-row: 8;
}

.grand-final {
    grid-row: 4;
}
/* Позиции заголовков раундов */

.upper-r1 {
    grid-column: 1;
    grid-row: 1;
}

.upper-final {
    grid-column: 2;
    grid-row: 2;
}

.lower-r1 {
    grid-column: 1;
    grid-row: 7;
}

.lower-r2 {
    grid-column: 2;
    grid-row: 7;
}

.lower-r3 {
    grid-column: 3;
    grid-row: 8;
}

.lower-final {
    grid-column: 4;
    grid-row: 8;
}

.grand-final {
    grid-column: 5;
    grid-row: 4;
}
/* Заголовки раундов */
.title-lower-r1 {
    grid-column: 1;
    grid-row: 7;
}

.title-lower-r2 {
    grid-column: 2;
    grid-row: 7;
}

.title-lower-r3 {
    grid-column: 3;
    grid-row: 8;
}

.title-lower-final {
    grid-column: 4;
    grid-row: 8;
}

.title-grand-final {
    grid-column: 5;
    grid-row: 4;
}
.title-upper-r1,
.title-upper-final {
    position: absolute;
    top: 18px;
    z-index: 5;
}

.title-upper-r1 {
    left: 0;
    width: 280px;
}

.title-upper-final {
    left: 370px;
    width: 280px;
}
.bracket-match[data-round="upper_r1"] {
    transform: translateY(30px);
}
.bracket-grid {
    transform: scale(0.82);
    transform-origin: top left;
    width: calc(100% / 0.82);
}
/* Компактная шапка турнирной сетки */
.hero {
    padding-top: 30px !important;
    padding-bottom: 25px !important;
    min-height: 0 !important;
    height: auto !important;
}

.hero h1 {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}
.title-upper-r1,
.title-upper-final {
    transform: translateY(5px);
}
}
.title-upper-r1,
.title-upper-final {
    transform: none;
}
.bracket-match[data-number="1"] {
    margin-top: 45px;
}

.bracket-match[data-number="2"] {
    margin-top: 45px;
}

.bracket-match[data-number="3"] {
    margin-top: 85px;
    position: relative !important;
    left: 300px !important;
}
/* =========================
   BRACKET CONNECTIONS
   ========================= */

.bracket-grid {
    position: relative;
}

.bracket-connections {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.bracket-match {
    position: relative;
    z-index: 2;
}

.bracket-round-title {
    position: relative;
    z-index: 3;
}

.bracket-line {
    fill: none;
    stroke: #59656d;
    stroke-width: 2px;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.bracket-line-winner {
    stroke: #59656d;
}
/* Фиксируем заголовки раундов над своими колонками */

.title-upper-r1 {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    transform: none;
}

.title-upper-final {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    transform: none;
}

.title-lower-r1 {
    grid-column: 1;
    grid-row: 7;
    position: relative;
    transform: none;
}

.title-lower-r2 {
    grid-column: 2;
    grid-row: 7;
    position: relative;
    transform: none;
}

.title-lower-r3 {
    grid-column: 3;
    grid-row: 8;
    position: relative;
    transform: none;
}

.title-lower-final {
    grid-column: 4;
    grid-row: 8;
    position: relative;
    transform: none;
}

.title-grand-final {
    grid-column: 5;
    grid-row: 4;
    position: relative;
    transform: none;
}
.title-upper-r1,
.title-upper-final {
    position: absolute !important;
    top: -15px !important;
    transform: none !important;
    z-index: 5;
}

.title-upper-r1 {
    left: 0 !important;
    width: 280px;
}

.title-upper-final {
    left: 300px !important;
    width: 280px;
}
.upper-final .bracket-match {
    position: relative;
    left: 260px;
}
.title-upper-final {
    transform: translateY(70px) !important;
}
/* ========================================
   ЛИНИИ СЕТКИ
   Только путь победителя
   ======================================== */

.bracket-grid {
    position: relative;
}

/* №1 -> №3 */
.bracket-match[data-number="1"]::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;

    top: 50% !important;
    left: calc(100% + 10px) !important;

    width: 75px !important;
    height: 5px !important;

    background: #59636c !important;

    z-index: 9999 !important;
    pointer-events: none !important;
}

.bracket-match[data-number="1"] {
    overflow: visible !important;
}
.bracket-match[data-number="2"]::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;

    top: 50% !important;
    left: calc(100% + 10px) !important;

    width: 75px !important;
    height: 5px !important;

    background: #59636c !important;

    z-index: 9999 !important;
    pointer-events: none !important;
}

.bracket-match[data-number="2"] {
    overflow: visible !important;
}
.bracket-match[data-number="1"]::before {
    content: "" !important;
    position: absolute !important;

    left: calc(100% + 80px) !important;
    top: 50% !important;

    width: 5px !important;
    height: 160px !important;

    background: #59636c !important;

    z-index: 9999 !important;
    pointer-events: none !important;
}
.bracket-match[data-number="3"]::before {
    content: "" !important;
    position: absolute !important;

    right: calc(100% + 10px) !important;
    top: 50% !important;

    width: 300px !important;
    height: 5px !important;

    background: #59636c !important;

    z-index: 9999 !important;
    pointer-events: none !important;
}

.bracket-match[data-number="3"] {
    overflow: visible !important;
}
/* =========================================
   НИЖНЯЯ СЕТКА
   4 -> 6
   5 -> 7
   ========================================= */


/* Матч 4 -> матч 6 */
.bracket-match[data-number="4"]::after {
    content: "" !important;
    position: absolute !important;

    left: calc(100% + 10px) !important;
    top: 50% !important;

    width: 70px !important;
    height: 5px !important;

    background: #59636c !important;

    z-index: 9999 !important;
    pointer-events: none !important;
}


/* Матч 5 -> матч 7 */
.bracket-match[data-number="5"]::after {
    content: "" !important;
    position: absolute !important;

    left: calc(100% + 10px) !important;
    top: 50% !important;

    width: 70px !important;
    height: 5px !important;

    background: #59636c !important;

    z-index: 9999 !important;
    pointer-events: none !important;
}


/* Разрешаем линиям выходить за карточки */
.bracket-match[data-number="4"],
.bracket-match[data-number="5"] {
    overflow: visible !important;
}
/* =========================================
   НИЖНЯЯ СЕТКА
   МАТЧИ 6 + 7 -> МАТЧ 9
   ========================================= */


/* Матч 6 -> к общей вертикали */
.bracket-match[data-number="6"]::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;

    left: calc(100% + 10px) !important;
    top: 50% !important;

    width: 30px !important;
    height: 5px !important;

    background: #59636c !important;

    z-index: 9999 !important;
    pointer-events: none !important;
}


/* Матч 7 -> к общей вертикали */
.bracket-match[data-number="7"]::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;

    left: calc(100% + 10px) !important;
    top: 50% !important;

    width: 31px !important;
    height: 5px !important;

    background: #59636c !important;

    z-index: 9999 !important;
    pointer-events: none !important;
}


/* Вертикаль между матчами 6 и 7 */
.bracket-match[data-number="6"]::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;

    left: calc(100% + 40px) !important;
    top: 50% !important;

    width: 5px !important;
    height: 163px !important;

    background: #59636c !important;

    z-index: 9999 !important;
    pointer-events: none !important;
}


/* От общей вертикали -> матч 9 */
.bracket-match[data-number="9"]::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;

    right: calc(100% + 10px) !important;
    top: 50% !important;

    width: 40px !important;
    height: 5px !important;

    background: #59636c !important;

    z-index: 9999 !important;
    pointer-events: none !important;
}


/* Разрешаем линиям выходить за карточки */
.bracket-match[data-number="6"],
.bracket-match[data-number="7"],
.bracket-match[data-number="9"] {
    overflow: visible !important;
}
/* Отдельная линия 8 -> 9 */

.bracket-match[data-number="8"] {
    overflow: visible !important;
}

.line-8-to-9 {
    position: absolute !important;

    top: 50% !important;
    left: calc(100% + 10px) !important;

    width: 55px !important;
    height: 5px !important;

    background: #59636c !important;

    z-index: 9999 !important;
    pointer-events: none !important;
}
/* Все дополнительные линии по умолчанию скрыты */
.route-line {
    display: none !important;
}

/* Матч 8 -> матч 9 */
.route-line-8 {
    display: block !important;
    position: absolute !important;

    top: 50% !important;
    left: calc(100% + 10px) !important;

    width: 70px !important;
    height: 5px !important;

    background: #59636c !important;

    z-index: 9999 !important;
    pointer-events: none !important;
}
/* =========================================
   МАТЧ 3 -> МАТЧ 10
   верхняя ветка
   ========================================= */

.route-line-3 {
    display: block !important;
    position: absolute !important;

    top: 50% !important;
    left: calc(100% + 10px) !important;

    width: 490px !important;
    height: 190px !important;

    border-top: 5px solid #59636c !important;
    border-right: 5px solid #59636c !important;

    z-index: 9999 !important;
    pointer-events: none !important;
}


/* =========================================
   МАТЧ 9 -> МАТЧ 10
   нижняя ветка
   ========================================= */

.route-line-9 {
    display: block !important;
    position: absolute !important;

    bottom: 50% !important;
    left: calc(100% + 10px) !important;

    width: 50px !important;
    height: 350px !important;

    border-bottom: 5px solid #59636c !important;
    border-right: 5px solid #59636c !important;

    z-index: 9999 !important;
    pointer-events: none !important;
}


/* =========================================
   Короткий вход в матч 10
   ========================================= */

.route-line-10 {
    display: block !important;
    position: absolute !important;

    top: 50% !important;
    transform: translateY(-50%) !important;

    right: calc(100% + 10px) !important;

    width: 25px !important;
    height: 5px !important;

    background: #59636c !important;

    z-index: 99999 !important;
    pointer-events: none !important;
}

.bracket-match[data-number="10"] {
    overflow: visible !important;
}
/* Убираем пустой вертикальный скролл на странице сетки */
body.bracket-page {
    overflow-y: hidden;
}
/* Центрируем названия раундов */
.bracket-round-title {
    text-align: center !important;
}
/* =========================================
   КОРОТКИЙ ВХОД 6/7 -> МАТЧ 8
   ========================================= */

.bracket-match[data-number="8"]::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;

    top: 50% !important;
    transform: translateY(-50%) !important;

    right: calc(100% + 10px) !important;

    width: 40px !important;
    height: 5px !important;

    background: #59636c !important;

    z-index: 9999 !important;
    pointer-events: none !important;
}

.bracket-match[data-number="8"] {
    overflow: visible !important;
}
/* =========================
   ГРУППОВОЙ ЭТАП
   ========================= */

.group-stage {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.group-block {
    margin-bottom: 50px;
}

.group-block h2 {
    margin-bottom: 15px;
    font-size: 24px;
}

.group-table {
    width: 100%;
    border: 1px solid #2c3138;
    background: #101419;
}

.group-row {
    display: grid;
    grid-template-columns: 90px 1fr 100px 150px 100px;
    align-items: center;

    min-height: 55px;
    padding: 0 20px;

    border-bottom: 1px solid #2c3138;
}

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

.group-header {
    min-height: 45px;
    font-weight: bold;
    color: #9ca6af;
    background: #151a20;
}

.group-row span:nth-child(1),
.group-row span:nth-child(3),
.group-row span:nth-child(4),
.group-row span:nth-child(5) {
    text-align: center;
}

.group-row span:nth-child(2) {
    text-align: left;
}
/* Команды, вышедшие из группы */
/* Команды, вылетевшие из группы */
.group-row.eliminated {
    border-left: 4px solid #ff4d55;
    background: rgba(255, 77, 85, 0.06);
}

.group-row.eliminated span:first-child {
    font-weight: 700;
}
/* =========================
   РАСПОЛОЖЕНИЕ ГРУПП
   ========================= */

.groups-container {
    width: 100%;
}

/* Одна группа — по центру */
.groups-container.one-group .group-block {
    width: 100% !important;
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
}

.groups-container.one-group .group-table {
    width: 100% !important;
}

/* Две группы — слева и справа */
.groups-container.two-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.groups-container.two-groups .group-block {
    width: 100%;
    margin-bottom: 0;
}

/* На маленьком экране группы снова друг под другом */
@media (max-width: 900px) {
    .groups-container.two-groups {
        grid-template-columns: 1fr;
    }
}
/* =========================
   МАТЧИ ГРУППОВОГО ЭТАПА
   ========================= */

.group-matches {
    margin-top: 28px;
}

.group-matches h3 {
    margin: 0 0 12px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.group-match-row {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;

    min-height: 48px;
    padding: 0 18px;

    background: #101419;
    border: 1px solid #2c3138;
    border-bottom: none;
}

.group-match-row:last-of-type {
    border-bottom: 1px solid #2c3138;
}

.group-match-team:first-child {
    text-align: right;
}

.group-match-team:last-child {
    text-align: left;
}

.group-match-score {
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}

.group-match-empty {
    padding: 18px;
    text-align: center;
    color: #7f8993;
    background: #101419;
    border: 1px solid #2c3138;
}
/* =========================
   МАТЧИ ГРУППЫ
   ========================= */

.group-matches {
    margin-top: 30px !important;
    width: 100% !important;
}

.group-matches h3 {
    margin: 0 0 12px 0 !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.group-match-row {
    display: grid !important;
    grid-template-columns: 1fr 90px 1fr !important;
    align-items: center !important;

    width: 100% !important;
    min-height: 52px !important;
    padding: 0 20px !important;

    background: #101419 !important;
    border: 1px solid #2c3138 !important;
    box-sizing: border-box !important;
}

.group-match-row + .group-match-row {
    border-top: none !important;
}

.group-match-team:first-child {
    text-align: right !important;
}

.group-match-team:last-child {
    text-align: left !important;
}

.group-match-score {
    text-align: center !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

.group-match-empty {
    width: 100% !important;
    padding: 18px !important;
    text-align: center !important;

    background: #101419 !important;
    border: 1px solid #2c3138 !important;
    box-sizing: border-box !important;
}
/* Сыгранный матч */
.group-match-row.played {
    background: rgba(45, 125, 255, 0.10) !important;
    border-left: 4px solid #3b82f6 !important;
}

.group-match-row.played .group-match-score {
    color: #5aa0ff !important;
    font-weight: 700 !important;
}

/* Ещё не сыгранный матч */
.group-match-row.upcoming {
    opacity: 0.65;
}

.group-match-row.upcoming .group-match-score {
    color: #7f8993;
}
.group-match-team.winner {
    font-weight: 700 !important;
    color: #ffffff !important;
}
/* =========================
   TOURNAMENT ARCHIVE
   ========================= */

.archive-hero p {
    margin-bottom: 0;
}

.tournaments-section {
    padding: 25px 0 10px;
}

.tournament-list {
    display: grid;
    gap: 14px;
    padding-bottom: 50px;
}

.tournament-card {
    min-height: 105px;
    padding: 22px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    background: #11151b;
    border: 1px solid #252a31;
    border-radius: 8px;
}

.current-tournament-card {
    border-color: #513033;
}

.tournament-card h3 {
    margin: 7px 0 0;
    font-size: 22px;
}

.tournament-status {
    color: #7f8995;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.tournament-status.current {
    color: #e34b4b;
}

.tournament-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.tournament-actions a,
.archive-back-link {
    padding: 10px 15px;

    color: #f1f1f1;
    background: #171c23;
    border: 1px solid #303640;
    border-radius: 6px;

    text-decoration: none;
    font-size: 13px;
    font-weight: 700;

    transition: 0.2s;
}

.tournament-actions a:hover,
.archive-back-link:hover {
    background: #20262f;
    border-color: #454d59;
}

.archive-empty {
    padding: 25px;
    color: #89929d;
    background: #11151b;
    border: 1px solid #252a31;
    border-radius: 8px;
}

.archive-view-bar {
    margin: 22px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.archive-view-label {
    color: #8f97a3;
    font-size: 13px;
}

@media (max-width: 800px) {
    .tournament-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .tournament-actions {
        width: 100%;
    }

    .tournament-actions a {
        flex: 1;
        text-align: center;
    }
}

/* ========================================
   HOME PAGE — DPL TOURNAMENT DASHBOARD
   ======================================== */

.home-page main.home-shell,
.matches-page main.matches-shell {
    width: 94%;
    max-width: 1600px;
    margin: 0 auto;
}

.home-tournament-hero {
    position: relative;
    min-height: 365px;
    margin-top: 28px;
    padding: 38px 42px;
    overflow: hidden;
    border: 1px solid #2a3038;
    border-radius: 8px;
    background:
        radial-gradient(circle at 82% 40%, rgba(199, 40, 44, 0.18), transparent 32%),
        linear-gradient(125deg, #111820 0%, #0a0e13 64%, #10141a 100%);
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .20);
}

.home-tournament-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(227, 75, 75, .14), transparent 1px);
    opacity: .25;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.home-kicker,
.home-champion-kicker {
    display: inline-block;
    color: #ef474c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.home-tournament-hero h1 {
    margin: 13px 0 12px;
    color: #f4f6f8;
    font-size: clamp(42px, 5vw, 68px);
    line-height: .98;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.home-tournament-description {
    max-width: 610px;
    margin: 0;
    color: #c3c9d0;
    font-size: 16px;
    line-height: 1.55;
}

.home-tournament-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 36px;
}

.home-meta-item {
    min-width: 190px;
    padding: 0 28px;
    border-left: 1px solid #303640;
}

.home-meta-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.home-meta-label {
    display: block;
    margin-bottom: 7px;
    color: #7f8995;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.home-meta-item strong {
    color: #f0f2f4;
    font-size: 14px;
    font-weight: 700;
}

.home-status-live {
    color: #f1f3f5 !important;
}

.home-hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.home-primary-button,
.home-secondary-button,
.home-panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .45px;
    text-transform: uppercase;
    transition: .18s ease;
}

.home-primary-button {
    padding: 0 18px;
    color: #fff;
    border: 1px solid #9c2c31;
    background: #7e2428;
}

.home-secondary-button {
    padding: 0 18px;
    color: #dbe0e5;
    border: 1px solid #343b45;
    background: rgba(15, 20, 26, .82);
}

.home-primary-button:hover,
.home-secondary-button:hover,
.home-panel-link:hover {
    border-color: #e34b4b;
    color: #fff;
}

.home-empty-hero {
    min-height: 260px;
}

.home-match-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.home-panel,
.matches-full-panel {
    overflow: hidden;
    border: 1px solid #252c35;
    border-radius: 8px;
    background: #0d1218;
}

.home-panel-header {
    min-height: 54px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #222932;
    background: #10161d;
}

.home-panel-header h2 {
    margin: 0;
    color: #eef1f4;
    font-size: 17px;
    text-transform: uppercase;
}

.home-panel-link {
    min-height: 32px;
    padding: 0 14px;
    color: #aeb6c0;
    border: 1px solid #343c46;
    background: #111820;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.home-match-list {
    background: #0a0f14;
}

.home-match-row,
.home-result-row {
    min-height: 92px;
    display: grid;
    align-items: center;
    border-bottom: 1px solid #1f2630;
}

.home-match-row:last-child,
.home-result-row:last-child {
    border-bottom: 0;
}

.home-match-row {
    grid-template-columns: 84px minmax(150px, 1fr) 105px minmax(150px, 1fr);
    padding: 10px 14px;
}

.home-match-date,
.home-result-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-match-date strong,
.home-result-meta strong {
    color: #eef1f4;
    font-size: 14px;
}

.home-match-date span,
.home-result-meta span {
    color: #737d89;
    font-size: 11px;
}

.home-match-team,
.home-result-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.home-match-team-right {
    justify-content: flex-start;
}

.home-team-name,
.home-result-team span {
    color: #e7eaed;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.home-team-logo,
.home-team-logo-placeholder {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.home-team-logo {
    object-fit: cover;
    object-position: center;
    padding: 0;
    border: 1px solid #343b44;
    background: #090d12;
}

.home-team-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9aa3ad;
    border: 1px solid #343b44;
    background: #141a21;
    font-size: 17px;
    font-weight: 900;
}

.home-team-logo.small,
.home-team-logo-placeholder.small {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
}

.home-match-center,
.home-result-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.home-match-stage,
.home-match-bo,
.home-result-score span {
    color: #6f7985;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.home-vs {
    color: #e23f45;
    font-size: 20px;
    line-height: 1;
}

.home-result-row {
    grid-template-columns: 86px minmax(150px, 1fr) 74px minmax(150px, 1fr);
    padding: 10px 14px;
}

.home-result-team-left {
    justify-content: flex-start;
}

.home-result-team-right {
    justify-content: flex-end;
    text-align: right;
}

.home-result-score strong {
    color: #73d47d;
    font-size: 21px;
}

.home-empty-list {
    padding: 30px 20px;
    color: #74808d;
    font-size: 13px;
    text-align: center;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.home-stat-card {
    min-height: 104px;
    padding: 20px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #252c35;
    border-radius: 8px;
    background: linear-gradient(135deg, #11171e, #0c1117);
}

.home-stat-number {
    color: #e23f45;
    font-size: 35px;
    font-weight: 900;
    line-height: 1;
}

.home-stat-label {
    margin-top: 9px;
    color: #a4adb7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.home-champion-card {
    min-height: 145px;
    margin: 16px 0 38px;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 28px;
    border: 1px solid #252c35;
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 50%, rgba(185, 103, 31, .16), transparent 28%),
        linear-gradient(110deg, #10161d, #0b1015);
    background-size: cover;
    background-position: center;
}

.home-champion-team {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.home-champion-logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    border: 1px solid #3b424c;
    background: #090d12;
}

.home-champion-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d3d8dd;
    font-weight: 900;
}

.home-champion-team strong {
    display: block;
    color: #f2f4f6;
    font-size: 22px;
}

.home-champion-team span,
.home-champion-missing,
.home-final-bo {
    display: block;
    margin-top: 5px;
    color: #929ba6;
    font-size: 12px;
}

.home-champion-final {
    justify-self: end;
    min-width: 420px;
}

.home-final-line {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    color: #e8ebee;
}

.home-final-line span:first-child {
    text-align: right;
}

.home-final-line strong {
    color: #73d47d;
    font-size: 26px;
}

.home-final-line span {
    font-size: 14px;
    font-weight: 700;
}

.home-final-bo {
    text-align: center;
}

.matches-heading {
    padding: 42px 0 25px;
    border-bottom: 1px solid #252b33;
}

.matches-heading h1 {
    margin: 8px 0 5px;
    font-size: 46px;
}

.matches-heading p {
    margin: 0;
    color: #858f9a;
}

.matches-full-panel {
    margin-top: 18px;
}

.matches-full-panel:last-child {
    margin-bottom: 50px;
}

.matches-full-panel .home-match-row {
    grid-template-columns: 100px minmax(220px, 1fr) 125px minmax(220px, 1fr);
}

.matches-full-panel .home-result-row {
    grid-template-columns: 100px minmax(220px, 1fr) 90px minmax(220px, 1fr);
}

@media (max-width: 1100px) {
    .home-match-columns {
        grid-template-columns: 1fr;
    }

    .home-champion-card {
        grid-template-columns: 1fr;
    }

    .home-champion-final {
        justify-self: stretch;
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .home-page main.home-shell,
    .matches-page main.matches-shell {
        width: 92%;
    }

    .home-tournament-hero {
        min-height: 0;
        padding: 28px 22px;
    }

    .home-tournament-meta {
        gap: 18px;
    }

    .home-meta-item {
        width: 100%;
        padding: 0;
        border-left: 0;
    }

    .home-hero-actions {
        flex-direction: column;
    }

    .home-match-row,
    .matches-full-panel .home-match-row {
        grid-template-columns: 1fr 90px 1fr;
        gap: 8px;
    }

    .home-match-date {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .home-team-name {
        font-size: 12px;
    }

    .home-team-logo,
    .home-team-logo-placeholder {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .home-result-row,
    .matches-full-panel .home-result-row {
        grid-template-columns: 1fr 64px 1fr;
        gap: 8px;
    }

    .home-result-meta {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .home-stats-grid {
        grid-template-columns: 1fr;
    }

    .home-final-line {
        gap: 8px;
    }

    .home-final-line span {
        font-size: 12px;
    }
}

/* ========================================
   HOME PAGE — COMPACT DESKTOP LAYOUT
   Keeps the dashboard visible on a 1080p screen
   ======================================== */
@media (min-width: 1101px) {
    .home-page header {
        height: 60px;
        padding-left: 5%;
        padding-right: 5%;
    }

    .home-page .logo {
        font-size: 27px;
        margin-right: 46px;
    }

    .home-page nav {
        gap: 30px;
    }

    .home-page main.home-shell {
        width: 92%;
        max-width: 1600px;
    }

    .home-tournament-hero {
        min-height: 255px;
        margin-top: 12px;
        padding: 24px 34px;
    }

    .home-kicker,
    .home-champion-kicker {
        font-size: 10px;
        letter-spacing: 1.3px;
    }

    .home-tournament-hero h1 {
        margin: 8px 0 8px;
        font-size: clamp(38px, 3.7vw, 54px);
        line-height: .96;
    }

    .home-tournament-description {
        max-width: 640px;
        font-size: 14px;
        line-height: 1.35;
    }

    .home-tournament-meta {
        margin-top: 20px;
    }

    .home-meta-item {
        min-width: 160px;
        padding: 0 20px;
    }

    .home-meta-label {
        margin-bottom: 4px;
        font-size: 9px;
    }

    .home-meta-item strong {
        font-size: 12px;
    }

    .home-hero-actions {
        gap: 9px;
        margin-top: 17px;
    }

    .home-primary-button,
    .home-secondary-button {
        min-height: 32px;
        padding: 0 15px;
        font-size: 10px;
    }

    .home-match-columns {
        gap: 12px;
        margin-top: 12px;
    }

    .home-panel-header {
        min-height: 42px;
        padding: 0 12px;
    }

    .home-panel-header h2 {
        font-size: 15px;
    }

    .home-panel-link {
        min-height: 27px;
        padding: 0 11px;
        font-size: 10px;
    }

    .home-match-row,
    .home-result-row {
        min-height: 62px;
    }

    .home-match-row {
        grid-template-columns: 70px minmax(130px, 1fr) 86px minmax(130px, 1fr);
        padding: 6px 11px;
    }

    .home-result-row {
        grid-template-columns: 70px minmax(130px, 1fr) 64px minmax(130px, 1fr);
        padding: 6px 11px;
    }

    .home-match-date,
    .home-result-meta {
        gap: 2px;
    }

    .home-match-date strong,
    .home-result-meta strong,
    .home-team-name,
    .home-result-team span {
        font-size: 12px;
    }

    .home-match-date span,
    .home-result-meta span,
    .home-match-stage,
    .home-match-bo,
    .home-result-score span {
        font-size: 9px;
    }

    .home-match-team,
    .home-result-team {
        gap: 7px;
    }

    .home-team-logo,
    .home-team-logo-placeholder {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .home-team-logo.small,
    .home-team-logo-placeholder.small {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .home-vs {
        font-size: 17px;
    }

    .home-result-score strong {
        font-size: 18px;
    }

    .home-empty-list {
        padding: 20px 16px;
        font-size: 12px;
    }

    .home-stats-grid {
        gap: 12px;
        margin-top: 12px;
    }

    .home-stat-card {
        min-height: 70px;
        padding: 12px 20px;
    }

    .home-stat-number {
        font-size: 28px;
    }

    .home-stat-label {
        margin-top: 5px;
        font-size: 10px;
    }

    .home-champion-card {
        min-height: 94px;
        margin: 12px 0 14px;
        padding: 14px 20px;
        gap: 20px;
    }

    .home-champion-team {
        margin-top: 8px;
        gap: 11px;
    }

    .home-champion-logo {
        width: 44px;
        height: 44px;
    }

    .home-champion-team strong {
        font-size: 17px;
    }

    .home-champion-team span,
    .home-champion-missing,
    .home-final-bo {
        margin-top: 3px;
        font-size: 10px;
    }

    .home-champion-final {
        min-width: 360px;
    }

    .home-final-line {
        margin-top: 7px;
        gap: 13px;
    }

    .home-final-line strong {
        font-size: 21px;
    }

    .home-final-line span {
        font-size: 12px;
    }
}

/* ========================================
   HOME PAGE — BALANCED FULL-SCREEN DESKTOP
   Fills a 1080p viewport without making the dashboard feel cramped.
   Shorter desktop screens keep the compact layout above.
   ======================================== */
@media (min-width: 1101px) and (min-height: 820px) {
    .home-page main.home-shell {
        min-height: calc(100vh - 60px);
        display: flex;
        flex-direction: column;
        padding-bottom: 18px;
    }

    .home-tournament-hero {
        flex: 0 0 292px;
        min-height: 292px;
        margin-top: 14px;
        padding: 30px 38px;
    }

    .home-tournament-hero h1 {
        margin: 10px 0 10px;
        font-size: clamp(42px, 4vw, 60px);
    }

    .home-tournament-description {
        font-size: 15px;
        line-height: 1.42;
    }

    .home-tournament-meta {
        margin-top: 25px;
    }

    .home-meta-item {
        min-width: 175px;
        padding: 0 23px;
    }

    .home-meta-label {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .home-meta-item strong {
        font-size: 13px;
    }

    .home-hero-actions {
        margin-top: 21px;
    }

    .home-primary-button,
    .home-secondary-button {
        min-height: 35px;
        padding: 0 17px;
        font-size: 11px;
    }

    .home-match-columns {
        flex: 1 1 350px;
        min-height: 330px;
        gap: 14px;
        margin-top: 14px;
    }

    .home-panel {
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .home-panel-header {
        flex: 0 0 48px;
        min-height: 48px;
        padding: 0 14px;
    }

    .home-panel-header h2 {
        font-size: 16px;
    }

    .home-panel-link {
        min-height: 29px;
        padding: 0 12px;
        font-size: 10px;
    }

    .home-match-list {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .home-match-row,
    .home-result-row {
        flex: 1 1 0;
        min-height: 70px;
    }

    .home-match-row {
        grid-template-columns: 76px minmax(135px, 1fr) 92px minmax(135px, 1fr);
        padding: 8px 12px;
    }

    .home-result-row {
        grid-template-columns: 76px minmax(135px, 1fr) 68px minmax(135px, 1fr);
        padding: 8px 12px;
    }

    .home-match-date strong,
    .home-result-meta strong,
    .home-team-name,
    .home-result-team span {
        font-size: 13px;
    }

    .home-match-date span,
    .home-result-meta span,
    .home-match-stage,
    .home-match-bo,
    .home-result-score span {
        font-size: 9px;
    }

    .home-team-logo,
    .home-team-logo-placeholder {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .home-team-logo.small,
    .home-team-logo-placeholder.small {
        flex-basis: 33px;
        width: 33px;
        height: 33px;
    }

    .home-result-score strong {
        font-size: 20px;
    }

    .home-empty-list {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        font-size: 13px;
    }

    .home-stats-grid {
        flex: 0 0 auto;
        gap: 14px;
        margin-top: 14px;
    }

    .home-stat-card {
        min-height: 88px;
        padding: 15px 22px;
    }

    .home-stat-number {
        font-size: 32px;
    }

    .home-stat-label {
        margin-top: 6px;
        font-size: 10px;
    }

    .home-champion-card {
        flex: 0 0 auto;
        min-height: 108px;
        margin: 14px 0 0;
        padding: 17px 22px;
    }

    /* If the previous-champion block exists, keep the whole dashboard inside the viewport. */
    .home-page main.home-shell:has(.home-champion-card) .home-tournament-hero {
        flex-basis: 285px;
        min-height: 285px;
        padding-top: 23px;
        padding-bottom: 23px;
    }

    .home-page main.home-shell:has(.home-champion-card) .home-match-columns {
        flex-basis: 285px;
        min-height: 270px;
    }

    .home-page main.home-shell:has(.home-champion-card) .home-champion-card {
        min-height: 100px;
    }
}

/* ========================================
   ALL MATCHES PAGE — DPL V2
   Hidden from the top navigation; opened from the home dashboard.
   ======================================== */
.matches-page header {
    height: 60px;
    padding-left: 5%;
    padding-right: 5%;
}

.matches-page .logo {
    margin-right: 46px;
    font-size: 27px;
}

.matches-page nav {
    gap: 30px;
}

.matches-page main.matches-shell.matches-layout {
    width: 92%;
    max-width: 1600px;
    padding: 18px 0 54px;
}

.matches-top-card {
    padding: 27px 30px 0;
    overflow: hidden;
    border: 1px solid #252c35;
    border-radius: 9px;
    background:
        radial-gradient(circle at 84% 25%, rgba(226, 63, 69, .11), transparent 28%),
        linear-gradient(135deg, #11171e, #0b1016);
}

.matches-top-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.matches-kicker {
    color: #e23f45;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.45px;
    text-transform: uppercase;
}

.matches-top-card h1 {
    margin: 7px 0 5px;
    color: #f3f5f7;
    font-size: clamp(34px, 3vw, 48px);
    line-height: 1;
}

.matches-top-card p {
    margin: 0;
    color: #89939e;
    font-size: 14px;
    font-weight: 600;
}

.matches-back-link {
    min-height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #aeb6bf;
    border: 1px solid #313944;
    border-radius: 5px;
    background: rgba(10, 14, 19, .72);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: .18s ease;
}

.matches-back-link:hover {
    color: #ffffff;
    border-color: #4a5562;
    background: #151b22;
}

.matches-jump-links {
    margin: 24px -30px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #252c35;
}

.matches-jump-links a {
    min-height: 52px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #a4adb7;
    text-decoration: none;
    transition: .18s ease;
}

.matches-jump-links a + a {
    border-left: 1px solid #252c35;
}

.matches-jump-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .025);
}

.matches-jump-links span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .35px;
    text-transform: uppercase;
}

.matches-jump-links strong {
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f4f5f7;
    border: 1px solid #343c46;
    border-radius: 999px;
    background: #141a21;
    font-size: 11px;
}

.matches-section {
    margin-top: 18px;
    scroll-margin-top: 18px;
}

.matches-section-heading {
    min-height: 62px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #252c35;
    border-radius: 8px 8px 0 0;
    background: #10161d;
}

.matches-section-heading h2 {
    margin: 4px 0 0;
    color: #eef1f3;
    font-size: 18px;
}

.matches-section-count {
    min-width: 34px;
    height: 28px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e23f45;
    border: 1px solid #343c46;
    border-radius: 999px;
    background: #0b1016;
    font-size: 12px;
    font-weight: 900;
}

.matches-date-group {
    border-right: 1px solid #252c35;
    border-left: 1px solid #252c35;
    background: #0c1117;
}

.matches-date-group:last-of-type {
    border-bottom: 1px solid #252c35;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.matches-date-label {
    min-height: 34px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    color: #737e89;
    border-bottom: 1px solid #202730;
    background: #0a0f14;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.matches-list-v2 {
    display: flex;
    flex-direction: column;
}

.matches-row-v2 {
    min-height: 82px;
    padding: 9px 17px;
    display: grid;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #202730;
    background: linear-gradient(90deg, rgba(17, 23, 30, .96), rgba(13, 18, 24, .96));
    transition: background .15s ease;
}

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

.matches-row-v2:hover {
    background: linear-gradient(90deg, #131a22, #10161d);
}

.matches-row-upcoming {
    grid-template-columns: 86px minmax(220px, 1fr) 78px minmax(220px, 1fr) 120px;
}

.matches-row-result {
    grid-template-columns: 118px minmax(220px, 1fr) 92px minmax(220px, 1fr) 94px;
}

.matches-time-v2,
.matches-result-kind-v2,
.matches-result-status-v2 {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.matches-time-v2 strong {
    color: #eef1f3;
    font-size: 18px;
    line-height: 1;
}

.matches-time-v2 span,
.matches-result-kind-v2 span,
.matches-result-status-v2 span {
    color: #737e89;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.matches-result-kind-v2 strong {
    color: #919ba6;
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: .4px;
    text-transform: uppercase;
}

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

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

.matches-team-right-v2 {
    justify-content: flex-start;
}

.matches-team-name-v2 {
    min-width: 0;
    overflow: hidden;
    color: #dfe3e7;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matches-team-name-v2.is-winner {
    color: #ffffff;
}

.matches-team-logo-v2,
.matches-team-placeholder-v2 {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid #343c46;
    border-radius: 50%;
    background: #090d12;
}

.matches-team-logo-v2 {
    padding: 0;
    object-fit: cover;
    object-position: center;
}

.matches-team-placeholder-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9aa4ae;
    font-size: 16px;
    font-weight: 900;
}

.matches-center-v2,
.matches-score-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

.matches-vs-v2 {
    color: #e23f45;
    font-size: 20px;
    line-height: 1;
}

.matches-center-v2 span,
.matches-score-v2 span,
.matches-type-v2 span {
    color: #6f7a85;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.matches-score-v2 strong {
    color: #73d47d;
    font-size: 23px;
    line-height: 1;
}

.matches-type-v2 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.matches-type-v2 strong {
    color: #949ea9;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: .35px;
    text-transform: uppercase;
}

.matches-result-status-v2 {
    align-items: flex-end;
}

.matches-result-status-v2 span {
    color: #6da975;
}

.matches-empty-v2 {
    min-height: 122px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    border: 1px solid #252c35;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #0d1218;
}

.matches-empty-v2 strong {
    color: #cdd2d7;
    font-size: 14px;
}

.matches-empty-v2 span {
    max-width: 620px;
    color: #737e89;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 1000px) {
    .matches-row-upcoming,
    .matches-row-result {
        grid-template-columns: 1fr 78px 1fr;
        gap: 9px;
    }

    .matches-time-v2,
    .matches-result-kind-v2 {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }

    .matches-type-v2,
    .matches-result-status-v2 {
        display: none;
    }
}

@media (max-width: 760px) {
    .matches-page header {
        height: auto;
        min-height: 62px;
        padding-top: 12px;
        padding-bottom: 12px;
        align-items: flex-start;
    }

    .matches-page .logo {
        margin-right: 24px;
    }

    .matches-page nav {
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .matches-page nav a {
        font-size: 12px;
    }

    .matches-page main.matches-shell.matches-layout {
        width: 94%;
        padding-top: 12px;
    }

    .matches-top-card {
        padding: 22px 20px 0;
    }

    .matches-top-main {
        flex-direction: column;
        gap: 16px;
    }

    .matches-back-link {
        align-self: flex-start;
    }

    .matches-jump-links {
        margin-right: -20px;
        margin-left: -20px;
    }

    .matches-jump-links a {
        min-height: 46px;
        padding: 0 14px;
    }

    .matches-jump-links span {
        font-size: 10px;
    }

    .matches-row-v2 {
        min-height: 76px;
        padding: 8px 10px;
    }

    .matches-row-upcoming,
    .matches-row-result {
        grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    }

    .matches-team-v2 {
        gap: 7px;
    }

    .matches-team-logo-v2,
    .matches-team-placeholder-v2 {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .matches-team-name-v2 {
        font-size: 12px;
    }

    .matches-vs-v2 {
        font-size: 17px;
    }

    .matches-score-v2 strong {
        font-size: 19px;
    }

    .matches-section-heading {
        min-height: 56px;
        padding: 0 13px;
    }

    .matches-section-heading h2 {
        font-size: 16px;
    }
}

/* ========================================
   TOURNAMENT ARCHIVE — MODERN CARDS
   ======================================== */

.archive-page {
    min-height: 100vh;
}

.archive-shell {
    width: 88%;
    max-width: 1500px;
    margin: 0 auto;
    padding-bottom: 54px;
}

.archive-heading {
    padding: 42px 0 24px;
    border-bottom: 1px solid #252a31;
}

.archive-heading-label {
    color: #e34b4b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2.2px;
}

.archive-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-top: 8px;
}

.archive-heading h1 {
    margin: 0;
    font-size: 46px;
    line-height: 1;
    letter-spacing: -1px;
}

.archive-heading p {
    margin: 10px 0 0;
    color: #8994a2;
    font-size: 14px;
}

.archive-count {
    padding-bottom: 3px;
    color: #6f7a87;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.archive-current-section,
.archive-completed-section {
    margin-top: 24px;
}

.archive-section-heading {
    margin-bottom: 10px;
    color: #f2f4f7;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.archive-current-card {
    position: relative;
    min-height: 205px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background: radial-gradient(circle at 82% 40%, rgba(122,31,35,.22), transparent 33%), #0f141a;
    background-position: center;
    background-size: cover;
    border: 1px solid #3a282c;
    border-radius: 8px;
}

.archive-current-card::after,
.archive-tournament-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,.025), transparent 34%);
}

.archive-current-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 26px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.archive-current-content h2 {
    margin: 8px 0 12px;
    font-size: 34px;
    line-height: 1;
}

.archive-current-meta {
    display: flex;
    gap: 18px;
    color: #a5afbb;
    font-size: 12px;
    font-weight: 700;
}

.archive-current-meta span + span {
    padding-left: 18px;
    border-left: 1px solid #343a43;
}

.archive-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    color: #aab3bf;
    background: rgba(19,24,31,.76);
    border: 1px solid rgba(72,80,91,.70);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.archive-badge.live {
    color: #ff5b60;
    background: rgba(86,21,25,.45);
    border-color: rgba(157,47,52,.55);
}

.archive-card-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 9px;
    margin-top: auto;
    padding-top: 22px;
}

.archive-card-actions a {
    min-width: 136px;
    padding: 9px 14px;
    color: #e9edf2;
    background: rgba(17,23,30,.90);
    border: 1px solid #353d48;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .35px;
    transition: .18s ease;
}

.archive-card-actions a:hover {
    background: #1b222b;
    border-color: #505b68;
    transform: translateY(-1px);
}

.archive-card-actions a.primary {
    color: #fff;
    background: #a62e33;
    border-color: #c03a3f;
}

.archive-card-actions a.primary:hover {
    background: #bb343a;
    border-color: #dc4b50;
}

.archive-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.archive-tournament-card {
    position: relative;
    min-height: 315px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 20px;
    background: radial-gradient(circle at 70% 5%, rgba(113,34,38,.16), transparent 38%), #10151b;
    background-position: center;
    background-size: cover;
    border: 1px solid #282f38;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.archive-tournament-card:hover {
    border-color: #3b444f;
}

.archive-card-top,
.archive-card-body,
.archive-card-actions-bottom {
    position: relative;
    z-index: 1;
}

.archive-card-top {
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.archive-card-date {
    color: #9aa5b2;
    font-size: 10px;
    font-weight: 700;
}

.archive-card-body {
    margin-top: 48px;
}

.archive-tournament-card.has-banner .archive-card-body {
    margin-top: 58px;
}

.archive-card-body h2 {
    margin: 0;
    max-width: 88%;
    font-size: 27px;
    line-height: 1.05;
    text-shadow: 0 2px 12px rgba(0,0,0,.65);
}

.archive-winner-block {
    margin-top: 18px;
}

.archive-winner-label {
    margin-bottom: 7px;
    color: #e34b4b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.25px;
}

.archive-winner-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
}

.archive-winner-row strong {
    font-size: 15px;
}

.archive-team-logo,
.archive-team-logo-placeholder {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    border: 1px solid #444d59;
}

.archive-team-logo {
    object-fit: cover;
    background: #0e1217;
}

.archive-team-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #171d24;
    font-size: 12px;
    font-weight: 900;
}

.archive-winner-empty {
    color: #7d8895;
    font-size: 12px;
}

.archive-final-line {
    margin-top: 14px;
    padding-top: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(67,75,86,.56);
}

.archive-final-line > span {
    color: #818c99;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.archive-final-line > div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 10px;
}

.archive-final-line strong {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-final-line b {
    color: #45db78;
    font-size: 15px;
    white-space: nowrap;
}

.archive-card-actions-bottom {
    padding-top: 17px;
}

.archive-empty-modern {
    grid-column: 1 / -1;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.archive-empty-modern strong {
    color: #eef1f5;
    font-size: 16px;
}

.archive-empty-modern span {
    color: #7f8a97;
    font-size: 12px;
}

@media (max-width: 980px) {
    .archive-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .archive-shell {
        width: 92%;
    }

    .archive-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .archive-heading h1 {
        font-size: 36px;
    }

    .archive-current-card {
        min-height: 245px;
    }

    .archive-current-content {
        padding: 22px;
    }

    .archive-current-content h2 {
        font-size: 29px;
    }

    .archive-current-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .archive-current-meta span + span {
        padding-left: 0;
        border-left: 0;
    }

    .archive-card-actions {
        width: 100%;
        flex-direction: column;
    }

    .archive-card-actions a {
        width: 100%;
    }

    .archive-tournament-card {
        min-height: 330px;
    }
}


/* LIVE indicator next to the Streams menu item */
nav a[data-streams-nav] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

nav a[data-streams-nav]::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #ff3b3b;
    box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.13), 0 0 8px rgba(255, 59, 59, 0.75);
    opacity: 0;
    transform: scale(0.65);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

nav a[data-streams-nav].is-live::after {
    opacity: 1;
    transform: scale(1);
    animation: streams-rec-pulse 1.6s ease-in-out infinite;
}

@keyframes streams-rec-pulse {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.13), 0 0 7px rgba(255, 59, 59, 0.65);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(255, 59, 59, 0.08), 0 0 12px rgba(255, 59, 59, 0.95);
    }
}


/* Previous tournament champion logo — keep the whole team image visible */
img.home-champion-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 9px;
    object-fit: contain;
    object-position: center;
    padding: 2px;
    background: #090d12;
}


/* === TEAM LOGOS: keep them large and filled === */
.home-team-logo,
.home-champion-logo,
.matches-team-logo-v2 {
    object-fit: cover !important;
    object-position: center !important;
    padding: 0 !important;
}

.matches-team-logo-v2 {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    border-radius: 50% !important;
}
