@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {

    --bg: #060914;
    --bg-soft: #0a1020;

    --card: #0d1424;
    --card-hover: #111a2d;

    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;

    --white: #f8fafc;
    --text: #d7e0ec;
    --muted: #7e8ca5;

    --border: rgba(96,165,250,.13);
    --border-strong: rgba(96,165,250,.28);

    --live: #ef4444;
    --live-soft: rgba(239,68,68,.10);

    --warning: #f59e0b;
    --success: #22c55e;

    --shadow:
        0 25px 70px rgba(0,0,0,.42);

    --shadow-soft:
        0 15px 40px rgba(0,0,0,.28);

    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --transition: .3s ease;
}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {

    min-height: 100vh;

    font-family:
        "Vazirmatn",
        sans-serif;

    color:
        var(--white);

    line-height:
        1.8;

    overflow-x:
        hidden;

    background:

        radial-gradient(
            circle at 12% 0%,
            rgba(59,130,246,.10),
            transparent 26%
        ),

        radial-gradient(
            circle at 90% 18%,
            rgba(96,165,250,.055),
            transparent 23%
        ),

        linear-gradient(
            180deg,
            #060914 0%,
            #070b15 50%,
            #050812 100%
        );
}

body.light-theme {

    color:
        #0f172a;

    background:

        radial-gradient(
            circle at 12% 0%,
            rgba(37,99,235,.08),
            transparent 26%
        ),

        radial-gradient(
            circle at 90% 18%,
            rgba(96,165,250,.06),
            transparent 23%
        ),

        #f4f7fb;
}

::selection {
    background: var(--primary);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline:
        2px solid
        var(--primary-light);

    outline-offset:
        4px;
}


/* NAVBAR */

.navbar {

    position: fixed;

    top: 0;
    right: 0;
    left: 0;

    height: 82px;

    padding: 0 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    z-index: 4000;

    background:
        rgba(6,9,20,.74);

    border-bottom:
        1px solid
        var(--border);

    backdrop-filter:
        blur(20px);

    transition:
        all var(--transition);
}

.navbar.scrolled {

    background:
        rgba(6,9,20,.94);

    box-shadow:
        0 14px 40px
        rgba(0,0,0,.28);
}

body.light-theme .navbar {
    background:
        rgba(244,247,251,.78);
}

body.light-theme .navbar.scrolled {
    background:
        rgba(244,247,251,.95);
}


/* LOGO */

.logo {

    display: flex;
    align-items: center;

    gap: 12px;
}

.logo-icon {

    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(96,165,250,.42);

    border-radius: 13px;

    color:
        var(--primary-light);

    background:
        rgba(59,130,246,.08);
}

.logo-text {

    display:
        flex;

    flex-direction:
        column;

    line-height:
        1.1;
}

.logo-text strong {

    font-size:
        16px;

    letter-spacing:
        2px;
}

.logo-text strong span {
    color:
        var(--primary-light);
}

.logo-text small {

    margin-top:
        4px;

    color:
        var(--muted);

    font-size:
        8px;

    letter-spacing:
        4px;
}


/* NAV */

.nav-links {

    display:
        flex;

    align-items:
        center;

    gap:
        28px;
}

.nav-links a {

    position:
        relative;

    color:
        var(--muted);

    font-size:
        12px;

    transition:
        color var(--transition);
}

.nav-links a::after {

    content:
        "";

    position:
        absolute;

    right:
        0;

    bottom:
        -8px;

    width:
        0;

    height:
        2px;

    border-radius:
        999px;

    background:
        var(--primary);

    transition:
        width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color:
        var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width:
        100%;
}


/* NAV ACTIONS */

.navbar-actions {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;
}

.profile-button,
.theme-toggle {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-sm);

    background:
        rgba(255,255,255,.025);

    color:
        var(--primary-light);

    transition:
        all var(--transition);
}

.profile-button {

    min-height:
        42px;

    padding:
        0 14px;

    gap:
        8px;

    font-size:
        10px;

    font-weight:
        600;
}

.profile-button svg {

    width:
        16px;

    height:
        16px;
}

