@media (min-width: 768px) {
    .club-logo {
        width: 100px;
        height: 100px;
    }

    .team-header #club-city {
        font-size: 22px;
    }

    .club-header .club-performance-value {
        font-size: 64px;
    }

    .club-header .club-performance-label {
        font-size: 16px;
    }

    .club-header .club-performance-note {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .club-logo {
        width: 200px;
        height: 200px;
    }


    .team-header .club-name {
        font-size: 30px;
    }


    .team-header .team-name {
        font-size: 25px;
    }

    .club-header .club-performance-value {
        font-size: 88px;
    }

    .club-header .club-performance-label {
        font-size: 18px;
    }

    .club-header .club-performance-note {
        font-size: 16px;
    }
}

@media (max-width:1199px) {
    #page1 #main {
        grid-template-columns: 100%;
        gap: 28px;
    }

    .vs {
        width: 60px;
        text-align: center;
        display: inline-block;
    }

    #page3 .columns {
        display: grid;
        gap: 20px;
        grid-template-columns: 335px auto;
    }

    #page3 .columns.one-column,
    #page4 .columns {
        grid-template-columns: auto;
    }

    #page4 .columns {
        display: grid;
        gap: 20px;
    }

    #header-top #league-logo img {
        height: auto;
        max-width: 350px;
        max-height: 175px;
        /* top: unset; */
        position: absolute;
        bottom: -10px;
    }
}

@media (max-width:1023px) {
    #page2 h1 span:nth-child(2) {
        display: none;
    }

    #page2 h1 span:nth-child(3) {
        display: block;
    }

    #nav-btn span {
        display: none;
    }

    h1 span:nth-child(4) {
        display: none;
    }

    h1 span:last-child {
        /* display: block; */
        left: 0;
    }

    .match-header .score {
        margin-top: 20px;
    }

    #page3 .columns,
    #page4 .columns {
        grid-template-columns: auto;
    }

    #page4 .column.teams {
        grid-template-columns: 1fr;
    }

    .team-header {
        padding-bottom: 35px;
    }

    #page5 .team-header {
        padding-bottom: 16px;
    }

    .team-header #club-city {
        bottom: -27px;
    }

    .match-header .spordle_link,
    .team-header .spordle_link {
        top: 2px;
        right: 5px;
    }

    #league-logo {
        left: 445px;
    }

    #header-top #league-logo img {
        max-width: 285px;
    }

    h1 span:nth-of-type(1) {
        width: 385px;
    }
}

