/* ══════════════════════════════════════════════════════
   Sunrise FM – World Cup 2026 Widget Styles
   ══════════════════════════════════════════════════════ */

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

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

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

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

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

.swc-date {
    font-size: 0.78rem;
    opacity: 0.9;
    white-space: nowrap;
}

/* Match list */
.swc-matches {
    padding: 8px 0;
}

.swc-match {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s;
}

.swc-match:last-child { border-bottom: none; }
.swc-match:hover { background: rgba(255,255,255,0.04); }

.swc-stage {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
}

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

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

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

.swc-flag { font-size: 1.4rem; line-height: 1; }

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

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

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

.swc-ko-time {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
}

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

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

.swc-ft-badge {
    color: rgba(255,255,255,0.45);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

@keyframes swc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

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

.swc-error { color: #ff6b6b; }

/* Footer */
.swc-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;
}

.swc-updating { transition: color 0.3s; }
.swc-flash { color: #00c853 !important; }

/* Responsive */
@media (max-width: 420px) {
    .swc-team-name { font-size: 0.8rem; }
    .swc-score { font-size: 1.1rem; }
    .swc-flag { font-size: 1.1rem; }
    .swc-score-block { min-width: 62px; }
}
