/* ===========================================================================
   SCHEDULE PAGE CSS
   Extracted from schedule-original.css - Schedule-specific components only
   
   Contains:
   - Page header and stats section
   - Sticky navigation bar and controls
   - Week organization system  
   - Match card layouts and styles
   - Modal system for match details
   - Schedule controls and filters
   - Standings table components
   - Mobile responsive overrides
   =========================================================================== */

/* ===== PAGE HEADER ===== */

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.page-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.page-subtitle {
    font-size: 20px;
    color: #666;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== STATS SECTION ===== */

.stats-section {
    margin-bottom: 60px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.stat {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a1a1a 0%, #666 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.stat:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* ===== STICKY NAVIGATION BAR ===== */

.sticky-nav {
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: none;
    border-bottom: 1px solid #e5e5e5;
    z-index: 999;
    transition: top 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 0;
}

.sticky-nav.visible {
    top: 68px; /* Position directly below header */
}

.sticky-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.schedule-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.quick-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.go-to-top-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.go-to-top-btn:hover {
    background: #000;
    transform: translateY(-1px);
}

.standings-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.admin-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.admin-links {
    display: flex;
    gap: 12px;
}

.admin-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.admin-link:hover {
    background: #f0f0f0;
}

.compact-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.compact-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

.compact-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.compact-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.compact-stat-number {
    font-weight: 600;
    color: #1a1a1a;
}

.navigation-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.week-selector {
    position: relative;
}

.week-dropdown {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.week-dropdown:hover {
    background: #000;
}

.team-selector {
    position: relative;
}

.team-dropdown {
    background: #f5f5f5;
    color: #1a1a1a;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    min-width: 180px;
}

.team-dropdown:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* ===== WEEK ORGANIZATION SYSTEM ===== */

/* Update main content padding to account for sticky nav */
.schedule-content {
    padding-top: 20px;
}

/* Week anchor targets for smooth scrolling */
.week-section {
    scroll-margin-top: 160px;
    margin-bottom: 48px;
}

.week-header {
    background: #1a1a1a;
    color: #ffffff;
    padding: 24px 32px;
    margin-bottom: 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.week-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.week-date {
    font-size: 18px;
    color: #cccccc;
    font-weight: 500;
    margin-left: auto;
    margin-right: auto;
}

.week-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ===== MATCH CARD LAYOUTS ===== */

.matches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.match {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    padding: 32px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.clickable-match {
    cursor: pointer;
    z-index: 950;
    position: relative;
}

.clickable-match::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a1a1a 0%, #666 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.clickable-match:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.clickable-match:hover::before {
    transform: scaleX(1);
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.team-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.team-name {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.team-name.winner {
    color: #22c55e;
}

.score {
    font-size: 24px;
    font-weight: 900;
    color: #1a1a1a;
    margin-top: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    min-width: 50px;
    text-align: center;
}

.score.winner {
    background: #22c55e;
    color: #ffffff;
}

.vs {
    font-size: 14px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.match-date {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.edit-score-hint {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.match-details {
    display: block;
    margin-top: 0;
    margin-bottom: 24px;
    padding-top: 0;
}

.match-time {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.match-status {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-status.scheduled {
    background: #e3f2fd;
    color: #1976d2;
}

.match-status.pending {
    background: #fff3e0;
    color: #f57c00;
}

.match-status.overdue {
    background: #ffebee;
    color: #d32f2f;
}

.match-status.completed {
    background: #e8f5e8;
    color: #2e7d32;
}

/* ===== FILTER SECTION ===== */

.filter-section {
    margin-bottom: 40px;
}

.team-filter {
    text-align: center;
    margin-bottom: 24px;
}

.team-filter select {
    padding: 16px 24px;
    font-size: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
    color: #1a1a1a;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 300px;
}

.team-filter select:hover {
    border-color: #1a1a1a;
}

.team-filter select:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.1);
}

.selected-team {
    background: #f8f9fa;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    padding: 20px 32px;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 24px;
}

.selected-team a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.selected-team a:hover {
    color: #1a1a1a;
}

/* ===== MODAL SYSTEM FOR MATCH DETAILS ===== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideInUp 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #ffffff;
    padding: 24px 32px;
    margin-bottom: 0;
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.modal-status-badge.status-scheduled {
    background: #22c55e;
}

.modal-status-badge.status-pending {
    background: #f59e0b;
}

.modal-status-badge.status-overdue {
    background: #ef4444;
}

.modal-status-badge.status-completed {
    background: #6b7280;
}

.modal-title {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.modal-subtitle {
    color: #cccccc;
    font-size: 18px;
    margin-bottom: 4px;
}

.modal-date {
    color: #cccccc;
    font-size: 14px;
    opacity: 0.8;
}

/* Modal Enhanced */
.modal-enhanced {
    max-width: 700px;
    padding: 0;
    overflow: hidden;
}

.modal-enhanced .modal-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #ffffff;
    padding: 24px 32px;
    margin-bottom: 0;
    position: relative;
}

.modal-enhanced .modal-title {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 8px;
}

.modal-enhanced .modal-subtitle {
    color: #cccccc;
    font-size: 18px;
    margin-bottom: 4px;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
}

.tab-btn {
    flex: 1;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: #1a1a1a;
    background: #f0f0f0;
}

.tab-btn.active {
    color: #1a1a1a;
    background: #ffffff;
    border-bottom-color: #1a1a1a;
}

/* Tab Content */
.tab-content {
    padding: 32px;
    flex: 1;
    overflow-y: auto;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-content {
    padding: 24px 32px 32px 32px;
    flex: 1;
    overflow-y: auto;
}

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
}

.team-contact {
    text-align: left;
}

.team-contact h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    min-height: 44px;
    transition: background-color 0.2s ease;
}

.contact-email:hover {
    background: #e9ecef;
}

.contact-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

/* Score Form Styles */
.score-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.verification-section {
    margin-bottom: 32px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e9ecef;
}

.score-entry-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

/* Match Details */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
    flex-shrink: 0;
}

.detail-value {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    text-align: right;
    word-wrap: break-word;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.quick-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
}

.team-contact {
    text-align: left;
}

.team-contact h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 14px;
    color: #666;
    min-height: 44px;
}

.contact-item svg {
    flex-shrink: 0;
}

.contact-item a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-info .vs,
.contact-divider {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #999;
    margin: 16px 0;
    padding: 8px;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    min-height: 44px;
    transition: all 0.2s ease;
}

.contact-email:hover {
    background: #e9ecef;
}

.contact-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.contact-actions .btn {
    flex: 1;
}

/* Responsive contact layout */
@media (min-width: 768px) {
    .contact-info {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: flex-start;
        gap: 24px;
    }
    
    .team-contact {
        text-align: center;
    }
    
    .contact-info .vs {
        margin: 0;
        align-self: center;
    }
}

/* Score Entry */
.score-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.verification-section {
    margin-bottom: 32px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    color: #1a1a1a;
    transition: border-color 0.2s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.score-entry-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.vs-divider {
    font-size: 18px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.team-score-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    transition: border-color 0.2s ease;
    gap: 20px;
}

.team-score-input:focus-within {
    border-color: #1a1a1a;
}

.team-score-input label {
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
    font-size: 16px;
}

.team-score-input input {
    width: 100px;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.team-score-input input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #1a1a1a;
    color: #ffffff;
}

.btn-primary:hover {
    background: #000000;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #1a1a1a;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: #1a1a1a;
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STANDINGS COMPONENTS ===== */

/* Standings Table Container */
.standings-container {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    margin-bottom: 32px;
}

.standings-header {
    background: #1a1a1a;
    color: #ffffff;
    padding: 24px 32px;
    text-align: center;
}

.standings-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.standings-subtitle {
    color: #cccccc;
    font-size: 14px;
    font-weight: 500;
}

/* Standings Table */
.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    background: #f8f9fa;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e5e5;
}

.standings-table th.text-center {
    text-align: center;
}

.standings-table td {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.standings-table tr:hover td {
    background: #f8f9fa;
}

.standings-table tr:last-child td {
    border-bottom: none;
}

/* Table Cell Styles - Using specific selectors to avoid conflicts */
.standings-table .rank {
    font-weight: 700;
    font-size: 18px;
    color: #1a1a1a;
    text-align: center;
    width: 80px;
}

.standings-table .rank.top-3 {
    color: #22c55e;
    font-weight: 900;
}

.standings-table .team-name {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.standings-table .mobile-record {
    display: none;
    font-size: 12px;
    color: #666;
    font-weight: 400;
    margin-top: 4px;
}

.standings-table td.stat {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 20px !important;
    text-align: center;
    font-weight: 500;
    color: #1a1a1a;
    position: static !important;
    overflow: visible !important;
    transition: none !important;
}

.standings-table td.stat::before {
    display: none !important;
}

.standings-table td.win-percentage {
    font-weight: 700 !important;
    color: #22c55e !important;
}

.standings-table td.point-differential.positive {
    color: #22c55e !important;
    font-weight: 600 !important;
}

.standings-table td.point-differential.negative {
    color: #ef4444 !important;
    font-weight: 600 !important;
}

/* ===== MOBILE RESPONSIVE OVERRIDES ===== */

@media (max-width: 768px) {
    /* TEMPORARILY DISABLE STICKY NAV ON MOBILE */
    .sticky-nav {
        display: none !important;
    }
    
    /* Page Header Mobile Responsive */
    .page-title {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    /* Stats Section Mobile Responsive */
    .stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .stat {
        padding: 24px 16px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    /* Ensure matches are visible on mobile */
    .matches {
        display: grid !important;
    }
    
    .week {
        display: block !important;
    }
    
    .week-header {
        padding: 20px 24px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .week-title {
        font-size: 24px;
    }
    
    .week-date {
        font-size: 16px;
        margin: 0;
    }
    
    .matches {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .match {
        padding: 20px 16px;
    }
    
    .match-teams {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .team-name {
        font-size: 15px;
        line-height: 1.2;
        margin-bottom: 4px;
        min-height: 2.6em;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .score {
        font-size: 20px;
        padding: 6px 12px;
        margin-top: 6px;
        min-width: 40px;
    }
    
    .vs {
        font-size: 12px;
        padding: 0 8px;
    }
    
    .match-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .match-status {
        order: 1;
    }
    
    .match-date {
        order: 2;
        font-size: 12px;
    }
    
    .edit-score-hint {
        order: 3;
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .sticky-nav.visible {
        top: 60px;
        z-index: 998;
    }
    
    /* Ensure mobile nav menu doesn't interfere */
    .nav-menu.active {
        z-index: 1000;
    }
    
    .sticky-nav-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .schedule-controls {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .week-dropdown,
    .team-dropdown {
        width: 100%;
        min-width: auto;
    }
    
    .compact-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .compact-stats {
        gap: 12px;
        justify-content: center;
    }
    
    .quick-actions {
        justify-content: center;
    }
    
    .go-to-top-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* Modal mobile styles */
    .modal.show {
        padding: 10px;
        align-items: flex-start;
        padding-top: 40px;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-title {
        font-size: 20px;
        line-height: 1.2;
    }
    
    .modal-subtitle {
        font-size: 16px;
    }
    
    .modal-enhanced {
        width: 95%;
        max-width: none;
        max-height: 95vh;
        display: flex;
        flex-direction: column;
    }
    
    .modal-enhanced .modal-header {
        flex-shrink: 0;
    }
    
    .tab-content {
        padding: 24px;
    }
    
    .match-details {
        margin-bottom: 20px;
    }
    
    .detail-row {
        padding: 6px 0;
        align-items: center;
    }
    
    .detail-label {
        font-size: 13px;
        font-weight: 500;
    }
    
    .detail-value {
        font-size: 13px;
        font-weight: 600;
    }
    
    .score-entry-section {
        flex-direction: column;
        gap: 16px;
    }
    
    .vs-divider {
        font-size: 16px;
        margin: 8px 0;
    }
    
    .team-score-input {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }
    
    .team-score-input label {
        text-align: center;
        font-size: 15px;
    }
    
    .team-score-input input {
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
    }
    
    .verification-section {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .contact-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-info {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: flex-start;
        gap: 24px;
    }
    
    .team-contact {
        text-align: center;
    }
    
    .contact-info .vs {
        margin: 0;
        align-self: center;
    }
    
    .contact-details {
        gap: 8px;
    }
    
    .score-entry-section {
        flex-direction: column;
        gap: 16px;
    }
    
    .verification-section {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .contact-details {
        gap: 8px;
    }
    
    .contact-item {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 40px;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        min-height: 48px;
        font-size: 15px;
    }
    
    /* Standings responsive */
    .standings-controls {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .standings-header {
        padding: 20px 16px;
    }
    
    .standings-title {
        font-size: 20px;
    }
    
    .standings-table {
        font-size: 14px;
    }
    
    /* Hide less important columns on mobile */
    .standings-table th:nth-child(3),  /* Played */
    .standings-table th:nth-child(4),  /* Wins */
    .standings-table th:nth-child(5),  /* Losses */
    .standings-table th:nth-child(7),  /* Points For */
    .standings-table th:nth-child(8),  /* Points Against */
    .standings-table td:nth-child(3),
    .standings-table td:nth-child(4),
    .standings-table td:nth-child(5),
    .standings-table td:nth-child(7),
    .standings-table td:nth-child(8) {
        display: none;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 16px 8px;
    }
    
    .standings-table .rank {
        width: 50px;
        font-size: 16px;
    }
    
    .standings-table .team-name {
        font-size: 14px;
    }
    
    .standings-table .mobile-record {
        display: block;
        font-size: 13px;
        color: #666;
        font-weight: 500;
        margin-top: 4px;
    }
}

/* Extra small mobile - simplify further */
@media (max-width: 480px) {
    .standings-table th:nth-child(9), /* Point Diff */
    .standings-table td:nth-child(9) {
        display: none;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 12px 6px;
    }
    
    .standings-table .rank {
        width: 60px;
        font-size: 14px;
    }
    
    .standings-table .team-name {
        font-size: 13px;
    }
}

/* Event-Based League Styles */
.event-content {
    margin-top: 24px;
}

.view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    justify-content: center;
}

.toggle-btn {
    padding: 12px 24px;
    border: 2px solid #e5e5e5;
    background: #ffffff;
    color: #666;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.toggle-btn.active {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #ffffff;
}

.content-view {
    display: none;
}

.content-view.active {
    display: block;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.event-card {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-card:hover {
    border-color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.event-card.completed {
    border-color: #22c55e;
    background: #f0fdf4;
}

.event-card.upcoming {
    border-color: #3b82f6;
    background: #eff6ff;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f5f5f5;
}

.event-info h3.event-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.event-meta {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #666;
}

.event-type {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.event-order {
    color: #666;
}

.event-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-status.completed {
    background: #22c55e;
    color: white;
}

.event-status.upcoming {
    background: #3b82f6;
    color: white;
}

.event-details {
    padding: 20px;
}

.event-schedule {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.schedule-item svg {
    color: #999;
}

.event-description {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.event-stats {
    display: flex;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-action {
    padding: 16px 20px;
    border-top: 1px solid #f5f5f5;
    text-align: center;
}

/* No Events State */
.no-events {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.no-events-content {
    text-align: center;
    max-width: 400px;
}

.no-events-content svg {
    color: #d1d5db;
    margin-bottom: 16px;
}

.no-events-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.no-events-content p {
    color: #666;
    line-height: 1.6;
}

/* Overall Standings Table */
.standings-table {
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e5e5e5;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 80px 1fr 120px 100px 120px;
    background: #f8f9fa;
    border-bottom: 2px solid #e5e5e5;
    font-weight: 600;
    color: #1a1a1a;
}

.table-header > div {
    padding: 16px 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-body {
    display: flex;
    flex-direction: column;
}

.standings-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px 100px 120px;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s ease;
}

.standings-row:hover {
    background: #f8f9fa;
}

.standings-row:last-child {
    border-bottom: none;
}

.standings-row > div {
    padding: 16px 12px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.rank-col {
    font-weight: 600;
    color: #1a1a1a;
    justify-content: center;
}

.participant-col {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.participant-col strong {
    font-weight: 600;
    color: #1a1a1a;
}

.team-name {
    font-size: 12px;
    color: #666;
}

.points-col,
.events-col,
.avg-col {
    justify-content: center;
    font-weight: 500;
    color: #1a1a1a;
}

.loading-message,
.error-message,
.no-standings {
    text-align: center;
    padding: 48px 24px;
    color: #666;
}

.no-standings h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .view-toggle {
        flex-direction: column;
        align-items: center;
    }
    
    .toggle-btn {
        width: 200px;
        text-align: center;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .event-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 4px;
    }
    
    .event-stats {
        justify-content: space-around;
    }
    
    .table-header,
    .standings-row {
        grid-template-columns: 60px 1fr 80px 60px 80px;
        font-size: 12px;
    }
    
    .table-header > div,
    .standings-row > div {
        padding: 12px 8px;
    }
}

/* ===== ENHANCED STANDINGS FEATURES ===== */

/* Better table hover states */
.standings-table tr:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

/* Enhanced rank column styling */
.standings-table .rank {
    width: 60px;
    min-width: 60px;
}

/* Improved table cell padding for better spacing */
.standings-table td {
    padding: 18px 16px;
    vertical-align: middle;
}

/* Better table header styling */
.standings-table th {
    background: #f8f9fa;
    padding: 16px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    border-bottom: 2px solid #e5e5e5;
}