body {
    font-family: Arial, sans-serif;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
}

header {
    width: calc(100% - 40px);
    text-align: center;
    /*background-color: black;*/
    /*color: #fff;*/
    padding: 20px;
	border-bottom: 5px solid black;
}

header .team-logo {
    /*width: 100px;*/
    max-height: 100px;
    /*border-radius: 50%;*/
}

header h1 {
    text-transform: uppercase;
    margin-bottom: 0;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2px;
}

section {
    padding: 20px;
    width: calc(100% - 40px);
}

section h2 {
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

section h2 a.see-more {
    font-size: 16px;
    color: #337ab7;
    text-decoration: none;
}

section p {
    text-align: center;
    color: #666;
}

/* Empty messages */
.empty-message {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px 0;
}

/* ========================
   Game Cards
   ======================== */
.games-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    background: #fff;
    transition: box-shadow 0.2s;
    text-transform: uppercase;
}

.game-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.game-meta-top,
.game-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #888;
}

.game-meta-top {
    margin-bottom: 8px;
}

.game-meta-bottom {
    margin-top: 8px;
}

.game-category {
    font-size: 13px;
}

.game-phase {
    font-size: 13px;
}

.game-matchup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.game-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.game-team:last-child {
    flex-direction: row-reverse;
    text-align: right;
}

.game-team-current .game-team-name {
    font-weight: 700;
}

.game-team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.game-team-name {
    font-size: 14px;
    color: inherit;
    text-decoration: none;
}

a.game-team-name:hover {
    text-decoration: underline;
}

a.game-category,
a.game-venue {
    color: inherit;
    text-decoration: none;
}

a.game-category:hover,
a.game-venue:hover {
    text-decoration: underline;
}

.game-vs {
    font-size: 12px;
    color: #aaa;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.game-score {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 60px;
    justify-content: center;
    gap: 4px;
}

.score-value {
    font-size: 18px;
    font-weight: 700;
}

.result-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 4px;
    margin-top: 2px;
}

.result-win .result-badge {
    background: #d4edda;
    color: #155724;
}

.result-loss .result-badge {
    background: #f8d7da;
    color: #721c24;
}

.result-draw .result-badge {
    background: #fff3cd;
    color: #856404;
}

.game-venue {
    font-size: 13px;
}

.game-status.ongoing {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* ========================
   Print Styles
   ======================== */
@media print {
    /* Hide footer / navigation */
    footer,
    .mobile-nav,
    .category-tabs {
        display: none !important;
    }

    /* Remove max-width constraints */
    .tab-content,
    .category-header {
        max-width: 100% !important;
    }

    /* Show the games tab even if not currently active */
    #tab-games {
        display: block !important;
    }

    /* Compact game cards: 2 per row */
    .games-list {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .game-card {
        padding: 6px 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .game-meta-top,
    .game-meta-bottom {
        font-size: 10px;
        margin-bottom: 2px;
        margin-top: 2px;
    }

    .game-team-name {
        font-size: 11px;
    }

    .game-team-logo {
        width: 20px;
        height: 20px;
    }

    .score-value {
        font-size: 14px;
    }

    .game-vs {
        font-size: 10px;
    }

    .game-category,
    .game-phase,
    .game-venue {
        font-size: 10px;
    }

    /* Remove link colors for clean print */
    a {
        color: inherit !important;
        text-decoration: none !important;
    }

    /* Compact staff list inside game cards */
    .game-staff-list {
        font-size: 9px !important;
        padding-top: 3px !important;
        margin-top: 3px !important;
    }
}

/* ========================
   Roster Table
   ======================== */
.roster-table {
    width: 100%;
    border-collapse: collapse;
}

.roster-table th,
.roster-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.roster-table thead th {
    background: #f8f8f8;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roster-table tbody tr:hover {
    background: #fafafa;
}

.jersey-number {
    font-weight: 700;
    color: #333;
    width: 40px;
    text-align: center;
}

/* Coaches */
.coaches-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.coaches-section h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
}

.coach-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.coach-name {
    font-weight: 600;
}

.coach-role {
    color: #888;
    font-size: 14px;
}

/* Favorite button */
.btn-favorite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 16px;
    border: 2px solid #ccc;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

.btn-favorite:hover {
    border-color: #e74c3c;
}

.btn-favorite.is-favorite {
    border-color: #e74c3c;
    background: #fef0f0;
    color: #e74c3c;
}

.btn-favorite svg {
    flex-shrink: 0;
}