.profile-button:hover,
.theme-toggle:hover {

    border-color:
        var(--border-strong);

    background:
        rgba(59,130,246,.08);

    transform:
        translateY(-2px);
}

.theme-toggle {

    width:
        42px;

    height:
        42px;

    cursor:
        pointer;
}

.theme-toggle svg {

    width:
        18px;

    height:
        18px;
}

.mobile-menu-button {

    display:
        none;

    width:
        42px;

    height:
        42px;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    gap:
        4px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-sm);

    background:
        transparent;

    color:
        var(--primary-light);

    cursor:
        pointer;
}

.mobile-menu-button span {

    width:
        17px;

    height:
        2px;

    background:
        currentColor;

    border-radius:
        999px;

    transition:
        var(--transition);
}

.mobile-menu-button.active span:nth-child(1) {

    transform:
        translateY(6px)
        rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {

    opacity:
        0;
}

.mobile-menu-button.active span:nth-child(3) {

    transform:
        translateY(-6px)
        rotate(-45deg);
}


/* HERO */

.hero {

    min-height:
        100vh;

    position:
        relative;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        70px;

    padding:
        150px 7% 90px;

    overflow:
        hidden;
}

.hero-bg {

    position:
        absolute;

    inset:
        0;

    pointer-events:
        none;

    background:
        radial-gradient(
            circle at 68% 42%,
            rgba(59,130,246,.15),
            transparent 27%
        );
}

.hero-content {

    position:
        relative;

    z-index:
        2;

    max-width:
        720px;
}

.hero-label {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    margin-bottom:
        20px;

    color:
        var(--primary-light);

    font-size:
        12px;

    font-weight:
        600;
}

.hero-label svg {

    width:
        14px;

    height:
        14px;
}

.hero h1 {

    font-size:
        clamp(45px,7vw,82px);

    line-height:
        1.28;

    font-weight:
        800;

    letter-spacing:
        -2px;
}

.hero h1 span {

    color:
        var(--primary-light);
}

.hero-content > p {

    max-width:
        600px;

    margin:
        22px 0 32px;

    color:
        var(--muted);

    font-size:
        14px;
}

.hero-actions {

    display:
        flex;

    gap:
        12px;

    flex-wrap:
        wrap;
}

.primary-button,
.secondary-button {

    min-width:
        145px;

    padding:
        12px 20px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    border-radius:
        var(--radius-sm);

    font-size:
        12px;

    transition:
        all var(--transition);
}

.primary-button {

    color:
        #fff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    font-weight:
        800;
}

.primary-button:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 17px 38px
        rgba(37,99,235,.28);
}

.secondary-button {

    border:
        1px solid
        rgba(255,255,255,.10);

    color:
        var(--text);

    background:
        rgba(255,255,255,.018);
}

.secondary-button:hover {

    border-color:
        var(--border-strong);

    color:
        var(--primary-light);
}


/* SCORE */

.hero-score {

    position:
        relative;

    z-index:
        2;

    width:
        360px;

    padding:
        27px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-xl);

    background:
        linear-gradient(
            145deg,
            rgba(17,26,46,.96),
            rgba(8,13,26,.94)
        );

    box-shadow:
        var(--shadow);
}

body.light-theme .hero-score {

    background:
        rgba(255,255,255,.94);
}

.live-label {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;

    padding:
        5px 9px;

    border-radius:
        7px;

    color:
        var(--live);

    background:
        var(--live-soft);

    font-size:
        9px;

    font-weight:
        800;
}

.live-label > span {

    width:
        6px;

    height:
        6px;

    border-radius:
        50%;

    background:
        var(--live);

    animation:
        livePulse 1.6s
        ease-in-out
        infinite;
}

@keyframes livePulse {

    50% {
        opacity:
            .4;

        transform:
            scale(.75);
    }
}

.score-teams {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        15px;

    margin-top:
        30px;
}

.score-teams > div {

    min-width:
        85px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    gap:
        9px;

    text-align:
        center;
}

.team-circle,
.team-logo-large,
.team-logo {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    color:
        var(--primary-light);

    background:
        rgba(59,130,246,.08);

    border:
        1px solid
        rgba(96,165,250,.15);

    font-weight:
        800;
}

