/*
Theme Name: FootballLive24 FBL24
Theme URI: https://footballlive24.com/
Author: Smart Media
Description: Premium football live scores, fixtures, standings, competitions, players and news theme.
Version: 4.0.0
Text Domain: football-live
*/

/* ==========================================================================
   FBL24 Global Premium Design System
   ========================================================================== */

:root {
    --primary: #dc2626;
    --primary-dark: #991b1b;
    --primary-soft: rgba(220, 38, 38, 0.14);
    --primary-border: rgba(248, 113, 113, 0.28);
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.13);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.13);
    --info: #3b82f6;
    --info-soft: rgba(59, 130, 246, 0.13);

    --bg-dark: #020617;
    --bg-deep: #030712;
    --surface-dark: #0f172a;
    --surface-dark-2: #111827;
    --surface-dark-3: #172033;
    --card-bg: rgba(15, 23, 42, 0.88);
    --card-bg-strong: #0f172a;

    --text-color: #f8fafc;
    --text-soft: #e2e8f0;
    --text-muted: #94a3b8;
    --text-faint: #64748b;

    --border-dark: rgba(148, 163, 184, 0.16);
    --border-strong: rgba(148, 163, 184, 0.28);
    --border-red: rgba(220, 38, 38, 0.34);

    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 10px;
    --radius-pill: 999px;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.22);
    --shadow-red: 0 16px 34px rgba(220, 38, 38, 0.22);

    --container: 1440px;
    --font-body: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Teko", "Outfit", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --ease: 180ms ease;
}

/* ==========================================================================
   Reset, Base, WordPress Defaults
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: var(--bg-dark);
}

body {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deep) 100%);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.admin-bar .fbl24-main-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .fbl24-main-header {
        top: 46px;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--text-color);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

main {
    display: block;
    min-width: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

::selection {
    background: rgba(220, 38, 38, 0.35);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.hidden {
    display: none !important;
}

.sr-only,
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.screen-reader-text:focus {
    top: 10px;
    left: 10px;
    z-index: 100000;
    width: auto !important;
    height: auto !important;
    padding: 10px 14px !important;
    margin: 0 !important;
    clip: auto !important;
    border-radius: var(--radius);
    background: #fff;
    color: var(--bg-dark);
    font-weight: 900;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.site,
.fbl24-page,
.fbl-page,
.page-content {
    min-width: 0;
}

.fbl-container,
.fbl24-container,
.content-container {
    width: min(var(--container), calc(100% - 24px));
    margin-inline: auto;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: var(--text-color);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

h1,
h2,
.display-title,
.fbl-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.3rem, 7vw, 5.2rem);
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3.8rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
}

p {
    margin-top: 0;
    color: var(--text-muted);
}

.text-muted,
.muted,
.fbl-muted {
    color: var(--text-muted);
}

.fbl-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--border-red);
    border-radius: var(--radius-pill);
    background: var(--primary-soft);
    color: #fecaca;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

/* ==========================================================================
   Header Compatibility
   ========================================================================== */

.fbl24-main-header {
    isolation: isolate;
}

.fbl24-main-header a,
.fbl24-main-header button {
    -webkit-tap-highlight-color: transparent;
}

.fbl24-main-header .fbl24-user-name,
.user-name-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown,
.fbl24-profile-dropdown {
    z-index: 9995;
}

/* ==========================================================================
   Buttons and Action Controls
   ========================================================================== */

.fbl-btn,
.btn,
.button,
button.fbl-btn,
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: var(--surface-dark-2);
    color: var(--text-color);
    font-weight: 900;
    cursor: pointer;
    transition: transform var(--ease), background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}

.fbl-btn:hover,
.btn:hover,
.button:hover,
button.fbl-btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
    background: #1e293b;
    color: #fff;
}

.fbl-btn-primary,
.btn-primary,
.button-primary,
.btn-premium {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: var(--shadow-red);
}

.fbl-btn-primary:hover,
.btn-primary:hover,
.button-primary:hover,
.btn-premium:hover {
    background: linear-gradient(135deg, #ef4444, var(--primary-dark));
}

.fbl-btn-ghost,
.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
}

.fbl-icon-btn,
.icon-btn {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.84);
    color: var(--text-soft);
    cursor: pointer;
    transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.fbl-icon-btn:hover,
.icon-btn:hover {
    transform: translateY(-1px);
    border-color: var(--border-red);
    background: var(--primary-soft);
    color: #fff;
}

