* {
    box-sizing: border-box;
}

:root {
    --bg: #070910;
    --panel: #0d1119;
    --panel-2: #111621;
    --border: #202737;

    --text: #f7f8fc;
    --muted: #778197;

    --purple: #7c4dff;
    --purple-light: #a979ff;

    --green: #20e58b;
    --red: #ff536b;

    --pitch: #11542d;
    --pitch-light: #155e34;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(
            circle at 20% -10%,
            rgba(96, 54, 220, 0.13),
            transparent 28%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    height: 82px;

    display: grid;
    grid-template-columns: 340px 1fr 340px;

    align-items: center;

    padding: 0 28px;

    background:
        linear-gradient(
            90deg,
            rgba(30, 20, 65, .45),
            rgba(7, 9, 16, .95) 30%
        );

    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #9c6cff,
            #5626df
        );

    box-shadow:
        0 0 30px rgba(124, 77, 255, .25);

    font-size: 30px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 23px;
    line-height: 1;

    font-weight: 900;

    letter-spacing: -.6px;
}

.brand-title span {
    color: var(--purple-light);
}

.brand-subtitle {
    margin-top: 7px;

    color: #71798b;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 3px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.navigation {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;
}

.navigation a {
    color: #8c94a7;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    padding: 12px 18px;

    border: 1px solid transparent;

    border-radius: 11px;

    transition: .2s;
}

.navigation a:hover {
    color: white;

    background: #121723;
}

.navigation a.active {
    color: white;

    background:
        linear-gradient(
            180deg,
            rgba(124, 77, 255, .20),
            rgba(124, 77, 255, .08)
        );

    border-color: var(--purple);

    box-shadow:
        0 0 22px rgba(124, 77, 255, .12);
}


/* =========================================================
   CONNECTION
========================================================= */

.header-right {
    display: flex;

    justify-content: flex-end;
}

.connection {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px 13px;

    border: 1px solid #242b39;

    border-radius: 10px;

    background: #0b0f17;

    color: #a1a8b8;

    font-size: 11px;
}

.connection-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 10px var(--green);
}


/* =========================================================
   MATCH CENTER
========================================================= */

.match-center {
    height: calc(100vh - 82px);

    display: grid;

    grid-template-columns:
        330px
        minmax(800px, 1fr);
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    background: #090d14;

    border-right: 1px solid var(--border);

    overflow-y: auto;
}

.sidebar-header {
    position: sticky;

    top: 0;

    z-index: 10;

    padding: 19px 18px;

    background: rgba(9, 13, 20, .96);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid var(--border);
}

.sidebar-header-top {
    display: flex;

    align-items: center;
    justify-content: space-between;
}

.sidebar-title {
    margin: 0;

    font-size: 16px;

    font-weight: 850;
}

.live-badge {
    padding: 5px 8px;

    border-radius: 7px;

    background: rgba(32, 229, 139, .11);

    color: var(--green);

    font-size: 9px;

    font-weight: 900;
}

.sidebar-date {
    margin-top: 7px;

    color: #667087;

    font-size: 10px;
}


/* =========================================================
   MATCH SIDEBAR ITEM
========================================================= */

.game {
    position: relative;

    padding: 13px 16px;

    border-bottom: 1px solid #191f2a;

    cursor: pointer;

    transition: .18s;
}

.game:hover {
    background: #101620;
}

.game.active {
    background:
        linear-gradient(
            90deg,
            rgba(124, 77, 255, .23),
            rgba(124, 77, 255, .04)
        );
}

.game.active::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 4px;
    height: 100%;

    background:
        linear-gradient(
            #a776ff,
            #6335ee
        );

    box-shadow:
        0 0 14px rgba(124, 77, 255, .6);
}

.game-meta {
    display: flex;

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

    margin-bottom: 7px;
}

.game-time {
    color: #8790a3;

    font-size: 10px;

    font-weight: 700;
}

.game-live {
    color: var(--green);

    font-size: 9px;

    font-weight: 900;
}

