.dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    color: #f8fafc;
}

.dashboard-hero {
    margin-bottom: 1.5rem;
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.dashboard-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin: 0;
}

.subtitle {
    margin-top: 0.75rem;
    color: #94a3b8;
    max-width: 62ch;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(280px, 520px);
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.55);
}

.details-fixture-filter {
    max-width: 520px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.filter-field label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
    font-weight: 600;
}

.filter-field select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    background: rgba(2, 6, 23, 0.8);
    color: #e2e8f0;
    padding: 0.65rem 0.75rem;
    outline: none;
}

.filter-field select:focus {
    border-color: rgba(96, 165, 250, 0.75);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.summary-grid--tight {
    margin: 0.9rem 0 1.35rem;
}

.summary-card {
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-card .label {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.summary-card .value {
    font-size: 1.7rem;
    font-weight: 700;
}

.panel {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.panel-header a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

.panel-header a:hover {
    color: #93c5fd;
}

.tournament-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.tournament-item {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(100, 116, 139, 0.35);
    border-radius: 12px;
    padding: 0.9rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    text-align: left;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.tournament-item:hover {
    border-color: rgba(96, 165, 250, 0.65);
    background: rgba(30, 41, 59, 0.7);
    transform: translateY(-1px);
}

.tournament-item.selected {
    border-color: rgba(96, 165, 250, 0.9);
    background: linear-gradient(165deg, rgba(30, 64, 175, 0.35), rgba(15, 23, 42, 0.85));
}

.tournament-item h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
}

.tournament-item p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    color: #cbd5e1;
    font-size: 0.8rem;
}

.tournament-details-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.details-subtitle {
    color: #94a3b8;
    font-size: 0.85rem;
}

.details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.details-actions a {
    text-decoration: none;
    color: #dbeafe;
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: rgba(30, 64, 175, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.details-actions a:hover {
    border-color: rgba(96, 165, 250, 0.85);
    background: rgba(30, 64, 175, 0.35);
}

.tournament-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.25rem;
    border: 1px solid rgba(100, 116, 139, 0.35);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.42);
}

.tab-btn {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.65);
    color: #cbd5e1;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    border-color: rgba(96, 165, 250, 0.7);
    color: #dbeafe;
    transform: translateY(-1px);
}

.tab-btn.active {
    border-color: rgba(96, 165, 250, 0.95);
    background: linear-gradient(165deg, rgba(30, 64, 175, 0.45), rgba(15, 23, 42, 0.85));
    color: #dbeafe;
}

.tab-btn:focus-visible {
    outline: 2px solid rgba(147, 197, 253, 0.9);
    outline-offset: 2px;
}

.tab-count {
    min-width: 1.35rem;
    text-align: center;
    border-radius: 999px;
    padding: 0.08rem 0.38rem;
    font-size: 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.6);
    color: #cbd5e1;
}

.tab-btn.active .tab-count {
    border-color: rgba(147, 197, 253, 0.8);
    color: #dbeafe;
    background: rgba(30, 64, 175, 0.45);
}

.dashboard-tab-panel {
    margin-top: 1rem;
}

.tab-title {
    margin: 0;
    font-size: 1.05rem;
    color: #dbeafe;
}

.empty-state {
    margin: 0.2rem 0 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.tab-panel {
    margin-top: 0.25rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.detail-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    padding: 0.9rem;
}

.detail-card h3 {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
}

.detail-card p {
    margin: 0;
    color: #cbd5e1;
}

.teams-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.team-chip {
    border: 1px solid rgba(96, 165, 250, 0.4);
    background: rgba(30, 58, 138, 0.25);
    color: #dbeafe;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
}

.fixtures-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.fixtures-column {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    padding: 0.9rem;
}

.fixtures-column h3 {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
}

.fixture-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding-top: 0.55rem;
    margin-top: 0.55rem;
}

.fixture-row span {
    color: #e2e8f0;
    font-size: 0.85rem;
}

.fixture-row small {
    color: #94a3b8;
    font-size: 0.75rem;
}

.fixture-link {
    text-decoration: none;
    border-radius: 10px;
    padding: 0.5rem;
    margin: 0.55rem -0.5rem 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}

.fixture-link:hover {
    background: rgba(30, 58, 138, 0.2);
    border-color: rgba(96, 165, 250, 0.45);
}

.slider-window {
    overflow: hidden;
    border-radius: 12px;
}

.slider-track {
    display: flex;
    width: max-content;
    gap: 0.9rem;
    animation: slide-matches 24s linear infinite;
}

.match-tile {
    width: 260px;
    background: linear-gradient(170deg, rgba(37, 99, 235, 0.2), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 14px;
    padding: 0.95rem;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tile-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.7rem;
    color: #93c5fd;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.45rem 0;
}

.player {
    color: #e2e8f0;
}

.tile-foot {
    margin: 0.7rem 0 0;
    color: #94a3b8;
    font-size: 0.8rem;
}

@keyframes slide-matches {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 992px) {
    .filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .summary-grid,
    .tournament-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .summary-grid,
    .tournament-list {
        grid-template-columns: 1fr;
    }

    .match-tile {
        width: 220px;
    }

    .tournament-tabs {
        gap: 0.45rem;
    }

    .tab-btn {
        width: 100%;
        justify-content: space-between;
    }
}