button:disabled,
.is-disabled,
[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none !important;
}

/* ==========================================================================
   Cards, Panels, Badges
   ========================================================================== */

.fbl-card,
.football-card,
.app-card,
.dashboard-card,
.match-card,
.league-card,
.player-card,
.news-card,
.post-card,
.homepro-match,
.comp-card,
.fblp-card,
.fpd-panel,
.ld-content-box,
.fce-card {
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.92));
    box-shadow: var(--shadow-soft);
}

.fbl-card,
.football-card,
.app-card,
.dashboard-card {
    padding: 16px;
}

a.fbl-card,
a.football-card,
a.match-card,
a.league-card,
a.player-card,
a.news-card,
a.post-card,
a.homepro-match,
a.comp-card,
a.fblp-card {
    transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

a.fbl-card:hover,
a.football-card:hover,
a.match-card:hover,
a.league-card:hover,
a.player-card:hover,
a.news-card:hover,
a.post-card:hover,
a.homepro-match:hover,
a.comp-card:hover,
a.fblp-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-red);
    box-shadow: var(--shadow);
}

.fbl-card-title,
.card-title {
    color: #fff;
    font-weight: 900;
    line-height: 1.2;
}

.fbl-card-meta,
.card-meta {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.fbl-badge,
.badge,
.status-badge,
.comp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-live,
.is-live,
.status-live {
    border-color: var(--border-red);
    background: var(--primary-soft);
    color: #fecaca;
}

.badge-finished,
.status-finished {
    border-color: rgba(16, 185, 129, 0.28);
    background: var(--success-soft);
    color: #a7f3d0;
}

.badge-upcoming,
.status-upcoming {
    border-color: rgba(59, 130, 246, 0.28);
    background: var(--info-soft);
    color: #bfdbfe;
}

.badge-premium,
.badge-top,
.comp-badge--hot {
    border-color: rgba(245, 158, 11, 0.34);
    background: var(--warning-soft);
    color: #fde68a;
}

/* ==========================================================================
   Forms, Search, Dropdowns
   ========================================================================== */

label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: rgba(2, 6, 23, 0.78);
    color: var(--text-color);
    outline: 0;
    transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

input,
select {
    min-height: 44px;
    padding: 0 13px;
}

textarea {
    min-height: 120px;
    padding: 12px 13px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #718096;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(248, 113, 113, 0.62);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
    background: rgba(2, 6, 23, 0.96);
}

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #94a3b8 50%),
        linear-gradient(135deg, #94a3b8 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 13px) calc(50% - 3px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.search-bar,
.fbl-search,
.homepro-search,
.comp-search,
.fblp-search-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: rgba(2, 6, 23, 0.78);
    color: var(--text-muted);
}

.search-bar input,
.fbl-search input,
.homepro-search input,
.comp-search input,
.fblp-search-box input {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.dropdown-menu,
.profile-dropdown,
.fbl24-profile-dropdown {
    border: 1px solid var(--border-dark);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
}

/* ==========================================================================
   Match Cards and Score UI
   ========================================================================== */

.match-card,
.homepro-match,
.fce-match-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    color: inherit;
}

.match-card__league,
.homepro-match-league,
.fce-league-pill {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.match-card__league img,
.homepro-match-league img,
.fce-league-pill img {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 2px;
}

.match-team,
.match-card__team,
.homepro-team {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.match-team img,
.match-card__team img,
.homepro-team img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 3px;
}

.match-team-name,
.homepro-team-name {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-score,
.score-box,
.homepro-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.match-time,
.kickoff-time,
.homepro-time {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
}

/* ==========================================================================
   League, Player, News Cards
   ========================================================================== */

.league-card,
.comp-card,
.player-card,
.fblp-card,
.news-card,
.post-card {
    position: relative;
    display: flex;
    min-width: 0;
    color: inherit;
    overflow: hidden;
}

.league-card,
.comp-card {
    align-items: center;
    gap: 12px;
    padding: 14px;
}

.league-card img,
.comp-logo img,
.ld-logo-box img {
    object-fit: contain;
}

.league-logo,
.comp-logo,
.ld-logo-box,
.team-logo,
.player-photo,
.fblp-photo {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: #fff;
}

.league-logo,
.comp-logo {
    width: 54px;
    height: 54px;
    padding: 7px;
}

.league-name,
.comp-card__name,
.player-name,
.fblp-name strong,
.news-title {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #fff;
    font-weight: 900;
    line-height: 1.2;
}

.league-country,
.comp-card__country,
.player-meta,
.fblp-name span,
.news-meta {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.player-card,
.fblp-card {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    text-align: center;
}

.player-photo,
.fblp-photo {
    width: 86px;
    height: 86px;
    overflow: hidden;
    padding: 3px;
    border-radius: 999px;
    background: var(--surface-dark-2);
}

.player-photo img,
.fblp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.player-stats,
.fblp-statline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.player-stats > *,
.fblp-statline > * {
    min-width: 0;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: rgba(2, 6, 23, 0.66);
    padding: 8px;
}

.news-card,
.post-card {
    flex-direction: column;
}

.news-card img,
.post-card img,
.news-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--surface-dark-2);
}

.news-card__body,
.post-card__body,
.news-content {
    display: grid;
    gap: 10px;
    padding: 14px;
}

/* ==========================================================================
   Tables and Standings
   ========================================================================== */

.table-wrap,
.fbl-table-wrap,
.standings-table-wrap,
.fpd-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: var(--card-bg);
}

.fbl-table,
.standing-table,
.standings-table,
.fpd-table,
.ld-table {
    min-width: 720px;
}

.fbl-table th,
.standing-table th,
.standings-table th,
.fpd-table th,
.ld-table th {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border-dark);
    background: rgba(2, 6, 23, 0.82);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.fbl-table td,
.standing-table td,
.standings-table td,
.fpd-table td,
.ld-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    color: var(--text-soft);
    font-weight: 700;
    vertical-align: middle;
    white-space: nowrap;
}

