/* ══════════════════════════════════════════════════════
   Sunrise FM – World Cup 2026 All Fixtures Styles
   ══════════════════════════════════════════════════════ */

:root {
    --swca-accent: #e2001a;
}

.swca-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0a0e1a;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    max-width: 680px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

/* Header */
.swca-header {
    background: var(--swca-accent);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.swca-trophy { font-size: 1.4rem; }

.swca-title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.03em;
    flex: 1;
}

/* Day group */
.swca-day-group {
    border-bottom: 2px solid rgba(255,255,255,0.07);
}
.swca-day-group:last-child { border-bottom: none; }

.swca-day-header {
    background: rgba(255,255,255,0.06);
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* TODAY highlight */
.swca-day--today .swca-day-header {
    background: rgba(226,0,26,0.18);
    color: #fff;
}

/* Past days — slightly dimmed */
.swca-day--past .swca-day-header {
    color: rgba(255,255,255,0.35);
}

/* TODAY badge */
.swca-today-badge {
    background: var(--swca-accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.06em;
}

/* Match rows */
.swca-match {
    padding: 11px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}
.swca-match:last-child { border-bottom: none; }
.swca-match:hover { background: rgba(255,255,255,0.04); }

.swca-stage {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 7px;
}

.swca-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.swca-team {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
}

.swca-home { justify-content: flex-end; text-align: right; }
.swca-away { justify-content: flex-start; text-align: left; }

.swca-flag { font-size: 1.3rem; line-height: 1; }

.swca-team-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Winning team highlighted */
.swca-winner .swca-team-name {
    color: #fff;
    font-weight: 800;
}

/* Non-winning team in finished match */
.swca-status-finished .swca-team:not(.swca-winner) .swca-team-name {
    color: rgba(255,255,255,0.45);
}

/* Score / KO block */
.swca-score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 82px;
    gap: 4px;
}

.swca-score {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
}

.swca-ko-time {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

/* Status badges */
.swca-live-badge {
    background: #00c853;
    color: #000;
    font-size: 0.63rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    animation: swca-pulse 1.4s infinite;
    letter-spacing: 0.05em;
}

.swca-ht-badge {
    background: #ff9800;
    color: #000;
    font-size: 0.63rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
}

.swca-ft-badge {
    color: rgba(255,255,255,0.4);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

@keyframes swca-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

/* Status row tinting */
.swca-status-in_play  { background: rgba(0,200,83,0.06); }
.swca-status-finished { opacity: 0.82; }

/* No matches / error */
.swca-no-matches,
.swca-error {
    padding: 20px 18px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-align: center;
}
.swca-error { color: #ff6b6b; }

/* Footer */
.swca-footer {
    background: rgba(255,255,255,0.04);
    padding: 8px 16px;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
    text-align: center;
}
.swca-updating { transition: color 0.3s; }
.swca-flash    { color: #00c853 !important; }

/* Responsive */
@media (max-width: 480px) {
    .swca-team-name   { font-size: 0.78rem; }
    .swca-score       { font-size: 1.05rem; }
    .swca-flag        { font-size: 1.05rem; }
    .swca-score-block { min-width: 64px; }
    .swca-title       { font-size: 0.85rem; }
}
