@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* ==========================================================================
   1. LAYOUT GENERAL & BASE STYLES
   ========================================================================== */
body.fmp-standalone-body {
    background-color: #dce2e8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333; 
    margin: 0; 
    padding: 0;
    min-height: 100vh; 
    display: flex; 
    flex-direction: column;
}

#fmp-app-wrapper {
    display: flex; 
    justify-content: center; 
    align-items: flex-start;
    width: 100%; 
    padding-top: 40px; 
    padding-bottom: 40px;
}

#fmp-container {
    width: 75%; 
    max-width: 1200px;
    background: transparent; 
    border: none; 
    transition: width 0.3s ease;
}

/* ==========================================================================
   2. MAIN NAVIGATION & MENIU (TOP BAR PREMIUM)
   ========================================================================== */
.fmp-main-nav {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 0 25px; 
    height: 80px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.05); 
    border-bottom: none;
    position: relative; 
    z-index: 10;
}

.fmp-brand { color: #fff; font-size: 1.4rem; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.fmp-brand span { color: #64748b; font-weight: 600; }
.fmp-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; height: 100%; }
.fmp-menu li { height: 100%; display: flex; align-items: center; }
.fmp-menu a {
    color: #a0aec0; text-decoration: none; font-weight: 600; font-size: 0.95rem;
    position: relative; transition: color 0.3s ease; display: flex; align-items: center; height: 100%;
}
.fmp-menu a:hover, .fmp-menu a.active { color: #fff; }
.fmp-menu a.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px;
    background: #3182ce; border-radius: 4px 4px 0 0;
}
.fmp-nav-actions { display: flex; align-items: center; gap: 15px; }
.fmp-search-wrapper { position: relative; }
.fmp-search-wrapper .fa-magnifying-glass { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #a0aec0; font-size: 14px; }
#fmp-search-input {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff;
    padding: 10px 15px 10px 38px; border-radius: 20px; font-size: 0.9rem; outline: none; width: 200px; transition: all 0.3s;
}
#fmp-search-input::placeholder { color: #718096; }
#fmp-search-input:focus { background: rgba(255,255,255,0.1); color: #fff; width: 260px; border-color: #3182ce; }
.fmp-mobile-menu-btn { display: none; background: transparent; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 5px; }

/* SUB-MENIU DATE (ZILE) */
.fmp-date-subheader {
    background: #fff; padding: 12px 25px; display: flex; justify-content: center; align-items: center; gap: 20px;
    border-radius: 0 0 12px 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 25px; border: 1px solid #e2e8f0; border-top: none;
}
#fmp-date-display { color: #1a202c; text-align: center; min-width: 130px; display: flex; flex-direction: column; justify-content: center; }
#fmp-day-name { font-size: 0.75rem; text-transform: uppercase; color: #718096; font-weight: 800; margin-bottom: -2px; letter-spacing: 1px;}
#fmp-full-date { font-size: 1.15rem; font-weight: 900; line-height: 1; }

/* NOUA CLASĂ PENTRU FONT PREMIUM */
.fmp-premium-date {
    font-family: inherit; /* Folosește același font ca și restul aplicației/zilei */
    font-size: 1rem;      /* Dimensiune redusă (ajustează la 0.9rem dacă vrei și mai mic) */
    font-weight: 800;     /* Îngroșat, la fel ca elementele importante */
    color: #1e293b;       /* Culoarea închisă profesională */
    letter-spacing: 1px;  /* Spațiere ușoară între litere pentru lizibilitate */
    text-transform: uppercase; /* FORȚEAZĂ CAPSLOCK */
    display: block;
    margin-top: 2px;
}

/* Ajustare opțională pentru containerul datei */
#fmp-date-display {
    min-width: 150px; /* Puțin mai lat pentru a cuprinde lunile lungi (ex: SEPTEMBRIE) */
}