@media (max-width:767px) {
    #header-bottom {
        padding: 15px 0;
    }

    .season-map-modal-header {
        padding: 20px 18px 14px 18px;
    }

    h1 {
        font-size: 20px;
        line-height: 23px;
        margin-bottom: 15px;
    }

    h1 em {
        font-size: 16px;
    }

    #page1 h1 span:first-child {
        margin-bottom: 0px;
    }

    .season-nav-actions {
        top: -33px;
        height: 32px;
    }

    .season-map-btn {
        border-bottom-width: 5px;
        padding: 4px 16px 5px 16px;
    }

    .season-switcher {
        top: -30px;
        right: -1px;
        font-size: 15px;
    }

    .season-switcher-trigger {
        border-bottom-width: 5px;
        padding: 5px 16px 2px 16px;
        position: relative;
        top: 0px;
    }

    .season-switcher-list {
        width: 118px;
    }

    body {
        padding: 15px;
        margin: 0;
    }

    #header-top {
        display: block;
        text-align: left;
    }

    .page0 #header-top {
        height: 80px;
    }

    .page0 div#app-logo {
        top: 0;
        position: relative;
        left: 0;
        transform: unset;
    }

    div#app-logo {
        display: block;
        top: -15px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .page0 #app-logo-text {
        font-size: 60px;
        padding: 0;
    }

    #app-logo-text {
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
        -webkit-text-stroke: unset;
        background-clip: unset;
        color: unset;
        font-size: 22px;
        width: max-content;
        text-align: center;
        color: #fff;
        padding: 8px 15px 5px 15px;
    }

    #league-logo {
        height: 120px;
        left: unset;
        top: 15px;
        display: inline-block;
        position: relative;
    }

    #header-top #league-logo img {
        max-width: 210px;
        height: auto;
        max-height: 120px;
        position: absolute;
        bottom: 10px;
    }

    #league-logo img {
        /*width: 300px;*/
        margin-bottom: 15px;
    }

    #league-name {
        display: none;
    }

    #page1 h1 span:first-child {
        display: block;
        margin-bottom: 0px;
    }

    #page1 h1 span:nth-child(2) {
        display: none;
    }

    #page1 h1 span:nth-child(3) {
        display: inline-block;
        font-size: 20px;
    }

    h1 span:nth-of-type(1),
    h1 span:nth-of-type(3) {
        border-bottom-width: 5px;
    }

    h1 span:nth-of-type(5) {
        border-bottom-width: 5px;
        border-left-width: 5px;
    }

    /*#page1 h1 span:nth-child(4) {*/
    /*    display: inline;*/
    /*}*/
    #page1 h1 span:nth-child(5) {
        display: inline-block;
        font-size: 20px;
    }

    #page2 h1 span:nth-child(3),
    #page3 h1 span:nth-child(3) {
        font-size: 20px;
    }

    #page2 h1 span:nth-child(5),
    #page3 h1 span:nth-child(5) {
        font-size: 20px;
    }

    /* h1 {
        font-size: 24px;
        line-height: 29px;
    } */

    h1 span:nth-child(4) {
        display: none;
    }

    h1 span:last-child {
        display: block;
    }

    /* 
    .standings-header {
        position: relative;
    }

    .standings-toggle-btn {
        position: absolute;
        top: 30px;
        right: 0;
    } */

    #page2 h1 span:last-child {
        display: inline-block;
        left: 0px;
    }

    #page3 h1 span:nth-child(1) {
        display: block;
    }

    .season-switcher {
        top: -20px;
    }

    /*#page3 h1 span:nth-child(4) {*/
    /*    display: initial;*/
    /*}*/
    #page3 h1 span:last-child {
        display: inline-block;
    }

    #page3 h1 span:nth-child(2) {
        display: none;
    }

    #page3 h1 span:nth-child(3) {
        /*display: block;*/
    }

    h1 span:nth-of-type(3) {
        left: -10px;
    }

    h1 span:last-child {
        left: -20px;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    h3 {
        margin-bottom: 5px;
        margin-top: 0;
    }

    #games-carousel {
        width: 450px;
    }

    .result-card {
        padding-left: 0;
    }

    .result-card .clubs {
        font-size: 15px;
    }

    .result-club-name {
        width: 187px;
    }

    .result-card .date {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        color: #555;
        padding-left: 0px;
        width: 56px;
        text-align: center;
        top: 9px;
    }

    .result-card .date a {
        text-decoration: none;
        color: #555;
        grid-template-columns: auto;
        gap: 2px;
    }

    .result-card .date a span:last-child {
        color: #777;
    }

    /*.result-card .date a:hover,.result-card .date:hover a {*/
    /*    color: #fff;*/
    /*}*/
    .standings-wrapper,
    .scorers-wrapper {
        overflow-x: auto;
    }

    table.standings th,
    table.standings td {
        padding: 10px 9px;
    }

    table.standings {
        margin-top: 0px;
        margin-bottom: 16px;
    }

    table.standings:last-child {
        margin-bottom: 2px;
    }

    .club-name .name {
        font-size: 15px;
    }

    .club.club2 {
        top: 35px;
    }

    table.scorers th,
    table.scorers td {
        padding: 16px 6px 10px 6px;
    }

    .date.past {
        display: none;
    }

    .rosters .column {
        width: 100%;
    }

    .match-header .score {
        margin-top: 35px;
    }

    .match-header .team {
        display: grid;
        text-align: center;
        justify-items: center;
    }

    .match-header .score {
        font-size: 18px;
        line-height: 22px;
    }

    .score a {
        height: 48px;
        align-content: center;
    }

    .scorers li span.name {
        position: relative;
        top: 1px;
    }

    .match-header .score .team {
        width: 170px;
    }

    .match-header .score .team.host {
        justify-content: center;
    }

    .visitor span.score-club-logo {
        order: 2;
    }

    .team-header #club-city {
        bottom: -20px;
    }

    .team-header {
        padding: 28px 15px;
        padding-bottom: 50px;
    }

    #page5 .team-header {
        padding: 28px 15px;
    }

    .team-header .club-nickname {
        font-size: 16px !important;
        top: -2px;
    }

    .match-header .spordle_link,
    .team-header .spordle_link {
        top: 3px;
        font-size: 14px;
    }
}