.team-circle {

    width:
        58px;

    height:
        58px;

    font-size:
        11px;
}

.score-teams strong {

    max-width:
        110px;

    font-size:
        11px;
}

.hero-score-number {

    display:
        flex !important;

    flex-direction:
        column !important;

    gap:
        2px !important;
}

.hero-score-number strong {

    font-size:
        28px;
}

.hero-score-number small {

    color:
        var(--muted);

    font-size:
        9px;
}


/* STATS */

.quick-stats {

    max-width:
        1200px;

    margin:
        -35px auto 0;

    padding:
        0 7%;

    position:
        relative;

    z-index:
        5;

    display:
        grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:
        15px;
}

.quick-stat {

    display:
        flex;

    align-items:
        center;

    gap:
        15px;

    padding:
        21px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-md);

    background:
        rgba(13,20,36,.92);

    box-shadow:
        var(--shadow-soft);
}

body.light-theme .quick-stat {

    background:
        rgba(255,255,255,.92);
}

.quick-stat > svg {

    width:
        22px;

    height:
        22px;

    color:
        var(--primary-light);
}

.quick-stat div {

    display:
        flex;

    flex-direction:
        column;
}

.quick-stat strong {

    font-size:
        19px;
}

.quick-stat span {

    color:
        var(--muted);

    font-size:
        10px;
}


/* SECTIONS */

.section {

    max-width:
        1300px;

    margin:
        auto;

    padding:
        120px 7%;
}

.section-heading {

    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    margin-bottom:
        35px;
}

.section-label {

    display:
        inline-block;

    margin-bottom:
        12px;

    color:
        var(--primary-light);

    font-size:
        11px;

    font-weight:
        700;
}

.section-heading h2 {

    font-size:
        clamp(34px,5vw,53px);
}

.section-heading h2 span {

    color:
        var(--primary-light);
}


/* FILTERS */

.match-filters {

    display:
        flex;

    gap:
        8px;

    margin-bottom:
        20px;

    flex-wrap:
        wrap;
}

.match-filter {

    min-height:
        38px;

    padding:
        0 13px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    border:
        1px solid
        var(--border);

    border-radius:
        9px;

    background:
        rgba(255,255,255,.02);

    color:
        var(--muted);

    cursor:
        pointer;

    font-size:
        10px;

    transition:
        all var(--transition);
}

.match-filter:hover {

    color:
        var(--primary-light);

    border-color:
        var(--border-strong);
}

.match-filter.active {

    color:
        #fff;

    background:
        var(--primary);

    border-color:
        var(--primary);
}

.filter-dot {

    width:
        6px;

    height:
        6px;

    border-radius:
        50%;
}

.live-dot {

    background:
        var(--live);

    box-shadow:
        0 0 8px
        rgba(239,68,68,.65);
}


/* REFRESH */

.refresh-button {

    min-height:
        40px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    padding:
        0 14px;

    border:
        1px solid
        var(--border);

    border-radius:
        9px;

    background:
        transparent;

    color:
        var(--text);

    cursor:
        pointer;

    font-size:
        10px;

    transition:
        all var(--transition);
}

.refresh-button:hover {

    color:
        var(--primary-light);

    border-color:
        var(--border-strong);
}

.refresh-button:disabled {

    opacity:
        .5;

    cursor:
        wait;
}

.spinning {

    animation:
        spin .8s
        linear
        infinite;
}

@keyframes spin {

    to {
        transform:
            rotate(360deg);
    }
}


/* MATCHES */

.matches-grid {

    display:
        grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:
        16px;
}

.match-card {

    padding:
        20px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(14,22,38,.98),
            rgba(9,15,28,.98)
        );

    cursor:
        pointer;

    transition:
        all var(--transition);
}

body.light-theme .match-card {

    background:
        rgba(255,255,255,.94);
}

.match-card:hover {

    transform:
        translateY(-5px);

    border-color:
        var(--border-strong);

    box-shadow:
        var(--shadow-soft);
}

.match-header {

    display:
        flex;

    justify-content:
        space-between;

    margin-bottom:
        25px;

    color:
        var(--muted);

    font-size:
        9px;
}