.fmp-nav-btn {
    background: #f8fafc; border: 1px solid #e2e8f0; color: #718096; width: 36px; height: 36px; border-radius: 8px; 
    cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.2s ease;
}
.fmp-nav-btn:hover:not(:disabled) { background: #e2e8f0; color: #1a202c; transform: translateY(-2px); }
.fmp-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ==========================================================================
   3. LISTA MECIURI (CARD DESIGN + HOVER NOU)
   ========================================================================== */
.fmp-league-card { background: #ffffff; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.8); }
.fmp-league-header { background: #f8fafc; padding: 12px 25px; display: flex; align-items: center; border-bottom: 1px solid #e2e8f0; }
.fmp-league-flag { height: 18px; width: auto; margin-right: 12px; border-radius: 2px; }
.fmp-league-header h3 { margin: 0; font-size: 0.85rem; color: #4a5568; text-transform: uppercase; font-weight: 800; }
.fmp-match-row {
    display: flex; padding: 15px 25px; align-items: center; background: #fff; border-bottom: 1px solid #f1f5f9; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; position: relative; overflow: hidden;
}
.fmp-match-row:hover { background-color: #f8fafc; transform: translateX(8px); box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.05); z-index: 2; }
.fmp-match-row::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 0; background-color: #3182ce; transition: width 0.2s ease; }
.fmp-match-row:hover::before { width: 4px; }
.fmp-match-row:last-child { border-bottom: none; }
.fmp-match-info { width: 60px; text-align: center; margin-right: 20px; border-right: 2px solid #f1f5f9; padding-right: 20px; display: flex; flex-direction: column; justify-content: center; }
.fmp-time { font-size: 1rem; font-weight: 700; color: #2d3748; }
.fmp-status-badge { font-size: 0.7rem; background: #3182ce; color: white; padding: 2px 6px; border-radius: 4px; margin-top: 4px; display: inline-block; }
.fmp-teams-container { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; }
.fmp-team { display: flex; align-items: center; height: 24px; }
.fmp-team img { width: 22px; height: 22px; object-fit: contain; margin-right: 12px; }
.fmp-team-name { font-size: 1rem; font-weight: 500; color: #1a202c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmp-score { font-size: 1rem; font-weight: 700; color: #e53e3e; background: #fff5f5; padding: 2px 10px; border-radius: 6px; margin-left: auto; border: 1px solid #fed7d7; }

/* ==========================================================================
   4. MODAL / PAGE DETAILS STYLES
   ========================================================================== */
#fmp-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 9999; align-items: flex-start; justify-content: center; padding-top: 50px; overflow: hidden; backdrop-filter: blur(5px); }
#fmp-modal-content { background: #fff; width: 75%; max-width: 900px; max-height: 85vh; overflow-y: auto; border-radius: 16px; padding: 0; position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.3); animation: fmp-slide-up 0.3s ease-out; }
#fmp-modal-content::-webkit-scrollbar { width: 6px; }
#fmp-modal-content::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 0 16px 16px 0; }
#fmp-modal-content::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 3px; }
@keyframes fmp-slide-up { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.fmp-modal-header { background: #1a202c; padding: 25px 20px; border-bottom: 1px solid #2d3748; text-align: center; border-radius: 16px 16px 0 0; color: #fff; position: relative; z-index: 5; }
.fmp-back-btn { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 8px 15px; border-radius: 20px; text-decoration: none; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 5px; transition: all 0.3s ease; cursor: pointer; z-index: 20; }
.fmp-back-btn:hover { background: rgba(255,255,255,0.25); padding-left: 12px; padding-right: 18px; color: #fff !important; }
.fmp-modal-league-info { display: flex; justify-content: center; align-items: center; font-size: 1rem; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.fmp-modal-flag { height: 20px; width: auto; margin-right: 10px; border-radius: 2px; }
.fmp-modal-date-info { font-size: 0.9rem; color: #a0aec0; font-weight: 500; }
.fmp-modal-teams { display: flex; justify-content: center; align-items: stretch; padding: 30px 20px; gap: 20px; }
.fmp-modal-team { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; text-align: center; overflow: hidden; }
.fmp-big-logo { width: 80px; height: 80px; object-fit: contain; margin-bottom: 15px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); flex-shrink: 0; }
.fmp-modal-team h3 { font-size: 1.1rem; margin: 0 0 10px 0; color: #1a202c; font-weight: 700; line-height: 1.3; flex-grow: 1; display: flex; align-items: flex-start; justify-content: center; width: 100%; }
.fmp-modal-score-box { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 100px; margin-top: 20px; }
.fmp-modal-score-final { font-size: 2.5rem; font-weight: 800; color: #1a202c; line-height: 1; margin-bottom: 5px; }
.fmp-modal-vs-text { font-size: 1.5rem; font-weight: 900; color: #cbd5e0; }
.fmp-modal-status { font-size: 0.8rem; font-weight: bold; color: #fff; background: #e53e3e; padding: 3px 8px; border-radius: 4px; margin-top: 5px; }
.fmp-modal-ht-score { font-size: 0.9rem; color: #718096; margin-bottom: 5px; font-weight: 500; }
.fmp-form-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: auto; max-width: 100%; }
.fmp-badge { width: 24px; height: 24px; border-radius: 6px; font-size: 11px; font-weight: bold; color: white; display: flex; align-items: center; justify-content: center; text-transform: uppercase; flex-shrink: 0; }
.fmp-w { background-color: #48bb78; } .fmp-d { background-color: #f3a000; } .fmp-l { background-color: #f56565; }

/* ==========================================================================
   5. TABS & SUB-TABS SYSTEM (DESKTOP)
   ========================================================================== */
.fmp-tabs-nav { display: flex; border-bottom: 1px solid #e2e8f0; background: #f8fafc; position: relative; z-index: 4; }
.fmp-tab-btn { flex: 1; padding: 15px; background: transparent; border: none; border-bottom: 3px solid transparent; font-weight: 600; color: #718096; cursor: pointer; transition: all 0.2s; font-size: 0.9rem; text-transform: uppercase; }
.fmp-tab-btn:hover { background: #edf2f7; color: #4a5568; }
.fmp-tab-btn.active { border-bottom-color: #3182ce; color: #3182ce; background: #fff; }
.fmp-tab-content { display: none !important; padding: 20px; }
.fmp-tab-content.active { display: block !important; }
.fmp-sub-nav { display: flex; justify-content: center; margin: 15px 10px 25px 10px; padding: 0; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; }
.fmp-sub-btn { flex: 1; background: #fff; color: #64748b; border: none; border-right: 1px solid #e2e8f0; padding: 10px 15px; border-radius: 0; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease; text-align: center; }
.fmp-sub-btn:last-child { border-right: none; }
.fmp-sub-btn:hover { background: #f8fafc; color: #3182ce; }
.fmp-sub-btn.active { background: #3182ce; color: #fff; }
.fmp-sub-content { display: none !important; animation: fmp-fade-in 0.3s ease; }
.fmp-sub-content.active { display: block !important; }
@keyframes fmp-fade-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   6. VISUALIZATION COMPONENTS (Stats, Charts)
   ========================================================================== */
.fmp-h2h-row { display: grid; grid-template-columns: 80px 1fr 60px 1fr; align-items: center; padding: 12px 5px; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }
.fmp-h2h-row:last-child { border-bottom: none; }
.fmp-h2h-date { color: #a0aec0; font-size: 0.8rem; }
.fmp-h2h-home { text-align: right; padding-right: 10px; color: #4a5568; }
.fmp-h2h-away { text-align: left; padding-left: 10px; color: #4a5568; }
.fmp-h2h-score { text-align: center; font-weight: 700; color: #2d3748; background: #edf2f7; padding: 2px 0; border-radius: 4px; }
.fmp-comp-row { margin-bottom: 15px; }
.fmp-comp-label { text-align: center; font-size: 0.8rem; color: #718096; margin-bottom: 5px; text-transform: uppercase; font-weight: 700; }
.fmp-comp-track { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: #e2e8f0; }
.fmp-comp-home { background: #4299e1; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.fmp-comp-away { background: #f56565; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.fmp-stat-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: 15px; }
.fmp-stat-table tr { border-bottom: 1px solid #f1f5f9; }
.fmp-stat-table td { padding: 12px 10px; vertical-align: middle; }
.fmp-col-home { width: 35%; text-align: right; font-weight: 700; color: #3182ce; font-size: 1.1rem; }
.fmp-col-label { width: 30%; text-align: center; font-size: 0.8rem; color: #718096; text-transform: uppercase; font-weight: 700; line-height: 1.2; }
.fmp-col-away { width: 35%; text-align: left; font-weight: 700; color: #e53e3e; font-size: 1.1rem; }
.fmp-stat-sub { display: block; font-size: 0.85rem; font-weight: 600; color: #5a6575; margin-top: 3px; }
.fmp-loader, .fmp-no-matches { text-align: center; padding: 40px; color: #718096; background: #fff; border-radius: 12px; }
.fmp-loading-icon { width: 50px; height: 50px; margin: 0 auto 15px; display: block; border-radius: 50%; object-fit: cover; animation: fmp-spin 1s linear infinite; }
@keyframes fmp-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.fmp-section-title { margin: 25px 0 15px 0; font-size: 0.85rem; font-weight: 800; color: #718096; text-transform: uppercase; letter-spacing: 1px; text-align: center; background: #f7fafc; padding: 8px; border-radius: 6px; }

/* CHARTS (Intervale) */
.fmp-chart-container { background: #fff; border: 1px solid #f1f5f9; border-radius: 12px; padding: 15px; margin-bottom: 25px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.fmp-chart-header { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; margin-bottom: 10px; padding-bottom: 5px; border-bottom: 1px solid #f1f5f9; }
.fmp-ch-home, .fmp-ch-away { width: 40%; display: flex; align-items: center; white-space: nowrap; }
.fmp-ch-home { justify-content: flex-end; text-align: right; }
.fmp-ch-time { width: 20%; text-align: center; }
.fmp-ch-away { justify-content: flex-start; text-align: left; }
.fmp-interval-row { display: flex; align-items: center; height: 28px; margin-bottom: 6px; }
.fmp-int-label { width: 20%; text-align: center; font-size: 0.7rem; color: #64748b; font-weight: 600; background: #f8fafc; border-radius: 4px; padding: 2px 0; }
.fmp-int-side { width: 40%; display: flex; align-items: center; position: relative; height: 100%; }
.fmp-int-side.home { justify-content: flex-end; padding-right: 10px; }
.fmp-int-side.away { justify-content: flex-start; padding-left: 10px; }
.fmp-int-bar { height: 12px; border-radius: 6px; min-width: 4px; transition: width 0.5s ease; }
.fmp-int-bar.home { background-color: #3182ce; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.fmp-int-bar.away { background-color: #e53e3e; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.fmp-int-bar.fmp-bar-empty { background-color: #e2e8f0; opacity: 0.3; width: 4px !important; }
.fmp-int-val { font-size: 0.75rem; font-weight: 800; color: #333; margin: 0 8px; min-width: 15px; }

/* ODDS TAB */
.fmp-probs-container { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.fmp-prob-card { flex: 1; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px 10px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.fmp-prob-val { font-size: 1.4rem; font-weight: 800; color: #2d3748; margin-bottom: 8px; }
.fmp-prob-bar-track { height: 6px; background: #e2e8f0; border-radius: 3px; margin-bottom: 8px; overflow: hidden; }
.fmp-prob-bar { height: 100%; }
.fmp-prob-bar.home { background-color: #3182ce; } .fmp-prob-bar.draw { background-color: #718096; } .fmp-prob-bar.away { background-color: #e53e3e; }
.fmp-prob-label { font-size: 0.75rem; color: #4a5568; font-weight: 600; margin-bottom: 4px; line-height: 1.2; min-height: 28px; display: flex; align-items: center; justify-content: center; }
.fmp-prob-odd { font-size: 0.8rem; color: #718096; background: #edf2f7; padding: 2px 6px; border-radius: 4px; display: inline-block; }

/* ==========================================================================
   7. VALUE BETS (GRID DESIGN)
   ========================================================================== */
.fmp-vb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; padding-bottom: 20px; }
.fmp-vb-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.fmp-vb-card.full-width { grid-column: 1 / -1; }
.fmp-vb-title { font-size: 0.85rem; font-weight: 800; color: #2d3748; margin-bottom: 15px; text-transform: uppercase; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; text-align: center; }
.fmp-vb-row { display: flex; gap: 15px; justify-content: space-evenly; }
.fmp-vb-col { flex: 1; display: flex; flex-direction: column; gap: 8px; background: #f8fafc; padding: 12px; border-radius: 8px; border: 1px solid #f1f5f9; position: relative; }
.fmp-vb-label { text-align: center; font-size: 1.05rem; font-weight: 800; color: #1a202c; margin-bottom: 5px; }
.fmp-vb-compare-box { display: flex; gap: 8px; }
.fmp-vb-stat { flex: 1; text-align: center; padding: 6px; border-radius: 6px; border: 1px solid #e2e8f0; background: #fff; }
.fmp-vb-stat span { display: block; font-size: 0.65rem; color: #718096; font-weight: 700; text-transform: uppercase; margin-bottom: 3px; }
.fmp-vb-stat strong { font-size: 1.05rem; font-weight: 800; color: #2d3748; }

.fmp-vb-stat.stat-val { background: #f0fdf4; border-color: #bbf7d0; } 
.fmp-vb-stat.stat-val strong { color: #166534; } 

.fmp-vb-stat.stat-neg { background: #fef2f2; border-color: #fecaca; } 
.fmp-vb-stat.stat-neg strong { color: #991b1b; } 

.fmp-vb-badge { font-size: 0.75rem; font-weight: 700; padding: 6px; text-align: center; border-radius: 6px; text-transform: uppercase; margin-top: auto; }
.fmp-badge-val { background: #dcfce7; color: #166534; border: 1px solid #86efac; } 
.fmp-badge-neg { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; } 
.fmp-badge-eq  { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }

/* ==========================================================================
   8. CLASAMENT (STANDINGS TAB)
   ========================================================================== */
.fmp-table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 15px; }
.fmp-standings-table { width: 100%; min-width: 600px; border-collapse: collapse; text-align: center; font-size: 0.85rem; }
.fmp-standings-table th { background: #f8fafc; padding: 10px 5px; color: #718096; font-weight: 700; text-transform: uppercase; border-bottom: 2px solid #e2e8f0; font-size: 0.75rem; }
.fmp-standings-table td { padding: 8px 5px; border-bottom: 1px solid #edf2f7; color: #4a5568; vertical-align: middle; }
.fmp-standings-table tr:hover { background: #f8fafc; }
.fmp-highlight-row td { background-color: #ebf8ff; font-weight: 700; color: #2b6cb0; border-top: 1px solid #bee3f8; border-bottom: 1px solid #bee3f8; }
.fmp-standings-team { display: flex; align-items: center; gap: 8px; text-align: left; }
.fmp-standings-logo { width: 18px; height: 18px; object-fit: contain; }

/* LIVE ANIMATIONS */
@keyframes fmp-shadow-pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(229, 62, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); } }
.fmp-is-live { background-color: #ffffff !important; color: #e53e3e !important; border: 1px solid #e53e3e !important; animation: fmp-shadow-pulse 2s infinite; }
.fmp-modal-score-final.fmp-is-live { background: transparent !important; border: none !important; box-shadow: none !important; animation: none !important; color: #e53e3e !important; text-shadow: 0 0 20px rgba(229, 62, 62, 0.3); }
.fmp-modal-status.fmp-is-live { padding: 3px 12px; border-radius: 12px; }

/* ==========================================================================
   STILURI TAB GENERAL - INFO CARDS
   ========================================================================== */
.fmp-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.fmp-info-card { background: #ffffff; border: 1px solid #e2e8f0; padding: 15px 20px; border-radius: 12px; display: flex; align-items: center; gap: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.fmp-prediction-highlight { background: #ebf8ff; border: 1px solid #bee3f8; margin-bottom: 15px; }
.fmp-info-icon { width: 40px; height: 40px; background: #f1f5f9; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #475569; font-size: 1.1rem; flex-shrink: 0; }
.fmp-prediction-highlight .fmp-info-icon { background: #3182ce; color: #fff; }
.fmp-info-text { display: flex; flex-direction: column; }
.fmp-info-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #94a3b8; letter-spacing: 0.5px; }
.fmp-info-value { font-size: 1rem; font-weight: 600; color: #1e293b; }
.fmp-prediction-highlight .fmp-info-value { color: #2b6cb0; font-size: 1.1rem; font-weight: 800; }

@media (max-width: 600px) {
    .fmp-info-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   9. RESPONSIVE DESKTOP/TABLET (Reguli Generale)
   ========================================================================== */
@media (max-width: 900px) {
    #fmp-app-wrapper { padding-top: 10px; padding-bottom: 10px; }
    #fmp-container { width: 98%; margin: 0 auto; }
    
    .fmp-main-nav { padding: 15px; height: auto; flex-wrap: wrap; border-radius: 0; }
    .fmp-menu { display: none; width: 100%; flex-direction: column; gap: 10px; margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }
    .fmp-menu.show { display: flex; }
    .fmp-menu li { height: auto; }
    .fmp-menu a { padding: 10px 0; font-size: 1.1rem; }
    .fmp-menu a.active::after { display: none; }
    .fmp-menu a.active { color: #3182ce; }
    .fmp-nav-actions { width: 100%; margin-top: 15px; justify-content: space-between; }
    .fmp-search-wrapper { flex-grow: 1; margin-right: 15px; }
    #fmp-search-input { width: 100%; border-radius: 12px; font-size: 16px !important; }
    #fmp-search-input:focus { width: 100%; }
    .fmp-mobile-menu-btn { display: block; }
    
    .fmp-date-subheader { border-radius: 0; padding: 15px; gap: 10px; justify-content: space-between; margin-bottom: 15px; }

    .fmp-match-row { padding: 10px 5px; }
    .fmp-match-info { width: 45px; margin-right: 8px; padding-right: 8px; border-right: 1px solid #f1f5f9; }
    .fmp-time { font-size: 0.85rem; }
    .fmp-team-name { font-size: 0.9rem; white-space: normal; line-height: 1.15; }
    
    #fmp-modal-content { width: 96%; max-height: 85vh; height: auto; border-radius: 16px; }
    .fmp-modal-teams { padding: 15px 5px; gap: 5px; }
    .fmp-big-logo { width: 45px; height: 45px; }
    .fmp-modal-score-final { font-size: 1.8rem; }
}

.fmp-match-row[style*="block"] { display: flex !important; flex-direction: row !important; align-items: center !important; }

/* ==========================================================================
   10. FIX DESIGN MOBIL: TAB-URI PE 2 RÂNDURI & CLASAMENT COMPACT
   ========================================================================== */
@media (max-width: 768px) {
    /* Reparăm Header-ul */
    .fmp-modal-header {
        padding: 45px 15px 15px 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }
    
    .fmp-back-btn {
        top: 15px; 
        left: 15px;
        transform: none; 
        font-size: 0.75rem;
        padding: 5px 12px;
        background: rgba(255,255,255,0.15);
    }

    .fmp-modal-league-info {
        font-size: 0.85rem;
        margin-top: 10px; 
        text-align: center;
        width: 100%;
    }
    
    .fmp-modal-date-info {
        font-size: 0.8rem;
    }

    /* Tab-urile Principale: Grilă perfectă pe 2 rânduri */
    .fmp-tabs-nav {
        display: flex;
        flex-wrap: wrap;
        overflow: hidden;
        border-bottom: 2px solid #e2e8f0;
    }
    
    .fmp-tab-btn {
        flex: 1 1 33.33%;
        max-width: 33.33%;
        padding: 10px 2px;
        font-size: 0.7rem;
        border-right: 1px solid #e2e8f0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    
    .fmp-tab-btn:nth-child(3) { 
        border-right: none !important; 
    }
    
    /* Probabilități & Value Bets împart rândul de jos */
    .fmp-tab-btn[data-tab="tab-pred"],
    .fmp-tab-btn[data-tab="tab-value"] {
        flex: 1 1 50%;
        max-width: 50%;
        border-bottom: none !important;
        font-size: 0.8rem;
        padding: 12px 5px;
    }
    
    .fmp-tab-btn[data-tab="tab-value"] { 
        border-right: none !important; 
    }
    
    .fmp-tab-btn.active {
        box-shadow: inset 0 -3px 0 #3182ce; 
        background: #fff;
    }
    
    .fmp-tab-btn.active[data-tab="tab-value"] {
        box-shadow: inset 0 -3px 0 #059669;
    }

    /* Sub-Tab-urile (H2H, Forma etc) - Tot grilă pe rânduri */
    .fmp-sub-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: hidden;
        border-radius: 8px;
        margin: 15px 0 20px 0;
        background: #fff;
    }
    
    .fmp-sub-btn {
        border-right: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 8px 2px;
        font-size: 0.7rem;
    }
    
    .fmp-sub-btn:nth-child(3n) { 
        border-right: none; 
    }

    /* CLASAMENT COMPACT PE MOBIL */
    .fmp-standings-table {
        min-width: 100%; 
    }
    
    /* Ascundem coloanele: Victorii(4), Egaluri(5), Înfrângeri(6), Forma(9) */
    .fmp-standings-table th:nth-child(4), 
    .fmp-standings-table td:nth-child(4),
    .fmp-standings-table th:nth-child(5), 
    .fmp-standings-table td:nth-child(5),
    .fmp-standings-table th:nth-child(6), 
    .fmp-standings-table td:nth-child(6),
    .fmp-standings-table th:nth-child(9), 
    .fmp-standings-table td:nth-child(9) {
        display: none;
    }
    
    .fmp-standings-table th, 
    .fmp-standings-table td {
        padding: 8px 2px;
        font-size: 0.8rem;
    }
    .fmp-standings-team span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px; 
        display: inline-block;
    }
}

/* ==========================================================================
   11. FIX OVERFLOW CARDURI VALUE BETS PE MOBIL (SOLUȚIA DEFINITIVĂ)
   ========================================================================== */
@media (max-width: 768px) {
    .fmp-vb-grid {
        grid-template-columns: 1fr !important; 
        gap: 15px;
        padding-bottom: 10px;
    }
    
    #fmp-modal-content {
        overflow-x: hidden;
    }

    .fmp-vb-row {
        flex-direction: column !important; 
        gap: 10px !important; 
    }
    
    .fmp-vb-col {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 12px !important;
        display: flex;
        flex-direction: row !important; 
        align-items: center;
        justify-content: space-between;
    }

    .fmp-vb-label {
        font-size: 1.1rem !important;
        margin-bottom: 0 !important;
        min-width: 35px;
        text-align: left !important;
    }

    .fmp-vb-compare-box {
        flex-grow: 1;
        justify-content: center;
        margin: 0 10px;
        gap: 4px !important;
    }
    
    .fmp-vb-stat {
        padding: 4px !important;
    }
    
    .fmp-vb-stat span {
        font-size: 0.6rem !important;
    }
    
    .fmp-vb-stat strong {
        font-size: 0.9rem !important;
    }

    .fmp-vb-badge {
        margin-top: 0 !important;
        font-size: 0.7rem !important;
        padding: 6px 8px !important;
        min-width: 75px;
        white-space: nowrap; 
    }
}
