/* ============================================================
   FootballScore Matchday — widget.css
   All 4 widget modes. Mobile-first. One-line match layout.
   Built by 3in1websolutions.com
   ============================================================ */

/* ── Reset & base ── */
.fs-wrap,
.fs-wrap * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Shared shell ── */
.fs-wrap {
    background: #0b1535;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

/* ── Empty state ── */
.fs-empty {
    padding: 16px;
    color: #475569;
    font-size: 13px;
    text-align: center;
}

/* ── Header ── */
.fs-hdr {
    background: #0d1a4a;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.fs-hdr-l {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.fs-logo {
    background: #29b6f6;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fs-hdr-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fs-hdr-sub {
    color: #475569;
    font-size: 9px;
    margin-top: 1px;
}
.fs-live-pill {
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Date separator bar ── */
.fs-date-bar {
    background: #070e25;
    padding: 5px 14px;
    font-size: 9px;
    font-weight: 700;
    color: #29b6f6;
    letter-spacing: .07em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fs-date-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #29b6f6;
    display: inline-block;
    flex-shrink: 0;
}

/* ── Match row — ONE LINE layout ── */
.fs-match {
    display: flex;
    align-items: center;
    padding: 7px 14px;
    border-bottom: 0.5px solid #131f4a;
    gap: 6px;
    min-height: 38px;
}
.fs-match:last-child {
    border-bottom: none;
}
.fs-match--live {
    background: #0d1a4a;
}

/* Status cell (FT / LIVE / time) */
.fs-st {
    width: 36px;
    flex-shrink: 0;
    text-align: left;
}
.fs-s {
    font-size: 8px;
    font-weight: 700;
    display: block;
    line-height: 1.3;
}
.fs-s--ft   { color: #4ade80; }
.fs-s--live { color: #ef4444; }
.fs-s--up   { color: #64748b; }

/* The single flex row: flag code name | score | name code flag */
.fs-row {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.fs-flag {
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}
.fs-code {
    font-size: 8px;
    font-weight: 700;
    color: #475569;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}
.fs-name {
    font-size: 10px;
    font-weight: 500;
    color: #cbd5e1;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.fs-name--home { text-align: left; }
.fs-name--away { text-align: right; }

/* Score box */
.fs-score-box {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 0 6px;
}
.fs-sc {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    min-width: 10px;
    text-align: center;
}
.fs-sc--dim { color: #1e3a5f; }
.fs-sep     { font-size: 11px; color: #334155; font-weight: 500; }
.fs-sep--up { font-size: 9px;  color: #1e3a5f; }

/* ── Footer ── */
.fs-footer {
    background: #070e25;
    padding: 6px 14px;
    text-align: center;
    font-size: 8px;
    color: #1e3a5f;
}

/* ============================================================
   INLINE / POST WIDGET
   ============================================================ */
.fs-inline .fs-hdr {
    border-radius: 0;
}
.fs-inline-scroll {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.fs-inline-scroll::-webkit-scrollbar { height: 3px; }
.fs-inline-scroll::-webkit-scrollbar-track { background: #070e25; }
.fs-inline-scroll::-webkit-scrollbar-thumb { background: #29b6f6; border-radius: 2px; }

.fs-card {
    min-width: 140px;
    max-width: 160px;
    padding: 10px 10px;
    border-right: 0.5px solid #131f4a;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    scroll-snap-align: start;
}
.fs-card--live { background: #0d1a4a; }

.fs-cbadge {
    font-size: 8px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
}
.fs-cbadge--ft   { background: #14532d; color: #4ade80; }
.fs-cbadge--live { background: #7f1d1d; color: #fca5a5; }
.fs-cbadge--up   { background: #172554; color: #7dd3fc; }

.fs-card-teams { width: 100%; }
.fs-card-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
}
.fs-cf {
    font-size: 13px;
    width: 18px;
    flex-shrink: 0;
}
.fs-cn {
    font-size: 9px;
    color: #cbd5e1;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fs-csc {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    width: 14px;
    text-align: right;
    flex-shrink: 0;
}
.fs-csc--dim { color: #334155; }
.fs-cvs {
    text-align: center;
    font-size: 8px;
    color: #1e3a5f;
    padding: 1px 0;
}

/* ============================================================
   POPUP WIDGET
   ============================================================ */
.fs-popup-wrap { position: relative; display: inline-block; }

.fs-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0b1535;
    border: 1px solid #29b6f6;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: Arial, sans-serif;
}
.fs-popup-btn:hover { background: #0d1a4a; }
.fs-popup-btn-logo {
    background: #29b6f6;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fs-popup-live {
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
}

/* Overlay */
.fs-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.fs-popup-overlay.fs-open {
    display: flex;
}
.fs-popup-modal {
    background: #0b1535;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.fs-popup-close {
    background: none;
    border: none;
    color: #475569;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    font-family: Arial, sans-serif;
}
.fs-popup-close:hover { color: #fff; }

/* Filter pills */
.fs-filters {
    display: flex;
    gap: 5px;
    padding: 8px 14px;
    background: #070e25;
    overflow-x: auto;
    flex-shrink: 0;
}
.fs-filters::-webkit-scrollbar { display: none; }
.fs-pill {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    background: #131f4a;
    color: #475569;
    border: none;
    font-family: Arial, sans-serif;
}
.fs-pill--active,
.fs-pill:hover { background: #29b6f6; color: #0b1535; }

.fs-popup-body {
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}
.fs-popup-body::-webkit-scrollbar { width: 3px; }
.fs-popup-body::-webkit-scrollbar-thumb { background: #29b6f6; }

/* ============================================================
   MOBILE FULL-PAGE WIDGET
   ============================================================ */
.fs-mobile .fs-hdr { background: #0d1a4a; }

.fs-mtabs {
    display: flex;
    background: #070e25;
    border-bottom: 0.5px solid #131f4a;
}
.fs-mtab {
    flex: 1;
    padding: 9px 4px;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: Arial, sans-serif;
}
.fs-mtab--active {
    color: #29b6f6;
    border-bottom-color: #29b6f6;
}
.fs-mtab:hover { color: #cbd5e1; }

.fs-mob-body {
    max-height: 420px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.fs-mob-body::-webkit-scrollbar { width: 3px; }
.fs-mob-body::-webkit-scrollbar-thumb { background: #29b6f6; }

.fs-mob-footer {
    background: #070e25;
    padding: 7px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fs-mob-footer-l { font-size: 8px; color: #1e3a5f; }
.fs-mob-footer-r { font-size: 8px; color: #29b6f6; }

/* ============================================================
   RESPONSIVE — narrow sidebars and mobile screens
   ============================================================ */
@media (max-width: 320px) {
    .fs-code { display: none; }
    .fs-name { font-size: 9px; }
    .fs-sc   { font-size: 12px; }
    .fs-flag { font-size: 12px; }
}

@media (max-width: 260px) {
    .fs-flag { display: none; }
    .fs-score-box { padding: 0 3px; }
}
