/* =============================================================================
   JUNIOR GOLF LEAGUE - PUBLIC SITE STYLES
   Only header/hero styles - data sections use original admin styles
   ============================================================================= */

/* CSS Variables for Golf Theme */
:root {
    --golf-green: #2d5016;
    --golf-light-green: #4a7c59;
    --golf-accent-green: #6b8e23;
    --golf-gold: #d4af37;
    --golf-cream: #f5f5dc;
    --golf-white: #ffffff;
    --golf-gray: #8b8b8b;
    --golf-dark-gray: #333333;
    --golf-shadow: rgba(0, 0, 0, 0.1);
    --golf-shadow-dark: rgba(0, 0, 0, 0.2);
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* =============================================================================
   PUBLIC SITE HEADER STYLES
   ============================================================================= */

.public-header {
    background: linear-gradient(135deg, var(--golf-green) 0%, var(--golf-light-green) 100%);
    color: var(--golf-white);
    padding: var(--spacing-md);
    box-shadow: 0 2px 8px var(--golf-shadow-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
}

.header-brand i {
    font-size: 1.5rem;
    color: var(--golf-gold);
}

.brand-text {
    display: none;
}

.manager-login-btn {
    background: var(--golf-gold);
    color: var(--golf-dark-gray);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
}

.manager-login-btn:hover {
    background: #b8941f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--golf-shadow-dark);
}

.manager-login-btn span {
    display: none;
}

/* =============================================================================
   HERO BANNER
   ============================================================================= */

.hero-banner {
    height: 200px;
    background: linear-gradient(rgba(45, 80, 22, 0.7), rgba(45, 80, 22, 0.7)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><pattern id="golf-pattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="%23d4af37" opacity="0.3"/></pattern></defs><rect width="1200" height="400" fill="%234a7c59"/><rect width="1200" height="400" fill="url(%23golf-pattern)"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    text-align: center;
    color: var(--golf-white);
    padding: var(--spacing-lg);
}

.hero-content h1 {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 300px;
    margin: 0 auto;
}

/* =============================================================================
   MAIN CONTENT & NAVIGATION
   ============================================================================= */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.content-nav {
    display: flex;
    background: var(--golf-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 2px 8px var(--golf-shadow);
    overflow-x: auto;
}

.nav-tab {
    flex: 1;
    background: none;
    border: none;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--golf-gray);
    font-weight: var(--font-weight-medium);
    min-width: 80px;
}

.nav-tab i {
    font-size: 1.25rem;
}

.nav-tab span {
    font-size: 0.8rem;
}

.nav-tab.active {
    background: var(--golf-green);
    color: var(--golf-white);
}

.nav-tab:hover:not(.active) {
    background: var(--golf-cream);
    color: var(--golf-dark-gray);
}

/* =============================================================================
   CONTENT SECTIONS
   ============================================================================= */

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    color: var(--golf-green);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-header i {
    color: var(--golf-gold);
}

/* =============================================================================
   HIGHLIGHTS SECTION (Custom styling for highlights only)
   ============================================================================= */

.highlights-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.featured-highlight {
    background: var(--golf-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 12px var(--golf-shadow);
    border-left: 4px solid var(--golf-gold);
    text-align: center;
}

.featured-highlight h3 {
    color: var(--golf-green);
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
}

.featured-highlight .highlight-content {
    line-height: 1.7;
    color: var(--golf-dark-gray);
}

/* =============================================================================
   TEAM FILTER (Custom styling for public site)
   ============================================================================= */

.matches-controls {
    margin-bottom: var(--spacing-lg);
}

.team-filter {
    background: var(--golf-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px var(--golf-shadow);
}

.team-filter label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
    color: var(--golf-dark-gray);
}

.team-filter select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--golf-white);
}

.team-filter select:focus {
    outline: none;
    border-color: var(--golf-green);
}

/* =============================================================================
   RESPONSIVE DESIGN - TABLET
   ============================================================================= */

@media (min-width: 768px) {
    .brand-text {
        display: inline;
    }
    
    .manager-login-btn span {
        display: inline;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        max-width: 500px;
    }
    
    .nav-tab {
        flex-direction: row;
        gap: var(--spacing-sm);
    }
    
    .nav-tab span {
        font-size: 1rem;
    }
}

/* =============================================================================
   RESPONSIVE DESIGN - DESKTOP
   ============================================================================= */

@media (min-width: 1024px) {
    .hero-banner {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.25rem;
        max-width: 600px;
    }
    
    .highlights-container {
        flex-direction: row;
        gap: var(--spacing-xl);
    }
    
    .featured-highlight {
        flex: 2;
    }
}

/* =============================================================================
   BASIC BODY AND LAYOUT STYLES
   ============================================================================= */

body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: var(--golf-dark-gray);
    line-height: 1.6;
}

/* =============================================================================
   MODAL STYLES
   ============================================================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--golf-light-green);
    margin: 10% auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px var(--golf-shadow-dark);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: var(--golf-green);
    color: var(--golf-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
}

.close {
    color: var(--golf-white);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 1;
}

.modal-body {
    padding: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
    color: var(--golf-dark-gray);
}

.form-group input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid #ddd;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--golf-green);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
}

.btn {
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--golf-green);
    color: var(--golf-white);
}

.btn-primary:hover {
    background: var(--golf-light-green);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--golf-gray);
    color: var(--golf-white);
}

.btn-secondary:hover {
    background: var(--golf-dark-gray);
}

/* =============================================================================
   LOADING & TOAST STYLES
   ============================================================================= */

.loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000;
    text-align: center;
    background: var(--golf-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px var(--golf-shadow-dark);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--golf-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.toast-container {
    position: fixed;
    top: 80px;
    right: var(--spacing-md);
    z-index: 2500;
}

.toast {
    background: var(--golf-green);
    color: var(--golf-white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 4px 12px var(--golf-shadow-dark);
    animation: toastSlideIn 0.3s ease;
}

.toast.error {
    background: #dc3545;
}

.toast.success {
    background: var(--golf-light-green);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =============================================================================
   ADMIN STYLES FOR STANDINGS, MATCHES, AND MATCH DETAILS
   Copied from admin styles.css to ensure exact matching
   ============================================================================= */

/* Standings Table */
.standings-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.standings-table table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th,
.standings-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.standings-table th {
    background-color: #2c5530;
    color: white;
    font-weight: 600;
}

.standings-table tr:hover {
    background-color: #f8f9fa;
}

.standings-table .wlt-column {
    display: none;
}

.standings-table .desktop-only {
    display: table-cell;
}

/* Matches */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.match-teams {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c5530;
}

.match-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.match-status.win {
    background-color: #d4edda;
    color: #155724;
}

.match-status.lost {
    background-color: #f8d7da;
    color: #721c24;
}

.match-status.tied {
    background-color: #fff3cd;
    color: #856404;
}

.match-status.pending {
    background-color: #cce7ff;
    color: #004085;
}

.match-status.scheduled {
    background-color: #e3f2fd;
    color: #1976d2;
}

.match-status.in-progress {
    background-color: #fff3e0;
    color: #f57c00;
}

.match-status.completed {
    background-color: #e8f5e8;
    color: #388e3c;
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
}

/* ESPN-Style Match Cards */
.match-card.completed-match {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e9ecef;
}

.match-card.scheduled-match {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e9ecef;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.match-teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.team-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.team-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: transparent;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6c757d;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 50%;
}

.team-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c5530;
    text-align: center;
    line-height: 1.2;
}

.team-record {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Completed Match Styles */
.match-score-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 140px;
}

.score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.team-score-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c5530;
    line-height: 1;
}

.final-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.final-label {
    font-size: 0.7rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.winner-badge {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Scheduled Match Styles */
.match-info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 140px;
}

.match-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.match-location,
.match-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #666;
}

.match-location i,
.match-time i {
    color: #999;
    font-size: 0.7rem;
}

/* Match Detail Content */
.match-detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.match-detail-section h3 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.leaderboard-table th:first-child,
.leaderboard-table td:first-child {
    text-align: center;
}

.leaderboard-table th:nth-child(2),
.leaderboard-table td:nth-child(2) {
    text-align: left;
}

.leaderboard-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c5530;
}

.leaderboard-table tr:hover {
    background-color: #f8f9fa;
}

/* Match Summary Styles - Desktop Only */
@media (min-width: 481px) {
    .match-summary-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        border-radius: 12px;
        padding: 25px 30px;
        margin-bottom: 25px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border: 1px solid #e9ecef;
        min-height: 120px;
    }

    .match-summary-top-bar .summary-team-left, 
    .match-summary-top-bar .summary-team-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .match-summary-top-bar .summary-team-left {
        align-items: flex-start;
    }

    .match-summary-top-bar .summary-team-right {
        align-items: flex-end;
        padding-right: 0;
        margin-right: 0;
    }

    .match-summary-top-bar .summary-team-logo {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: contain;
        flex-shrink: 0;
    }

    .match-summary-top-bar .summary-team-record {
        font-size: 1rem;
        color: #666;
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
        margin-top: 4px;
    }

    .match-summary-top-bar .summary-score-section {
        display: flex;
        align-items: center;
        gap: 15px;
        font-weight: bold;
        justify-content: center;
        flex-shrink: 0;
    }

    .match-summary-top-bar .summary-team-score {
        font-size: 3rem;
        color: #2c5530;
        font-weight: bold;
    }

    .match-summary-top-bar .summary-winner-badge {
        background: #28a745;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .match-summary-top-bar .summary-tie-badge {
        background: #ffc107;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .match-summary-top-bar .summary-final-label {
        font-size: 0.9rem;
        color: #666;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

.match-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.team-summary-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.team-summary-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.team-summary-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
}

.team-summary-info h3 {
    color: #2c5530;
    font-size: 1.4rem;
    margin: 0;
}

.competing-label {
    font-size: 0.8rem;
    font-style: italic;
    font-weight: 400;
    color: #666;
}

.team-summary-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.team-summary-score-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.team-summary-winner, .team-summary-tie {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
}

.team-summary-winner {
    background: #28a745;
}

.team-summary-tie {
    background: #ffc107;
}

.team-summary-score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c5530;
}

