.fp-wrap,
.fp-wrap * {
    box-sizing: border-box;
}

.fp-wrap {
    --fp-navy: #071d35;
    --fp-blue: #0d6efd;
    --fp-cyan: #22c7ef;
    --fp-green: #17a673;
    --fp-gold: #f5b942;
    --fp-red: #e74c5e;
    --fp-ink: #172033;
    --fp-muted: #687387;
    --fp-line: #e6eaf0;
    --fp-surface: #fff;
    --fp-soft: #f5f7fa;
    width: 100%;
    color: var(--fp-ink);
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    line-height: 1.7;
}

.fp-filter-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #071d35 0%, #0b3d6e 100%);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(7, 29, 53, .18);
    color: #fff;
}

.fp-filter-title,
.fp-filter-title > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fp-filter-title > div {
    display: block;
}

.fp-filter-title > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 16px;
    background: rgba(255,255,255,.1);
    font-size: 24px;
}

.fp-filter-title strong,
.fp-filter-title small {
    display: block;
}

.fp-filter-title strong {
    font-size: 18px;
}

.fp-filter-title small {
    color: rgba(255,255,255,.7);
    font-size: 12px;
}

.fp-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fp-filter-controls label {
    display: grid;
    gap: 4px;
}

.fp-filter-controls label > span {
    color: rgba(255,255,255,.7);
    font-size: 11px;
}

.fp-filter-controls select {
    min-width: 145px;
    min-height: 40px;
    padding: 0 12px 0 32px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 11px;
    outline: none;
    background: rgba(255,255,255,.1);
    color: #fff;
    font: inherit;
    font-size: 13px;
}

.fp-filter-controls select option {
    color: #111;
}

.fp-match-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.fp-single-match .fp-match-grid {
    max-width: 740px;
    margin: 0 auto;
    grid-template-columns: 1fr;
}

.fp-match-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--fp-line);
    border-radius: 22px;
    background: var(--fp-surface);
    box-shadow: 0 10px 35px rgba(24, 43, 70, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.fp-match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 45px rgba(24, 43, 70, .12);
}

.fp-match-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--fp-blue), var(--fp-cyan));
}

.fp-match-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 12px;
}

.fp-match-head > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.fp-tournament-badge,
.fp-stage-badge,
.fp-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.fp-tournament-badge {
    background: #eaf2ff;
    color: #145dbf;
}

.fp-stage-badge {
    background: #f2f4f7;
    color: #667085;
}

.fp-status-badge {
    background: #eef1f5;
    color: #596273;
}

.fp-status-badge.fp-status-scheduled {
    background: #e8f8f2;
    color: #0d855c;
}

.fp-status-badge.fp-status-live {
    background: #ffedf0;
    color: #ce2940;
    animation: fp-live-pulse 1.5s infinite;
}

.fp-status-badge.fp-status-finished {
    background: #eaf2ff;
    color: #145dbf;
}

.fp-status-badge.fp-status-closed {
    background: #f2f4f7;
    color: #667085;
}

@keyframes fp-live-pulse {
    50% { opacity: .62; }
}

.fp-kickoff {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 20px 14px;
    color: var(--fp-muted);
    font-size: 11px;
}

.fp-countdown {
    color: #c07b00;
    font-weight: 700;
}

.fp-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 176px;
    padding: 18px 22px;
    background:
        radial-gradient(circle at 50% 50%, rgba(13,110,253,.08), transparent 35%),
        linear-gradient(180deg, #fafcff 0%, #fff 100%);
    border-block: 1px solid var(--fp-line);
}

.fp-team {
    display: grid;
    justify-items: center;
    min-width: 0;
    text-align: center;
}

.fp-team-logo,
.fp-team-placeholder {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-bottom: 9px;
    border-radius: 50%;
    object-fit: contain;
}

.fp-team-logo {
    padding: 6px;
    border: 1px solid #ebeff5;
    background: #fff;
}

.fp-team-placeholder {
    background: linear-gradient(145deg, #e8f1ff, #f5f9ff);
    color: var(--fp-blue);
    font-size: 28px;
}

.fp-team strong {
    overflow: hidden;
    max-width: 100%;
    color: #101828;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-team > span:last-child {
    color: var(--fp-muted);
    font-size: 11px;
}

.fp-score-center {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.fp-vs {
    color: #98a2b3;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
}

.fp-final-score {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
}

.fp-final-score b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 38px;
    border-radius: 10px;
    background: var(--fp-navy);
    color: #fff;
    font-size: 19px;
}

.fp-final-score i {
    color: #8a94a6;
    font-style: normal;
}

.fp-score-center > span {
    color: var(--fp-muted);
    font-size: 11px;
}

.fp-prediction-form {
    padding: 18px 20px 20px;
}

.fp-form-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
}