.game-status {
    color: #646e83;

    font-size: 9px;
}

.club-row {
    min-height: 25px;

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 12px;

    font-weight: 700;
}

.club-logo {
    width: 21px;
    height: 21px;

    flex: 0 0 21px;

    display: grid;
    place-items: center;

    border-radius: 6px;

    background:
        linear-gradient(
            145deg,
            #242c3a,
            #151b25
        );

    border: 1px solid #30394a;

    color: #dce1ec;

    font-size: 7px;

    font-weight: 900;
}

.club-name {
    min-width: 0;

    flex: 1;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}

.club-score {
    font-size: 13px;

    font-weight: 900;
}


/* =========================================================
   MATCH AREA
========================================================= */

.match-area {
    min-width: 0;

    overflow-y: auto;

    background: #080b11;
}


/* =========================================================
   MATCH HEADER
========================================================= */

.match-header {
    min-height: 86px;

    padding: 0 28px;

    display: grid;

    grid-template-columns:
        1fr
        180px
        1fr;

    align-items: center;

    background:
        linear-gradient(
            180deg,
            #0e131c,
            #0b0f16
        );

    border-bottom: 1px solid var(--border);
}

.match-club {
    display: flex;

    align-items: center;

    gap: 13px;
}

.match-club.away {
    justify-content: flex-end;
}

.match-logo {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #171e29;

    border: 1px solid #30394a;

    font-size: 10px;

    font-weight: 900;
}

.match-club-info {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.match-club.away .match-club-info {
    text-align: right;
}

.match-club-name {
    font-size: 17px;

    font-weight: 900;
}

.formation {
    color: #6f788c;

    font-size: 10px;

    font-weight: 700;
}

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

.score {
    font-size: 28px;

    font-weight: 950;

    letter-spacing: 3px;
}

.match-live {
    margin-top: 5px;

    color: var(--green);

    font-size: 10px;

    font-weight: 900;
}


/* =========================================================
   PITCH AREA
========================================================= */

.pitch-container {
    padding: 16px;

    background:
        linear-gradient(
            180deg,
            #0a0e15,
            #080b11
        );
}

.pitch {
    position: relative;

    width: 100%;

    min-height: 560px;

    overflow: hidden;

    border: 1px solid rgba(77, 230, 129, .35);

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 50%,
            transparent 50%
        ),
        linear-gradient(
            180deg,
            rgba(255,255,255,.015),
            rgba(0,0,0,.04)
        ),
        var(--pitch);

    background-size:
        16.666% 100%,
        100% 100%,
        100% 100%;

    box-shadow:
        inset 0 0 70px rgba(0,0,0,.16);
}


/* MIDFIELD */

.pitch-line {
    position: absolute;

    left: 50%;
    top: 0;

    width: 1px;
    height: 100%;

    background: rgba(255,255,255,.30);
}

.center-circle {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 110px;
    height: 110px;

    transform:
        translate(-50%, -50%);

    border: 2px solid rgba(255,255,255,.28);

    border-radius: 50%;
}

.center-dot {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 5px;
    height: 5px;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background: rgba(255,255,255,.5);
}


/* PENALTY BOXES */

.penalty-box {
    position: absolute;

    top: 30%;

    width: 88px;
    height: 40%;

    border: 2px solid rgba(255,255,255,.26);
}

.penalty-box.left {
    left: -1px;

    border-left: 0;
}

.penalty-box.right {
    right: -1px;

    border-right: 0;
}


/* =========================================================
   PLAYERS
========================================================= */

.player {
    position: absolute;

    width: 100px;

    transform:
        translate(-50%, -50%);

    text-align: center;

    z-index: 5;
}

.player-image {
    position: relative;

    width: 49px;
    height: 49px;

    margin: auto;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #28313e,
            #111720
        );

    border: 2px solid #3a4658;

    box-shadow:
        0 6px 16px rgba(0,0,0,.25);

    font-size: 16px;

    font-weight: 900;
}