.finished {

    color:
        var(--success);
}

.upcoming {

    color:
        var(--warning);
}

.match-body {

    display:
        grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items:
        center;

    gap:
        15px;
}

.match-team {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;
}

.match-team:last-child {

    flex-direction:
        row-reverse;
}

.match-team strong {

    font-size:
        11px;
}

.team-logo {

    width:
        40px;

    height:
        40px;

    flex-shrink:
        0;

    font-size:
        9px;
}

.match-score {

    text-align:
        center;
}

.match-score strong {

    display:
        block;

    font-size:
        21px;
}

.match-score small {

    color:
        var(--muted);

    font-size:
        8px;
}


/* EMPTY */

.empty-card {

    min-height:
        170px;

    grid-column:
        1 / -1;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    gap:
        10px;

    padding:
        30px;

    border:
        1px dashed
        var(--border);

    border-radius:
        var(--radius-md);

    color:
        var(--muted);

    text-align:
        center;
}


/* TABLE */

.standings-section {

    max-width:
        1400px;
}

.table-wrapper {

    overflow-x:
        auto;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-lg);

    background:
        rgba(13,20,36,.86);
}

body.light-theme .table-wrapper {

    background:
        rgba(255,255,255,.94);
}

table {

    width:
        100%;

    min-width:
        700px;

    border-collapse:
        collapse;
}

thead {

    background:
        rgba(59,130,246,.045);
}

th {

    padding:
        15px;

    color:
        var(--muted);

    font-size:
        9px;

    text-align:
        right;
}

td {

    padding:
        14px 15px;

    border-top:
        1px solid
        rgba(255,255,255,.045);

    font-size:
        10px;
}

.points {

    color:
        var(--primary-light);

    font-weight:
        800;
}

.standing-team {

    display:
        flex;

    align-items:
        center;

    gap:
        9px;
}

.team-mini {

    width:
        30px;

    height:
        30px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        rgba(59,130,246,.08);

    color:
        var(--primary-light);

    font-size:
        8px;

    font-weight:
        800;
}


/* TEAM SEARCH */

.teams-search {

    position:
        relative;

    width:
        100%;

    max-width:
        420px;

    margin-bottom:
        24px;
}

.teams-search > svg {

    position:
        absolute;

    top:
        50%;

    right:
        14px;

    width:
        17px;

    height:
        17px;

    color:
        var(--muted);

    transform:
        translateY(-50%);

    pointer-events:
        none;
}

.teams-search input {

    width:
        100%;

    min-height:
        46px;

    padding:
        0 43px 0 14px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-sm);

    outline:
        none;

    background:
        rgba(13,20,36,.78);

    color:
        var(--white);

    font-size:
        11px;
}

body.light-theme .teams-search input {

    background:
        rgba(255,255,255,.94);

    color:
        #0f172a;
}

.team-search-empty {

    min-height:
        170px;

    grid-column:
        1 / -1;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    gap:
        10px;

    border:
        1px dashed
        var(--border);

    border-radius:
        var(--radius-md);

    color:
        var(--muted);

    text-align:
        center;
}

.team-search-empty svg {

    width:
        28px;

    height:
        28px;
}

.team-search-empty strong {

    color:
        var(--white);

    font-size:
        13px;
}


/* TEAMS */

.teams-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:
        15px;
}

.team-card {

    padding:
        28px 20px;

    text-align:
        center;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-md);

    background:
        linear-gradient(
            145deg,
            rgba(14,22,38,.96),
            rgba(9,15,28,.96)
        );

    cursor:
        pointer;

    transition:
        all var(--transition);
}

body.light-theme .team-card {

    background:
        rgba(255,255,255,.94);
}

.team-card:hover {

    transform:
        translateY(-5px);

    border-color:
        var(--border-strong);

    box-shadow:
        var(--shadow-soft);
}

.team-logo-large {

    width:
        58px;

    height:
        58px;

    margin:
        0 auto 15px;

    font-size:
        11px;
}

.team-card h3 {

    font-size:
        13px;
}

.team-card span {

    display:
        block;

    margin-top:
        5px;

    color:
        var(--muted);

    font-size:
        9px;
}