@media (max-width: 672px) {
    .page0 h1 {
        line-height: 35px;
    }

    .page0 #main #leagues-nav .level2 div {
        font-size: 28px;
        line-height: 28px;
    }

    .page0 #main #leagues-nav .level2 a span {
        font-size: 20px;
    }

    #page3 .schedule .match {
        height: 36px;
    }

    #page3 .match .date {
        width: 45px;
        padding-right: 5px;
        font-size: 13px;
    }

    #page3 .match .team {
        gap: 6px;
        width: 154px;
    }

    #page3 .match .team .team-name {
        text-align: right;
    }

    #page3 .match .team.visitor .team-name {
        text-align: left;
    }

    #page3 .match .score {
        width: 40px;
    }

    .rosters {
        display: grid;
        grid-template-columns: max-content;
        gap: 20px;
    }

    .score a.postponed {
        /*color: #da2828;*/
        font-size: 14px;
        text-overflow: ellipsis;
        overflow: hidden;
        display: inline-block !important;
        max-width: 41px;
        white-space: nowrap;
        position: relative;
        top: 2px;
        /* text-transform: uppercase; */
    }

    .team-header .club-name {
        font-size: 20px;
    }

    .team-header .club-nickname {
        font-size: 14px !important;
        top: -1px;
    }

    #page4 .column.teams {
        grid-template-columns: 1fr;
        overflow-x: auto;
    }
}

@media (max-width:530px) {
    .standings-toggle-btn {
        font-size: 0;
        padding: 8px 12px;
    }

    .standings-toggle-btn i {
        font-size: 16px;
        margin-right: 0;
    }

}

