header {
    background: #1482d5;
    color: #fff;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    left: 0;
    right: 0;
}

header h1 {
    font-family: 'Figtree', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0;
    max-width: 100%;
}

main {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    background: #23272a; /* Reverted background to original */
    color: #f3f3f3;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
}

#session-controls,
#add-player-form,
#player-list,
#session-stats,
#alltime-stats {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

@media (min-width: 600px) {
    main {
        max-width: 700px;
        margin: 2rem auto;
        padding: 2rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    }

    header h1 {
        font-size: 2.5rem;
    }

    #session-controls,
    #add-player-form,
    #player-list,
    #session-stats,
    #alltime-stats {
        margin-bottom: 1.5rem;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 599px) {
    .player-list-header,
    .player-row {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.5rem;
        padding: 0;
        font-size: 0.9rem;
    }

    .player-actions {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .player-actions button {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        width: 100%;
    }

    #buyin-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .buyin-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    #buyin-amount {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .session-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    #player-form input[type="text"] {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .autocomplete-suggestions {
        max-height: 150px;
        overflow-y: auto;
    }
} 