/* ==========================================================================
   FOOTBALL LIVE 24 - MASTER STYLE GUIDE
   (Header Fixed, Premium Live Button, World Cup Mode, Home, Match Center, Modals)
   ========================================================================== */

/* --- 1. GLOBAL VARIABLES & SETTINGS --- */
:root { 
    --primary: #dc2626; 
    --primary-dark: #991b1b; 
    --card-bg: #1e293b; 
    --bg-dark: #0c1018; 
    --text-color: #cbd5e1;
}

html, body { overflow-x: hidden; width: 100%; position: relative; scroll-behavior: smooth; margin: 0; padding: 0; }
body { font-family: 'Outfit', sans-serif; background: var(--bg-dark); color: white; }
.font-teko { font-family: 'Teko', sans-serif; }

.light-theme-wrapper { background-color: #f8fafc; color: #0f172a; min-height: 100vh; width: 100%; position: relative; }
.home-container { max-width: 1440px; margin: 0 auto; padding: 24px; padding-bottom: 80px; width: 100%; box-sizing: border-box; }

#home-view { display: block; animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* --- 2. HEADER & NAVIGATION STYLES --- */
.header-inner { max-width: 1440px; margin: 0 auto; padding: 0 20px; position: relative; width: 100%; box-sizing: border-box; }
.header-ad-container { width: 100%; background: #020617; padding: 12px 0; display: flex; justify-content: center; position: relative; border-top: 1px solid #1e293b; }
.ad-slot-placeholder { width: 728px; height: 90px; background: #1e293b; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; border-radius: 4px; border: 1px dashed #334155; color: #94a3b8; }

.header-btn { height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; background: var(--card-bg); color: #94a3b8; font-weight: 800; font-size: 0.95rem; text-transform: uppercase; border-radius: 8px; border-bottom: 4px solid #020617; transition: all 0.2s ease; white-space: nowrap; }
.header-btn:hover { background: #334155; color: white; transform: translateY(-2px); }

.active-nav { background: linear-gradient(180deg, #ff1e1e 0%, #b91c1c 100%) !important; color: white !important; border-bottom: 4px solid #6b0000 !important; box-shadow: 0 6px 12px rgba(220, 38, 38, 0.4); transform: translateY(2px) !important; margin-bottom: 4px; }

.live-dot-pulse { width: 10px; height: 10px; background: #ff0000; border-radius: 50%; box-shadow: 0 0 8px #ff0000; animation: pulse-live 1s infinite; margin-right: 4px; }
@keyframes pulse-live { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.5; } 100% { transform: scale(1); opacity: 1; } }

.digital-clock-pill { background: #1e293b; padding: 4px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 800; color: #fbbf24; box-shadow: inset 0 2px 4px rgba(0,0,0,0.3); }
.search-icon-btn { width: 48px; padding: 0 !important; }

/* User Profile Dropdown */
.user-profile-wrap { position: relative; display: inline-block; }
.user-profile-btn { display: flex; align-items: center; gap: 10px; background: #0f172a; padding: 5px 12px 5px 5px; border-radius: 30px; cursor: pointer; border: 1px solid #334155; transition: 0.3s; text-decoration: none; color: white; }
.user-profile-btn:hover { background: #1e293b; border-color: #475569; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #dc2626; }
.user-name-text { font-size: 14px; font-weight: bold; color: white; white-space: nowrap; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }

.profile-dropdown { position: absolute; top: 120%; right: 0; width: 220px; background: #0f172a; border: 1px solid #334155; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; z-index: 999; overflow: hidden; }
.user-profile-wrap:hover .profile-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-head { padding: 15px; background: linear-gradient(135deg, #1e293b, #0f172a); border-bottom: 1px solid #334155; text-align: center; }
.dropdown-head img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid #fbbf24; margin: 0 auto 5px; }
.dropdown-head h4 { margin: 0; font-size: 16px; color: white; font-family: 'Teko', sans-serif; }
.dropdown-menu { list-style: none; margin: 0; padding: 0; }
.dropdown-menu li a { display: flex; align-items: center; gap: 12px; padding: 12px 15px; color: #94a3b8; text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 1px solid #1e293b; transition: 0.2s; }
.dropdown-menu li a:hover { background: #1e293b; color: white; padding-left: 20px; border-left: 3px solid #dc2626; }
.dropdown-menu li a i { width: 16px; text-align: center; color: #fbbf24; }
.dropdown-menu li:last-child a { border-bottom: none; color: #ef4444; }


/* --- 3. 🌟 PREMIUM LIVE BUTTON (ANIMATION FIX) 🌟 --- */
.premium-live-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white !important;
    padding: 4px 14px;
    border-radius: 50px;
    text-decoration: none;
    height: 32px;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid #7f1d1d;
    margin-right: 6px;
    animation: live-btn-glow 2s infinite alternate;
    transition: transform 0.2s ease;
}
.premium-live-btn:active { transform: scale(0.95); }
.premium-live-btn .text {
    font-family: 'Teko', sans-serif;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 1px;
    line-height: 1;
    margin-top: 3px;
}
.live-radar-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}
.live-radar-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 50%;
    animation: radar-pulse 1.5s ease-out infinite;
}
@keyframes radar-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}
@keyframes live-btn-glow {
    0% { box-shadow: 0 2px 5px rgba(220, 38, 38, 0.4), inset 0 1px 1px rgba(255,255,255,0.3); }
    100% { box-shadow: 0 4px 15px rgba(220, 38, 38, 0.8), inset 0 1px 1px rgba(255,255,255,0.3); }
}


/* --- 4. 🏆 WORLD CUP PREMIUM STYLES 🏆 --- */
.wc-champions-header { color: #0f172a; font-family: 'Teko', sans-serif; font-size: 24px; border-left: 4px solid #fbbf24; padding-left: 10px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; font-weight: bold; }
.wc-champions-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 30px; }
.wc-champ-card { background: linear-gradient(145deg, #1e293b, #0f172a); border: 1px solid #334155; border-bottom: 3px solid #fbbf24; border-radius: 12px; padding: 15px 10px; display: flex; flex-direction: column; align-items: center; text-align: center; transition: 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.wc-champ-card:hover { transform: translateY(-5px); border-bottom-color: #f59e0b; box-shadow: 0 10px 20px rgba(251, 191, 36, 0.2); background: linear-gradient(145deg, #27354f, #0f172a); }
.wc-champ-card img { width: 45px; height: 45px; object-fit: contain; margin-bottom: 8px; filter: drop-shadow(0 4px 4px rgba(0,0,0,0.5)); }
.wc-champ-card h4 { color: white; font-weight: 800; font-size: 0.9rem; margin: 0 0 4px 0; text-transform: uppercase; }
.wc-champ-card .stars { color: #fbbf24; font-size: 0.6rem; display: flex; gap: 2px; }

/* Golden World Cup Match Card */
.wc-match-card { border-color: #fbbf24 !important; border-bottom-color: #d97706 !important; background: linear-gradient(to right, #ffffff, #fffbf1) !important; }
.wc-match-card .match-round-tag { background: #fef3c7; color: #b45309; padding: 2px 8px; border-radius: 4px; font-weight: 900; }


/* --- 5. FILTERS & LEAGUE PILLS --- */
.controls-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.league-scroll-wrap { display: flex; flex-wrap: wrap; padding-bottom: 5px; gap: 12px; width: 100%; align-items: center; justify-content: flex-start; -ms-overflow-style: none; scrollbar-width: none; }
.league-scroll-wrap::-webkit-scrollbar { display: none; }
.league-pill { display: inline-flex; align-items: center; gap: 8px; background: #ffffff; border: 1px solid #cbd5e1; border-bottom: 4px solid #94a3b8; padding: 8px 18px; border-radius: 50px; cursor: pointer; transition: all 0.1s ease; min-width: max-content; box-shadow: 0 4px 6px rgba(0,0,0,0.05); height: 42px; color: #475569; font-weight: 800; font-size: 0.9rem; }
.league-pill:hover { transform: translateY(-2px); background-color: #f8fafc; }
.league-pill.active { background: #dc2626; border-color: #b91c1c; border-bottom-color: #7f1d1d; color: white; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4); }
.league-pill:active { transform: translateY(3px); border-bottom-width: 0px; margin-bottom: 4px; }
.league-pill span i.fa-trophy { color: #eab308; }
.league-pill img { width: 22px; height: 22px; object-fit: contain; }
.today-btn { background: #0f172a; color: white; border: none; padding: 0 20px; height: 40px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; flex-shrink: 0; transition: 0.2s; }
.today-btn:hover { background: #dc2626; }


/* --- 6. DATE SLIDER --- */
.date-slider-wrapper { display: flex; align-items: center; gap: 10px; position: relative; }
.scroll-btn { width: 40px; height: 40px; border-radius: 50%; background: white; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #64748b; transition: all 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.05); flex-shrink: 0; z-index: 2; }
.scroll-btn:hover { background: #f1f5f9; color: #0f172a; }
.date-strip { display: flex; gap: 10px; overflow-x: auto; padding: 5px; scroll-behavior: smooth; flex-grow: 1; scrollbar-width: none; }
.date-box { min-width: 65px; height: 85px; background: linear-gradient(to bottom, #ffffff, #f1f5f9); border: 1px solid #cbd5e1; border-bottom: 4px solid #94a3b8; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all 0.1s; color: #64748b; flex-shrink: 0; }
.date-box:hover { background: #fff; transform: translateY(-2px); border-bottom-color: #64748b; }
.date-box.active { background: #0f172a; border-color: #020617; border-bottom-color: #000; color: white; transform: translateY(2px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.date-box:active { transform: translateY(4px); border-bottom-width: 0px; }
.date-day { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.date-num { font-size: 1.5rem; font-weight: 800; font-family: 'Teko', sans-serif; line-height: 1; margin: 2px 0; }


/* --- 7. SMART TICKER --- */
.smart-ticker-box { width: 550px; flex-shrink: 0; margin: 0 20px; background: white; border: 1px solid #e2e8f0; border-bottom: 4px solid #3b82f6; border-radius: 12px; height: 70px; display: flex; align-items: center; padding: 0 15px; position: relative; overflow: hidden; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); cursor: pointer; transition: all 0.3s ease; max-width: 550px; }
.smart-ticker-box:hover { transform: translateY(-3px) scale(1.01); border-bottom-color: #dc2626; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.ticker-pulse-container { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-right: 15px; padding-right: 15px; border-right: 1px solid #f1f5f9; min-width: 60px; }
.pilik-dot-large { width: 12px; height: 12px; background: #dc2626; border-radius: 50%; margin-bottom: 4px; animation: pilikPilik 1.5s infinite; }
.pilik-text { font-size: 0.65rem; font-weight: 800; color: #dc2626; text-transform: uppercase; }
.ticker-content { display: flex; flex-direction: column; justify-content: center; width: 100%; overflow: hidden; }
.ticker-teams-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.ticker-logo { width: 20px; height: 20px; object-fit: contain; }
.ticker-team-name { font-size: 0.95rem; font-weight: 800; color: #0f172a; white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.ticker-vs { font-family: 'Teko'; color: #94a3b8; font-size: 1.1rem; padding: 0 4px; }
.ticker-score { font-family: 'Teko'; color: #dc2626; font-size: 1.3rem; font-weight: bold; padding: 0 5px; }
.ticker-info-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.ticker-league { font-size: 0.7rem; font-weight: 700; color: #64748b; text-transform: uppercase; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-countdown { font-size: 0.75rem; font-weight: 800; color: #2563eb; display: flex; align-items: center; gap: 4px; }


/* --- 8. MATCH CARDS & HOME LAYOUT --- */
.matches-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 20px; align-items: start; }
@media (min-width: 768px) { .matches-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .matches-grid { grid-template-columns: repeat(3, 1fr); } }
.pro-card, .match-card { background: #ffffff; border: 1px solid #e2e8f0; border-bottom: 5px solid #cbd5e1; border-radius: 16px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); cursor: pointer; display: flex; flex-direction: column; overflow: hidden; min-height: 120px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); position: relative; text-decoration: none; color: inherit; }
.pro-card:hover, .match-card:hover { transform: translateY(-5px); border-bottom-color: #dc2626; box-shadow: 0 20px 25px -5px rgba(220, 38, 38, 0.15); }
.pro-card:active { transform: translateY(2px); border-bottom-width: 2px; box-shadow: none; }
.pro-card.live-game { background: linear-gradient(145deg, #fff1f2 0%, #fff 100%); border-color: #fecaca; border-bottom-color: #ef4444; }
.card-status-pill { position: absolute; top: 10px; right: 10px; font-size: 0.7rem; font-weight: 800; padding: 2px 8px; border-radius: 4px; background: #f1f5f9; color: #64748b; }
.status-live-pill { color: #dc2626; background: #fee2e2; }
.card-main { padding: 35px 20px 25px 20px; display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box; }
.team-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 32%; text-align: center; }
.team-logo-img { width: 50px; height: 50px; object-fit: contain; }
.team-title { font-size: 0.95rem; font-weight: 700; color: #0f172a !important; line-height: 1.1; margin-top: 5px; }
.score-block { width: 36%; text-align: center; margin-top: 5px; }
.score-display { font-family: 'Teko', sans-serif; font-size: 2.6rem; font-weight: 700; color: #dc2626 !important; line-height: 1; }
.vs-display { font-family: 'Teko'; font-size: 2rem; color: #cbd5e1; }
.match-round-tag { font-size: 0.75rem; color: #64748b; font-weight: 700; text-align: center; margin-top: 2px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-round-tag.is-final { color: #dc2626; }
.date-group-header { grid-column: 1 / -1; margin-top: 20px; margin-bottom: 10px; padding: 8px 15px; background: #e2e8f0; border-left: 5px solid #0f172a; border-radius: 6px; font-weight: 800; color: #334155; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; }


/* --- 9. SIDEBAR & STANDINGS --- */
.main-layout { display: block; }
@media (min-width: 1024px) { .main-layout.with-sidebar { display: grid; grid-template-columns: 3fr 1fr; gap: 30px; align-items: start; } .standings-panel { position: sticky; top: 20px; } }
.league-section { margin-bottom: 30px; }
.league-header-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-left: 8px; border-left: 4px solid #dc2626; }
.lh-logo { width: 32px; height: 32px; object-fit: contain; }
.lh-name { font-size: 1.4rem; font-weight: 800; color: #1e293b; font-family: 'Teko', sans-serif; text-transform: uppercase; }
.lh-country { font-size: 0.8rem; color: #64748b; font-weight: 600; margin-left: 10px; font-family: 'Outfit', sans-serif; text-transform: none; background: #f1f5f9; padding: 2px 8px; border-radius: 4px; }
.standings-panel { background: white; border-radius: 16px; padding: 20px; border: 1px solid #e2e8f0; border-bottom: 5px solid #cbd5e1; margin-bottom: 30px; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); }
.standings-header { font-family: 'Teko'; font-size: 1.8rem; font-weight: 700; border-bottom: 3px solid #dc2626; display: flex; justify-content: space-between; margin-bottom: 15px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.st-table td { padding: 10px 5px; border-bottom: 1px solid #f1f5f9; font-weight: 600; color: #334155; }
.highlight-standings-row { background-color: #fef2f2 !important; border-left: 4px solid #dc2626; font-weight: 700; }


/* --- 10. MODALS (Team & Player Stats) --- */
.custom-modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(5px); animation: fadeIn 0.3s; }
.modal-content { background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%); margin: 5% auto; padding: 0; border: 1px solid #888; width: 90%; max-width: 900px; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); position: relative; animation: slideUp 0.4s; overflow: hidden; }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal { color: #fff; position: absolute; top: 15px; right: 20px; font-size: 28px; font-weight: bold; z-index: 101; cursor: pointer; transition: 0.2s; background: rgba(0,0,0,0.3); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.close-modal:hover { background: #dc2626; }

.squad-category-box { background: #f8fafc; border-radius: 16px; padding: 20px; margin-bottom: 25px; border: 1px solid #e2e8f0; }
.squad-cat-title { font-size: 0.9rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 15px; border-left: 4px solid #dc2626; padding-left: 10px; }
.squad-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
@media (max-width: 500px) { .squad-grid { grid-template-columns: 1fr; } }
.squad-3d-card { background: white; border: 1px solid #e2e8f0; border-bottom: 4px solid #cbd5e1; border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 12px; transition: all 0.2s ease; cursor: pointer; position: relative; overflow: hidden; }
.squad-3d-card:hover { transform: translateY(-4px); border-bottom-color: #dc2626; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.sq-img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid #f1f5f9; background: #e2e8f0; }
.sq-info { display: flex; flex-direction: column; }
.sq-name { font-size: 0.9rem; font-weight: 700; color: #1e293b; line-height: 1.2; }
.sq-num { font-size: 0.75rem; color: #dc2626; font-weight: 800; background: #fee2e2; padding: 1px 6px; border-radius: 4px; width: fit-content; margin-top: 2px; }

.player-split-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 0; }
@media (max-width: 768px) { .player-split-layout { grid-template-columns: 1fr; } }
.player-left-col { padding: 0; background: #fff; border-right: 1px solid #e2e8f0; }
.player-right-col { background: #f8fafc; padding: 20px; max-height: 600px; overflow-y: auto; }
.player-hero { display: flex; align-items: center; gap: 30px; background: linear-gradient(to right, #1e293b, #0f172a); padding: 40px; position: relative; color: white; border-radius: 0; }
.ph-img { width: 120px; height: 120px; border-radius: 50%; border: 4px solid #dc2626; object-fit: cover; background: #334155; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.ph-info h1 { font-family: 'Teko', sans-serif; font-size: 3rem; line-height: 1; margin-bottom: 5px; }
.player-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 25px; }
.pst-box { background: white; border: 1px solid #e2e8f0; padding: 15px; border-radius: 12px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.pst-val { font-size: 2rem; font-family: 'Teko', sans-serif; font-weight: 800; color: #0f172a; line-height: 1; }
.pst-label { font-size: 0.8rem; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.c-stats-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f0; }
.c-stats-table th { background: #f8fafc; color: #64748b; font-weight: 700; text-transform: uppercase; font-size: 0.75rem; padding: 10px; text-align: center; border-bottom: 1px solid #e2e8f0; }
.c-stats-table td { padding: 10px; border-bottom: 1px solid #f1f5f9; color: #334155; text-align: center; font-weight: 600; }


/* --- 11. STANDARD PAGES & SINGLE POST --- */
.standard-page-wrapper { min-height: 60vh; padding: 40px 20px; background: #f8fafc; }
.standard-page-container { background: white; border-radius: 12px; padding: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); max-width: 900px; margin: 0 auto; }
.standard-page-title { font-family: 'Teko', sans-serif; font-size: 3rem; color: #0f172a; margin-bottom: 10px; text-transform: uppercase; border-bottom: 4px solid #dc2626; display: inline-block; }
.standard-page-date { font-size: 0.85rem; color: #64748b; margin-bottom: 30px; }
.standard-page-content { color: #334155; line-height: 1.8; font-size: 1.1rem; font-family: 'Outfit', sans-serif; }

.single-post-container { max-width: 1000px; margin: 0 auto; padding: 0 15px; width: 100%; box-sizing: border-box; }
.post-content { word-wrap: break-word; overflow-wrap: break-word; }
.post-content p { margin-bottom: 1.2rem; line-height: 1.7; font-size: 1rem; color: #cbd5e1; }
.post-content h2, .post-content h3 { color: white; margin-top: 2rem; margin-bottom: 0.8rem; font-weight: 800; font-family: 'Teko', sans-serif; letter-spacing: 1px; line-height: 1.2; }
.post-content h2 { font-size: 1.8rem; border-left: 4px solid #dc2626; padding-left: 12px; }
.post-content h3 { font-size: 1.4rem; }
.post-content ul, .post-content ol { margin-left: 20px; margin-bottom: 1.5rem; color: #cbd5e1; list-style-position: outside; }
.post-content a { color: #ef4444; text-decoration: underline; }
.post-content blockquote { border-left: 4px solid #ef4444; background: rgba(255,255,255,0.05); padding: 15px; font-style: italic; margin: 20px 0; border-radius: 0 10px 10px 0; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; display: block; }
.post-content iframe, .post-content video { max-width: 100%; width: 100%; margin: 20px 0; }
@media (min-width: 768px) { .post-content p { font-size: 1.1rem; line-height: 1.8; } .post-content h2 { font-size: 2.2rem; } .single-post-container { padding: 0 20px; } }


/* --- 12. FLOATING NAVIGATION BUTTONS --- */
.float-nav-wrap { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 10px; z-index: 10000; }
.float-btn { width: 50px; height: 50px; background: #0f172a; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.3); font-size: 1.2rem; transition: all 0.2s ease; border: 2px solid #1e293b; }
.float-btn:hover { background: #dc2626; border-color: #ef4444; transform: translateY(-3px); }


/* --- 13. MOBILE OPTIMIZATION (Global Responsiveness) --- */
@media (max-width: 1400px) {
    .header-inner, .header-ad-container { left: 0; }
}

@media (max-width: 1024px) { 
    .header-btn { padding: 0 10px; font-size: 0.8rem; height: 42px; gap: 4px; } 
    .digital-clock-pill { font-size: 11px; }
    .user-name-text { display: none; }
    .wc-champions-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

@media (max-width: 768px) {
    /* Header Clock Mobile Size */
    .digital-clock-pill { font-size: 9px; padding: 2px 6px; gap: 4px; }
    
    /* Smart Ticker */
    .smart-ticker-box { width: 100%; margin: 0 0 10px 0; height: 45px; padding: 0 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    .ticker-pulse-container { min-width: 35px; margin-right: 5px; padding-right: 5px; border-right: none; }
    .pilik-dot-large { width: 6px; height: 6px; margin-bottom: 2px; }
    .pilik-text { font-size: 0.55rem; }
    .ticker-logo { width: 14px; height: 14px; }
    .ticker-team-name { font-size: 0.7rem; max-width: 60px; }
    .ticker-vs { font-size: 0.8rem; padding: 0 2px; }
    .ticker-score { font-size: 0.9rem; }
    .ticker-league { display: none; }
    .ticker-countdown { font-size: 0.6rem; }
    
    /* Layout */
    html, body { overflow-x: hidden; max-width: 100%; }
    .home-container { padding: 8px; padding-top: 10px; }
    .controls-row { margin-bottom: 8px; gap: 8px; flex-wrap: nowrap; overflow-x: auto; }
    
    /* Date Slider */
    .date-parent-container { width: 100%; overflow: hidden; margin-bottom: 5px; }
    .date-slider-wrapper { width: 100%; overflow-x: auto; padding-bottom: 5px; border: none; }
    .date-strip { gap: 6px; padding: 0 4px; }
    .date-box { min-width: 50px; height: 65px; border-radius: 10px; margin: 0; }
    .date-num { font-size: 1.3rem; margin: 0; }
    .date-day { font-size: 0.65rem; }
    .scroll-btn, .today-btn { display: none; }
    
    /* League Pills */
    .league-scroll-wrap { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; gap: 8px; }
    .league-pill { padding: 4px 10px; height: 32px; font-size: 0.75rem; white-space: nowrap; border-bottom-width: 3px; }
    .league-pill img { width: 16px; height: 16px; }

    /* 🌟 Match Cards (MOBILE - 2 COLUMNS FIX) 🌟 */
    .matches-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .pro-card, .match-card { min-height: auto; border-radius: 8px; border-bottom-width: 3px; padding-bottom: 8px;}
    .pro-card:hover, .match-card:hover { transform: none; } 
    .pro-card:active { transform: scale(0.98); }
    .card-main { flex-direction: column; padding: 10px 4px 4px 4px; gap: 4px; text-align: center; }
    .team-wrap { width: 100%; flex-direction: row; justify-content: center; align-items: center; gap: 4px; }
    .team-logo-img { width: 20px; height: 20px; }
    .team-title { font-size: 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 75px; margin-top: 0; }
    .score-block { margin: 1px 0; width: auto; }
    .score-display, .vs-display { font-size: 1.1rem; }
    .card-status-pill { font-size: 0.55rem; padding: 2px 4px; top: 4px; right: 4px; }
    .match-round-tag { font-size: 0.55rem; margin-top: 2px; }

    /* World Cup Mobile Overrides */
    .wc-champions-grid { grid-template-columns: repeat(2, 1fr); display: flex; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
    .wc-champions-grid::-webkit-scrollbar { display: none; }
    .wc-champ-card { min-width: 110px; flex-shrink: 0; padding: 10px; }
    .wc-champ-card img { width: 35px; height: 35px; }

    /* Floating Navigation */
    .float-nav-wrap { bottom: 80px; right: 15px; gap: 10px; }
    .float-btn { width: 40px; height: 40px; font-size: 1rem; }
    .mobile-today-float { display: flex; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #dc2626; color: white; padding: 8px 20px; border-radius: 50px; font-weight: bold; font-size: 0.8rem; box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4); z-index: 10001; align-items: center; gap: 6px; border: 2px solid white; cursor: pointer; }

    /* Standard Pages */
    .standard-page-wrapper { padding: 20px 10px; }
    .standard-page-container { padding: 20px; }
    .standard-page-title { font-size: 2.2rem; }
    .standard-page-content { font-size: 1rem; }
}