.player-number {
    position: absolute;

    left: -8px;
    bottom: -3px;

    color: white;

    font-size: 10px;

    font-weight: 900;

    text-shadow:
        0 2px 5px black;
}

.player-score {
    position: absolute;

    right: -12px;
    bottom: -8px;

    min-width: 31px;

    padding: 3px 6px;

    border-radius: 12px;

    background: #75631a;

    border: 1px solid #bd9f2a;

    color: white;

    font-size: 10px;

    font-weight: 900;
}

.player-score.good {
    background: #176b38;

    border-color: #3fd276;
}

.player-score.great {
    background: #117f40;

    border-color: #47ef83;

    box-shadow:
        0 0 10px rgba(47, 220, 112, .18);
}

.player-score.low {
    background: #7a3d20;

    border-color: #d1753c;
}

.player-name {
    margin-top: 10px;

    color: #f2f4f7;

    font-size: 10px;

    font-weight: 750;

    text-shadow:
        0 2px 4px rgba(0,0,0,.65);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   HOME POSITIONS
========================================================= */

.home-gk {
    left: 5%;
    top: 50%;
}

.home-lb {
    left: 16%;
    top: 17%;
}

.home-cb1 {
    left: 16%;
    top: 39%;
}

.home-cb2 {
    left: 16%;
    top: 61%;
}

.home-rb {
    left: 16%;
    top: 83%;
}

.home-cm1 {
    left: 28%;
    top: 31%;
}

.home-cm2 {
    left: 28%;
    top: 69%;
}

.home-cam {
    left: 36%;
    top: 50%;
}

.home-lw {
    left: 43%;
    top: 20%;
}

.home-st {
    left: 44%;
    top: 50%;
}

.home-rw {
    left: 43%;
    top: 80%;
}


/* =========================================================
   AWAY POSITIONS
========================================================= */

.away-gk {
    left: 95%;
    top: 50%;
}

.away-lb {
    left: 84%;
    top: 83%;
}

.away-cb1 {
    left: 84%;
    top: 61%;
}

.away-cb2 {
    left: 84%;
    top: 39%;
}

.away-rb {
    left: 84%;
    top: 17%;
}

.away-cm1 {
    left: 72%;
    top: 69%;
}

.away-cm2 {
    left: 72%;
    top: 31%;
}

.away-cam {
    left: 64%;
    top: 50%;
}

.away-lw {
    left: 57%;
    top: 80%;
}

.away-st {
    left: 56%;
    top: 50%;
}

.away-rw {
    left: 57%;
    top: 20%;
}


/* =========================================================
   BENCH
========================================================= */

.bench {
    padding: 18px 22px 30px;

    background:
        linear-gradient(
            180deg,
            #0d121a,
            #090d14
        );

    border-top: 1px solid var(--border);
}

.bench-heading {
    margin-bottom: 18px;

    text-align: center;

    color: #6d7587;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 2px;
}

.bench-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 32px;
}

.bench-team-name {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 10px;

    font-size: 13px;

    font-weight: 850;
}

.bench-players {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 7px;
}

.bench-player {
    min-height: 42px;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 6px 9px;

    border: 1px solid #202838;

    border-radius: 9px;

    background: #111722;
}

.bench-avatar {
    width: 29px;
    height: 29px;

    flex: 0 0 29px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #222b39;

    border: 1px solid #354055;

    font-size: 9px;

    font-weight: 800;
}

.bench-number {
    color: #717a8c;

    font-size: 9px;

    font-weight: 800;
}

.bench-name {
    min-width: 0;

    flex: 1;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-size: 10px;

    font-weight: 700;
}

.bench-score {
    font-size: 10px;

    font-weight: 850;

    color: #aab1bf;
}


/* =========================================================
   SCROLLBARS
========================================================= */

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #090c12;
}

::-webkit-scrollbar-thumb {
    background: #293142;

    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #39445a;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .header {
        grid-template-columns:
            260px
            1fr
            200px;
    }

    .match-center {
        grid-template-columns:
            270px
            minmax(750px,1fr);
    }

    .brand-subtitle {
        display: none;
    }
}