/* ── WEBA Score Live Widget ─────────────────────────────────────────────── */

.weba-score-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 16px 0;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Loading */
.weba-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    color: #888;
}

.weba-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #1a6b3c;
    border-radius: 50%;
    animation: weba-spin 0.8s linear infinite;
    margin-bottom: 10px;
}

@keyframes weba-spin { to { transform: rotate(360deg); } }

/* Header */
.weba-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.weba-title {
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    flex: 1;
}

/* Status badges */
.weba-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.weba-live    { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.weba-complete { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.weba-pending  { background: #fff8e1; color: #f57f17; border: 1px solid #ffe082; }

/* Score banner */
.weba-score-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
    gap: 8px;
}

.weba-team {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    gap: 4px;
}

.weba-team-away {
    align-items: flex-end;
    text-align: right;
}

.weba-team-name {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.weba-score {
    font-size: 2rem;
    font-weight: 800;
    color: #1a6b3c;
    line-height: 1;
}

.weba-vs {
    font-size: 0.9rem;
    color: #999;
    font-weight: 600;
    padding: 0 8px;
    flex-shrink: 0;
}

/* Rink table */
.weba-rink-table,
.weba-standings-table,
.weba-fixtures-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.weba-rink-table th,
.weba-standings-table th,
.weba-fixtures-table th {
    background: #1a6b3c;
    color: #fff;
    padding: 7px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
}

.weba-rink-table td,
.weba-standings-table td,
.weba-fixtures-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.weba-rink-table tr:last-child td,
.weba-standings-table tr:last-child td,
.weba-fixtures-table tr:last-child td {
    border-bottom: none;
}

.weba-rink-table tr:hover td,
.weba-standings-table tr:hover td,
.weba-fixtures-table tr:hover td {
    background: #fafafa;
}

.weba-rink-score,
.weba-fixture-score {
    font-weight: 700;
    color: #1a6b3c;
    text-align: center;
}

/* Tournament sections */
.weba-standings { margin-bottom: 14px; }

.weba-group-title,
.weba-section-title {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #555 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 12px 0 6px !important;
}

/* End info */
.weba-end-info {
    font-size: 0.85rem;
    color: #666;
    margin: 4px 0 12px;
}

/* Updated timestamp */
.weba-updated {
    font-size: 0.72rem;
    color: #aaa;
    text-align: right;
    margin: 8px 0 0;
}

/* Error */
.weba-error {
    color: #c62828;
    font-size: 0.85rem;
    padding: 10px;
    background: #ffebee;
    border-radius: 6px;
    border: 1px solid #ef9a9a;
}

/* Responsive */
@media (max-width: 480px) {
    .weba-score { font-size: 1.5rem; }
    .weba-team-name { font-size: 0.78rem; }
    .weba-rink-table th, .weba-rink-table td,
    .weba-standings-table th, .weba-standings-table td,
    .weba-fixtures-table th, .weba-fixtures-table td {
        padding: 5px 6px;
        font-size: 0.78rem;
    }
}
