/* =========================================================
   eRift.gg
   League of Legends Esports Portal
   ========================================================= */


/* =========================================================
   RESET / GLOBAL
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(40, 80, 140, 0.16),
            transparent 35%
        ),
        #070a10;
    color: #f2f4f8;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    width: 100%;
    height: 76px;

    display: flex;
    align-items: center;

    background: rgba(8, 11, 18, 0.96);

    border-bottom: 1px solid #1a202c;

    position: sticky;
    top: 0;
    z-index: 100;

    backdrop-filter: blur(12px);
}


/* =========================================================
   TOPBAR INNER
   ========================================================= */

.topbar-inner {
    width: min(1280px, calc(100% - 48px));

    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    width: auto;
    height: 100%;

    display: flex;
    align-items: center;

    flex-shrink: 0;

    margin-right: 42px;
}

.logo img {
    display: block;

    width: 145px;
    height: auto;
    max-height: 48px;

    object-fit: contain;
}


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

.main-nav {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 32px;
}

.main-nav a {
    height: 100%;

    display: flex;
    align-items: center;

    position: relative;

    color: #858e9f;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.8px;

    transition: color 0.2s ease;
}

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

.main-nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    background: #6f9cff;

    box-shadow: 0 0 12px rgba(111, 156, 255, 0.6);
}


/* =========================================================
   LANGUAGE
   ========================================================= */

.language {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 8px;

    font-size: 11px;
    font-weight: 800;
}

.language button {
    padding: 0;

    border: 0;
    background: none;

    color: #697386;

    cursor: pointer;

    font-size: 11px;
    font-weight: 800;
}

.language button:hover {
    color: #ffffff;
}

.language .language-active {
    color: #6f9cff;
}


/* =========================================================
   MAIN
   ========================================================= */

main {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 360px;

    display: flex;
    align-items: center;

    position: relative;

    overflow: hidden;

    border-bottom: 1px solid #171d29;
}

.hero::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -150px;
    top: -100px;

    background:
        radial-gradient(
            circle,
            rgba(78, 125, 255, 0.16),
            transparent 68%
        );
}

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(7, 10, 16, 1) 0%,
            rgba(7, 10, 16, 0.75) 45%,
            rgba(7, 10, 16, 0.1) 100%
        );

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    padding: 60px 0;
}

.hero-label {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 22px;

    color: #71809a;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;
}

.hero-label span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #6f9cff;

    box-shadow: 0 0 14px rgba(111, 156, 255, 0.8);
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);

    line-height: 0.98;

    letter-spacing: -3px;

    font-weight: 800;
}

.hero h1 strong {
    color: #6f9cff;
}

.hero p {
    max-width: 520px;

    margin-top: 24px;

    color: #818b9d;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.matches-section {
    padding: 55px 0 20px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 24px;
}

.main-section-header {
    align-items: center;
}

.section-kicker {
    margin-bottom: 8px;

    color: #66738a;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 2px;
}

.section-header h2 {
    font-size: 26px;
    letter-spacing: -0.8px;
}

.section-link {
    color: #71809a;

    font-size: 11px;
    font-weight: 700;

    transition: color 0.2s ease;
}

.section-link:hover {
    color: #6f9cff;
}


/* =========================================================
   MATCH DATE
   ========================================================= */

.match-date {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 9px 13px;

    background: #0d121b;

    border: 1px solid #1d2532;

    font-size: 10px;
}

.match-date span {
    color: #6f9cff;
    font-weight: 900;
}

.match-date strong {
    color: #707b8e;
}


/* =========================================================
   FILTERS
   ========================================================= */

.match-filters {
    display: flex;

    gap: 8px;

    margin-bottom: 15px;
}

.filter {
    padding: 9px 15px;

    border: 1px solid #1b2330;

    background: #0c1119;

    color: #6f7889;

    cursor: pointer;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.7px;

    transition: 0.2s ease;
}

.filter:hover {
    color: #ffffff;
    border-color: #303b4d;
}

.filter.active {
    color: #ffffff;

    background: #151d2a;

    border-color: #40516e;
}

.live-dot {
    width: 6px;
    height: 6px;

    display: inline-block;

    margin-right: 5px;

    border-radius: 50%;

    background: #ef5967;

    box-shadow: 0 0 9px rgba(239, 89, 103, 0.8);
}


/* =========================================================
   MATCH CARDS
   ========================================================= */

#matches-container {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

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

    display: grid;

    grid-template-columns:
        190px
        minmax(0, 1fr)
        150px
        minmax(0, 1fr);

    align-items: center;

    position: relative;

    overflow: hidden;

    background: #0c1119;

    border: 1px solid #19212e;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.match-card:hover {
    transform: translateY(-2px);

    background: #0f151f;

    border-color: #2b3b54;
}

.match-card.live {
    border-left: 2px solid #ef5967;
}

.match-card.upcoming {
    border-left: 2px solid #334156;
}

.match-card.completed {
    opacity: 0.82;
}


/* =========================================================
   MATCH INFO
   ========================================================= */

.match-info {
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 0 20px;

    border-right: 1px solid #181f2b;
}

.match-time {
    color: #e7ebf2;

    font-size: 17px;
    font-weight: 800;
}