.fp-form-title span {
    color: #101828;
    font-weight: 800;
}

.fp-form-title small {
    color: var(--fp-muted);
    font-size: 10px;
}

.fp-score-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
    align-items: end;
    gap: 8px;
}

.fp-score-inputs > i {
    padding-bottom: 10px;
    color: #98a2b3;
    font-style: normal;
    font-weight: 900;
    text-align: center;
}

.fp-score-inputs label {
    display: grid;
    gap: 6px;
}

.fp-score-inputs label > span {
    overflow: hidden;
    color: #667085;
    font-size: 11px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-stepper {
    display: grid;
    grid-template-columns: 34px minmax(38px, 1fr) 34px;
    overflow: hidden;
    min-height: 42px;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fff;
}

.fp-stepper button,
.fp-stepper input {
    min-width: 0;
    margin: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--fp-ink);
    font: inherit;
    text-align: center;
}

.fp-stepper button {
    cursor: pointer;
    color: var(--fp-blue);
    font-size: 18px;
    font-weight: 800;
}

.fp-stepper button:hover {
    background: #edf4ff !important;
}

.fp-stepper input {
    appearance: textfield;
    font-size: 18px;
    font-weight: 900;
}

.fp-stepper input::-webkit-inner-spin-button,
.fp-stepper input::-webkit-outer-spin-button {
    appearance: none;
}

.fp-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 14px;
    padding: 8px 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d6efd, #0757cf);
    box-shadow: 0 8px 18px rgba(13,110,253,.22);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: transform .2s ease, opacity .2s ease;
}

.fp-submit-button:hover {
    transform: translateY(-1px);
}

.fp-submit-button:disabled {
    cursor: wait;
    opacity: .6;
}

.fp-form-message {
    min-height: 20px;
    margin-top: 8px;
    font-size: 11px;
    text-align: center;
}

.fp-form-message.is-success { color: var(--fp-green); }
.fp-form-message.is-error { color: var(--fp-red); }

.fp-prediction-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 18px 20px;
}

.fp-prediction-summary > div {
    display: grid;
    padding: 12px;
    border-radius: 13px;
    background: var(--fp-soft);
    text-align: center;
}

.fp-prediction-summary span,
.fp-prediction-summary small {
    color: var(--fp-muted);
    font-size: 10px;
}

.fp-prediction-summary strong {
    color: var(--fp-navy);
    font-size: 20px;
}

.fp-closed-message,
.fp-transparency {
    margin: 16px 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--fp-soft);
    color: var(--fp-muted);
    font-size: 12px;
    text-align: center;
}

.fp-transparency {
    background: #eef6ff;
    text-align: right;
}

.fp-transparency span {
    color: #145dbf;
    font-weight: 800;
}

.fp-transparency p {
    margin: 3px 0 0;
}

.fp-empty-state,
.fp-filter-empty {
    grid-column: 1 / -1;
    padding: 42px 24px;
    border: 1px dashed #d6dce5;
    border-radius: 18px;
    background: #fafbfc;
    color: var(--fp-muted);
    text-align: center;
}

.fp-empty-state > span {
    display: block;
    margin-bottom: 8px;
    font-size: 32px;
}

.fp-empty-state strong,
.fp-empty-state p {
    display: block;
    margin: 0;
}

.fp-leaderboard,
.fp-history,
.fp-specials,
.fp-user-dashboard {
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid var(--fp-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(24,43,70,.08);
}

.fp-leaderboard > header,
.fp-history > header,
.fp-specials > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #071d35, #0b3d6e);
    color: #fff;
}

.fp-leaderboard > header > div,
.fp-history > header > div,
.fp-specials > header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-leaderboard h2,
.fp-history h2,
.fp-specials h2 {
    margin: 0;
    color: #fff;
    font-size: 19px;
}

.fp-leaderboard > header small,
.fp-history > header small,
.fp-specials > header small {
    color: rgba(255,255,255,.7);
}

.fp-leaderboard-list {
    padding: 12px;
}

.fp-leaderboard-list article {
    display: grid;
    grid-template-columns: 42px 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f5;
}

