body.matches-page {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background:
        linear-gradient(rgba(8, 18, 38, 0.85), rgba(8, 18, 38, 0.9)),
        url('/assets/images/matches_back.webp') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

/* DATE SELECTOR */

.matches-date-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px auto 28px;
    width: 100%;
}

.date-arrow,
.date-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    transition: 0.25s ease;
    backdrop-filter: blur(8px);
}

.date-arrow {
    width: 48px;
    font-size: 22px;
}

.date-current {
    min-width: 180px;
    padding: 0 18px;
    font-size: 15px;
}

.date-arrow:hover,
.date-current:hover {
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.45);
    transform: translateY(-2px);
}

.date-arrow.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.matches-date-dropdown {
    display: none !important;
}

/* LAST UPDATE */

.matches-last-update {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 25px;
}

/* WATCH BUTTON */

.match-watch {
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 10px;
    background: #22c55e;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    transition: 0.2s ease;
}

.watch-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.watch-btn.disabled {
    background: #64748b;
    cursor: not-allowed;
    opacity: 0.7;
}

/* CONTAINER */

.matches-container {
    width: min(1200px, 94%);
    margin: 0 auto;
    padding: 50px 0 100px;
}

/* HERO */

.matches-hero {
    text-align: center;
    margin-bottom: 50px;
}

.matches-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.matches-hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 900;
    background: linear-gradient(to bottom, #fff 40%, #9fb3d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

/* FILTERS */

.matches-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-btn {
    padding: 12px 28px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.filter-btn.active {
    background: #22c55e;
    color: #04111f;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}

/* DAY TITLE */

.matches-day-title {
    font-size: 26px;
    color: #22c55e;
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 4px solid #22c55e;
}

/* TOURNAMENT BLOCK */

.tournament-block {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    margin-bottom: 30px;
    overflow: hidden;
    transition: 0.3s;
}

.tournament-header {
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tournament-title {
    font-size: 20px;
    color: #fff;
    font-weight: 700;
}

.tournament-count {
    background: rgba(34, 197, 94, 0.1);
    padding: 4px 12px;
    border-radius: 8px;
    color: #22c55e;
    font-size: 12px;
}

/* MATCH ROW */

.match-row {
    display: grid;
    grid-template-columns: 80px 1.5fr 1fr 1fr 80px 120px;
    gap: 15px;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: 0.3s ease;
}

.match-row:hover {
    background: rgba(34, 197, 94, 0.04);
    transform: scale(1.005);
}

.match-time {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    color: #22c55e;
    font-weight: 800;
}

.match-players {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-mark {
    background: #facc15;
    color: #000;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 900;
    border-radius: 4px;
    text-transform: uppercase;
}

.tour-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #fff;
    font-weight: 700;
}

.status-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    display: inline-block;
    width: 80%;
}

/* MOBILE */

@media (max-width: 900px) {

    .match-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 20px;
    }

    .match-time {
        grid-column: span 2;
    }

    .match-players {
        grid-column: span 2;
        font-size: 19px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 10px;
    }
}

@media (max-width: 600px) {

    .matches-date-selector {
        gap: 8px;
    }

    .date-arrow {
        width: 42px;
        height: 40px;
    }

    .date-current {
        min-width: 145px;
        height: 40px;
        font-size: 13px;
    }

    .matches-filters {
        gap: 8px;
        padding: 8px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .tournament-header {
        padding: 16px;
    }

    .tournament-title {
        font-size: 17px;
    }

    .match-row {
        padding: 16px;
    }
}