/* FIFA Sports Hub — Frontend */
:root {
    --fsh-accent: #1a6b3c;
    --fsh-bg:     #0f1923;
    --fsh-card:   #1c2836;
    --fsh-border: rgba(255,255,255,0.07);
    --fsh-text:   #e8eaed;
    --fsh-muted:  #7a8a99;
    --fsh-live:   #e74c3c;
    --fsh-gold:   #f5c518;
    --fsh-qualify:#1a6b3c;
}

.fsh-hub {
    background: var(--fsh-bg);
    border-radius: 12px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--fsh-text);
    margin: 24px 0;
    border: 1px solid var(--fsh-border);
    font-size: 14px;
}

/* Header */
.fsh-hub-header {
    background: var(--fsh-accent);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fsh-logo { font-size: 20px; }
.fsh-hub-title { font-weight: 700; font-size: 16px; flex: 1; }
.fsh-live-dot {
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: fsh-blink 1.2s infinite;
    display: none;
}
.fsh-live-dot.visible { display: block; }
@keyframes fsh-blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.fsh-update-time { font-size: 11px; opacity: 0.8; }
.fsh-refresh-all {
    background: rgba(255,255,255,0.15);
    border: none; color: #fff;
    padding: 5px 12px; border-radius: 20px;
    cursor: pointer; font-size: 12px;
    transition: background 0.2s;
}
.fsh-refresh-all:hover { background: rgba(255,255,255,0.3); }

/* Tabs */
.fsh-tabs-nav {
    display: flex;
    background: var(--fsh-card);
    border-bottom: 1px solid var(--fsh-border);
    overflow-x: auto;
}
.fsh-tab-btn {
    background: none; border: none;
    color: var(--fsh-muted);
    padding: 11px 18px;
    cursor: pointer; font-size: 13px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}
.fsh-tab-btn:hover { color: var(--fsh-text); }
.fsh-tab-btn.active {
    color: var(--fsh-text);
    border-bottom-color: var(--fsh-accent);
}
.fsh-tab-pane { display: none; }
.fsh-tab-pane.active { display: block; }

/* Section */
.fsh-section { padding: 0; }
.fsh-section-head {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    font-weight: 600; font-size: 13px;
    border-bottom: 1px solid var(--fsh-border);
    background: var(--fsh-card);
}
.fsh-demo-tag {
    background: #c0392b; color: #fff;
    font-size: 10px; padding: 2px 7px;
    border-radius: 10px; font-weight: 600;
}
.fsh-empty {
    padding: 30px; text-align: center;
    color: var(--fsh-muted); font-size: 14px;
}

/* Match rows */
.fsh-matches-list { padding: 6px 0; }
.fsh-match {
    display: flex; align-items: center;
    padding: 10px 18px; gap: 10px;
    border-bottom: 1px solid var(--fsh-border);
    transition: background 0.15s;
}
.fsh-match:last-child { border-bottom: none; }
.fsh-match:hover { background: rgba(255,255,255,0.03); }
.fsh-match.fsh-live {
    border-left: 3px solid var(--fsh-live);
    background: rgba(231,76,60,0.05);
}
.fsh-team { flex: 1; font-size: 14px; font-weight: 500; }
.fsh-home { text-align: right; }
.fsh-away { text-align: left; }
.fsh-scorebox {
    min-width: 100px; text-align: center;
    display: flex; flex-direction: column;
    align-items: center; gap: 2px;
}
.fsh-score-num { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.fsh-min { font-size: 11px; color: var(--fsh-muted); }
.fsh-pulse-dot {
    width: 7px; height: 7px;
    background: var(--fsh-live);
    border-radius: 50%;
    animation: fsh-blink 1s infinite;
}

/* Table */
.fsh-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px;
}
.fsh-table th {
    background: var(--fsh-card);
    padding: 8px 12px;
    text-align: center;
    color: var(--fsh-muted);
    font-weight: 600; font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--fsh-border);
}
.fsh-table td {
    padding: 9px 12px;
    text-align: center;
    border-bottom: 1px solid var(--fsh-border);
}
.fsh-table tr:last-child td { border-bottom: none; }
.fsh-table tr:hover td { background: rgba(255,255,255,0.02); }
.fsh-team-name { text-align: left !important; font-weight: 500; }
.fsh-pts { font-weight: 700; color: var(--fsh-text); }
.fsh-qualify td { background: rgba(26,107,60,0.12); }
.fsh-qualify td:first-child { border-left: 3px solid var(--fsh-qualify); }
.fsh-group-label {
    padding: 8px 18px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fsh-accent);
    background: var(--fsh-card);
    border-bottom: 1px solid var(--fsh-border);
    border-top: 1px solid var(--fsh-border);
    margin-top: 4px;
}

/* Top scorers medals */
.fsh-top1 td { color: var(--fsh-gold); }
.fsh-top3 td:first-child { font-size: 16px; }

/* Upcoming */
.fsh-upcoming-list { padding: 6px 0; }
.fsh-upcoming-row {
    display: flex; align-items: center;
    gap: 14px; padding: 10px 18px;
    border-bottom: 1px solid var(--fsh-border);
}
.fsh-upcoming-row:last-child { border-bottom: none; }
.fsh-up-date { color: var(--fsh-muted); font-size: 12px; min-width: 100px; }
.fsh-up-teams { font-size: 14px; font-weight: 500; }
.fsh-up-teams strong { color: var(--fsh-accent); margin: 0 6px; }

/* Footer */
.fsh-hub-footer {
    display: flex; justify-content: space-between;
    align-items: center;
    padding: 8px 18px;
    font-size: 11px; color: var(--fsh-muted);
    background: var(--fsh-card);
    border-top: 1px solid var(--fsh-border);
}
.fsh-demo-badge a { color: var(--fsh-accent); }

/* Mobile */
@media (max-width: 480px) {
    .fsh-match { padding: 8px 12px; }
    .fsh-team  { font-size: 12px; }
    .fsh-score-num { font-size: 15px; }
    .fsh-table th, .fsh-table td { padding: 7px 6px; font-size: 12px; }
}

/* Venue + extras */
.fsh-venue { width:100%; font-size:10px; color:var(--fsh-muted); text-align:center; margin-top:2px; padding-top:2px; border-top:1px solid var(--fsh-border); }
.fsh-flag  { width:18px; height:18px; border-radius:2px; vertical-align:middle; margin:0 4px; }
.fsh-left  { text-align:left !important; }
.fsh-qualify-legend { padding:8px 18px; font-size:11px; color:var(--fsh-muted); display:flex; align-items:center; gap:6px; }
.fsh-q-dot { width:10px; height:10px; background:var(--fsh-qualify); border-radius:2px; display:inline-block; }
.fsh-up-left { display:flex; flex-direction:column; gap:2px; min-width:160px; }
.fsh-up-venue { font-size:11px; color:var(--fsh-muted); }
.fsh-badge-free { background:#1a6b3c; color:#fff; font-size:10px; padding:2px 8px; border-radius:10px; font-weight:600; margin-left:8px; vertical-align:middle; }