.fp-leaderboard-list article:last-child { border-bottom: 0; }
.fp-leaderboard-list article.is-current-user { border-radius: 14px; background: #eaf3ff; }
.fp-leaderboard-list img { border-radius: 50%; }
.fp-rank { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eef2f7; font-weight: 900; }
.fp-leaderboard-list article:nth-child(1) .fp-rank { background: #fff0bd; color: #a36c00; }
.fp-leaderboard-list article:nth-child(2) .fp-rank { background: #edf0f4; color: #657080; }
.fp-leaderboard-list article:nth-child(3) .fp-rank { background: #f8e1d5; color: #a85d31; }
.fp-leaderboard-list article > div { min-width: 0; }
.fp-leaderboard-list article > div strong,
.fp-leaderboard-list article > div small { display: block; }
.fp-leaderboard-list article > div small { color: var(--fp-muted); font-size: 11px; }
.fp-leaderboard-list article > b { color: var(--fp-blue); font-size: 20px; text-align: center; }
.fp-leaderboard-list article > b small { display: block; color: var(--fp-muted); font-size: 9px; font-weight: 500; }

.fp-history-list {
    padding: 12px;
}

.fp-history-list article {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(90px, .6fr));
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid #eef1f5;
}

.fp-history-list article:last-child { border-bottom: 0; }
.fp-history-list article > div { display: grid; }
.fp-history-list span,
.fp-history-list small { color: var(--fp-muted); font-size: 10px; }
.fp-history-list strong { color: var(--fp-ink); }
.fp-history-match strong { font-size: 14px; }

.fp-special-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
}

.fp-special-card {
    padding: 18px;
    border: 1px solid var(--fp-line);
    border-radius: 17px;
    background: linear-gradient(180deg, #fff, #fbfcff);
}

.fp-special-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fp-special-head span,
.fp-special-head b {
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f4f8;
    color: #596273;
    font-size: 10px;
}

.fp-special-head b {
    background: #fff3cf;
    color: #9a6800;
}

.fp-special-card h3 {
    margin: 12px 0 4px;
    color: #101828;
    font-size: 16px;
}

.fp-special-card > p {
    margin: 0 0 12px;
    color: var(--fp-muted);
    font-size: 11px;
}

.fp-special-options {
    display: grid;
    gap: 7px;
}

.fp-special-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border: 1px solid #e1e6ee;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
}

.fp-special-options label.is-selected,
.fp-special-options label:has(input:checked) {
    border-color: #8ebcf8;
    background: #edf5ff;
}

.fp-special-result {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: var(--fp-soft);
    font-size: 12px;
}

.fp-special-result > b { color: var(--fp-blue); }

.fp-user-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #071d35, #0b3d6e);
    color: #fff;
}

.fp-user-hero img { border: 3px solid rgba(255,255,255,.2); border-radius: 50%; }
.fp-user-hero span { color: var(--fp-cyan); font-size: 11px; font-weight: 800; }
.fp-user-hero h2 { margin: 2px 0; color: #fff; }
.fp-user-hero p { margin: 0; color: rgba(255,255,255,.7); font-size: 12px; }

.fp-user-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--fp-line);
}

.fp-user-stats > div {
    display: grid;
    justify-items: center;
    padding: 18px;
    background: #fff;
}

.fp-user-stats span { color: var(--fp-muted); font-size: 11px; }
.fp-user-stats strong { color: var(--fp-blue); font-size: 25px; }

.fp-login-required {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px solid #dce4ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(24,43,70,.08);
}