/* NEWS */

.news-grid {

    display:
        grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:
        17px;
}

.news-card {

    overflow:
        hidden;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-lg);

    background:
        var(--card);

    transition:
        all var(--transition);
}

body.light-theme .news-card {

    background:
        rgba(255,255,255,.94);
}

.news-card:hover {

    transform:
        translateY(-5px);

    border-color:
        var(--border-strong);
}

.news-image {

    height:
        190px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        linear-gradient(
            145deg,
            #0b1528,
            #07101e
        );

    color:
        var(--primary-light);
}

.news-content {

    padding:
        20px;
}

.news-content > span {

    color:
        var(--primary-light);

    font-size:
        9px;
}

.news-content h3 {

    margin:
        8px 0;

    font-size:
        16px;
}

.news-content p {

    color:
        var(--muted);

    font-size:
        10px;
}


/* DEMO */

.api-status {

    max-width:
        1300px;

    margin:
        0 auto 100px;

    padding:
        0 7%;
}

.api-status > div {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        12px;

    padding:
        12px 16px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-sm);

    background:
        rgba(13,20,36,.72);
}

.api-status svg {

    color:
        var(--success);
}


/* FOOTER */

.footer {

    padding:
        55px 7%;

    border-top:
        1px solid
        var(--border);

    background:
        #030610;

    text-align:
        center;
}

body.light-theme .footer {

    background:
        #e8edf5;
}

.footer-logo {

    font-size:
        21px;

    font-weight:
        800;

    letter-spacing:
        3px;
}

.footer-logo span {

    color:
        var(--primary-light);
}

.footer p {

    margin:
        8px 0 20px;

    color:
        var(--muted);

    font-size:
        11px;
}

.footer-bottom {

    padding-top:
        18px;

    border-top:
        1px solid
        rgba(255,255,255,.05);

    color:
        #536075;

    font-size:
        9px;
}


/* MODALS */

.match-modal,
.team-modal {

    position:
        fixed;

    inset:
        0;

    z-index:
        7000;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

    opacity:
        0;

    visibility:
        hidden;

    transition:
        all .25s ease;
}

.match-modal.open,
.team-modal.open {

    opacity:
        1;

    visibility:
        visible;
}

.match-modal-overlay,
.team-modal-overlay {

    position:
        absolute;

    inset:
        0;

    background:
        rgba(0,0,0,.72);

    backdrop-filter:
        blur(12px);
}

.match-modal-box,
.team-modal-box {

    position:
        relative;

    z-index:
        2;

    width:
        100%;

    max-width:
        620px;

    padding:
        30px;

    border:
        1px solid
        var(--border-strong);

    border-radius:
        22px;

    background:
        #0d1424;

    box-shadow:
        0 30px 90px
        rgba(0,0,0,.5);

    transform:
        translateY(20px)
        scale(.97);

    transition:
        transform .25s ease;
}

.match-modal.open .match-modal-box,
.team-modal.open .team-modal-box {

    transform:
        translateY(0)
        scale(1);
}

body.light-theme .match-modal-box,
body.light-theme .team-modal-box {

    background:
        #fff;
}

.match-modal-close,
.team-modal-close {

    position:
        absolute;

    top:
        18px;

    left:
        18px;

    width:
        36px;

    height:
        36px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        var(--border);

    border-radius:
        9px;

    background:
        transparent;

    color:
        var(--muted);

    cursor:
        pointer;
}


/* MATCH MODAL */

.match-modal-top {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    padding-left:
        45px;
}

.match-modal-competition {

    color:
        var(--muted);

    font-size:
        10px;
}

.match-modal-status {

    padding:
        5px 9px;

    border-radius:
        7px;

    color:
        var(--success);

    background:
        rgba(34,197,94,.09);

    font-size:
        9px;

    font-weight:
        800;
}

.match-modal-status.live {

    color:
        var(--live);

    background:
        var(--live-soft);
}

.match-modal-box h2 {

    margin:
        12px 0 28px;

    font-size:
        25px;
}

.match-modal-teams {

    display:
        grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items:
        center;

    gap:
        25px;
}

