* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #071a0f;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Timezone Info - F1 calendar style */
.timezone-info {
    text-align: center;
    margin: -15px 0 15px 0;
    padding: 8px;
    font-size: 0.9rem;
    color: #666;
    position: relative;
}

.timezone-text {
    margin-right: 8px;
}

.timezone-text strong {
    color: #2c5f35;
    font-weight: 600;
}

.timezone-settings {
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 4px;
}

.timezone-settings:hover {
    opacity: 1;
}

.timezone-selector-hidden {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
    margin-top: 4px;
}

#timezone-select {
    background: white;
    border: 1px solid #ccc;
    color: #333;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 150px;
}

#timezone-select:hover {
    border-color: #2c5f35;
}

#timezone-select:focus {
    outline: none;
    border-color: #468853;
    box-shadow: 0 0 0 2px rgba(70, 136, 83, 0.3);
}

#timezone-select option {
    background: #2c5f35;
    color: #ffffff;
    padding: 8px;
}

#timezone-select option:hover {
    background: #468853;
}

#timezone-select option:checked {
    background: #468853;
    color: #ffffff;
}

/* Header */
header {
    padding: 25px 0;
    background: linear-gradient(135deg, #2c5f35, #468853);
    margin: 0 0 30px 0;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    flex-shrink: 0;
}

.logo {
    height: 120px;
    width: auto;
    display: block;
}

.title-section {
    text-align: left;
}

header h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 12px 0 0 0;
    letter-spacing: 0.5px;
}

.domain-url {
    font-size: 1.1rem;
    color: #FFB81C;
    font-weight: 600;
    margin: 8px 0 0 0;
    letter-spacing: 0.5px;
    text-decoration: none;
}

/* Timezone abbreviation styling */
.timezone-abbr {
    opacity: 0.6;
    font-weight: 400;
}

/* Main Content */
main {
    min-height: 400px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Error State */
.error-message {
    text-align: center;
    padding: 60px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    margin: 20px 0;
}

.error-image {
    width: 240px;
    height: auto;
    margin: 16px 0 24px 0;
    opacity: 0.8;
}

.error-content h3 {
    color: #ef4444;
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.error-content p {
    color: #9ca3af;
    font-size: 1rem;
}

/* No Fixtures State */
.no-fixtures {
    text-align: center;
    padding: 80px 20px;
}

.status-message {
    font-size: 1.4rem;
    color: #e5e7eb;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Next Match Hero */
.next-match-hero {
    text-align: center;
    padding: 10px 0 60px 0;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.next-match-label {
    font-size: 1.1rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 20px;
}

.next-match-description {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.next-match-time {
    background: #e09200;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 16px;
}

.next-match-venue {
    color: #9ca3af;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Match List */
.fixtures-container {
    display: block;
}

.upcoming-matches-header {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.match-list {
    display: block;
}

.match-item {
    display: flex;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.match-item:hover {
    background: rgba(70, 136, 83, 0.05);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.match-item:last-child {
    border-bottom: none;
}

.match-time-col {
    min-width: 120px;
    margin-right: 32px;
    text-align: left;
}

.match-date {
    font-size: 0.9rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    line-height: 1;
}

.match-time {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 700;
    margin-top: 4px;
}

.match-info-col {
    flex: 1;
}

.match-teams {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
}

.match-details-row {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.match-competition {
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 500;
}

.match-venue {
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 500;
}

.match-location-badge {
    background: rgba(168, 79, 14, 0.2);
    color: #a84f0e;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Past matches styling */
.match-item.past-match {
    opacity: 0.5;
}

.match-item.past-match:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .timezone-info {
        margin: -10px 0 12px 0;
        padding: 6px;
        font-size: 0.85rem;
    }
    
    header {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    .header-content {
        flex-direction: row;
        gap: 15px;
        text-align: left;
        padding: 0 20px;
        overflow: hidden;
    }
    
    .title-section {
        text-align: left;
    }
    
    header h1 {
        font-size: 2.2rem;
        margin: 0;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .subtitle {
        font-size: 0.95rem;
        margin: 4px 0 0 0;
    }
    
    .logo {
        height: 70px;
    }
    
    .next-match-hero {
        padding: 5px 0 25px 0;
        margin-bottom: 25px;
    }
    
    .next-match-description {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .next-match-time {
        padding: 8px 16px;
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .next-match-venue {
        font-size: 0.95rem;
    }
    
    .next-match-description {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .next-match-time {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .match-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
    }
    
    /* Show teams first, then times on mobile */
    .match-info-col {
        order: 1;
        margin-bottom: 8px;
    }
    
    .match-time-col {
        order: 2;
        margin-right: 0;
        margin-bottom: 0;
        min-width: auto;
    }
    
    .match-teams {
        font-size: 1.2rem;
    }
    
    .match-details-row {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2.4rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .logo {
        height: 70px;
    }
    
    .timezone-selector-top {
        padding: 6px 10px;
    }
    
    .timezone-label {
        font-size: 0.8rem;
    }
    
    #timezone-select {
        font-size: 0.8rem;
        min-width: 120px;
    }
    
    .next-match-description {
        font-size: 1.6rem;
    }
    
    .match-details-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Subtle animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.match-item {
    animation: fadeInUp 0.4s ease-out;
}

.match-item:nth-child(1) { animation-delay: 0.05s; }
.match-item:nth-child(2) { animation-delay: 0.1s; }
.match-item:nth-child(3) { animation-delay: 0.15s; }
.match-item:nth-child(4) { animation-delay: 0.2s; }
.match-item:nth-child(5) { animation-delay: 0.25s; }

.next-match-hero {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus and accessibility */
*:focus {
    outline: 2px solid #468853;
    outline-offset: 2px;
}

/* Selection styling */
::selection {
    background: #468853;
    color: #ffffff;
}