.fbl-table tr:hover td,
.standing-table tr:hover td,
.standings-table tr:hover td {
    background: rgba(255, 255, 255, 0.035);
}

.rank-cell,
.points-cell {
    color: #fff;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.team-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.team-cell img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 3px;
}

.form-chip {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: var(--radius-sm);
    background: #334155;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.form-chip.win,
.form-chip.W {
    background: #059669;
}

.form-chip.draw,
.form-chip.D {
    background: #64748b;
}

.form-chip.loss,
.form-chip.L {
    background: #dc2626;
}

/* ==========================================================================
   Loaders, Skeletons, Empty and Error States
   ========================================================================== */

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

@keyframes fbl-shimmer {
    100% { transform: translateX(100%); }
}

.loader,
.fbl-loader,
.loading-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(148, 163, 184, 0.20);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: fbl-spin 0.85s linear infinite;
}

.skeleton,
.skeleton-card,
.fbl-skeleton {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(148, 163, 184, 0.10);
}

.skeleton::after,
.skeleton-card::after,
.fbl-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: fbl-shimmer 1.4s infinite;
}

.empty-state,
.fbl-empty,
.error-state,
.fbl-error,
.homepro-empty,
.fce-empty,
.fpd-state {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 28px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.62);
    color: var(--text-muted);
    text-align: center;
}

.empty-state i,
.fbl-empty i,
.error-state i,
.fbl-error i,
.fce-empty i,
.fpd-state i {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 34px;
}

.empty-state h2,
.fbl-empty h2,
.error-state h2,
.fbl-error h2,
.fpd-state h1 {
    margin: 0 0 8px;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3.2rem);
    text-transform: uppercase;
}

.error-state,
.fbl-error {
    border-color: rgba(248, 113, 113, 0.36);
    background: rgba(127, 29, 29, 0.18);
}

/* ==========================================================================
   Modals and Toasts
   ========================================================================== */

.modal,
.fbl-modal,
#auth-modal {
    color: var(--text-color);
}

.modal-content,
.fbl-modal-content,
#auth-modal-content {
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: var(--surface-dark);
    box-shadow: var(--shadow);
}

.toast,
.fbl-toast {
    position: fixed;
    right: 16px;
    bottom: 92px;
    z-index: 10000;
    max-width: min(360px, calc(100vw - 32px));
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    box-shadow: var(--shadow);
    padding: 12px 14px;
    font-weight: 800;
}

.toast.is-error,
.fbl-toast.is-error {
    border-color: var(--border-red);
    background: rgba(127, 29, 29, 0.96);
}

/* ==========================================================================
   Footer and Mobile Bottom Navigation
   ========================================================================== */

footer {
    color: var(--text-muted);
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-weight: 800;
    transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.footer-link:hover {
    transform: translateX(2px);
    border-color: var(--border-dark);
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
}

.footer-social {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.86);
    color: #fff;
    transition: transform var(--ease), background var(--ease), border-color var(--ease);
}