.modal-team {

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    gap:
        12px;

    text-align:
        center;
}

.modal-team-logo {

    width:
        74px;

    height:
        74px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        rgba(59,130,246,.10);

    color:
        var(--primary-light);

    font-size:
        15px;

    font-weight:
        800;
}

.modal-score {

    text-align:
        center;
}

.modal-score strong {

    display:
        block;

    font-size:
        34px;
}

.modal-score span {

    color:
        var(--muted);

    font-size:
        9px;
}

.match-modal-divider {

    height:
        1px;

    margin:
        28px 0;

    background:
        var(--border);
}

.match-modal-info {

    display:
        grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:
        12px;
}

.match-info-item {

    display:
        flex;

    align-items:
        center;

    gap:
        11px;

    padding:
        13px;

    border:
        1px solid
        var(--border);

    border-radius:
        11px;
}

.match-info-item svg {

    color:
        var(--primary-light);
}

.match-info-item div {

    display:
        flex;

    flex-direction:
        column;
}

.match-info-item span {

    color:
        var(--muted);

    font-size:
        8px;
}

.match-info-item strong {

    font-size:
        10px;
}

.match-modal-stats {

    display:
        grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:
        10px;

    margin-top:
        14px;
}

.match-modal-stats div {

    padding:
        15px;

    border:
        1px solid
        var(--border);

    border-radius:
        11px;

    text-align:
        center;
}

.match-modal-stats span {

    display:
        block;

    color:
        var(--muted);

    font-size:
        8px;
}

.match-modal-stats strong {

    color:
        var(--primary-light);

    font-size:
        11px;
}


/* TEAM MODAL */

.team-modal-box {

    max-width:
        460px;

    text-align:
        center;
}

.team-modal-logo {

    width:
        90px;

    height:
        90px;

    margin:
        5px auto 12px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        rgba(59,130,246,.10);

    border:
        1px solid
        rgba(96,165,250,.16);

    color:
        var(--primary-light);

    font-size:
        18px;

    font-weight:
        800;
}

.team-modal-code {

    color:
        var(--muted);

    font-size:
        9px;
}

.team-modal-box h2 {

    margin:
        5px 0;

    font-size:
        28px;
}

.team-modal-box > p {

    color:
        var(--muted);

    font-size:
        10px;
}

.team-modal-stats {

    display:
        grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:
        10px;

    margin:
        25px 0;
}

.team-modal-stats div {

    padding:
        14px 8px;

    border:
        1px solid
        var(--border);

    border-radius:
        11px;
}

.team-modal-stats span {

    display:
        block;

    color:
        var(--muted);

    font-size:
        8px;
}

.team-modal-stats strong {

    display:
        block;

    margin-top:
        4px;

    color:
        var(--primary-light);

    font-size:
        13px;
}

.favorite-button {

    width:
        100%;

    min-height:
        45px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    border:
        1px solid
        var(--border-strong);

    border-radius:
        10px;

    background:
        rgba(59,130,246,.05);

    color:
        var(--primary-light);

    cursor:
        pointer;

    font-size:
        11px;

    transition:
        all var(--transition);
}

.favorite-button:hover {

    background:
        var(--primary);

    color:
        #fff;

    border-color:
        var(--primary);
}

.favorite-button.active {

    color:
        #fff;

    background:
        var(--primary);

    border-color:
        var(--primary);
}


/* TOAST */

.toast {

    position:
        fixed;

    top:
        100px;

    left:
        30px;

    z-index:
        9000;

    display:
        flex;

    align-items:
        center;

    gap:
        9px;

    min-width:
        240px;

    padding:
        13px 15px;

    border:
        1px solid
        rgba(34,197,94,.18);

    border-radius:
        11px;

    background:
        rgba(13,20,36,.96);

    color:
        var(--white);

    box-shadow:
        var(--shadow-soft);

    opacity:
        0;

    visibility:
        hidden;

    transform:
        translateY(-10px);

    transition:
        all .25s ease;
}

.toast.show {

    opacity:
        1;

    visibility:
        visible;

    transform:
        translateY(0);
}