@media (max-width:479px) {

    div#app-logo {
        display: block;
        top: 22px;
        position: absolute;
        left: -55px;
        transform: unset;
        rotate: 90deg;
    }

    #app-logo-text {
        font-size: 20px;
        padding: 7px 8px 3px 8px;
    }

    .page0 #app-logo-text {
        font-size: 50px;
        padding: 0;
    }

    .page0 #header-top {
        height: 70px;
    }

    .page0 div#app-logo {
        position: unset;
        rotate: 0deg;
    }

    .season_wrapper {
        gap: 18px;
    }

    .page0 #main #leagues-nav .level2 a span {
        font-size: 18px;
    }

    #header-top #league-logo img {
        /*bottom: -20px;*/
    }

    #header-top #league-logo img {
        /* max-width: 160px; */
        height: auto;
        max-width: unset;
        position: relative;
        bottom: 10px;
    }

    #nav-btn {
        font-size: 12px;
    }

    #nav-btn i {
        margin-right: 0;
        font-size: 28px;
        vertical-align: middle;
        display: block;
        margin-bottom: 5px;
        /* order: 2; */
    }

    .schedule .match {
        font-size: 14px;
        line-height: 16px;
    }

    #header-top {
        height: 85px;
        justify-items: center;
    }

    #league-logo {
        height: 90px;
        /* position: relative; */
        /* top: -6px; */
        display: block;
        top: 5px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    #header-top #league-logo img {
        height: 90px;
        margin-bottom: 0;
    }


    #league-name {
        font-size: 21px;
        line-height: 26px;
        margin-top: 5px;
    }



    .page0 h1 {
        margin-bottom: 0px;
    }

    h1 em {
        font-size: 16px;
    }

    #page1 h1 span:nth-child(3) {
        font-size: 16px;
    }

    #page1 h1 span:nth-child(5) {
        font-size: 16px;
    }

    #page2 h1 span:nth-child(3),
    #page3 h1 span:nth-child(3) {
        font-size: 16px;
    }

    #page2 h1 span:nth-child(5),
    #page3 h1 span:nth-child(5) {
        font-size: 16px;
    }

    #page2 h1 span:last-child {
        display: inline-block;
        /* left: 0px; */
        position: unset;
        right: 10px;
        left: unset;
        bottom: -26px;
        padding: 3px 15px;
        position: absolute;
        z-index: 2;
    }

    h2 {
        font-size: 19px;
        margin-bottom: 6px;
    }

    #games-carousel {
        width: 363px;
    }

    .result-card .clubs {
        font-size: 14px;
        line-height: 16px;
        column-gap: 8px;
    }

    .score-box {
        width: 55px;
    }

    .result-club-name {
        width: 143px;
        padding-right: 0px;
    }

    .result-club-name.right {
        padding-left: 3px;
    }

    .result-club-name.right a {
        grid-template-columns: auto 28px;
    }

    .result-club-name a {
        grid-template-columns: 28px auto;
    }

    .result-club-logo {
        width: 28px;
        height: 28px;
    }

    table.standings th,
    table.standings td {
        padding: 10px 7px;
    }

    .club-name a {
        grid-template-columns: 30px auto;
    }

    .standing-club-logo {
        width: 30px;
        height: 30px;
    }

    .club-name .name {
        font-size: 14px;
        width: 109px;
        white-space: normal;
        line-height: 16px;
    }

    .standings .club-nickname {
        position: relative !important;
        margin: 0;
        top: 0px;
    }

    .club-nickname {
        font-size: 12px !important;
        padding: 2px 5px 0px 6px;
    }

    .team-header .club-nickname {
        font-size: 13px !important;
        top: 0px;
    }

    table.scorers th,
    table.scorers td {
        padding: 10px 3px;
    }

    table.scorers th {
        font-size: 13px;
    }

    table.scorers th:last-child {
        padding-right: 10px;
    }

    table.scorers td {
        font-size: 14px;
    }

    .player-cell .lastname {
        font-size: 14px;
    }

    .player-cell .firstname {
        font-size: 14px;
    }

    .player-cell .club {
        font-size: 13px;
    }

    .scorers .club {
        grid-template-columns: 28px auto;
    }

    .player-club-logo {
        width: 28px;
        height: 28px;
    }

    .player-cell .club {
        font-size: 13px;
    }

    .club.club2 {
        top: 28px;
    }

    .name-row {
        display: inline-block;
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        width: 193px;
    }

    .team-header {
        min-height: 80px;
        padding: 15px 5px;
        padding-bottom: 40px;
    }


    .team-header .club-name {
        width: 145px;
    }

    #page3 .team-header .team-name {
        white-space: nowrap;
    }

    #page3 .team-header .team-name span {
        max-width: 162px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .team-header .team-name {
        right: -5px;
        font-size: 18px;
        padding: 7px 8px 7px 16px;

    }

    #page3 #season-subname {
        font-size: 14px;
        white-space: nowrap;
    }

    #page3 .match .date {
        width: 10px;
        text-align: left;
        font-size: 12px;
        line-height: 13px;
        position: relative;
        left: -10px;
        color: #444;
    }

    #page3 .match .team {
        gap: 5px;
        width: 123px;
    }

    .team-header #club-city {
        width: 140px;
    }

    #page3 table.scorers tr th:first-child {
        padding-left: 8px;
    }

    #page2 .scorers li {
        font-size: 14px;
    }

    .vs {
        white-space: nowrap;
    }

    .vs .postponed {
        font-size: 16px;
    }

    .team-header #club-city {
        bottom: -20px;
    }
}

@media (max-width:392px) {
    h1 {
        font-size: 18px;
        line-height: 22px;
    }

    #page2 h1 span:nth-child(5),
    #page3 h1 span:nth-child(5) {
        font-size: 14px;
        line-height: 24px;
    }

    .page0 #main #leagues-nav .level2 .season_wrapper {
        gap: 15px;
    }

    .page0 #main #leagues-nav .level2 a span {
        font-size: 17px;
    }

    #games-carousel {
        width: 345px;
    }

    .result-card .clubs {
        font-size: 13px;
    }

    .result-club-name {
        width: 134px;
    }

    .result-card .game-name {}

    .name-row {
        width: unset;
    }

    #page3 .match .team {
        width: 122px;
    }

    .team-header .team-name {
        font-size: 16px;
    }

    #page3 .team-header .team-name span {
        max-width: 144px;
    }
}