.match-league {
    margin-top: 6px;

    color: #626e82;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}


/* =========================================================
   TEAM IN MATCH CARD
   ========================================================= */

.team {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 0 20px;

    font-size: 14px;
}

.team strong {
    min-width: 0;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.team-left {
    justify-content: flex-end;

    text-align: right;
}

.team-right {
    justify-content: flex-start;

    text-align: left;
}

.team-logo {
    width: 42px;
    height: 42px;

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

    flex-shrink: 0;

    background: #111823;

    border: 1px solid #202a38;
}

.team-logo img {
    width: 30px;
    height: 30px;

    object-fit: contain;
}


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

.match-center {
    height: 58px;

    display: flex;
    flex-direction: column;

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

    gap: 4px;

    border-left: 1px solid #181f2b;
    border-right: 1px solid #181f2b;
}

.match-status {
    color: #687489;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1px;
}

.match-status.live {
    color: #ef5967;
}

.match-center strong {
    font-size: 17px;

    letter-spacing: 0.5px;
}

.match-format {
    color: #505b6e;

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;
}


/* =========================================================
   HOMEPAGE LAYOUT
   ========================================================= */

.homepage-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        440px;

    gap: 0;

    align-items: start;

    padding: 0;

    background: rgba(10, 14, 22, 0.55);

    border: 1px solid #18202d;
}

.homepage-left {
    min-width: 0;

    padding: 28px;

    border-right: 1px solid #18202d;
}

.homepage-right {
    min-width: 0;

    padding: 20px;

    background: rgba(8, 12, 19, 0.45);
}

.homepage-left > section {
    margin-bottom: 28px;
}

.homepage-left > section:last-child {
    margin-bottom: 0;
}


/* =========================================================
   FEATURED MATCHES
   ========================================================= */

.featured-section {
    padding: 0;
}

.featured-matches {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.featured-match {
    display: block;

    width: 100%;

    padding: 14px 18px 11px;

    background:
        linear-gradient(
            135deg,
            rgba(17, 24, 36, 0.95),
            rgba(10, 15, 23, 0.98)
        );

    border: 1px solid #1b2636;

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.featured-match:hover {
    transform: translateY(-1px);

    border-color: #30415d;

    background:
        linear-gradient(
            135deg,
            rgba(20, 29, 43, 0.98),
            rgba(11, 17, 26, 1)
        );
}

.featured-match-top {
    min-height: 16px;

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

    margin-bottom: 8px;
}

.featured-league {
    min-width: 0;

    overflow: hidden;

    color: #7f8da4;

    font-size: 9px;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 1.1px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.featured-status {
    color: #69778d;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 0.9px;
}

.featured-status.live {
    color: #ef5967;
}

.featured-time {
    position: absolute;
}

.featured-teams {
    min-height: 62px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        75px
        minmax(0, 1fr);

    align-items: center;

    gap: 10px;
}

.featured-team {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 13px;
}

.featured-team:first-child {
    justify-content: flex-end;

    text-align: right;
}

.featured-team:last-child {
    justify-content: flex-start;

    text-align: left;
}

.featured-team strong {
    max-width: 150px;

    overflow: hidden;

    color: #e7ebf2;

    font-size: 13px;
    font-weight: 800;

    line-height: 1.2;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.featured-logo {
    width: 42px !important;
    height: 42px !important;

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

    flex-shrink: 0;

    background: #111923;

    border: 1px solid #202c3d;
}

.featured-logo img {
    width: 30px !important;
    height: 30px !important;

    object-fit: contain;
}

.featured-score {
    height: 54px;

    display: flex;
    flex-direction: column;

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

    gap: 4px;

    border-left: 1px solid #1b2533;
    border-right: 1px solid #1b2533;
}

.featured-score strong {
    color: #f0f3f8;

    font-size: 18px;
    font-weight: 900;

    letter-spacing: 0.5px;
}

.featured-score span {
    color: #59667a;

    font-size: 7px;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.featured-bottom {
    margin-top: 7px;
    padding-top: 8px;

    color: #59667a;

    border-top: 1px solid #182230;

    font-size: 8px;
    font-weight: 800;

    text-align: right;

    text-transform: uppercase;

    letter-spacing: 0.6px;

    transition: color 0.2s ease;
}

.featured-match:hover .featured-bottom {
    color: #7e9fd8;
}

.featured-match.featured-live {
    border-left: 2px solid #ef5967;
}

.featured-match.featured-live .featured-score strong {
    color: #ffffff;
}


/* =========================================================
   TOURNAMENTS
   ========================================================= */

.tournaments-section {
    min-width: 0;

    padding-top: 2px;
}

.tournaments-list {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.tournament {
    min-height: 74px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 12px 14px;

    background: #0c1119;

    border: 1px solid #19212e;

    transition: 0.2s ease;
}

.tournament:hover {
    background: #0f151f;

    border-color: #2a394f;
}

.tournament-icon {
    width: 42px;
    height: 42px;

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

    flex-shrink: 0;

    background: #111823;

    border: 1px solid #222d3d;

    color: #8ca2ca;

    font-size: 10px;
    font-weight: 900;
}

.tournament-info {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.tournament-info strong {
    font-size: 13px;
}

.tournament-info span {
    color: #596477;

    font-size: 9px;
}

.tournament b {
    margin-left: auto;

    font-size: 8px;

    letter-spacing: 0.8px;
}

.tournament-live {
    color: #ef5967;
}

.tournament-upcoming {
    color: #687489;
}


/* =========================================================
   NEWS
   ========================================================= */

.news-section {
    min-width: 0;

    padding-top: 2px;
}

.news-grid {
    display: grid;

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

    gap: 12px;
}

.news-item {
    min-height: 150px;

    display: grid;

    grid-template-columns: 180px 1fr;

    margin-bottom: 0;

    background: #0c1119;

    border: 1px solid #19212e;

    transition: 0.2s ease;
}

.news-item:hover {
    transform: translateY(-2px);

    border-color: #2a394f;
}

.news-image {
    min-height: 150px;

    display: flex;
    align-items: flex-end;

    padding: 14px;

    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(111, 156, 255, 0.25),
            transparent 50%
        ),
        #101724;
}

.news-image span {
    padding: 5px 7px;

    background: rgba(0, 0, 0, 0.35);

    color: #9badd0;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1px;
}

.news-content {
    padding: 20px 22px;
}

.news-category {
    color: #6f9cff;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.2px;
}

.news-item h3 {
    margin-top: 9px;

    font-size: 17px;

    line-height: 1.3;
}

.news-item p {
    margin-top: 8px;

    color: #6f7889;

    font-size: 12px;

    line-height: 1.5;
}

.news-time {
    display: block;

    margin-top: 14px;

    color: #4f596a;

    font-size: 9px;
}


/* =========================================================
   HOMEPAGE — RIGHT COLUMN
   ========================================================= */

.homepage-right .today-matches-section {
    width: 100%;
}

.homepage-right .section-header {
    margin-bottom: 16px;
}

.homepage-right .section-header h2 {
    font-size: 21px;
}

.homepage-right .match-filters {
    flex-wrap: wrap;
}

.homepage-right #matches-container {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.homepage-right .match-card {
    width: 100%;

    min-height: 78px;

    grid-template-columns:
        82px
        minmax(0, 1fr)
        72px
        minmax(0, 1fr);
}

.homepage-right .match-info {
    min-width: 0;

    padding: 0 9px;
}

.homepage-right .match-time {
    font-size: 13px;
}

.homepage-right .match-league {
    max-width: 70px;

    overflow: hidden;

    font-size: 7px;
    line-height: 1.2;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.homepage-right .team {
    min-width: 0;

    padding: 0 7px;

    gap: 7px;

    font-size: 11px;
}

.homepage-right .team strong {
    min-width: 0;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.homepage-right .team-logo {
    width: 34px;
    height: 34px;
}

.homepage-right .team-logo img {
    width: 24px;
    height: 24px;
}

.homepage-right .match-center {
    height: 52px;
}

.homepage-right .match-center strong {
    font-size: 13px;
}

.homepage-right .match-status {
    font-size: 7px;
}

.homepage-right .match-format {
    font-size: 7px;
}


/* =========================================================
   CALENDAR
   ========================================================= */

.match-calendar {
    width: 100%;

    display: flex;
    align-items: center;

    margin-bottom: 14px;
    padding: 7px;

    background: #0c1119;

    border: 1px solid #19212e;
}

.calendar-days {
    flex: 1;

    min-width: 0;

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 4px;
}

.calendar-day {
    min-width: 0;

    padding: 7px 4px;

    display: flex;
    flex-direction: column;

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

    background: #0f151f;

    border: 1px solid transparent;

    cursor: pointer;

    transition: 0.2s ease;
}

.calendar-day:hover {
    background: #131c29;

    border-color: #293950;
}

.calendar-day-name {
    color: #59667a;

    font-size: 7px;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.6px;
}

.calendar-day-number {
    margin-top: 3px;

    color: #dce2eb;

    font-size: 12px;
    font-weight: 900;
}

.calendar-day.active {
    background: #151f2f;

    border-color: #40516e;
}

.calendar-day.active .calendar-day-name {
    color: #789be2;
}

.calendar-day.active .calendar-day-number {
    color: #ffffff;
}

.calendar-arrow {
    width: 28px;
    height: 34px;

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

    flex-shrink: 0;

    border: 0;

    background: transparent;

    color: #69778d;

    font-size: 21px;

    cursor: pointer;

    transition: 0.2s ease;
}

.calendar-arrow:hover {
    color: #ffffff;

    background: #131a25;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    padding: 25px 15px;

    color: #596477;

    font-size: 11px;

    text-align: center;
}


/* =========================================================
   MATCH PAGE
   ========================================================= */

.match-page {
    max-width: 1180px;

    margin: 32px auto 60px;
}

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

    gap: 20px;

    padding: 14px 18px;

    background: #0c1119;

    border: 1px solid #1a2433;
}

.match-page-league {
    color: #8997ad;

    font-size: 11px;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.match-page-status {
    color: #718097;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1px;
}

.match-page-status.live {
    color: #ef5967;
}


/* MATCH TEAMS */

.match-teams {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        180px
        minmax(0, 1fr);

    align-items: center;

    min-height: 300px;

    padding: 38px 40px;

    background:
        linear-gradient(
            135deg,
            rgba(16, 23, 34, 0.98),
            rgba(8, 13, 21, 1)
        );

    border-left: 1px solid #1a2433;
    border-right: 1px solid #1a2433;
    border-bottom: 1px solid #1a2433;
}

.match-team {
    display: flex;
    flex-direction: column;

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

    min-width: 0;

    text-align: center;
}

.match-team h1,
.match-team h2 {
    max-width: 280px;

    margin: 18px 0 5px;

    color: #edf1f7;

    font-size: 24px;
    font-weight: 900;

    line-height: 1.1;
}

.match-team p {
    margin: 0;

    color: #65738a;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.big-team-logo {
    width: 110px;
    height: 110px;

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

    background: #0d141e;

    border: 1px solid #202c3d;
}

.big-team-logo img {
    width: 78px;
    height: 78px;

    object-fit: contain;
}


/* MATCH SCORE */

.match-score {
    height: 130px;

    display: flex;
    flex-direction: column;

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

    gap: 8px;

    border-left: 1px solid #1b2635;
    border-right: 1px solid #1b2635;

    text-align: center;
}

.match-score span {
    color: #7b899f;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 1px;
}

.match-score strong {
    color: #f2f5f9;

    font-size: 30px;
    font-weight: 900;

    letter-spacing: 1px;
}

.match-score small {
    color: #5d6b80;

    font-size: 8px;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* MATCH DETAILS */

.match-details {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    background: #0c1119;

    border-left: 1px solid #1a2433;
    border-right: 1px solid #1a2433;
    border-bottom: 1px solid #1a2433;
}

.match-details > div {
    min-height: 80px;

    display: flex;
    flex-direction: column;

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

    padding: 14px;

    border-right: 1px solid #1a2433;
}

.match-details > div:last-child {
    border-right: 0;
}

.match-details span {
    margin-bottom: 7px;

    color: #59677c;

    font-size: 8px;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.match-details strong {
    color: #dce2eb;

    font-size: 12px;
    font-weight: 800;

    text-align: center;
}


/* =========================================================
   ROSTERS
   ========================================================= */

.rosters {
    margin-top: 28px;
}

.rosters h2 {
    margin: 0 0 12px;

    color: #e9edf4;

    font-size: 18px;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.roster-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;
}

.roster-team {
    background: #0c1119;

    border: 1px solid #1a2433;
}

.roster-team h3 {
    margin: 0;

    padding: 13px 15px;

    color: #dfe5ee;

    font-size: 12px;
    font-weight: 900;

    border-bottom: 1px solid #1a2433;
}

.roster-list {
    display: flex;
    flex-direction: column;
}

.roster-player {
    min-height: 58px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 8px 14px;

    border-bottom: 1px solid #151e2b;

    transition: background 0.2s ease;
}

.roster-player:last-child {
    border-bottom: 0;
}

.roster-player:hover {
    background: #101823;
}

.roster-player img {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    object-fit: cover;

    background: #111923;

    border: 1px solid #202c3d;

    border-radius: 50%;
}

.roster-player-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.roster-player-info strong {
    color: #e5eaf1;

    font-size: 12px;
    font-weight: 900;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roster-player-info span {
    margin-top: 3px;

    color: #637188;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 0.8px;
}


/* =========================================================
   MAPS / SERIES
   ========================================================= */

.match-games {
    margin-top: 35px;
}

.match-games h2 {
    margin-bottom: 15px;
}

#games-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.game-row {
    display: grid;

    grid-template-columns:
        70px
        minmax(0, 1fr)
        100px
        minmax(0, 1fr)
        30px;

    align-items: center;

    gap: 10px;

    padding: 16px 20px;

    background: #111827;

    border: 1px solid #1f2937;

    color: inherit;

    transition: 0.2s ease;
}

.game-row:hover {
    border-color: #374151;
}

.game-number {
    color: #9ca3af;

    font-size: 13px;
    font-weight: 700;
}

.game-team {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 12px;
}

.game-team img {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    object-fit: contain;
}

.game-team-left {
    justify-content: flex-end;
}

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

.game-team strong {
    min-width: 0;

    overflow: hidden;

    font-size: 20px;
    font-weight: 400;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-team span {
    color: #9ca3af;

    font-size: 15px;
    font-weight: 600;
}

.game-team.winner strong,
.game-team.winner span {
    color: #ffffff;

    font-weight: 800;
}

.game-score {
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    text-align: center;

    font-variant-numeric: tabular-nums;
}

.game-arrow {
    color: #6b7280;

    font-size: 18px;

    text-align: center;
}


/* =========================================================
   GAME PAGE
   ========================================================= */

.game-page {
    width: min(1200px, calc(100% - 40px));

    margin: 40px auto 60px;
}


/* GAME HEADER */

.game-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;

    color: #9ca3af;
}

#game-league {
    color: #8997ad;

    font-size: 11px;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 1px;
}

#game-status {
    padding: 6px 10px;

    background: #1f2937;

    border-radius: 5px;

    color: #d1d5db;

    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   GAME TEAMS HEADER
   ========================================================= */

.game-teams {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        140px
        minmax(0, 1fr);

    align-items: center;

    gap: 25px;

    min-height: 170px;

    padding: 25px 35px;

    background: #111827;

    border: 1px solid #1f2937;

    border-radius: 8px;
}


/* =========================================================
   GAME TEAM
   ========================================================= */

.game-page-team {
    position: relative;

    min-width: 0;

    display: grid;

    grid-template-columns:
        45px
        minmax(0, 1fr)
        40px;

    align-items: center;

    gap: 12px;
}


/* LOGO — TUTAJ JEST KONTROLA ROZMIARU */

.game-page-team > img {
    grid-column: 1;

    width: 45px;
    height: 45px;

    min-width: 45px;
    min-height: 45px;

    max-width: 45px;
    max-height: 45px;

    display: block;

    object-fit: contain;
}


/* TEAM INFO */

.game-page-team > div {
    grid-column: 2;

    min-width: 0;

    padding-right: 48px;
}

.game-page-team h1 {
    margin: 0;

    color: #edf1f7;

    font-size: 20px;
    font-weight: 900;

    line-height: 1.1;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* KILLS */

.game-page-team > div > span {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    color: #ffffff;

    font-size: 22px;
    font-weight: 900;

    line-height: 1;

    font-variant-numeric: tabular-nums;
}


/* LEFT TEAM */

.game-page-team:not(.game-page-team-right) {
    text-align: right;
}

.game-page-team:not(.game-page-team-right) > div {
    text-align: right;
}

.game-page-team:not(.game-page-team-right) > div > span {
    right: 0;
}


/* RIGHT TEAM */

.game-page-team-right {
    grid-template-columns:
        40px
        minmax(0, 1fr)
        45px;

    text-align: left;
}

.game-page-team-right > div {
    grid-column: 2;

    padding-right: 0;
    padding-left: 48px;

    text-align: left;
}

.game-page-team-right > img {
    grid-column: 3;
}

.game-page-team-right > div > span {
    left: 0;
}


/* =========================================================
   GAME CENTER — DURATION
   ========================================================= */

.game-page-center {
    display: flex;
    flex-direction: column;

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

    text-align: center;
}

.game-page-center strong {
    display: block;

    min-width: 70px;

    color: #ffffff;

    font-size: 26px;
    font-weight: 800;

    font-variant-numeric: tabular-nums;
}

.game-page-center > span {
    display: block;

    margin-top: 6px;

    color: #9ca3af;

    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   PLAYER STATS
   ========================================================= */

.player-stats {
    margin-top: 30px;
}

.player-stats h2 {
    margin-bottom: 15px;

    color: #f2f4f8;

    font-size: 20px;
}


/* TEAM STATS */

.stats-team {
    margin-bottom: 25px;

    background: #111827;

    border: 1px solid #1f2937;

    border-radius: 8px;

    overflow: hidden;
}

.stats-team h3 {
    margin: 0;

    padding: 14px 18px;

    color: #f0f3f8;

    font-size: 16px;

    border-bottom: 1px solid #1f2937;
}


/* TABLE */

.stats-header,
.stats-row {
    display: grid;

    grid-template-columns:
        minmax(160px, 1.5fr)
        minmax(150px, 1.2fr)
        90px
        65px
        65px
        90px
        100px
        60px;

    align-items: center;

    gap: 10px;

    padding: 12px 18px;
}

.stats-header {
    background: #0f172a;

    color: #6b7280;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
}

.stats-row {
    min-height: 58px;

    color: #dce2eb;

    font-size: 13px;

    border-top: 1px solid #1f2937;
}

.stats-row:hover {
    background: #172033;
}


/* PLAYER */

.stats-player {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 10px;
}

.stats-player strong {
    min-width: 0;

    overflow: hidden;

    font-size: 13px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.player-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    object-fit: cover;

    background: #1f2937;

    border-radius: 50%;
}

.player-icon-empty {
    display: flex;

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

    color: #6b7280;

    font-size: 13px;
    font-weight: 700;
}


/* CHAMPION */

.stats-champion {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 10px;

    font-weight: 600;
}

.champion-icon {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 4px;
}


/* KDA / KP */

.stats-row > div:nth-child(3),
.stats-row > div:last-child {
    font-weight: 700;
}


/* LOADING */

.stats-loading {
    padding: 30px;

    color: #9ca3af;

    text-align: center;
}


/* =========================================================
   TEAM PAGE
   ========================================================= */

.team-page {
    padding: 50px 0;
}

.team-header {
    display: flex;
    align-items: center;

    gap: 25px;

    padding: 35px;

    background: #0c1119;

    border: 1px solid #19212e;
}

.team-profile-logo {
    width: 100px;
    height: 100px;

    object-fit: contain;
}

.team-header h1 {
    font-size: 32px;
}

.team-header p {
    margin-top: 8px;

    color: #687489;

    font-size: 12px;
}

.team-roster,
.team-matches {
    margin-top: 25px;
}

.players {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 10px;
}

.player {
    padding: 18px;

    background: #0c1119;

    border: 1px solid #19212e;

    text-align: center;
}

.player img {
    width: 65px;
    height: 65px;

    margin-bottom: 10px;

    object-fit: cover;

    border-radius: 50%;
}

.player strong {
    display: block;

    font-size: 11px;
}

.player span {
    display: block;

    margin-top: 4px;

    color: #596477;

    font-size: 8px;
}

.team-match-row {
    min-height: 65px;

    display: grid;

    grid-template-columns:
        150px
        1fr
        100px
        1fr;

    align-items: center;

    padding: 0 18px;

    margin-bottom: 7px;

    background: #0c1119;

    border: 1px solid #19212e;
}


/* =========================================================
   FOOTER
   ========================================================= */

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

    padding: 30px 0 45px;

    border-top: 1px solid #171d28;

    color: #4f596a;
}

.footer-logo {
    color: #cbd1dc;

    font-size: 19px;
    font-weight: 900;
}

.footer-logo b {
    color: #6f9cff;
}

footer p {
    font-size: 10px;
}

.footer-links {
    display: flex;

    gap: 18px;
}

.footer-links a {
    color: #596477;

    font-size: 10px;
}

.footer-links a:hover {
    color: #ffffff;
}


/* =========================================================
   TABLET — 1100px
   ========================================================= */

@media (max-width: 1100px) {

    .homepage-layout {
        grid-template-columns:
            minmax(0, 1fr)
            400px;
    }

    .homepage-left {
        padding: 22px;
    }

    .homepage-right {
        padding: 22px 18px;
    }
}


/* =========================================================
   TABLET — 900px
   ========================================================= */

@media (max-width: 900px) {

    .topbar {
        padding: 0 20px;
    }

    .logo {
        width: auto;

        margin-right: 30px;
    }

    .main-nav {
        gap: 18px;
    }

    .main-nav a {
        font-size: 10px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .match-card {
        grid-template-columns:
            140px
            1fr
            110px
            1fr;
    }

    .players {
        grid-template-columns:
            repeat(3, 1fr);
    }

    /* GAME */

    .game-page {
        width: calc(100% - 30px);
    }

    .stats-team {
        overflow-x: auto;
    }

    .stats-header,
    .stats-row {
        min-width: 850px;
    }
}


/* =========================================================
   MOBILE — 800px
   ========================================================= */

@media (max-width: 800px) {

    main {
        width: calc(100% - 24px);
    }

    .main-nav {
        display: none;
    }

    .logo {
        margin-right: 0;
    }

    .homepage-layout {
        display: flex;
        flex-direction: column;

        gap: 0;

        border: 1px solid #18202d;
    }

    .homepage-left {
        width: 100%;

        padding: 20px;

        border-right: 0;
        border-bottom: 1px solid #18202d;
    }

    .homepage-right {
        width: 100%;

        padding: 18px;
    }

    .homepage-left {
        display: flex;
        flex-direction: column;
    }

    .homepage-left .featured-section {
        order: 1;
    }

    .homepage-left .tournaments-section {
        order: 2;
    }

    .homepage-left .news-section {
        order: 3;
    }

    .homepage-right {
        order: 2;
    }

    .featured-matches {
        gap: 10px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .homepage-right .match-card {
        grid-template-columns:
            1fr
            80px
            1fr;

        grid-template-rows:
            1fr
            1fr;
    }

    .homepage-right .match-info {
        grid-column: 1 / 4;
        grid-row: 1;

        height: auto;

        flex-direction: row;

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

        padding: 9px 14px;

        border-right: 0;
        border-bottom: 1px solid #181f2b;
    }

    .homepage-right .team {
        grid-row: 2;
    }

    .homepage-right .team-left {
        grid-column: 1;
    }

    .homepage-right .team-right {
        grid-column: 3;
    }

    .homepage-right .match-center {
        grid-column: 2;
        grid-row: 2;

        height: auto;
    }

    /* MATCH PAGE */

    .match-page {
        margin: 18px 12px 40px;
    }

    .match-teams {
        grid-template-columns: 1fr;

        gap: 25px;

        padding: 30px 18px;
    }

    .match-team h1,
    .match-team h2 {
        max-width: 220px;

        font-size: 19px;
    }

    .big-team-logo {
        width: 85px;
        height: 85px;
    }

    .big-team-logo img {
        width: 60px;
        height: 60px;
    }

    .match-score {
        width: 100%;
        height: 80px;

        border-left: 0;
        border-right: 0;

        border-top: 1px solid #1b2635;
        border-bottom: 1px solid #1b2635;
    }

    .match-score strong {
        font-size: 25px;
    }

    .match-details {
        grid-template-columns: 1fr;
    }

    .match-details > div {
        min-height: 65px;

        border-right: 0;
        border-bottom: 1px solid #1a2433;
    }

    .match-details > div:last-child {
        border-bottom: 0;
    }

    .roster-grid {
        grid-template-columns: 1fr;
    }

    /* GAME PAGE */

    .game-teams {
        grid-template-columns: 1fr;

        gap: 20px;

        padding: 25px 20px;
    }

    .game-page-team,
    .game-page-team-right {
        width: 100%;
        max-width: 500px;

        margin: 0 auto;
    }

    .game-page-center {
        order: 2;

        padding: 15px 0;

        border-top: 1px solid #1f2937;
        border-bottom: 1px solid #1f2937;
    }

    /* MAPS */

    .game-row {
        grid-template-columns:
            55px
            minmax(0, 1fr)
            70px
            minmax(0, 1fr)
            20px;

        padding: 12px;
    }

    .game-team {
        gap: 7px;
    }

    .game-team img {
        width: 28px;
        height: 28px;
    }

    .game-team strong {
        font-size: 14px;
    }

    .game-team span {
        font-size: 13px;
    }
}


/* =========================================================
   MOBILE — 600px
   ========================================================= */

@media (max-width: 600px) {

    .hero {
        min-height: 310px;
    }

    .hero h1 {
        font-size: 46px;

        letter-spacing: -2px;
    }

    .hero p {
        font-size: 13px;
    }

    .matches-section {
        padding-top: 35px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .match-date {
        display: none;
    }

    .match-filters {
        overflow-x: auto;

        padding-bottom: 5px;
    }

    .filter {
        flex-shrink: 0;
    }

    .match-card {
        min-height: 104px;

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

        grid-template-rows:
            1fr
            1fr;
    }

    .match-info {
        grid-column: 1 / 4;
        grid-row: 1;

        height: auto;

        flex-direction: row;

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

        padding: 9px 14px;

        border-right: 0;
        border-bottom: 1px solid #181f2b;
    }

    .match-time {
        font-size: 13px;
    }

    .match-league {
        margin-top: 0;
    }

    .team {
        grid-row: 2;

        padding: 0 10px;

        gap: 7px;

        font-size: 11px;
    }

    .team-left {
        grid-column: 1;
    }

    .team-right {
        grid-column: 3;
    }

    .team-logo {
        width: 32px;
        height: 32px;
    }

    .team-logo img {
        width: 22px;
        height: 22px;
    }

    .match-center {
        grid-column: 2;
        grid-row: 2;

        height: auto;

        border-top: 0;
    }

    .match-center strong {
        font-size: 13px;
    }

    .match-format {
        display: none;
    }

    .content-grid {
        padding: 40px 0;
    }

    .news-item {
        grid-template-columns: 100px 1fr;
    }

    .news-image {
        min-height: 145px;
    }

    .news-content {
        padding: 15px;
    }

    .news-item h3 {
        font-size: 14px;
    }

    .news-item p {
        display: none;
    }

    footer {
        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .featured-match {
        padding: 13px 12px 10px;
    }

    .featured-teams {
        grid-template-columns:
            minmax(0, 1fr)
            65px
            minmax(0, 1fr);

        gap: 7px;
    }

    .featured-team {
        gap: 7px;
    }

    .featured-team strong {
        max-width: 105px;

        font-size: 11px;
    }

    .featured-logo {
        width: 38px !important;
        height: 38px !important;
    }

    .featured-logo img {
        width: 27px !important;
        height: 27px !important;
    }

    .featured-score {
        height: 48px;
    }

    .featured-score strong {
        font-size: 16px;
    }

    .logo img {
        width: 125px;
        max-height: 42px;
    }

    /* GAME */

    .game-page {
        width: calc(100% - 16px);

        margin: 25px auto 40px;
    }

    .game-teams {
        padding: 20px 14px;
    }

    .game-page-team {
        grid-template-columns:
            38px
            minmax(0, 1fr)
            35px;

        gap: 9px;
    }

    .game-page-team > img {
        width: 38px;
        height: 38px;

        min-width: 38px;
        min-height: 38px;

        max-width: 38px;
        max-height: 38px;
    }

    .game-page-team-right {
        grid-template-columns:
            35px
            minmax(0, 1fr)
            38px;
    }

    .game-page-team h1 {
        font-size: 16px;
    }

    .game-page-team > div > span {
        font-size: 19px;
    }

    .game-page-center strong {
        font-size: 23px;
    }
}


/* =========================================================
   SMALL PHONE — 500px
   ========================================================= */

@media (max-width: 500px) {

    .calendar-days {
        grid-template-columns:
            repeat(5, 1fr);
    }

    .calendar-day {
        padding: 6px 2px;
    }

    .calendar-day-name {
        font-size: 6px;
    }

    .calendar-day-number {
        font-size: 11px;
    }

    .calendar-arrow {
        width: 24px;
    }
}
/* ===== DEBUG TEAM LOGOS ===== */

#team1-logo,
#team2-logo {
    width: 40px !important;
    height: 40px !important;

    min-width: 40px !important;
    min-height: 40px !important;

    max-width: 40px !important;
    max-height: 40px !important;

    object-fit: contain !important;

    display: block !important;

    position: static !important;

    transform: none !important;

    flex: 0 0 40px !important;
}
/* =========================================================
   GAME PAGE - TEAM ROW FIX
   ========================================================= */

.game-page-team {
    position: relative !important;

    display: flex !important;
    align-items: center !important;

    gap: 12px !important;

    width: 100% !important;
    min-width: 0 !important;

    grid-template-columns: none !important;
}

.game-page-team > img {
    position: static !important;

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

    min-width: 40px !important;
    min-height: 40px !important;

    max-width: 40px !important;
    max-height: 40px !important;

    flex: 0 0 40px !important;

    object-fit: contain !important;

    transform: none !important;
}

.game-page-team > div {
    position: static !important;

    min-width: 0 !important;

    padding: 0 !important;

    display: flex !important;
    align-items: center !important;

    gap: 12px !important;
}


/* LEWA DRUŻYNA
   LOGO → NAZWA → KILLE
*/

.game-page-team:not(.game-page-team-right) {
    justify-content: flex-end !important;

    text-align: right !important;
}

.game-page-team:not(.game-page-team-right) > img {
    order: 1 !important;
}

.game-page-team:not(.game-page-team-right) > div {
    order: 2 !important;
}

.game-page-team:not(.game-page-team-right) > div > h1 {
    order: 1 !important;
}

.game-page-team:not(.game-page-team-right) > div > span {
    position: static !important;

    order: 2 !important;

    transform: none !important;

    font-size: 22px !important;
    font-weight: 900 !important;
}


/* PRAWA DRUŻYNA
   KILLE → NAZWA → LOGO
*/

.game-page-team-right {
    justify-content: flex-start !important;

    text-align: left !important;
}

.game-page-team-right > div {
    order: 2 !important;
}

.game-page-team-right > img {
    order: 3 !important;
}

.game-page-team-right > div > h1 {
    order: 1 !important;
}

.game-page-team-right > div > span {
    position: static !important;

    order: 0 !important;

    transform: none !important;

    font-size: 22px !important;
    font-weight: 900 !important;
}


/* W PRAWEJ STRONIE KILLE PRZED NAZWĄ */

.game-page-team-right > div {
    display: flex !important;

    flex-direction: row !important;

    align-items: center !important;

    gap: 12px !important;
}

.game-page-team-right > div > span {
    margin-right: 0 !important;
}

.game-page-team-right > div > h1 {
    margin: 0 !important;
}


/* LEWA STRONA: NAZWA + KILLE */

.game-page-team:not(.game-page-team-right) > div {
    flex-direction: row !important;

    justify-content: flex-end !important;

    align-items: center !important;
}

.game-page-team:not(.game-page-team-right) > div > h1 {
    margin: 0 !important;
}


/* MOBILE */

@media (max-width: 800px) {

    .game-page-team,
    .game-page-team-right {
        width: 100% !important;

        display: flex !important;

        justify-content: center !important;

        flex-direction: row !important;
    }

    .game-page-team > img {
        width: 38px !important;
        height: 38px !important;

        min-width: 38px !important;
        min-height: 38px !important;

        max-width: 38px !important;
        max-height: 38px !important;

        flex-basis: 38px !important;
    }
}
/* =========================================================
   GAME PAGE - FINAL TEAM LAYOUT
   ========================================================= */

.game-teams {
    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        140px
        minmax(0, 1fr) !important;

    align-items: center !important;

    gap: 25px !important;

    min-height: 170px !important;

    padding: 25px 35px !important;
}


/* =========================================================
   LEFT / RIGHT TEAM
   ========================================================= */

.game-side {
    display: flex !important;

    align-items: center !important;

    gap: 12px !important;

    min-width: 0 !important;

    width: 100% !important;
}


/* =========================================================
   LOGOS
   ========================================================= */

.game-side > img {
    width: 40px !important;
    height: 40px !important;

    min-width: 40px !important;
    min-height: 40px !important;

    max-width: 40px !important;
    max-height: 40px !important;

    flex: 0 0 40px !important;

    display: block !important;

    object-fit: contain !important;

    position: static !important;

    transform: none !important;
}


/* =========================================================
   TEAM INFO
   ========================================================= */

.game-team-info {
    display: flex !important;

    align-items: center !important;

    gap: 12px !important;

    min-width: 0 !important;

    padding: 0 !important;
}


/* =========================================================
   TEAM NAME
   ========================================================= */

.game-team-info h1 {
    margin: 0 !important;

    color: #edf1f7 !important;

    font-size: 20px !important;

    font-weight: 900 !important;

    line-height: 1.1 !important;

    white-space: nowrap !important;

    overflow: hidden !important;

    text-overflow: ellipsis !important;
}


/* =========================================================
   KILLS
   ========================================================= */

.game-team-info > span {
    position: static !important;

    display: block !important;

    transform: none !important;

    color: #ffffff !important;

    font-size: 22px !important;

    font-weight: 900 !important;

    line-height: 1 !important;

    white-space: nowrap !important;
}


/* =========================================================
   LEFT SIDE

   LOGO → NAZWA → KILLE
   ========================================================= */

.game-side-left {
    justify-content: flex-end !important;
}

.game-side-left .game-team-info {
    flex-direction: row !important;

    justify-content: flex-end !important;
}

.game-side-left .game-team-info h1 {
    order: 1 !important;
}

.game-side-left .game-team-info span {
    order: 2 !important;
}


/* =========================================================
   RIGHT SIDE

   KILLE → NAZWA → LOGO
   ========================================================= */

.game-side-right {
    justify-content: flex-start !important;
}

.game-side-right .game-team-info {
    flex-direction: row !important;

    justify-content: flex-start !important;
}

.game-side-right .game-team-info span {
    order: 1 !important;
}

.game-side-right .game-team-info h1 {
    order: 2 !important;
}

.game-side-right > img {
    order: 2 !important;
}


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

.game-center {
    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    justify-content: center !important;

    text-align: center !important;
}

.game-center strong {
    display: block !important;

    color: #ffffff !important;

    font-size: 26px !important;

    font-weight: 800 !important;

    font-variant-numeric: tabular-nums !important;
}

.game-center > span {
    display: block !important;

    margin-top: 6px !important;

    color: #9ca3af !important;

    font-size: 10px !important;

    font-weight: 700 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .game-teams {
        grid-template-columns: 1fr !important;

        gap: 20px !important;

        padding: 25px 20px !important;
    }

    .game-side {
        width: 100% !important;

        justify-content: center !important;
    }

    .game-center {
        order: 2 !important;

        padding: 15px 0 !important;

        border-top: 1px solid #1f2937 !important;
        border-bottom: 1px solid #1f2937 !important;
    }

    .game-side > img {
        width: 38px !important;
        height: 38px !important;

        min-width: 38px !important;
        min-height: 38px !important;

        max-width: 38px !important;
        max-height: 38px !important;
    }

    .game-team-info h1 {
        font-size: 16px !important;
    }

    .game-team-info > span {
        font-size: 19px !important;
    }

}

/* =========================
   MATCH CARDS
========================= */

.featured-matches {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-card {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: #111827;
    border: 1px solid #1f2937;
    text-decoration: none;
    color: #fff;
    transition: 0.2s ease;
}

.match-card:hover {
    border-color: #374151;
    background: #141c2b;
}

.match-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.match-league {
    color: #8b95a7;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.match-status {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.7px;
}

.match-status.live {
    color: #ff5f67;
}

.match-status.completed {
    color: #6f9cff;
}

.match-status.upcoming {
    color: #7f8999;
}

.match-card-teams {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    gap: 16px;
}

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

.match-card-team:first-child {
    justify-content: flex-end;
}

.match-card-team:last-child {
    justify-content: flex-start;
}

.match-card-team img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.match-card-team strong {
    min-width: 18px;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

.team-name {
    font-size: 14px;
    font-weight: 600;
    color: #c5ccd7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-name.winner {
    color: #fff;
    font-weight: 800;
}

.match-card-time {
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.match-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #1b2433;
    color: #687386;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* =========================
   RIGHT COLUMN MATCHES
========================= */

#matches-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#matches-container .match-card {
    padding: 14px 16px;
}

#matches-container .match-card-top {
    margin-bottom: 10px;
}

#matches-container .match-card-teams {
    grid-template-columns: minmax(0, 1fr) 65px minmax(0, 1fr);
    gap: 8px;
}

#matches-container .match-card-team img {
    width: 30px;
    height: 30px;
}

#matches-container .match-card-team strong {
    font-size: 16px;
}

#matches-container .team-name {
    font-size: 13px;
}

#matches-container .match-card-bottom {
    margin-top: 10px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .match-card {
        padding: 14px;
    }

    .match-card-teams {
        grid-template-columns: minmax(0, 1fr) 55px minmax(0, 1fr);
        gap: 6px;
    }

    .match-card-team {
        gap: 7px;
    }

    .match-card-team img {
        width: 30px;
        height: 30px;
    }

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

    .match-card-team strong {
        font-size: 15px;
    }

    .match-card-time {
        font-size: 12px;
    }

}

/* =========================
   MATCH CALENDAR
========================= */

.match-calendar {
    display: flex;
    align-items: stretch;
    gap: 5px;
    margin-bottom: 16px;
}

.calendar-days {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.calendar-day {
    min-height: 48px;
    padding: 5px 4px;
    border: 1px solid #1f2937;
    background: #111827;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: 0.2s ease;
}

.calendar-day:hover {
    border-color: #374151;
    background: #161f2e;
}

.calendar-day span {
    color: #8b95a7;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.calendar-day strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.calendar-day.active {
    background: #18243a;
    border-color: #6f9cff;
}

.calendar-day.active span {
    color: #9db8ff;
}

.calendar-day.active strong {
    color: #ffffff;
}

.calendar-arrow {
    width: 28px;
    min-width: 28px;
    border: 1px solid #1f2937;
    background: #111827;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

.calendar-arrow:hover {
    background: #18243a;
    border-color: #374151;
    color: #6f9cff;
}