:root{--red:#da251d;--bg-dark:#0f172a;--bg-card:#1e293b;--bg-hover:#334155;--text:#f8fafc;--text-muted:#94a3b8;--border:#334155;--green:#22c55e;--blue:#3b82f6;--yellow:#eab308}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Inter',sans-serif;background:linear-gradient(135deg,var(--bg-dark),#1e293b);color:var(--text);min-height:100vh;line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%}
.container{max-width:1200px;margin:0 auto;padding:0 1rem}

/* Navbar */
.navbar{background:rgba(15,23,42,0.95);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100;backdrop-filter:blur(10px)}
.navbar .container{display:flex;align-items:center;justify-content:space-between;height:60px}
.logo{font-size:1.25rem;font-weight:700}
.text-red{color:var(--red)}
.nav-links{display:flex;gap:0.25rem}
.nav-link{padding:0.5rem 1rem;border-radius:0.5rem;transition:all 0.2s}
.nav-link:hover{background:var(--bg-hover)}
.mobile-btn{display:none;background:none;border:none;color:var(--text);font-size:1.5rem;cursor:pointer}
.mobile-nav{display:none;flex-direction:column;background:var(--bg-card);border-bottom:1px solid var(--border)}
.mobile-nav.active{display:flex}
.mobile-nav a{padding:1rem;border-bottom:1px solid var(--border)}

/* League Bar */
.league-bar{background:var(--bg-dark);border-bottom:1px solid var(--border);padding:0.75rem 0;overflow-x:auto}
.league-bar .container{display:flex;justify-content:center}
.league-tabs{display:flex;gap:0.5rem;flex-wrap:nowrap}
.league-tab{display:flex;align-items:center;gap:0.4rem;padding:0.5rem 1rem;background:var(--bg-card);border:1px solid var(--border);border-radius:0.5rem;font-size:0.85rem;transition:all 0.2s;white-space:nowrap}
.league-tab:hover{border-color:var(--red);background:var(--bg-hover)}
.league-tab.active{background:var(--red);border-color:var(--red);color:white}
.league-flag{font-size:1.1rem}
.league-name{font-weight:500}

/* Today Live Section */
.today-live-section{background:linear-gradient(135deg,rgba(239,68,68,0.1),rgba(239,68,68,0.05));border:1px solid rgba(239,68,68,0.3);border-radius:12px;padding:1.5rem;margin-bottom:2rem}
.section-header{margin-bottom:1rem}
.section-title{font-size:1.1rem;margin-bottom:0.5rem;color:var(--text)}

/* Main */
.main{padding:2rem 0;min-height:calc(100vh - 200px)}
.page-header{margin-bottom:2rem;text-align:center}
.page-title{font-size:1.75rem;font-weight:700;margin-bottom:0.5rem}
.page-subtitle{color:var(--text-muted)}
.section-title{font-size:1.1rem;margin-bottom:1rem;color:var(--text-muted)}

/* Tabs */
.tabs{display:flex;gap:0.5rem;margin-bottom:1.5rem;flex-wrap:wrap;justify-content:center}
.tab{padding:0.75rem 1.5rem;background:var(--bg-card);border:1px solid var(--border);border-radius:0.5rem;color:var(--text-muted);cursor:pointer;transition:all 0.2s;font-family:inherit}
.tab:hover{background:var(--bg-hover);color:var(--text)}
.tab.active{background:var(--red);border-color:var(--red);color:white}
.tab-content{display:none}
.tab-content.active{display:block}

/* Layout */
.two-col{display:grid;grid-template-columns:1fr 380px;gap:1.5rem}

/* Live Indicator */
.live-indicator{display:flex;align-items:center;justify-content:center;gap:0.5rem;padding:0.75rem;background:rgba(239,68,68,0.1);border:1px solid rgba(239,68,68,0.3);border-radius:0.5rem;margin-bottom:1.5rem;color:#ef4444;font-weight:500}
.live-dot{width:10px;height:10px;background:#ef4444;border-radius:50%;animation:pulse 1.5s infinite}
.live-dot-sm{width:6px;height:6px;background:#ef4444;border-radius:50%;animation:pulse 1.5s infinite;display:inline-block}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.4}}

/* Match Grid */
.matches-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}

/* Match Card */
.match-card{display:block;background:var(--bg-card);border:1px solid var(--border);border-radius:12px;padding:1rem;transition:all 0.2s}
.match-card:hover{border-color:var(--red);transform:translateY(-2px);box-shadow:0 8px 30px rgba(0,0,0,0.3)}
.match-card.live{border-color:rgba(239,68,68,0.5)}
.match-header-link{display:block;text-decoration:none;color:inherit}
.match-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:0.75rem;font-size:0.8rem}
.match-league{color:var(--text-muted)}
.match-status{padding:0.25rem 0.75rem;border-radius:1rem;font-weight:600;font-size:0.75rem;display:flex;align-items:center;gap:0.4rem}
.match-status.live{background:rgba(239,68,68,0.2);color:#ef4444}
.match-status.upcoming{background:rgba(59,130,246,0.2);color:#3b82f6}
.match-status.finished{background:rgba(100,116,139,0.2);color:#94a3b8}
.match-teams{display:flex;flex-direction:column;gap:0.6rem}
.team-row{display:flex;align-items:center;gap:0.75rem}
.team-info-link{display:flex;align-items:center;gap:0.75rem;flex:1;text-decoration:none;color:inherit;transition:color 0.2s}
.team-info-link:hover{color:var(--red)}
.team-info-link:hover .team-name{color:var(--red)}
.team-logo{width:28px;height:28px;object-fit:contain}
.team-logo-sm{width:22px;height:22px;object-fit:contain}
.team-logo-tiny{width:16px;height:16px;object-fit:contain}
.team-name{flex:1;font-weight:500;font-size:0.95rem;transition:color 0.2s}
.team-name.winner{font-weight:700;color:white}
.team-score{font-size:1.4rem;font-weight:700;min-width:1.5rem;text-align:center;text-decoration:none;color:inherit;transition:color 0.2s}
.team-score:hover{color:var(--red)}
.team-score.live{color:var(--red)}
.match-footer,.match-footer-link{display:block;margin-top:0.75rem;padding-top:0.6rem;border-top:1px solid var(--border);text-align:center;font-size:0.75rem;color:var(--text-muted);text-decoration:none;transition:color 0.2s}
.match-footer:hover,.match-footer-link:hover{color:var(--red)}

/* Card */
.card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden;margin-bottom:1.5rem}
.card-header{padding:1rem 1.25rem;border-bottom:1px solid var(--border);font-weight:600}
.card-body{padding:1rem 1.25rem}
.card-footer{padding:0.75rem 1.25rem;border-top:1px solid var(--border);text-align:center;font-size:0.9rem}
.card-footer a{color:var(--red)}

/* SEO Content */
.seo-content p{margin-bottom:0.75rem;font-size:0.9rem;color:var(--text-muted)}

/* Standings */
.table-scroll{overflow-x:auto}
.standings-table{width:100%;border-collapse:collapse;font-size:0.85rem}
.standings-table th{padding:0.6rem;text-align:left;background:rgba(51,65,85,0.5);color:var(--text-muted);font-weight:500;font-size:0.75rem}
.standings-table td{padding:0.6rem;border-top:1px solid var(--border)}
.standings-table tr:hover{background:rgba(51,65,85,0.3)}
.standings-table.full th,.standings-table.full td{padding:0.75rem}
.standings-table td a{display:flex;align-items:center;gap:0.5rem;text-decoration:none;color:inherit}
.standings-table td a:hover{color:var(--red)}
.standings-table td a:hover span{color:var(--red)}
.rank{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-weight:600;font-size:0.75rem}
.rank.top{background:rgba(34,197,94,0.2);color:var(--green)}
.rank.ucl{background:rgba(59,130,246,0.2);color:var(--blue)}
.rank.uel{background:rgba(249,115,22,0.2);color:#f97316}
.rank.bottom{background:rgba(239,68,68,0.2);color:#ef4444}
.team-cell{display:flex;align-items:center;gap:0.5rem;text-decoration:none;color:inherit}
a.team-cell{cursor:pointer}
a.team-cell:hover{color:var(--red)}
a.team-cell:hover span{color:var(--red)}
.team-link{text-decoration:none;color:inherit;cursor:pointer;transition:color 0.2s}
.team-link:hover{color:var(--red)}
.team-link:hover span{color:var(--red)}
.points{background:rgba(218,37,29,0.2);color:var(--red);padding:0.2rem 0.5rem;border-radius:0.25rem;font-weight:700}
.form{display:flex;gap:0.15rem}
.form span{width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:0.55rem;font-weight:700;color:white}
.form-w{background:var(--green)}
.form-d{background:var(--yellow)}
.form-l{background:#ef4444}
.legend{padding:0.75rem 1rem;border-top:1px solid var(--border);font-size:0.75rem;color:var(--text-muted);display:flex;gap:1rem;flex-wrap:wrap}
.legend-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:0.4rem}
.legend-dot.top{background:var(--green)}
.legend-dot.ucl{background:var(--blue)}
.legend-dot.uel{background:#f97316}
.legend-dot.bottom{background:#ef4444}

/* Scorers */
.scorers-list{padding:0.25rem 0}
.scorer-item{display:flex;align-items:center;gap:0.6rem;padding:0.6rem 1rem;border-bottom:1px solid var(--border);text-decoration:none;color:inherit;transition:background 0.2s;cursor:pointer}
.scorer-item:hover{background:var(--bg-hover)}
.scorer-item:last-child{border-bottom:none}
.scorer-rank{width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:var(--bg-hover);border-radius:50%;font-size:0.75rem;font-weight:600}
.scorer-photo{width:40px;height:40px;border-radius:50%;object-fit:cover}
.scorer-info{flex:1}
.scorer-name{font-weight:500;font-size:0.9rem}
.scorer-team{font-size:0.75rem;color:var(--text-muted);display:flex;align-items:center;gap:0.25rem}
.scorer-goals{font-size:1.1rem;font-weight:700;color:var(--red)}

/* Match Detail Page - Redesigned */
.match-detail-page{max-width:900px;margin:0 auto}
.match-hero{position:relative;background:linear-gradient(135deg,#1a1f35,#2d3555);border-radius:16px;overflow:hidden;margin-bottom:1.5rem}
.match-hero.live{background:linear-gradient(135deg,#2d1a1a,#3d2525)}
.match-hero-bg{position:absolute;top:0;left:0;right:0;bottom:0;background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>') center/200px repeat;opacity:0.5}
.match-hero-content{position:relative;padding:1.5rem}
.match-comp{display:flex;align-items:center;gap:0.75rem;justify-content:center;margin-bottom:1.5rem}
.comp-logo{width:36px;height:36px;object-fit:contain}
.comp-info{display:flex;flex-direction:column}
.comp-name{font-weight:600;font-size:0.95rem}
.comp-round{font-size:0.8rem;color:var(--text-muted)}
.match-main{display:flex;align-items:center;justify-content:center;gap:1rem;margin-bottom:1.5rem}
.match-team-box{display:flex;flex-direction:column;align-items:center;gap:0.75rem;flex:1;text-decoration:none;color:inherit;padding:1rem;border-radius:12px;transition:all 0.2s}
.match-team-box:hover{background:rgba(255,255,255,0.05)}
.team-logo-big{width:80px;height:80px;object-fit:contain}
.team-name-big{font-size:1rem;font-weight:600;text-align:center;transition:color 0.2s}
.team-name-big.winner{color:var(--green)}
.match-team-box:hover .team-name-big{color:var(--red)}
.match-center{display:flex;flex-direction:column;align-items:center;min-width:140px}
.score-big{display:flex;align-items:center;gap:0.5rem}
.score-num{font-size:3.5rem;font-weight:800;line-height:1}
.score-num.live{color:var(--red)}
.score-num.finished{color:var(--text)}
.score-divider{font-size:2rem;color:var(--text-muted)}
.match-status-big{display:inline-flex;align-items:center;gap:0.4rem;padding:0.4rem 1rem;border-radius:2rem;font-size:0.85rem;font-weight:600;margin-top:0.75rem}
.match-status-big.live{background:rgba(239,68,68,0.2);color:#ef4444}
.match-status-big.finished{background:rgba(100,116,139,0.2);color:#94a3b8}
.match-status-big.upcoming{background:rgba(59,130,246,0.2);color:#3b82f6}
.pulse-dot{width:8px;height:8px;background:#ef4444;border-radius:50%;animation:pulse 1.5s infinite}
.ht-score{font-size:0.8rem;color:var(--text-muted);margin-top:0.5rem}
.match-info-bar{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem 1.5rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,0.1)}
.info-item{display:flex;align-items:center;gap:0.4rem;font-size:0.85rem;color:var(--text-muted)}
.info-icon{font-size:1rem}

/* Match Tabs */
.match-tabs{display:flex;justify-content:center;gap:0.5rem;margin-bottom:1.5rem;flex-wrap:wrap}
.match-tab{padding:0.75rem 1.5rem;background:var(--bg-card);border:1px solid var(--border);border-radius:8px;color:var(--text-muted);cursor:pointer;font-family:inherit;font-size:0.9rem;transition:all 0.2s}
.match-tab:hover{background:var(--bg-hover);color:var(--text)}
.match-tab.active{background:var(--red);border-color:var(--red);color:white}
.match-content{min-height:300px}

/* Events Timeline */
.events-card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.events-timeline{padding:1rem 0}
.event-row{display:grid;grid-template-columns:1fr auto 1fr;gap:0.5rem;padding:0.75rem 1rem;border-bottom:1px solid var(--border)}
.event-row:last-child{border-bottom:none}
.event-row.goal{background:rgba(34,197,94,0.05)}
.event-row.yellow{background:rgba(234,179,8,0.05)}
.event-row.red{background:rgba(239,68,68,0.05)}
.event-left{text-align:right}
.event-right{text-align:left}
.event-left.empty,.event-right.empty{opacity:0}
.event-content{display:flex;flex-direction:column;gap:0.15rem}
.event-player-name{font-weight:600;font-size:0.9rem;color:var(--text);text-decoration:none;transition:color 0.2s}
.event-player-name:hover{color:var(--red)}
.event-desc{font-size:0.75rem;color:var(--text-muted)}
.event-center{display:flex;flex-direction:column;align-items:center;gap:0.25rem;min-width:60px}
.event-minute{font-size:0.75rem;font-weight:600;color:var(--text-muted);background:var(--bg-hover);padding:0.15rem 0.5rem;border-radius:1rem}
.event-icon-big{font-size:1.25rem}

/* Stats Card */
.stats-card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.stats-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;background:var(--bg-hover);border-bottom:1px solid var(--border)}
.stats-team-logo{width:32px;height:32px;object-fit:contain}
.stats-body{padding:1rem}
.stat-item{display:flex;align-items:center;gap:1rem;padding:0.6rem 0;border-bottom:1px solid var(--border)}
.stat-item:last-child{border-bottom:none}
.stat-val{width:40px;font-weight:700;font-size:0.95rem}
.stat-val.home{text-align:right}
.stat-val.away{text-align:left}
.stat-val.higher{color:var(--green)}
.stat-middle{flex:1;display:flex;flex-direction:column;align-items:center;gap:0.3rem}
.stat-name{font-size:0.75rem;color:var(--text-muted)}
.stat-bars{display:flex;gap:4px;width:100%}
.stat-bar-bg{flex:1;height:6px;background:var(--bg-hover);border-radius:3px;overflow:hidden}
.stat-bar-bg:first-child{display:flex;justify-content:flex-end}
.stat-bar{height:100%;border-radius:3px;transition:width 0.5s}
.stat-bar.home{background:var(--red)}
.stat-bar.away{background:var(--blue)}

/* Lineups Container */
.lineups-container{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.lineup-card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.lineup-header{display:flex;align-items:center;gap:0.75rem;padding:1rem;background:var(--bg-hover);border-bottom:1px solid var(--border)}
.lineup-team-logo{width:36px;height:36px;object-fit:contain}
.lineup-info{display:flex;flex-direction:column}
.lineup-team-name{font-weight:600}
.lineup-formation{font-size:0.8rem;color:var(--text-muted)}
.lineup-section{padding:0.75rem}
.lineup-title{font-size:0.8rem;font-weight:600;color:var(--text-muted);margin-bottom:0.5rem;padding-bottom:0.5rem;border-bottom:1px solid var(--border)}
.lineup-grid{display:flex;flex-direction:column;gap:0.25rem}
.lineup-player-card{display:flex;align-items:center;gap:0.5rem;padding:0.5rem 0.75rem;background:var(--bg-hover);border-radius:6px;text-decoration:none;color:inherit;transition:all 0.2s}
.lineup-player-card:hover{background:var(--border);transform:translateX(4px)}
.lineup-player-card.sub{opacity:0.8}
.lp-number{width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:var(--bg-dark);border-radius:4px;font-size:0.75rem;font-weight:700}
.lp-name{flex:1;font-size:0.85rem}
.lp-pos{font-size:0.65rem;padding:0.15rem 0.4rem;background:var(--bg-dark);border-radius:3px;color:var(--text-muted)}
.lineup-coach{padding:0.75rem 1rem;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}
.coach-label{font-size:0.8rem;color:var(--text-muted)}
.coach-name{font-weight:600}

/* Back Links */
.back-link{display:flex;justify-content:center;gap:1rem;margin-top:2rem;flex-wrap:wrap}
.btn-back{padding:0.75rem 1.5rem;background:var(--bg-card);border:1px solid var(--border);border-radius:8px;color:var(--text);text-decoration:none;transition:all 0.2s}
.btn-back:hover{border-color:var(--red);color:var(--red)}
.match-score-box{text-align:center}
.match-score-display{display:flex;align-items:center;gap:0.5rem;font-size:2.5rem;font-weight:700}
.score.live{color:var(--red)}
.score-sep{color:var(--text-muted)}
.match-status-badge{display:inline-flex;align-items:center;gap:0.4rem;padding:0.4rem 1rem;border-radius:2rem;margin-top:0.5rem;font-weight:500;font-size:0.85rem}
.match-status-badge.live{background:rgba(239,68,68,0.2);color:#ef4444}
.match-status-badge.finished{background:rgba(100,116,139,0.2);color:#94a3b8}
.match-status-badge.upcoming{background:rgba(59,130,246,0.2);color:#3b82f6}
.halftime{font-size:0.8rem;color:var(--text-muted);margin-top:0.5rem}
.match-info{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem;font-size:0.85rem;color:var(--text-muted)}

/* Events */
.events-list{padding:0.5rem 0}
.event-item{display:flex;align-items:center;gap:0.6rem;padding:0.6rem 1rem;border-radius:0.5rem;margin:0.25rem 0.5rem}
.event-item.home{background:rgba(51,65,85,0.3)}
.event-item.away{background:rgba(51,65,85,0.5)}
.event-time{width:35px;font-weight:600;color:var(--text-muted);font-size:0.85rem}
.event-icon{font-size:1.1rem}
.event-info{flex:1}
.event-player{font-weight:500;font-size:0.9rem}
.event-detail{font-size:0.8rem;color:var(--text-muted)}
.event-team-logo{width:22px;height:22px;object-fit:contain}

/* Stats */
.stats-grid{padding:1rem}
.stat-row{display:flex;align-items:center;gap:0.75rem;margin-bottom:0.75rem}
.stat-value{width:35px;font-weight:600;text-align:center;font-size:0.9rem}
.stat-bar-wrap{flex:1}
.stat-label{text-align:center;font-size:0.7rem;color:var(--text-muted);margin-bottom:0.2rem}
.stat-bar{display:flex;height:6px;border-radius:3px;overflow:hidden;gap:2px}
.stat-bar-home{background:var(--red)}
.stat-bar-away{background:var(--text-muted)}

/* Empty State */
.empty-state{text-align:center;padding:2.5rem;color:var(--text-muted)}
.empty-state.small{padding:1.5rem}
.empty-icon{font-size:2.5rem;margin-bottom:0.75rem}
.empty-state h3{margin-bottom:0.5rem;color:var(--text)}

/* Error */
.error-page{text-align:center;padding:4rem 1rem}
.error-page .error-icon{font-size:4rem;margin-bottom:1rem}
.error-page h1{margin-bottom:1rem}
.error-page p{color:var(--text-muted);margin-bottom:2rem}

/* Button */
.btn{display:inline-block;padding:0.75rem 1.5rem;background:var(--red);color:white;border-radius:0.5rem;font-weight:500;transition:all 0.2s}
.btn:hover{background:#b91c1c}
.back-link{text-align:center;margin-top:2rem}

/* Footer */
.footer{background:var(--bg-dark);border-top:1px solid var(--border);padding:2rem 0;margin-top:2rem}
.footer-content{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem;margin-bottom:1.5rem}
.footer-brand .footer-logo{font-size:1.25rem;font-weight:700;margin-bottom:0.5rem}
.footer-brand p{color:var(--text-muted);font-size:0.9rem}
.footer-links h4{font-size:0.9rem;margin-bottom:0.75rem}
.footer-links a{display:block;color:var(--text-muted);font-size:0.85rem;padding:0.25rem 0;transition:color 0.2s}
.footer-links a:hover{color:var(--red)}
.footer-bottom{text-align:center;padding-top:1.5rem;border-top:1px solid var(--border);color:var(--text-muted);font-size:0.85rem}

/* Team & Player Detail Pages - Redesigned */
.team-detail-page,.player-detail-page{max-width:1000px;margin:0 auto}

/* Team Hero */
.team-hero{position:relative;background:linear-gradient(135deg,#1a2a4a,#2d4a6a);border-radius:16px;overflow:hidden;margin-bottom:1.5rem}
.team-hero-bg{position:absolute;top:0;left:0;right:0;bottom:0;background:radial-gradient(circle at 30% 50%,rgba(255,255,255,0.05),transparent 50%);opacity:0.5}
.team-hero-content{position:relative;display:flex;align-items:center;gap:2rem;padding:2rem}
.team-hero-logo{width:120px;height:120px;object-fit:contain;background:rgba(255,255,255,0.1);border-radius:16px;padding:1rem}
.team-hero-info{flex:1}
.team-hero-name{font-size:2rem;font-weight:700;margin-bottom:0.5rem}
.team-hero-meta{display:flex;flex-wrap:wrap;gap:1rem}
.meta-item{display:flex;align-items:center;gap:0.3rem;font-size:0.9rem;color:var(--text-muted)}

/* Quick Stats Bar */
.quick-stats-bar{display:flex;justify-content:center;gap:0.5rem;margin-bottom:1.5rem;flex-wrap:wrap}
.qs-item{display:flex;flex-direction:column;align-items:center;padding:0.75rem 1.25rem;background:var(--bg-card);border:1px solid var(--border);border-radius:10px;min-width:70px}
.qs-item.win{border-color:rgba(34,197,94,0.3);background:rgba(34,197,94,0.1)}
.qs-item.draw{border-color:rgba(234,179,8,0.3);background:rgba(234,179,8,0.1)}
.qs-item.lose{border-color:rgba(239,68,68,0.3);background:rgba(239,68,68,0.1)}
.qs-item.goals{border-color:rgba(59,130,246,0.3);background:rgba(59,130,246,0.1)}
.qs-item.concede{border-color:rgba(168,85,247,0.3);background:rgba(168,85,247,0.1)}
.qs-value{font-size:1.5rem;font-weight:700}
.qs-label{font-size:0.7rem;color:var(--text-muted)}

/* Team Tabs */
.team-tabs{display:flex;justify-content:center;gap:0.5rem;margin-bottom:1.5rem;flex-wrap:wrap}
.team-tab{padding:0.75rem 1.5rem;background:var(--bg-card);border:1px solid var(--border);border-radius:8px;color:var(--text-muted);cursor:pointer;font-family:inherit;font-size:0.9rem;transition:all 0.2s}
.team-tab:hover{background:var(--bg-hover);color:var(--text)}
.team-tab.active{background:var(--red);border-color:var(--red);color:white}

/* Overview Grid */
.overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}
.team-card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.tc-header{padding:1rem 1.25rem;border-bottom:1px solid var(--border);font-weight:600;font-size:0.95rem}
.tc-body{padding:1.25rem}
.tc-body.no-padding{padding:0}
.tc-footer{padding:0.75rem 1.25rem;border-top:1px solid var(--border);text-align:center}
.tc-link{background:none;border:none;color:var(--red);cursor:pointer;font-family:inherit;font-size:0.85rem}

/* Stat Grid */
.stat-grid{display:flex;justify-content:space-around;margin-bottom:1.5rem}
.sg-item{display:flex;flex-direction:column;align-items:center;gap:0.5rem}
.sg-circle{width:70px;height:70px;border-radius:50%;background:var(--bg-hover);display:flex;align-items:center;justify-content:center;border:3px solid var(--red)}
.sg-circle.goals{border-color:var(--green)}
.sg-circle.concede{border-color:#ef4444}
.sg-value{font-size:1.1rem;font-weight:700}
.sg-label{font-size:0.75rem;color:var(--text-muted)}

/* Goals Breakdown */
.goals-breakdown{border-top:1px solid var(--border);padding-top:1rem;margin-top:1rem}
.gb-row{display:flex;justify-content:space-between;padding:0.5rem 0;border-bottom:1px solid var(--border)}
.gb-row:last-child{border-bottom:none}
.gb-label{color:var(--text-muted);font-size:0.9rem}
.gb-value{font-weight:600}
.gb-value.for{color:var(--green)}
.gb-value.against{color:#ef4444}
.gb-value.positive{color:var(--green)}
.gb-value.negative{color:#ef4444}

/* Form Box */
.form-box{margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--border)}
.form-title{font-size:0.85rem;color:var(--text-muted);margin-bottom:0.75rem;display:block}
.form-display{display:flex;gap:0.4rem}
.form-badge{width:28px;height:28px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:0.75rem;color:white}
.form-badge.w{background:var(--green)}
.form-badge.d{background:var(--yellow)}
.form-badge.l{background:#ef4444}

/* Results List */
.results-list{display:flex;flex-direction:column}
.result-item{display:flex;align-items:center;gap:1rem;padding:0.75rem 1rem;border-bottom:1px solid var(--border);text-decoration:none;color:inherit;transition:background 0.2s}
.result-item:hover{background:var(--bg-hover)}
.result-item:last-child{border-bottom:none}
.ri-date{font-size:0.75rem;color:var(--text-muted);width:45px}
.ri-match{flex:1;display:flex;align-items:center;gap:0.5rem}
.ri-opponent-logo{width:24px;height:24px;object-fit:contain}
.ri-opponent{font-size:0.9rem}
.ri-ha{font-size:0.7rem;color:var(--text-muted)}
.ri-score{display:flex;align-items:center;gap:0.5rem;font-weight:600}
.ri-result{width:22px;height:22px;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:0.7rem;font-weight:700;color:white}
.ri-result.w{background:var(--green)}
.ri-result.d{background:var(--yellow)}
.ri-result.l{background:#ef4444}

/* Squad Grid */
.squad-grid{display:flex;flex-direction:column;gap:1.5rem}
.squad-section-card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.ssc-header{padding:0.75rem 1rem;font-weight:600;font-size:0.9rem}
.ssc-header.gk{background:rgba(234,179,8,0.1);border-bottom:2px solid var(--yellow)}
.ssc-header.df{background:rgba(59,130,246,0.1);border-bottom:2px solid var(--blue)}
.ssc-header.mf{background:rgba(34,197,94,0.1);border-bottom:2px solid var(--green)}
.ssc-header.fw{background:rgba(239,68,68,0.1);border-bottom:2px solid #ef4444}
.ssc-players{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:0.5rem;padding:1rem}
.player-card{display:flex;align-items:center;gap:0.75rem;padding:0.6rem;background:var(--bg-hover);border-radius:8px;text-decoration:none;color:inherit;transition:all 0.2s}
.player-card:hover{background:var(--border);transform:translateX(4px)}
.pc-photo{width:44px;height:44px;border-radius:50%;object-fit:cover}
.pc-info{flex:1;display:flex;flex-direction:column}
.pc-name{font-weight:500;font-size:0.9rem}
.pc-age{font-size:0.75rem;color:var(--text-muted)}
.pc-number{width:28px;height:28px;background:var(--bg-dark);border-radius:6px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:0.85rem}

/* Matches List Full */
.matches-list-full{display:flex;flex-direction:column;background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.match-list-item{display:flex;align-items:center;gap:1rem;padding:1rem;border-bottom:1px solid var(--border);text-decoration:none;color:inherit;transition:background 0.2s}
.match-list-item:hover{background:var(--bg-hover)}
.match-list-item:last-child{border-bottom:none}
.mli-date{display:flex;flex-direction:column;align-items:center;width:50px}
.mli-day{font-size:0.7rem;color:var(--text-muted)}
.mli-full{font-size:0.8rem;font-weight:600}
.mli-teams{flex:1;display:flex;align-items:center;justify-content:center;gap:1rem}
.mli-team{display:flex;align-items:center;gap:0.5rem;flex:1}
.mli-team:last-of-type{flex-direction:row-reverse}
.mli-team.highlight{font-weight:600}
.mli-logo{width:24px;height:24px;object-fit:contain}
.mli-score{min-width:60px;text-align:center;font-weight:700;font-size:1.1rem}
.mli-time{font-size:0.85rem;color:var(--text-muted)}
.mli-comp{font-size:0.7rem;color:var(--text-muted);width:100px;text-align:right}
.mli-result{width:26px;height:26px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:0.75rem;font-weight:700;color:white}
.mli-result.w{background:var(--green)}
.mli-result.d{background:var(--yellow)}
.mli-result.l{background:#ef4444}

/* Venue Card */
.venue-card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.venue-image-wrap{height:250px;overflow:hidden}
.venue-image-big{width:100%;height:100%;object-fit:cover}
.venue-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:1.5rem}
.vi-item{display:flex;gap:1rem;align-items:flex-start}
.vi-item.full{grid-column:1/-1}
.vi-icon{font-size:1.5rem}
.vi-content{display:flex;flex-direction:column}
.vi-label{font-size:0.75rem;color:var(--text-muted)}
.vi-value{font-weight:600}

/* Player Info - old styles removed, keeping compatibility */
.player-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;padding:1rem}
.info-item{display:flex;flex-direction:column}
.info-label{font-size:0.75rem;color:var(--text-muted);margin-bottom:0.25rem}
.info-value{font-weight:500}

/* Player Detail Page - Redesigned */
.player-detail-page{max-width:900px;margin:0 auto}

/* Player Hero */
.player-hero{position:relative;background:linear-gradient(135deg,#1e3a5f,#2d5a7b);border-radius:16px;overflow:hidden;margin-bottom:1.5rem}
.player-hero-bg{position:absolute;top:0;left:0;right:0;bottom:0;background:radial-gradient(circle at 20% 80%,rgba(255,255,255,0.08),transparent 40%)}
.player-hero-content{position:relative;display:flex;align-items:center;gap:2rem;padding:2rem}
.player-photo-wrap{flex-shrink:0}
.player-hero-photo{width:150px;height:150px;border-radius:50%;object-fit:cover;border:4px solid rgba(255,255,255,0.2);box-shadow:0 10px 30px rgba(0,0,0,0.3)}
.player-hero-info{flex:1}
.player-hero-name{font-size:2rem;font-weight:700;margin-bottom:0.75rem}
.player-hero-meta{display:flex;flex-wrap:wrap;gap:0.75rem;margin-bottom:1rem}
.meta-tag{display:inline-flex;align-items:center;gap:0.3rem;padding:0.3rem 0.75rem;background:rgba(255,255,255,0.1);border-radius:2rem;font-size:0.85rem}
.player-hero-stats{display:flex;gap:1.5rem}
.phs-item{display:flex;flex-direction:column}
.phs-value{font-size:1.1rem;font-weight:600}
.phs-label{font-size:0.7rem;color:rgba(255,255,255,0.6)}

/* Player Season Card */
.player-season-card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden;margin-bottom:1.5rem}
.psc-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;background:var(--bg-hover);border-bottom:1px solid var(--border)}
.psc-team{display:flex;align-items:center;gap:0.75rem}
.psc-team-logo{width:40px;height:40px;object-fit:contain}
.psc-team-info{display:flex;flex-direction:column}
.psc-team-name{font-weight:600;text-decoration:none;color:inherit;transition:color 0.2s}
.psc-team-name:hover{color:var(--red)}
.psc-position{font-size:0.8rem;color:var(--text-muted)}
.psc-league{display:flex;align-items:center;gap:0.5rem;font-size:0.85rem;color:var(--text-muted)}
.psc-league-logo{width:24px;height:24px;object-fit:contain}

/* Key Stats */
.key-stats{display:flex;justify-content:space-around;padding:1.5rem 1rem;border-bottom:1px solid var(--border);flex-wrap:wrap;gap:1rem}
.ks-item{display:flex;flex-direction:column;align-items:center;min-width:80px}
.ks-icon{font-size:1.5rem;margin-bottom:0.25rem}
.ks-value{font-size:1.75rem;font-weight:800}
.ks-label{font-size:0.7rem;color:var(--text-muted)}
.ks-item.goals .ks-value{color:var(--green)}
.ks-item.assists .ks-value{color:var(--blue)}
.ks-item.rating .ks-value{color:var(--yellow)}

/* Stat Tabs */
.stat-tabs{display:flex;gap:0.25rem;padding:0.75rem;border-bottom:1px solid var(--border);flex-wrap:wrap}
.stat-tab{padding:0.5rem 1rem;background:transparent;border:1px solid var(--border);border-radius:6px;color:var(--text-muted);cursor:pointer;font-family:inherit;font-size:0.8rem;transition:all 0.2s}
.stat-tab:hover{background:var(--bg-hover);color:var(--text)}
.stat-tab.active{background:var(--red);border-color:var(--red);color:white}

/* Stat Panel */
.stat-panel{display:none;padding:1.25rem}
.stat-panel.active{display:block}

/* Stat Grid Detail */
.stat-grid-detail{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.sgd-item{display:flex;flex-direction:column;padding:1rem;background:var(--bg-hover);border-radius:8px;text-align:center}
.sgd-item.yellow{border-left:3px solid var(--yellow)}
.sgd-item.red{border-left:3px solid #ef4444}
.sgd-label{font-size:0.75rem;color:var(--text-muted);margin-bottom:0.5rem}
.sgd-value{font-size:1.25rem;font-weight:700}
.sgd-value.highlight{color:var(--green);font-size:1.5rem}

/* Games Breakdown */
.games-breakdown{padding:1.25rem;border-top:1px solid var(--border);background:var(--bg-hover)}
.gbd-title{font-size:0.9rem;font-weight:600;margin-bottom:1rem}
.gbd-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:0.75rem}
.gbd-item{display:flex;flex-direction:column;align-items:center;padding:0.5rem;background:var(--bg-card);border-radius:6px}
.gbd-label{font-size:0.65rem;color:var(--text-muted)}
.gbd-value{font-size:1rem;font-weight:600}

/* Scorer improvements */
.scorer-item{display:flex;align-items:center;gap:0.6rem;padding:0.75rem 1rem;border-bottom:1px solid var(--border);transition:background 0.2s}
.scorer-item:hover{background:var(--bg-hover)}
.scorer-item.compact{padding:0.5rem 1rem}
.scorer-rank.top1{background:linear-gradient(135deg,#ffd700,#ffb700);color:#000}
.scorer-rank.top2{background:linear-gradient(135deg,#c0c0c0,#a0a0a0);color:#000}
.scorer-rank.top3{background:linear-gradient(135deg,#cd7f32,#b8690a);color:#fff}
.scorer-extra{display:flex;gap:0.5rem;font-size:0.75rem;color:var(--text-muted);margin-top:0.25rem}
.scorer-stats{text-align:center}
.scorer-label{display:block;font-size:0.65rem;color:var(--text-muted)}
.scorer-photo-sm{width:32px;height:32px;border-radius:50%;object-fit:cover}
.scorer-assists{font-size:1rem;font-weight:700;color:var(--blue)}

/* Team link */
.team-link{transition:color 0.2s}
.team-link:hover{color:var(--red)}

/* Lineups */
.lineups-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.lineup-card .card-header{display:flex;align-items:center;gap:0.5rem}
.lineup-section{padding:0.5rem 0}
.lineup-section h4{padding:0.5rem 1rem;background:var(--bg-hover);font-size:0.8rem;color:var(--text-muted)}
.lineup-players{padding:0.25rem 0}
.lineup-player{display:flex;align-items:center;gap:0.5rem;padding:0.4rem 1rem;border-bottom:1px solid var(--border);transition:background 0.2s;font-size:0.85rem}
.lineup-player:hover{background:var(--bg-hover)}
.lineup-player.sub{opacity:0.8}
.lineup-players.subs .lineup-player{font-size:0.8rem;padding:0.3rem 1rem}
.lineup-coach{padding:0.75rem 1rem;border-top:1px solid var(--border);font-size:0.85rem;color:var(--text-muted)}
.player-pos{margin-left:auto;font-size:0.75rem;color:var(--text-muted);background:var(--bg-dark);padding:0.1rem 0.4rem;border-radius:3px}
.league-logo-sm{width:20px;height:20px;object-fit:contain;margin-right:0.5rem}

/* Utilities */
.text-green{color:var(--green)}
.text-yellow{color:var(--yellow)}
.text-red{color:#ef4444}

/* Bottom Ad styles removed - using inline styles only */

/* Responsive */
@media(max-width:900px){
  .two-col{grid-template-columns:1fr}
  .nav-links{display:none}
  .mobile-btn{display:block}
  .footer-content{grid-template-columns:1fr;text-align:center}
  .lineups-container{grid-template-columns:1fr}
  .overview-grid{grid-template-columns:1fr}
  .stat-grid-detail{grid-template-columns:repeat(2,1fr)}
  .gbd-grid{grid-template-columns:repeat(3,1fr)}
}

@media(max-width:768px){
  /* Hide league names on mobile, show only flags */
  .league-name{display:none}
  .league-tab{padding:0.5rem 0.6rem;min-width:44px;justify-content:center}
  .league-flag{font-size:1.4rem}
  .league-tabs{gap:0.3rem;justify-content:flex-start;overflow-x:auto;padding-bottom:0.5rem}
  .league-bar{padding:0.5rem 0}
  .league-bar .container{padding:0 0.5rem}
  
  /* Page title */
  .page-header{margin-bottom:1.5rem}
  .page-title{font-size:1.3rem}
  .page-subtitle{font-size:0.85rem}
  
  /* Tabs */
  .tabs{gap:0.25rem;flex-wrap:wrap}
  .tab{padding:0.6rem 0.8rem;font-size:0.8rem;flex:1;min-width:80px;text-align:center}
  
  /* Match cards */
  .matches-grid{grid-template-columns:1fr;gap:0.75rem}
  .match-card{padding:0.75rem}
  .team-logo{width:24px;height:24px}
  .team-name{font-size:0.85rem}
  .team-score{font-size:1.2rem}
  
  /* Standings mini */
  .standings-table{font-size:0.8rem}
  .team-logo-sm{width:18px;height:18px}
  
  /* Match detail page */
  .match-main{flex-direction:column;gap:0.75rem}
  .match-team-box{flex-direction:row;width:100%;justify-content:center;padding:0.5rem}
  .team-logo-big{width:45px;height:45px}
  .team-name-big{font-size:0.85rem}
  .score-num{font-size:2.2rem}
  .match-center{order:-1;min-width:auto}
  .match-tabs,.team-tabs{gap:0.2rem}
  .match-tab,.team-tab{padding:0.5rem 0.6rem;font-size:0.75rem;flex:1}
  .match-info-bar{gap:0.5rem;font-size:0.75rem}
  .info-item{gap:0.2rem}
  
  /* Team page */
  .team-hero-content{flex-direction:column;text-align:center;padding:1.25rem}
  .team-hero-logo{width:70px;height:70px;padding:0.5rem}
  .team-hero-name{font-size:1.4rem}
  .team-hero-meta{justify-content:center;font-size:0.8rem}
  .quick-stats-bar{gap:0.25rem}
  .qs-item{padding:0.4rem 0.5rem;min-width:50px}
  .qs-value{font-size:1.1rem}
  .qs-label{font-size:0.6rem}
  .venue-info-grid{grid-template-columns:1fr}
  .ssc-players{grid-template-columns:1fr}
  
  /* Player page */
  .player-hero-content{flex-direction:column;text-align:center;padding:1.25rem}
  .player-hero-photo{width:90px;height:90px}
  .player-hero-name{font-size:1.4rem}
  .player-hero-meta{justify-content:center}
  .player-hero-stats{justify-content:center;gap:1rem}
  .phs-item{align-items:center}
  .psc-header{flex-direction:column;gap:0.5rem;align-items:flex-start}
  .key-stats{padding:0.75rem;gap:0.5rem}
  .ks-item{min-width:55px}
  .ks-value{font-size:1.2rem}
  .ks-icon{font-size:1.2rem}
  .stat-tabs{justify-content:center;padding:0.5rem}
  .stat-tab{padding:0.4rem 0.6rem;font-size:0.7rem}
  
  /* Match list */
  .mli-teams{flex-direction:column;gap:0.4rem}
  .mli-team{justify-content:center}
  .mli-team:last-of-type{flex-direction:row}
  .mli-comp{display:none}
  .mli-date{width:40px}
  .mli-day,.mli-full{font-size:0.65rem}
  
  /* Events */
  .event-row{padding:0.5rem 0.75rem}
  .event-player-name{font-size:0.8rem}
  .event-desc{font-size:0.7rem}
  .event-minute{font-size:0.65rem;padding:0.1rem 0.35rem}
  
  /* Player info grid */
  .player-info-grid{grid-template-columns:1fr}
  
  /* Footer */
  .footer{padding:1.5rem 0}
  .footer-content{gap:1.5rem}
  .footer-links{display:none}
}

@media(max-width:480px){
  /* Extra small screens */
  .container{padding:0 0.75rem}
  
  .page-title{font-size:1.1rem}
  .page-subtitle{font-size:0.75rem}
  
  .league-tab{padding:0.4rem 0.5rem}
  .league-flag{font-size:1.2rem}
  
  .tab{padding:0.5rem 0.6rem;font-size:0.75rem}
  
  .match-card{padding:0.6rem}
  .team-name{font-size:0.8rem}
  .team-score{font-size:1.1rem}
  .match-footer,.match-footer-link{font-size:0.7rem}
  
  .team-logo-big{width:40px;height:40px}
  .team-name-big{font-size:0.8rem}
  .score-num{font-size:1.8rem}
  .match-status-big{font-size:0.75rem;padding:0.3rem 0.75rem}
  
  .team-hero-logo{width:60px;height:60px}
  .team-hero-name{font-size:1.2rem}
  .player-hero-photo{width:75px;height:75px}
  .player-hero-name{font-size:1.2rem}
  
  .qs-item{padding:0.3rem 0.4rem;min-width:45px}
  .qs-value{font-size:1rem}
  
  .key-stats{flex-wrap:wrap;justify-content:center}
  .ks-item{min-width:60px;flex:0 0 30%}
  .ks-value{font-size:1.1rem}
  
  .stat-grid-detail{grid-template-columns:1fr 1fr}
  .sgd-item{padding:0.75rem 0.5rem}
  .sgd-value{font-size:1rem}
  
  .gbd-grid{grid-template-columns:repeat(2,1fr)}
  
  .back-link{flex-direction:column;gap:0.5rem}
  .btn-back{width:100%;text-align:center}
  
  .empty-state{padding:2rem 1rem}
  .empty-icon{font-size:2.5rem}
  .empty-state h3{font-size:1rem}
  .empty-state p{font-size:0.85rem}
}