.fp-login-required > span { font-size: 30px; }
.fp-login-required > div { flex: 1; }
.fp-login-required strong { display: block; }
.fp-login-required p { margin: 2px 0 0; color: var(--fp-muted); font-size: 11px; }
.fp-login-required a, .fp-login-required .fp-sms-login-button { padding: 10px 16px; border: 0; border-radius: 11px; background: var(--fp-blue); color: #fff !important; font: inherit; font-weight: 800; text-decoration: none !important; cursor: pointer; }

@media (max-width: 900px) {
    .fp-match-grid,
    .fp-special-grid { grid-template-columns: 1fr; }
    .fp-filter-bar { align-items: stretch; flex-direction: column; }
    .fp-filter-controls label { flex: 1; }
    .fp-filter-controls select { width: 100%; }
    .fp-history-list article { grid-template-columns: 1.4fr repeat(3, .6fr); }
}

@media (max-width: 640px) {
    .fp-filter-bar { padding: 16px; border-radius: 16px; }
    .fp-filter-controls { display: grid; grid-template-columns: 1fr; }
    .fp-match-card { border-radius: 17px; }
    .fp-match-head { align-items: flex-start; padding-inline: 15px; }
    .fp-kickoff { align-items: flex-start; flex-direction: column; padding-inline: 15px; }
    .fp-teams { grid-template-columns: minmax(0,1fr) 68px minmax(0,1fr); min-height: 156px; padding: 14px 10px; }
    .fp-team-logo,
    .fp-team-placeholder { width: 52px; height: 52px; }
    .fp-team strong { font-size: 12px; }
    .fp-prediction-form { padding: 15px; }
    .fp-form-title { align-items: flex-start; flex-direction: column; }
    .fp-stepper { grid-template-columns: 30px minmax(34px,1fr) 30px; }
    .fp-leaderboard > header,
    .fp-history > header,
    .fp-specials > header { align-items: flex-start; flex-direction: column; padding: 17px; }
    .fp-leaderboard-list article { grid-template-columns: 32px 40px minmax(0,1fr) auto; gap: 8px; padding-inline: 7px; }
    .fp-leaderboard-list article > b { font-size: 16px; }
    .fp-history-list article { grid-template-columns: repeat(3, 1fr); }
    .fp-history-match { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px dashed #e0e5ec; }
    .fp-user-hero { align-items: flex-start; padding: 18px; }
    .fp-user-stats { grid-template-columns: repeat(2, 1fr); }
    .fp-login-required { align-items: flex-start; flex-wrap: wrap; }
    .fp-login-required a, .fp-login-required .fp-sms-login-button { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .fp-match-card,
    .fp-submit-button,
    .fp-status-badge.fp-status-live { animation: none; transition: none; }
}

/* 3.0.4 - optional football group badge */
.fp-group-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700;background:#f1f5f9;color:#334155;margin-inline-start:5px}

/* 3.0.6 - Elementor preview + responsive column hardening */
.fp-wrap {
    min-width: 0;
    isolation: isolate;
}

.fp-wrap .fp-match-grid,
.fp-wrap .fp-match-card,
.fp-wrap .fp-filter-bar,
.fp-wrap .fp-filter-controls,
.fp-wrap .fp-filter-controls label,
.fp-wrap .fp-teams,
.fp-wrap .fp-team,
.fp-wrap .fp-prediction-form {
    min-width: 0;
}

.fp-wrap label,
.fp-wrap select,
.fp-wrap input,
.fp-wrap button {
    font-family: inherit;
}

.fp-wrap label {
    margin: 0;
}

.fp-match-card {
    container-type: inline-size;
    container-name: fp-match-card;
    height: 100%;
}

/* Keep Elementor/theme global rules from stretching logos and controls. */
.fp-wrap .fp-team-logo {
    display: block;
    max-width: 100%;
    aspect-ratio: 1 / 1;
}

.fp-wrap .fp-filter-controls select {
    width: auto;
    max-width: 100%;
    line-height: 1.4;
}

.fp-wrap .fp-submit-button,
.fp-wrap .fp-stepper button {
    text-decoration: none;
}

/* Card internals respond to the actual card width, not only viewport width.
   This keeps 3/4/5/6-column Elementor layouts usable. */
@container fp-match-card (max-width: 520px) {
    .fp-match-head {
        padding: 15px 16px 10px;
    }

    .fp-kickoff {
        padding: 0 16px 12px;
    }

    .fp-teams {
        grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
        min-height: 154px;
        padding: 15px 12px;
    }

    .fp-team-logo,
    .fp-team-placeholder {
        width: 56px;
        height: 56px;
    }

    .fp-team strong {
        font-size: 13px;
    }

    .fp-prediction-form {
        padding: 15px 16px 17px;
    }
}

@container fp-match-card (max-width: 360px) {
    .fp-match-head,
    .fp-kickoff,
    .fp-form-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .fp-match-head {
        gap: 8px;
    }

    .fp-kickoff {
        gap: 4px;
    }

    .fp-teams {
        grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
        gap: 5px;
        min-height: 138px;
        padding: 12px 7px;
    }

    .fp-team-logo,
    .fp-team-placeholder {
        width: 44px;
        height: 44px;
        margin-bottom: 6px;
    }

    .fp-team-logo {
        padding: 4px;
    }

    .fp-team strong {
        font-size: 11px;
    }

    .fp-team > span:last-child,
    .fp-score-center > span {
        font-size: 9px;
    }

    .fp-vs {
        font-size: 17px;
    }

    .fp-prediction-form {
        padding: 12px;
    }

    .fp-score-inputs {
        grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
        gap: 4px;
    }

    .fp-stepper {
        grid-template-columns: 26px minmax(30px, 1fr) 26px;
        min-height: 38px;
    }

    .fp-stepper button {
        font-size: 15px;
    }

    .fp-stepper input {
        font-size: 15px;
    }
}

@container fp-match-card (max-width: 255px) {
    .fp-teams {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-block: 14px;
    }

    .fp-score-center {
        order: 2;
    }

    .fp-home-team {
        order: 1;
    }

    .fp-away-team {
        order: 3;
    }

    .fp-score-inputs {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .fp-score-inputs > i {
        display: none;
    }
}

/* Elementor editor iframe can be narrower than the public page. */
.elementor-editor-active .fp-wrap,
.elementor-edit-area .fp-wrap {
    width: 100%;
}


/* 3.0.7 - football score stepper boundary states */
.fp-stepper button:disabled,
.fp-stepper button[aria-disabled="true"] {
    cursor: not-allowed !important;
    opacity: .32;
    color: #98a2b3 !important;
    background: transparent !important;
    pointer-events: none;
}

.fp-stepper button:disabled:hover,
.fp-stepper button[aria-disabled="true"]:hover {
    background: transparent !important;
    transform: none !important;
}


/* 1.3.0 - football standings + top players Elementor widgets */
.fp-standings-widget {
    display: grid;
    gap: 14px;
}

.fp-standings-filter {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid var(--fp-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(24, 43, 70, .06);
}

.fp-standings-filter > div:first-child strong,
.fp-standings-filter > div:first-child small {
    display: block;
}

.fp-standings-filter > div:first-child strong {
    color: var(--fp-ink);
    font-size: 14px;
    font-weight: 800;
}

.fp-standings-filter > div:first-child small {
    margin-top: 2px;
    color: var(--fp-muted);
    font-size: 10px;
}

.fp-standings-filter-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fp-standings-filter-fields label {
    display: grid;
    gap: 4px;
    margin: 0;
}

.fp-standings-filter-fields label > span {
    color: var(--fp-muted);
    font-size: 10px;
}

.fp-standings-filter select,
.fp-top-period-filter select {
    min-width: 185px;
    min-height: 40px;
    margin: 0;
    padding: 6px 12px 6px 40px;
    border: 1px solid #dce3ec;
    border-radius: 11px;
    outline: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 14px 14px;
    color: var(--fp-ink);
    font: inherit;
    font-size: 12px;
    direction: rtl;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.fp-standings-filter select:focus,
.fp-top-period-filter select:focus {
    border-color: #8ab9f8;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .09);
}

.fp-standings-card {
    overflow: hidden;
    border: 1px solid var(--fp-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(24, 43, 70, .08);
}

.fp-standings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 19px 22px;
    border-bottom: 1px solid var(--fp-line);
    background: #fff;
}

.fp-standings-head h2,
.fp-standings-head small {
    display: block;
    margin: 0;
}

.fp-standings-head h2 {
    color: #172033;
    font-size: 18px;
    font-weight: 900;
}

.fp-standings-head small {
    margin-top: 2px;
    color: var(--fp-muted);
    font-size: 10px;
}

.fp-standings-head > span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2866b7;
    font-size: 10px;
    font-weight: 800;
}

.fp-standings-scroll {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.fp-standings-table {
    width: 100%;
    min-width: 870px;
    border: 0;
    border-collapse: collapse;
    background: #fff;
    color: var(--fp-ink);
    font-size: 12px;
    text-align: center;
}

.fp-standings-table th,
.fp-standings-table td {
    padding: 12px 10px;
    border: 0;
    border-bottom: 1px solid #eef1f5;
    vertical-align: middle;
    white-space: nowrap;
}

.fp-standings-table thead th {
    background: #fbfcfe;
    color: #65728a;
    font-size: 10px;
    font-weight: 800;
}

.fp-standings-table thead th:nth-child(2),
.fp-standings-table tbody td:nth-child(2) {
    min-width: 190px;
    text-align: right;
}

.fp-standings-table tbody tr:nth-child(odd) {
    background: #fff;
}

.fp-standings-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.fp-standings-table tbody tr:last-child td {
    border-bottom: 0;
}

.fp-standings-table tbody tr:hover {
    background: #f4f8ff;
}

.fp-standing-rank {
    width: 44px;
    color: #475467;
    font-weight: 900;
}

.fp-standing-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.fp-standing-team .fp-team-logo,
.fp-standing-team .fp-team-placeholder {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    margin: 0;
    padding: 3px;
    border-radius: 50%;
    font-size: 14px;
}

.fp-standing-team strong {
    overflow: hidden;
    max-width: 170px;
    color: #172033;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-standing-points {
    color: #0d6efd;
    font-size: 14px;
    font-weight: 900;
}

.fp-standing-gd {
    direction: ltr;
    font-weight: 700;
}

.fp-form-badges {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    direction: ltr;
}

.fp-form-badges > span {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 900;
}

.fp-form-badges .is-w { background: #119b6d; }
.fp-form-badges .is-d { background: #718096; }
.fp-form-badges .is-l { background: #e3264f; }
.fp-form-badges .is-empty { background: #edf0f4; color: #8a94a6; }

.fp-standings-widget.is-loading [data-fp-standings-body],
.fp-top-players.is-loading [data-fp-top-players-body] {
    opacity: .48;
    pointer-events: none;
    transition: opacity .18s ease;
}

.fp-top-period-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.fp-top-period-filter > span {
    color: rgba(255,255,255,.72);
    font-size: 10px;
}

.fp-top-period-filter select {
    min-width: 125px;
    min-height: 36px;
    border-color: rgba(255,255,255,.2);
    background: rgba(255,255,255,.1);
    color: #fff;
}

.fp-top-period-filter select option {
    color: #111;
}

.fp-top-players .fp-leaderboard {
    margin-top: 0;
}

@media (max-width: 700px) {
    .fp-standings-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .fp-standings-filter-fields {
        display: grid;
        grid-template-columns: 1fr;
    }

    .fp-standings-filter select {
        width: 100%;
        min-width: 0;
    }

    .fp-standings-head {
        align-items: flex-start;
        padding: 16px;
    }

    .fp-top-period-filter {
        width: 100%;
        justify-content: space-between;
    }

    .fp-top-period-filter select {
        flex: 1;
        max-width: 180px;
    }
}




/* v1.3.4 — volleyball-style prediction footer/actions */
.fp-prediction-footer{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
    margin-top:12px!important;
    padding-top:10px!important;
    border-top:1px solid #e5e7eb!important;
    direction:ltr!important;
}
.fp-current-prediction{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    min-width:0!important;
    direction:rtl!important;
    color:#64748b!important;
    font-size:11px!important;
    white-space:nowrap!important;
}
.fp-current-prediction strong{
    color:#1d4ed8!important;
    font-size:13px!important;
    font-weight:900!important;
    direction:ltr!important;
    unicode-bidi:plaintext!important;
}
.fp-current-prediction-empty{min-height:1px!important}
.fp-prediction-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:7px!important;
    direction:rtl!important;
}
.fp-prediction-footer .fp-submit-button{
    width:auto!important;
    min-width:94px!important;
    min-height:36px!important;
    height:36px!important;
    margin:0!important;
    padding:7px 16px!important;
    border-radius:999px!important;
    box-shadow:none!important;
    font-size:11px!important;
    font-weight:900!important;
}
.fp-delete-prediction{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:36px!important;
    min-width:36px!important;
    max-width:36px!important;
    height:36px!important;
    min-height:36px!important;
    padding:0!important;
    margin:0!important;
    border:1px solid #fecaca!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#dc2626!important;
    cursor:pointer!important;
    font-size:15px!important;
    line-height:1!important;
    box-shadow:none!important;
    transition:.18s ease!important;
}
.fp-delete-prediction:hover{background:#fef2f2!important;border-color:#fca5a5!important;transform:translateY(-1px)!important}
.fp-delete-prediction:disabled{opacity:.55!important;cursor:wait!important;transform:none!important}
@media(max-width:520px){
    .fp-prediction-footer{grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;margin-top:9px!important;padding-top:8px!important}
    .fp-current-prediction{font-size:9px!important;gap:3px!important;overflow:hidden!important;text-overflow:ellipsis!important}
    .fp-current-prediction strong{font-size:11px!important}
    .fp-prediction-actions{gap:5px!important}
    .fp-prediction-footer .fp-submit-button{min-width:70px!important;height:34px!important;min-height:34px!important;padding:6px 11px!important;font-size:10px!important}
    .fp-delete-prediction{width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;font-size:13px!important}
}
