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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
    min-height: 100vh;
    padding: 20px;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #ffffff;
    font-size: clamp(2rem, 6vw, 2.8rem);
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}

h1 span {
    display: inline-block;
    margin-right: 12px;
    font-size: clamp(1.8rem, 5.5vw, 2.5rem);
}

.timers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .timers-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .timers-grid {
        gap: 30px;
    }
}

.timer-card {
    background: rgba(30, 30, 45, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .timer-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

.league-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    text-align: center;
    position: relative;
}

.league-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.league-header h2 {
    color: #ffffff;
    font-size: clamp(1.25rem, 4.5vw, 1.6rem);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
}

.timer-content {
    padding: 20px 16px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .timer-content {
        padding: 28px 24px;
        min-height: 260px;
    }
}

.in-progress-banner {
    background: rgba(255, 193, 7, 0.1);
    border-bottom: 2px solid rgba(255, 193, 7, 0.5);
    color: #ffc107;
    padding: 10px 16px;
    text-align: center;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.loading {
    text-align: center;
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 500;
}

.error {
    text-align: center;
    color: #ff6b6b;
    font-size: 1rem;
    font-weight: 500;
}

.matchday-info {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.matchday-number {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.multiple-matches {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin-top: 6px;
}

.next-match {
    background: transparent;
    padding: 16px 0;
    margin-bottom: 20px;
}

.match-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
    transition: all 0.2s ease;
}

.match-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.match-item:last-of-type {
    margin-bottom: 0;
}

.team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    max-width: 45%;
}

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

@media (min-width: 768px) {
    .team {
        gap: 10px;
    }
}

.team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

@media (min-width: 768px) {
    .team-logo {
        width: 32px;
        height: 32px;
    }
}

.team-name {
    font-size: clamp(0.75rem, 3vw, 0.95rem);
    font-weight: 600;
    color: #e8e8e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    line-height: 1.2;
}

.vs {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    color: #667eea;
    font-weight: 700;
    padding: 0 8px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .vs {
        padding: 0 12px;
    }
}

.match-time {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 16px;
    font-weight: 400;
}

.countdown {
    text-align: center;
}

.countdown-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.countdown-timer {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}

.countdown-timer.urgent {
    color: #ff6b6b;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.footer {
    text-align: center;
    color: #667eea;
    font-size: 0.85rem;
    padding: 30px 20px;
    opacity: 0.6;
    font-weight: 500;
}