.toast svg {

    width:
        18px;

    height:
        18px;

    color:
        var(--success);
}


/* RESPONSIVE */

@media (max-width: 1100px) {

    .navbar {
        padding:
            0 5%;
    }

    .hero {
        gap:
            35px;
    }

    .hero-score {
        width:
            320px;
    }

    .teams-grid {
        grid-template-columns:
            repeat(3,1fr);
    }
}

@media (max-width: 900px) {

    .nav-links {

        position:
            absolute;

        top:
            82px;

        right:
            5%;

        left:
            5%;

        flex-direction:
            column;

        align-items:
            stretch;

        gap:
            0;

        padding:
            10px;

        border:
            1px solid
            var(--border);

        border-radius:
            17px;

        background:
            rgba(6,9,20,.98);

        opacity:
            0;

        visibility:
            hidden;

        pointer-events:
            none;

        transform:
            translateY(-10px);

        transition:
            all .25s ease;
    }

    .nav-links.mobile-open {

        opacity:
            1;

        visibility:
            visible;

        pointer-events:
            auto;

        transform:
            translateY(0);
    }

    .nav-links a {

        width:
            100%;

        padding:
            14px;

    }

    .nav-links a::after {
        display:
            none;
    }

    .mobile-menu-button {
        display:
            flex;
    }

    .hero {

        flex-direction:
            column;

        align-items:
            flex-start;

        padding:
            130px 6% 80px;
    }

    .hero-score {

        width:
            100%;

        max-width:
            500px;
    }

    .quick-stats {

        grid-template-columns:
            1fr;

        padding:
            0 6%;
    }

    .matches-grid {

        grid-template-columns:
            1fr;
    }

    .news-grid {

        grid-template-columns:
            repeat(2,1fr);
    }

    .teams-grid {

        grid-template-columns:
            repeat(2,1fr);
    }
}

@media (max-width: 600px) {

    .navbar {
        height:
            70px;

        padding:
            0 6%;
    }

    .nav-links {
        top:
            70px;
    }

    .logo-icon {

        width:
            37px;

        height:
            37px;
    }

    .logo-text strong {

        font-size:
            14px;
    }

    .profile-button {

        width:
            38px;

        min-height:
            38px;

        padding:
            0;
    }

    .profile-button span {
        display:
            none;
    }

    .theme-toggle,
    .mobile-menu-button {

        width:
            38px;

        height:
            38px;
    }

    .hero {

        padding:
            115px 6% 70px;
    }

    .hero h1 {
        font-size:
            43px;
    }

    .hero-actions {

        width:
            100%;

        flex-direction:
            column;

        align-items:
            stretch;
    }

    .primary-button,
    .secondary-button {
        width:
            100%;
    }

    .section {
        padding:
            85px 6%;
    }

    .section-heading {

        flex-direction:
            column;

        align-items:
            flex-start;
    }

    .refresh-button {

        width:
            100%;
    }

    .match-filters {

        display:
            grid;

        grid-template-columns:
            repeat(2,1fr);

        width:
            100%;
    }

    .match-filter {
        width:
            100%;
    }

    .match-body {

        grid-template-columns:
            1fr;

        text-align:
            center;
    }

    .match-team,
    .match-team:last-child {

        flex-direction:
            column;

        justify-content:
            center;
    }

    .match-score {
        order:
            -1;
    }

    .teams-search {

        max-width:
            none;
    }

    .teams-grid,
    .news-grid {

        grid-template-columns:
            1fr;
    }

    .match-modal-box,
    .team-modal-box {

        padding:
            24px 18px;
    }

    .match-modal-teams {

        gap:
            8px;
    }

    .modal-team-logo {

        width:
            60px;

        height:
            60px;
    }

    .modal-score strong {

        font-size:
            27px;
    }

    .match-modal-info {

        grid-template-columns:
            1fr;
    }

    .match-modal-stats {

        grid-template-columns:
            1fr;
    }

    .team-modal-stats {

        grid-template-columns:
            repeat(2,1fr);
    }

    .toast {

        left:
            15px;

        right:
            15px;

        min-width:
            0;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        transition-duration:
            .01ms !important;
    }
}