.team-players-table h4 {
    color: #2c5530;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.compact-table th, .compact-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.compact-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.compact-table tbody tr:last-child td {
    border-bottom: none;
}

.compact-table tbody tr.highlight-player td {
    background-color: #e8f5e8;
}

.compact-table .trophy-icon {
    color: #ffc107;
    margin-left: 5px;
}

.player-team-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0px;
    vertical-align: middle;
    object-fit: contain;
}

.match-complete-section {
    text-align: center;
    margin-bottom: 30px;
}

.leaderboard-section {
    margin-top: 20px;
}

.leaderboard-section h3 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Mobile responsive for ESPN-style match cards */
@media (max-width: 768px) {
    .team-logo {
        width: 40px;
        height: 40px;
    }
    
    .team-name {
        font-size: 0.8rem;
    }
    
    .team-record {
        font-size: 0.7rem;
    }
    
    .team-score {
        font-size: 2rem;
    }
    
    .match-info-section {
        min-width: 120px;
    }
    
    .match-location,
    .match-time {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .match-teams-row {
        gap: 8px;
    }
    
    .team-logo {
        width: 36px;
        height: 36px;
    }
    
    .team-name {
        font-size: 0.75rem;
    }
    
    .team-record {
        font-size: 0.65rem;
    }
    
    .team-score {
        font-size: 1.8rem;
    }
    
    .match-info-section {
        min-width: 100px;
    }
    
    .match-status {
        padding: 4px 12px;
        font-size: 0.7rem;
    }
    
    .match-location,
    .match-time {
        font-size: 0.7rem;
    }
    
    .final-label {
        font-size: 0.6rem;
    }
    
    .winner-badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }

    /* Mobile responsive for standings table */
    .standings-table th,
    .standings-table td {
        padding: 8px 6px;
        font-size: 0.75rem;
        text-align: center;
    }

    .standings-table .desktop-only {
        display: none;
    }

    .standings-table .wlt-column {
        display: table-cell;
    }
    .standings-table th:nth-child(2),
    .standings-table td:nth-child(2) {
        text-align: left;
    }

    /* Match Summary Mobile Optimization for 480px - ESPN Style */
    
    /* Top Summary Bar - ESPN Style */
    .match-summary-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        border-radius: 0;
        padding: 18px 12px;
        margin: 0;
        margin-left: -10px;
        margin-right: -10px;
        margin-bottom: 9px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        border: 1px solid #e9ecef;
        border-left: none;
        border-right: none;
        min-height: 120px;
        width: calc(100vw);
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .summary-team-left, .summary-team-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        flex: 1;
        min-width: 0;
    }

    .summary-team-left {
        justify-content: center;
        align-items: flex-start;
    }

    .summary-team-right {
        justify-content: center;
        align-items: flex-end;
        padding-right: 24px; /* Increased padding to keep away from edge */
        margin-right: 0;
    }

    .summary-team-logo {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: contain;
        flex-shrink: 0;
    }

    .summary-team-record {
        font-size: 0.75rem;
        color: #666;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
        text-align: center;
        margin-top: 2px;
    }

    .summary-score-section {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: bold;
        justify-content: center;
        flex-shrink: 0;
    }

    .summary-team-score {
        font-size: 2.4rem;
        color: #2c5530;
        font-weight: bold;
    }

    .summary-winner-badge {
        background: #28a745;
        color: white;
        padding: 1px 4px;
        border-radius: 3px;
        font-size: 0.55rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .summary-tie-badge {
        background: #ffc107;
        color: white;
        padding: 1px 4px;
        border-radius: 3px;
        font-size: 0.55rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .summary-final-label {
        font-size: 0.65rem;
        color: #666;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Stacked Team Cards - More Compact */
    .match-summary-grid {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 8px;
    }

    .team-summary-container {
        background: white;
        border-radius: 0;
        padding: 6px 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        border: 1px solid #e9ecef;
        border-left: none;
        border-right: none;
        width: calc(100vw);
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    /* READABLE TEAM SUMMARY HEADER - 4X LARGER */
    .team-summary-header {
        display: flex;
        align-items: center;
        gap: 4px !important;
        margin-bottom: 2px !important;
        padding-bottom: 2px !important;
        border-bottom: 1px solid #e9ecef;
        min-height: 16px !important;
        max-height: 16px !important;
        height: 16px !important;
    }

    .team-summary-image {
        width: 24px !important;
        height: 24px !important;
        border-radius: 50%;
        object-fit: contain;
        flex-shrink: 0;
    }

    .team-summary-info h3 {
        font-size: 1.2rem !important;
        margin: 0 !important;
        line-height: 1 !important;
        font-weight: 600;
        color: #2c5530;
        padding: 0 !important;
    }

    .team-summary-info h3 .competing-label {
        font-size: 0.8rem !important;
        font-style: italic;
        font-weight: 400;
        color: #666;
        margin-left: 4px;
    }


    .team-summary-info p {
        display: none;
    }

    .team-summary-score-box {
        display: none;
    }

    .team-players-table {
        width: calc(100vw);
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding-left: 0;
        padding-right: 0;
        margin-top: 0;
        margin-bottom: 0;
    }

    .team-players-table .compact-table {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .team-players-table .compact-table th,
    .team-players-table .compact-table td {
        padding-left: 12px;
        padding-right: 12px;
    }

    .team-players-table h4 {
        font-size: 0.8rem;
        margin-bottom: 6px;
        font-weight: 600;
        color: #495057;
    }

    .compact-table {
        font-size: 0.75rem;
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
    }

    .compact-table th, .compact-table td {
        padding: 4px 6px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        border: none;
    }

    .compact-table th {
        font-size: 0.7rem;
        font-weight: 600;
        background: #f8f9fa;
        color: #495057;
        border-bottom: 1px solid #e9ecef;
    }

    .compact-table td {
        border-bottom: 1px solid #f8f9fa;
    }

    .compact-table tbody tr:last-child td {
        border-bottom: none;
    }

    .compact-table th:nth-child(1) { width: 8%; }
    .compact-table th:nth-child(2) { width: 32%; }
    .compact-table th:nth-child(3) { width: 20%; }
    .compact-table th:nth-child(4) { width: 20%; }
    .compact-table th:nth-child(5) { width: 20%; }

    .player-team-logo {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin-right: 4px;
        object-fit: contain;
    }

    .compact-table .trophy-icon {
        font-size: 0.7rem;
        color: #ffc107;
        margin-left: 4px;
    }

    /* Leaderboard Mobile - Full Width */
    .leaderboard-section {
        margin-top: 16px;
        width: calc(100vw);
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding: 0 12px;
        box-sizing: border-box;
    }
    
    .leaderboard-section h3 {
        padding-left: 8px;
    }
    
    .leaderboard-section h3 {
        font-size: 14px;
        margin-bottom: 8px;
        color: #333;
    }
    
    .scoring-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: white;
        border-radius: 0;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        border: 1px solid #e9ecef;
        border-left: none;
        border-right: none;
        width: calc(100vw);
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .scoring-table {
        min-width: 600px;
        font-size: 10px;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .scoring-table th,
    .scoring-table td {
        padding: 4px 8px;
        white-space: nowrap;
    }
    
    .scoring-table th:first-child,
    .scoring-table td:first-child {
        padding-left: 20px;
    }
    
    .scoring-table th:last-child,
    .scoring-table td:last-child {
        padding-right: 12px;
    }
    
    .pos-col {
        width: 25px;
    }
    
    .player-col {
        min-width: 80px;
        max-width: 100px;
    }
    
    .player-team-logo {
        width: 12px;
        height: 12px;
        margin-right: 0px;
    }
    
    .competing-star {
        color: #ffc107;
        font-size: 8px;
        margin-left: 1px;
    }

    /* Match Complete Section Mobile */
    .match-complete-section {
        margin-top: 12px;
        text-align: center;
    }
    
    .match-complete-section .btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Enhanced Scoring Table Styles */
.scoring-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.scoring-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    font-size: 0.9rem;
}

.scoring-table th {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.scoring-table th.player-col {
    text-align: left;
    width: 150px;
    padding: 12px 15px;
    color: white;
}

.scoring-table .par-val {
    font-weight: normal;
    color: #ccc;
}

.scoring-table td {
    padding: 4px 4px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.85rem;
    vertical-align: middle;
}

.scoring-table .player-col {
    text-align: left;
    width: 150px;
    padding: 10px 15px;
    font-weight: 600;
    color: #2c5530;
}

.score-value {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    font-weight: bold;
    font-size: 1rem;
    color: #2c5530;
}

/* Score styling based on par */
.score-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.score-circle-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #dc3545;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.score-square {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.score-square-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #000;
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.score-square-outermost {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #000;
    width: 34px;
    height: 34px;
    pointer-events: none;
}

/* Score color coding */
.birdie {
    color: #dc3545;
    font-weight: bold;
}
.birdie .score-circle {
    border-color: #dc3545;
}

.eagle {
    color: #dc3545;
    font-weight: bold;
}

.bogey {
    color: #000;
    font-weight: bold;
}
.bogey .score-square {
    border-color: #000;
}

.double-bogey {
    color: #6c757d;
    font-weight: bold;
}

.triple-bogey {
    color: #000;
    font-weight: bold;
}

.competing-star {
    color: #ffc107;
    margin-left: 2px;
    font-size: 0.7rem;
}

/* Mobile responsive for scoring table */
@media (max-width: 768px) {
    .scoring-table-container {
        margin: 0 -20px;
        border-radius: 0;
    }
    
    .scoring-table {
        min-width: 600px;
        font-size: 0.8rem;
    }
    
    .scoring-table th {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
    
    .scoring-table th.player-col {
        width: 120px;
        padding: 8px 10px;
    }
    
    .scoring-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    
    .scoring-table .player-col {
        width: 120px;
        padding: 8px 10px;
    }
    
    .score-value {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .score-circle,
    .score-square {
        width: 28px;
        height: 28px;
    }
    
    .score-circle-outer,
    .score-square-outer {
        width: 36px;
        height: 36px;
    }
    
    .score-square-outermost {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .scoring-table-container {
        margin: 0 -15px;
    }

    .scoring-table {
        min-width: 500px;
        font-size: 0.75rem;
    }

    .scoring-table th {
        padding: 6px 4px;
        font-size: 0.7rem;
    }

    .scoring-table th.player-col {
        position: sticky;
        left: 0;
        z-index: 11;
        background-color: #2c5530;
        width: 100px;
        padding: 6px 8px;
    }

    .scoring-table td.player-col {
        position: sticky;
        left: 0;
        z-index: 10;
        background-color: white;
        width: 100px;
        padding: 6px 8px;
        border-right: 2px solid #4a7c59;
        box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    }

    .scoring-table td {
        padding: 6px 4px;
        font-size: 0.75rem;
    }

    .score-value {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .score-circle,
    .score-square {
        width: 24px;
        height: 24px;
    }

    .score-circle-outer,
    .score-square-outer {
        width: 30px;
        height: 30px;
    }

    .score-square-outermost {
        width: 36px;
        height: 36px;
    }

    .competing-star {
        font-size: 0.7rem;
        margin-left: 1px;
    }
}

/* =============================================================================
   LIVE SCORING STYLES
   ============================================================================= */

/* Live Scoring Button on Match Cards */
.match-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
}

.live-scoring-btn {
    background: var(--golf-gold);
    color: var(--golf-dark-gray);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
}

.live-scoring-btn:hover {
    background: #b8941f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--golf-shadow-dark);
}

/* Live Scoring Modal Styles */
.form-help {
    font-size: 0.8rem;
    color: var(--golf-gray);
    margin-top: var(--spacing-xs);
    display: block;
}

.selection-instruction {
    font-size: 1rem;
    color: var(--golf-dark-gray);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-weight: var(--font-weight-medium);
}

/* Teesheet Group Cards */
.teesheet-groups-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-height: 400px;
    overflow-y: auto;
}

.teesheet-group-card {
    background: var(--golf-white);
    border: 2px solid #e9ecef;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.teesheet-group-card:hover {
    border-color: var(--golf-green);
    background: var(--golf-cream);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--golf-shadow);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.group-header h3 {
    color: var(--golf-green);
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    margin: 0;
}

.player-count {
    background: var(--golf-green);
    color: var(--golf-white);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
}

.group-players {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.group-player {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
}

.group-player .player-team-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
}

.group-player .player-name {
    font-weight: var(--font-weight-medium);
    color: var(--golf-dark-gray);
}

.group-player .competing-star {
    color: var(--golf-gold);
    font-size: 0.8rem;
}

/* Live Scoring Interface */
.live-scoring-header {
    margin-bottom: var(--spacing-lg);
}

.warning-banner {
    background: linear-gradient(135deg, var(--golf-gold), #b8941f);
    color: var(--golf-dark-gray);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 2px 8px var(--golf-shadow);
}

.warning-banner i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-banner div {
    flex: 1;
}

.warning-banner strong {
    font-weight: var(--font-weight-bold);
    font-size: 1.1rem;
}

.back-to-matches-btn {
    background: var(--golf-green);
    color: var(--golf-white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.back-to-matches-btn:hover {
    background: var(--golf-light-green);
    transform: translateY(-1px);
}

/* Hole Cards */
.hole-card {
    background: var(--golf-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 4px 12px var(--golf-shadow);
    border-left: 4px solid var(--golf-green);
}

.hole-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid #e9ecef;
}

.hole-header h3 {
    color: var(--golf-green);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin: 0;
}

.par-indicator {
    background: var(--golf-accent-green);
    color: var(--golf-white);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
}

.hole-players {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.player-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: #f8f9fa;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    min-height: 60px;
}

.player-score-row:hover {
    background: var(--golf-cream);
}

.player-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
    min-width: 0; /* Allow text to truncate if needed */
}

.player-info .player-team-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

.player-info .player-name {
    font-weight: var(--font-weight-medium);
    color: var(--golf-dark-gray);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-input-container {
    flex-shrink: 0;
    margin-left: var(--spacing-md);
}

.score-input {
    width: 70px;
    height: 45px;
    border: 2px solid #ddd;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    color: var(--golf-dark-gray);
    transition: all 0.3s ease;
}

.score-input:focus {
    outline: none;
    border-color: var(--golf-green);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.score-input.unscored {
    background: #f8f9fa;
    border-color: #ddd;
}

.score-input.scored {
    background: var(--golf-cream);
    border-color: var(--golf-green);
    color: var(--golf-green);
}

/* Hole Actions - Individual Save Buttons */
.hole-actions {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.save-hole-btn {
    background: var(--golf-light-green);
    color: var(--golf-white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    box-shadow: 0 2px 8px var(--golf-shadow);
}

.save-hole-btn:hover:not(:disabled) {
    background: var(--golf-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--golf-shadow-dark);
}

.save-hole-btn:disabled {
    background: var(--golf-accent-green);
    cursor: not-allowed;
    opacity: 0.8;
}

/* Completed Hole Styling */
.hole-card.hole-completed {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-left-color: var(--golf-accent-green);
    box-shadow: 0 4px 12px rgba(107, 142, 35, 0.2);
}

.hole-card.hole-completed .hole-header h3 {
    color: var(--golf-accent-green);
}

.hole-card.hole-completed .par-indicator {
    background: var(--golf-accent-green);
}

/* Live Scoring Actions */
.live-scoring-actions {
    margin-top: var(--spacing-xl);
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 2px solid #e9ecef;
}

.submit-scores-btn {
    background: var(--golf-green);
    color: var(--golf-white);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: 0 4px 12px var(--golf-shadow);
}

.submit-scores-btn:hover {
    background: var(--golf-light-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--golf-shadow-dark);
}

/* Mobile Responsive for Live Scoring */
@media (max-width: 768px) {
    .hole-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .hole-header h3 {
        font-size: 1.3rem;
    }
    
    .player-score-row {
        padding: var(--spacing-sm) var(--spacing-md);
        min-height: 55px;
    }
    
    .player-info .player-team-logo {
        width: 28px;
        height: 28px;
    }
    
    .player-info .player-name {
        font-size: 0.9rem;
    }
    
    .score-input {
        width: 60px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .warning-banner {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .warning-banner i {
        font-size: 2rem;
    }
    
    .hole-card {
        padding: var(--spacing-sm);
        margin-left: -var(--spacing-md);
        margin-right: -var(--spacing-md);
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: 4px solid var(--golf-green);
        border-bottom: 4px solid var(--golf-green);
    }
    
    .hole-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .hole-header h3 {
        font-size: 1.2rem;
    }
    
    /* KEEP HORIZONTAL LAYOUT ON MOBILE - NO STACKING */
    .player-score-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--spacing-sm) var(--spacing-md);
        min-height: 50px;
        /* Remove the flex-direction: column that was causing stacking */
    }
    
    .player-info {
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
        flex: 1;
        min-width: 0;
    }
    
    .player-info .player-team-logo {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    
    .player-info .player-name {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .score-input-container {
        flex-shrink: 0;
        margin-left: var(--spacing-sm);
    }
    
    .score-input {
        width: 65px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .submit-scores-btn {
        width: 100%;
        padding: var(--spacing-lg);
        font-size: 1rem;
    }
    
    .teesheet-groups-container {
        max-height: 300px;
    }
    
    .teesheet-group-card {
        padding: var(--spacing-sm);
    }
    
    .group-header h3 {
        font-size: 1rem;
    }
    
    .group-player {
        padding: var(--spacing-xs);
    }
    
    .group-player .player-team-logo {
        width: 20px;
        height: 20px;
    }
    
    .group-player .player-name {
        font-size: 0.85rem;
    }
}