.footer-social:hover {
    transform: translateY(-2px);
    border-color: transparent;
}

.fbl24-ad-slot {
    position: relative;
    isolation: isolate;
}

.fbl24-ad-slot .fbl24-ad-label {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 1;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.78);
    color: var(--text-faint);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1;
    padding: 5px 8px;
    text-transform: uppercase;
}

.fbl24-ad-slot.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    animation: fbl24AdSheen 1.2s linear infinite;
}

@keyframes fbl24AdSheen {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

.mobile-bottom-link {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 54px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.mobile-bottom-link i {
    margin-bottom: 4px;
    font-size: 17px;
}

.mobile-bottom-link:hover,
.mobile-bottom-link[aria-current="page"],
.mobile-bottom-link.is-active {
    border-color: rgba(220, 38, 38, 0.28);
    background: var(--primary-soft);
    color: #fff;
}

/* ==========================================================================
   Page Compatibility Helpers
   ========================================================================== */

.homepro-page,
.live-page,
.competitions-shell,
.ld-page,
.fblp-page,
.fpd-page,
.fce-root,
.worldcup-page,
.news-page {
    min-width: 0;
    overflow-x: hidden;
}

.homepro-shell,
.live-shell,
.comp-container,
.ld-container,
.fblp-shell,
.fpd-shell,
.fce-container {
    width: min(var(--container), calc(100% - 24px));
    max-width: var(--container);
    margin-inline: auto;
    min-width: 0;
}

.homepro-toolbar,
.comp-toolbar,
.fblp-toolbar,
.ld-tabs,
.fce-toolbar {
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.76);
    box-shadow: var(--shadow-soft);
}

.homepro-date-slider,
.country-strip,
.ld-tabs,
.fce-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.homepro-date-item,
.homepro-status-btn,
.homepro-filter,
.comp-filter,
.country-chip,
.ld-tab-btn,
.fce-tab,
.fblp-pill {
    min-width: max-content;
    border-radius: var(--radius);
}

.ld-name,
.fpd-hero h1,
.fce-team-name,
.team-title,
.lh-name {
    overflow-wrap: anywhere;
}

.fce-hero,
.ld-hero,
.fpd-hero {
    border-radius: var(--radius);
}

/* ==========================================================================
   WordPress Content
   ========================================================================== */

.entry-content,
.post-content,
.article-content {
    color: var(--text-soft);
}

.entry-content a,
.post-content a,
.article-content a {
    color: #fca5a5;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content p,
.post-content p,
.article-content p {
    color: #cbd5e1;
    line-height: 1.85;
}

.entry-content ul,
.entry-content ol,
.post-content ul,
.post-content ol,
.article-content ul,
.article-content ol {
    color: #cbd5e1;
    line-height: 1.8;
}

.wp-caption,
.gallery-caption {
    max-width: 100%;
    color: var(--text-muted);
    font-size: 13px;
}

.aligncenter {
    display: block;
    margin-inline: auto;
}

.alignleft {
    float: left;
    margin: 0 18px 18px 0;
}

.alignright {
    float: right;
    margin: 0 0 18px 18px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
    .fbl-container,
    .fbl24-container,
    .content-container,
    .homepro-shell,
    .live-shell,
    .comp-container,
    .ld-container,
    .fblp-shell,
    .fpd-shell,
    .fce-container {
        width: min(100% - 20px, var(--container));
    }
}

@media (max-width: 860px) {
    body {
        padding-bottom: 74px;
    }

    .fbl-card,
    .football-card,
    .app-card,
    .dashboard-card {
        padding: 14px;
    }

    .match-card,
    .homepro-match,
    .fce-match-card {
        padding: 12px;
    }

    .player-stats,
    .fblp-statline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    h1 {
        font-size: clamp(2.1rem, 14vw, 3.8rem);
    }

    h2 {
        font-size: clamp(1.7rem, 11vw, 3rem);
    }

    input,
    select {
        min-height: 42px;
    }

    .team-cell {
        min-width: 150px;
    }

    .toast,
    .fbl-toast {
        right: 10px;
        bottom: 82px;
        max-width: calc(100vw - 20px);
    }
}

/* ==========================================================================
   Motion Preferences and Print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .fbl24-main-header,
    footer,
    .mobile-bottom-link,
    nav[aria-label="Mobile quick navigation"],
    #back-to-top,
    #auth-modal {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #111827 !important;
    }
}
