/* ====================================================================
   DESIGN TOKEN SYSTEM — Merkezi CSS Custom Properties
   #35: Spacing tokens | #36: Border-radius tokens | #37: Z-index tokens
   ==================================================================== */
:root{/* --- Z-INDEX SCALE --- */ --z-behind:-1;--z-base:0;--z-above:1;--z-raised:2;--z-elevated:5;--z-player:10;--z-player-info:15;--z-overlay:100;--z-fixed:1000;--z-fixed-above:1001;--z-fixed-top:1010;--z-modal:9999;--z-popup:10000;--z-popup-above:10001;/* --- BORDER-RADIUS SCALE --- */ --radius-xs:2px;--radius-sm:4px;--radius-md:8px;--radius-lg:12px;--radius-xl:16px;--radius-2xl:20px;--radius-pill:30px;--radius-full:50%;/* --- SPACING SCALE (4px base) --- */ --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-7:32px;--space-8:48px;}
/* ====================================================================
   #33: BREAKPOINT STANDARDIZATION — Referans tablosu
   CSS custom properties @media query'lerde kullanılamaz.
   Tüm media query'ler aşağıdaki 5 standart noktayı hedefler:
   
   BP-XS:  360px  — Ultra-küçük mobil (Galaxy Fold vb.)
   BP-SM:  480px  — Küçük mobil (standart telefon)
   BP-MD:  768px  — Tablet / büyük mobil
   BP-LG: 1024px  — Küçük masaüstü / tablet yatay
   BP-XL: 1200px  — Masaüstü / büyük ekran
   
   Kullanım kuralları:
   • max-width: mobile-first override → (max-width: 768px)
   • min-width: desktop-first override → (min-width: 769px)
   • Aralık: (min-width: 769px) and (max-width: 1024px)
   ==================================================================== */

/* ====================================================================
   GLOBAL BOX-SIZING RESET — Firefox & cross-browser fix
   Ensures padding/border are included in width/height calculations
   ==================================================================== */
*, *::before, *::after{box-sizing:border-box;}
/* ====================================================================
   FAZ3 FIX #17: Font Awesome → Inline SVG İkonlar (~90KB CDN → ~2KB CSS)
   Mask-image yaklaşımı: background-color: currentColor + SVG mask
   CSS 'color' property'si hala çalışır (currentColor ile)
   ==================================================================== */
.fas{display:inline-block;font-style:normal;text-rendering:auto;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:currentColor;width:1em;height:1em;vertical-align:-0.125em;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;}
/* fa-square: Dolu kare (kart ikonları) */
.fa-square{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect width='14' height='14' x='1' y='1' rx='1'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect width='14' height='14' x='1' y='1' rx='1'/%3E%3C/svg%3E");}
/* fa-arrow-up: Yukarı ok (tur atlayan takım) — bilgi ikonu, tıklanabilir değil */
.fa-arrow-up{font-size:12px;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1L14 8H10v7H6V8H2z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1L14 8H10v7H6V8H2z'/%3E%3C/svg%3E");}
/* fa-arrow-left: Sol ok (geri butonu) */
.fa-arrow-left{min-height:44px;/* FAZ2 FIX #8:Mobile touch target minimum */ min-width:44px;display:flex;align-items:center;justify-content:center;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1L1 8l7 7v-5h7V6H8z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1L1 8l7 7v-5h7V6H8z'/%3E%3C/svg%3E");}
/* fa-arrow-right: Sağ ok (oyuncu değişikliği — bilgilendirme, tıklanabilir değil) */
.fa-arrow-right{width:16px;height:16px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l7 7-7 7v-5H1V6h7z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l7 7-7 7v-5H1V6h7z'/%3E%3C/svg%3E");}
/* fa-chart-simple: Çubuk grafik (istatistik) */
.fa-chart-simple{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='9' width='3' height='7' rx='.5'/%3E%3Crect x='6.5' y='4' width='3' height='12' rx='.5'/%3E%3Crect x='12' y='6' width='3' height='10' rx='.5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='9' width='3' height='7' rx='.5'/%3E%3Crect x='6.5' y='4' width='3' height='12' rx='.5'/%3E%3Crect x='12' y='6' width='3' height='10' rx='.5'/%3E%3C/svg%3E");}
/* fa-futbol: Futbol topu (gol ikonu) — /images/goal.svg kullanılıyor */
.fa-futbol{-webkit-mask-image:url(//www.sporkolik.net/images/goal.svg);mask-image:url(//www.sporkolik.net/images/goal.svg);}
/* fa-times-circle: Kaçan penaltı ikonu — /images/missed-penalty.svg kullanılıyor */
.fa-times-circle{-webkit-mask-image:url(//www.sporkolik.net/images/missed-penalty.svg);mask-image:url(//www.sporkolik.net/images/missed-penalty.svg);}
/* fa-exchange-alt: Çift ok (oyuncu değişikliği) */
.fa-exchange-alt{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M12 2l4 3-4 3V6H2V4h10zM4 14l-4-3 4-3v2h10v2H4z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M12 2l4 3-4 3V6H2V4h10zM4 14l-4-3 4-3v2h10v2H4z'/%3E%3C/svg%3E");}
/* fa-hand-paper: Açık el (kaleci kurtarışı) */
.fa-hand-paper{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 7V3.5a1.5 1.5 0 013 0V7h1V2.5a1.5 1.5 0 013 0V7h.5A1.5 1.5 0 0114 8.5V12a4 4 0 01-4 4H7a4 4 0 01-3-1.4L1.2 11a1.5 1.5 0 012.1-2.1L5 10.5V7z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 7V3.5a1.5 1.5 0 013 0V7h1V2.5a1.5 1.5 0 013 0V7h.5A1.5 1.5 0 0114 8.5V12a4 4 0 01-4 4H7a4 4 0 01-3-1.4L1.2 11a1.5 1.5 0 012.1-2.1L5 10.5V7z'/%3E%3C/svg%3E");}
/* fa-tv: TV/VAR ikonu */
.fa-tv{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='0' y='2' width='16' height='10' rx='1'/%3E%3Crect x='6' y='13' width='4' height='1.5' rx='.5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='0' y='2' width='16' height='10' rx='1'/%3E%3Crect x='6' y='13' width='4' height='1.5' rx='.5'/%3E%3C/svg%3E");}
/* İlk Maç Skoru (İMS) - MOBIL-FIRST */
.previous-leg-score{font-size:0.75em;/* Mobil temel */ font-weight:600;text-align:center;color:#1976d2;margin-top:6px;margin-bottom:2px;padding:3px 6px;background:linear-gradient(135deg, rgba(25, 118, 210, 0.08), rgba(25, 118, 210, 0.04));border-left:2px solid #1976d2;border-radius:var(--radius-sm);letter-spacing:0.3px;}
/* Toplam Skor (TOP) - MOBIL-FIRST */
.total-score{font-size:0.75em;/* Mobil temel */ font-weight:600;text-align:center;color:#388e3c;margin-top:2px;margin-bottom:6px;padding:3px 6px;background:linear-gradient(135deg, rgba(56, 142, 60, 0.08), rgba(56, 142, 60, 0.04));border-left:2px solid #388e3c;border-radius:var(--radius-sm);letter-spacing:0.3px;}
/* Penaltı Skoru (PEN) - MOBIL-FIRST */
.penalties-score{font-size:0.75em;/* Mobil temel */ font-weight:600;text-align:center;color:#e53935;margin-top:2px;padding:3px 6px;background:linear-gradient(135deg, rgba(229, 57, 53, 0.12), rgba(229, 57, 53, 0.06));border-left:2px solid #e53935;border-radius:var(--radius-sm);letter-spacing:0.3px;display:inline-block;}
/* Tablet ve Üzeri (min-width: 769px) */
@media(min-width:769px){
    .previous-leg-score{font-size:0.80em;margin-top:7px;margin-bottom:2px;padding:4px 7px;border-left-width:3px;}
  
    .total-score{font-size:0.80em;margin-top:3px;margin-bottom:7px;padding:4px 7px;border-left-width:3px;}
  
    .penalties-score{font-size:0.80em;padding:4px 7px;border-left-width:3px;}
}

/* Desktop (min-width: 1025px) */
@media(min-width:1025px){
    .previous-leg-score{font-size:0.90em;margin-top:9px;margin-bottom:3px;padding:5px 10px;border-left-width:3px;}
  
    .total-score{font-size:0.90em;margin-top:5px;margin-bottom:9px;padding:5px 10px;border-left-width:3px;}
  
    .penalties-score{font-size:0.90em;padding:5px 10px;border-left-width:3px;}
}/* Üstünlük belirtme sınıfları */
.live-scores-stat-bar.home.higher{background:linear-gradient(to right, #1a73e8, #64b5f6);box-shadow:0 2px 5px rgba(26, 115, 232, 0.3);}
.live-scores-stat-bar.away.higher{background:linear-gradient(to right, #e74c3c, #f08080);box-shadow:0 2px 5px rgba(231, 76, 60, 0.3);}
.circular-chart.higher{transform:scale(1.05);}
.circular-chart.higher .percentage{font-weight:700;font-size:0.40em;}
/* @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"); */
/* @import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css); */

/* Performans filtreleme butonları için stiller */
.performance-filter-buttons{display:flex;justify-content:center;margin:15px 0;}
.performance-filter-button{-webkit-appearance:none;/* iOS:remove native button styling */ appearance:none;background-color:#007bff;border:none;padding:10px 20px;margin:0 8px;cursor:pointer;font-size:14px;color:white;border-radius:var(--radius-pill);transition:background-color 0.3s ease, transform 0.2s ease;box-shadow:0 2px 5px rgba(0, 123, 255, 0.3);position:relative;overflow:hidden;/* GPU acceleration */ transform:translateZ(0);}
@media (hover: hover) {
    .performance-filter-button:hover{background-color:#0069d9;transform:translateY(-2px);box-shadow:0 4px 8px rgba(0, 123, 255, 0.4);}
}

.performance-filter-button.active{background-color:#0056b3;font-weight:bold;transform:scale(1.05);box-shadow:0 4px 10px rgba(0, 86, 179, 0.5);}
.performance-filter-button:focus-visible{outline:2px solid #1e88e5;outline-offset:2px;}
.performance-filter-button:focus:not(:focus-visible){outline:none;}
.performance-filter-button:active{transform:translateY(1px);box-shadow:0 2px 3px rgba(0, 123, 255, 0.3);}
/* Mobil görünüm için */
@media(max-width:768px){
    .performance-filter-button{padding:8px 15px;font-size:12px;margin:0 4px;}
}

.flatpickr-calendar{z-index:var(--z-popup-above);}
body{font-family:'Roboto', sans-serif;margin:0;padding:0;background-color:#f8f8f8;-webkit-text-size-adjust:100%;/* iOS:prevent text enlarge on rotation */ text-size-adjust:100%;-webkit-tap-highlight-color:transparent;/* iOS:remove blue tap highlight */}
.container{display:flex;max-width:1200px;margin:0 auto;padding:var(--space-5);flex-wrap:wrap;}
#live-scores{flex:1;min-width:0;/* Firefox flexbox fix:prevent overflow from content intrinsic width */ padding:10px;background-color:#fff;border:1px solid #ddd;border-radius:var(--radius-md);box-shadow:0 2px 4px rgba(0,0,0,0.1);margin-right:0px;margin-bottom:20px;max-width:60%;}
@media(min-width:1025px){
    #live-scores{max-width:52.5%;}
  
    /* Desktop match details - ensure content fits on screen above taskbar */
    #match-details{max-height:calc(100vh - 280px);/* Viewport - top(260px) - taskbar margin(20px) */ max-height:calc(100dvh - 280px);/* FAZ2 FIX #10:Safari dvh fallback */}
}

@media(max-width:768px){
    #live-scores{max-width:100%;}
}

#match-details{border:1px solid #ddd;border-radius:var(--radius-md);padding:20px 20px 40px 20px;/* ← FIX:Extra bottom padding for taskbar clearance */ background-color:#fff;position:fixed;right:20px;width:40%;overflow-y:auto;box-shadow:0 2px 4px rgba(0,0,0,0.1);z-index:var(--z-fixed);top:260px;/* ← Default value;JS overrides per scroll */ opacity:1;visibility:visible;transform:translateX(0) scale(1);transition:opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;}
/* FIX: Empty match-details card on initial load */
/* When empty (no content), hide the card. Script will show it when details load. */
#match-details:empty{opacity:0;visibility:hidden;pointer-events:none;}
/* Closed state */
#match-details.detail-closed{opacity:0;visibility:hidden;transform:translateX(100%) scale(0.95);pointer-events:none;}
/* M2: Touch swipe handler styling */
/* FAZ1 FIX #5: touch-action: pan-y — dikey scroll'a izin ver, sadece swipe sırasında devre dışı */
#match-details{touch-action:pan-y;/* Dikey scroll'a izin ver, yatay swipe'ı yakala */ transition:none;/* Disable CSS transitions during swipe */}
#match-details.swiping{touch-action:none;/* Aktif swipe sırasında tüm touch'ı yakala */ cursor:grabbing;}
@media(max-width:768px){
    #match-details{position:fixed;width:100%;left:0;top:0;/* ✅ MOBİL FIX:Tam ekran — üstte boşluk bırakma */ right:0;bottom:0;/* Ekranın en altına kadar uzatmak için */ height:auto;/* height değerini kaldır, top ve bottom ile boyut belirlensin */ max-height:none;/* max-height kısıtlaması kaldır */ margin:0;overflow:auto;padding:10px 10px 50px 10px;/* ← FIX:50px alt padding - mobil navigasyon çubuğu için */ box-sizing:border-box;background:white;box-shadow:0 0 10px rgba(0,0,0,0.1);z-index:var(--z-fixed);transition:transform 0.3s ease, opacity 0.3s ease;border-radius:0;transform:translateY(0);display:flex;flex-direction:column;}
  
    /* Mobile closed state */
    #match-details.detail-closed{transform:translateY(100%);opacity:0;visibility:hidden;}
   /* Sekmeler için scroll yüksekliği güncellemesi */
    .live-scores-match-detail-content .live-scores-tab-content{/* NO overflow-y, NO max-height — parent #match-details handles scroll */ padding-bottom:20px;/* İçeriğin en altında biraz boşluk bırak */}
  
    /* M4 REVIZYON: Mobile entrance animation */
    #match-details.entrance-animation{transition:none;/* Override transition to allow animation */ animation:slideUpEntrance 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;}
}

/* Tablet (min-width: 769px and max-width: 1024px) */
@media(min-width:769px) and (max-width:1024px){
    #match-details{padding:12px 12px 0 12px;/* Tablet optimal padding */}
}

/* M4 REVIZYON: Smooth scroll behavior fallback for browsers that don't support scrollIntoView behavior */
html{scroll-behavior:smooth;}
/* M4 REVIZYON: Mobile entrance animation keyframes */
@keyframes slideUpEntrance {
    from{transform:translateY(100%);opacity:0;}
  to{transform:translateY(0);opacity:1;}
}

@media(min-width:769px){ /* #33: 992→769 standardized */
    #match-detail-sidebar{position:fixed;top:70px;/* WordPress menüsünün hemen altına hizalayın */ right:0;width:25%;/* Sidebar genişliğini belirleyin */ height:calc(100% - 70px);/* WordPress menüsünün yüksekliğini çıkarın */ overflow-y:auto;background-color:#fff;box-shadow:-2px 0 5px rgba(0,0,0,0.1);z-index:var(--z-fixed);transition:transform 0.3s ease;transform:translateX(100%);/* Başlangıçta gizli */}
   #match-detail-sidebar.show{transform:translateX(0);/* Gösterildiğinde konumu */}
   #match-detail-sidebar .live-scores-match-detail-header{background-color:#f8f9fa;padding:10px;font-size:18px;font-weight:bold;border-bottom:1px solid #ddd;}
   #match-detail-sidebar .live-scores-back-icon{cursor:pointer;font-size:28px;/* Tablet:keep consistent with mobile */ padding:10px;/* Touch area:48×48px */ position:absolute;/* ✅ FIX:top/right çalışması için */ top:10px;right:14px;}
}

@media(max-width:768px){ /* #33: 991→768 standardized */
    #match-detail-sidebar{width:100%;height:auto;position:absolute;}
}

.controls-card{display:flex;align-items:center;margin-bottom:20px;}
.switch-menu{display:flex;justify-content:center;align-items:center;margin-right:3px;border:1px solid #ddd;border-radius:var(--radius-2xl);width:250px;position:relative;background-color:#f5f5f5;overflow:hidden;}
/* FAZ4 FIX #31: Kayan indicator arka planı */
.switch-menu::before{content:'';position:absolute;top:2px;bottom:2px;left:2px;width:calc(50% - 4px);border-radius:var(--radius-2xl);background:linear-gradient(135deg, #1e88e5, #1565c0);box-shadow:0 2px 8px rgba(30, 136, 229, 0.3);transition:transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);z-index:var(--z-base);}
/* Indicator CANLI (sağ) konumunda → kaydır */
.switch-menu.indicator-right::before{transform:translateX(100%);}
.switch-option{flex:1;min-width:0;/* Firefox fix */ text-align:center;padding:8px 6px;cursor:pointer;transition:color 0.3s ease;position:relative;z-index:var(--z-above);font-size:14px;font-weight:700;border-radius:var(--radius-2xl);user-select:none;-webkit-user-select:none;/* iOS Safari */ -webkit-tap-highlight-color:transparent;color:#333;letter-spacing:0.3px;}
.switch-option#all-matches{color:#333;font-weight:700;}
.switch-option#live-matches{color:#333;font-weight:700;}
.switch-option.active{color:white;font-weight:700;}
.date-picker-container{position:relative;display:none;}
.date-picker-container.visible{display:block;}
.date-picker-display{display:flex;justify-content:space-between;align-items:center;padding:10px;border:1px solid #ddd;border-radius:var(--radius-2xl);background-color:#fff;cursor:pointer;width:172.5px;text-align:center;}
.date-picker-prev, .date-picker-next{cursor:pointer;padding:0 10px;}
.date-picker-current{flex-grow:1;min-width:0;/* Firefox fix */}
.date-picker{position:absolute;top:100%;left:0;width:100%;background-color:#fff;border:1px solid #ddd;border-radius:var(--radius-md);box-shadow:0 2px 4px rgba(0,0,0,0.1);margin-top:5px;z-index:var(--z-fixed);max-height:300px;overflow-y:auto;}
.date-picker-item{padding:10px;text-align:center;cursor:pointer;transition:background-color 0.3s ease, color 0.3s ease;}
.date-picker-item.active{background-color:#007bff;color:#fff;}
.date-picker-item.today{background-color:#ff4136;color:#fff;}
@media (hover: hover) {
    .date-picker-item:hover{background-color:#f0f0f0;}
}

.hidden{display:none;}
.tournament{margin-bottom:5px;}
.live-scores-tournament-card{display:flex;align-items:center;padding:10px;background-color:#f4f4f4;border:1px solid #ddd;border-radius:var(--radius-md);margin-bottom:10px;box-shadow:0 1px 3px rgba(0, 0, 0, 0.1);width:100%;height:40px;box-sizing:border-box;/* Firefox fix:padding+border included in width */}
/* Maç listesi için özel kırmızı kart ikonu tanımı */
.match-list-red-card-icon{color:#e53935;margin-left:5px;font-size:14px;vertical-align:middle;filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));transition:transform 0.2s ease;}
@media (hover: hover) {
    .match-list-red-card-icon:hover{transform:scale(1.2);}
}


@media(max-width:768px){
    .live-scores-tournament-card{height:30px;}
}

@media(min-width:769px) and (max-width:1024px){
    .live-scores-tournament-card{height:35px;}
}

@media(min-width:1025px){
    .live-scores-tournament-card{height:40px;}
}

.live-scores-tournament-flag{width:24px;height:24px;margin-right:10px;vertical-align:middle;margin-bottom:0 !important;}
.live-scores-tournament-title{font-size:14px;font-weight:bold;vertical-align:middle;}
/* Takım isimleri için genel stil */
.live-scores-name, .team-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
/* Turnuva isimleri için genel stil */
.live-scores-tournament-title{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
/* Küçük ekranlar için özel stiller */
@media(max-width:768px){
    .live-scores-name, .team-name{max-width:150px;/* uygun gördüğünüz bir değer */}
   .live-scores-tournament-title{max-width:280px;/* uygun gördüğünüz bir değer */}
}

.live-scores-no-live-events{display:flex;justify-content:center;align-items:center;height:100px;font-size:18px;font-weight:bold;color:#ff0000;text-align:center;}
.live-scores-match, .match-card{display:flex;justify-content:space-between;align-items:center;padding:10px;border:1px solid #ddd;border-radius:var(--radius-md);margin-bottom:10px;cursor:pointer;/* Optimize edilmiş transition - sadece background-color */ transition:background-color 0.2s ease;background-color:#fff;box-shadow:0 1px 3px rgba(0, 0, 0, 0.1);position:relative;height:55px;min-height:44px;/* FAZ2 FIX #8:Mobile touch target minimum */ overflow:hidden;box-sizing:border-box;/* Firefox fix:padding+border included in width */ /* GPU acceleration */ transform:translateZ(0);/* Layout değişikliğini önle */ contain:layout style;}
@media(max-width:768px){
    .live-scores-match, .match-card{height:55px;}
}

@media(min-width:769px) and (max-width:1024px){
    .live-scores-match, .match-card{height:50px;}
}

@media(min-width:1025px){
    .live-scores-match, .match-card{height:55px;}
}

.live-scores-match:hover, .match-card:hover{background-color:#f0f0f0;}
.live-scores-time-container, .time-container{display:flex;flex-direction:column;align-items:center;margin-right:12px;}
.live-scores-time, .time{font-weight:bold;font-size:14px;}
.live-scores-minute, .minute{font-size:16px;color:#666;min-width:70px;max-width:110px;display:inline-block;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;/* FIX 8:Dakika display flickering düzeltmesi - smooth transition */ transition:opacity 0.15s ease;}
/* Farklı ekran boyutları için responsive dakika alanı */
@media(max-width:480px){
    .live-scores-minute, .minute{font-size:14px;min-width:60px;/* %10 artırıldı (50px'den 55px'e) */ max-width:100px;/* Genişletildi:text dakika değerleri için */}
}

@media(min-width:481px) and (max-width:768px){
    .live-scores-minute, .minute{font-size:15px;min-width:65px;/* %10 artırıldı (55px'den 60.5px'e) */ max-width:105px;/* Genişletildi:text dakika değerleri için */}
}

/* FIX 8: Dakika update animasyonu - smooth fade effect */
.live-scores-minute.updating, .minute.updating{opacity:0.7;}
.live-scores-teams, .teams{flex-grow:1;min-width:0;/* Firefox fix:allow flex child to shrink below intrinsic content width */ display:flex;flex-direction:column;justify-content:space-between;}
.live-scores-team, .team{display:flex;align-items:center;justify-content:space-between;width:100%;min-width:0;/* Firefox fix:prevent team row from expanding beyond container */ overflow:hidden;/* Firefox fix:clip overflowing content */}
.team-logo, .match-card .team-logo{width:20px;height:20px;margin-right:5px;margin-bottom:0 !important;}
/* Maç Detay Kartı Takım Logosu - RESPONSIVE SIZING */
/* FIX #3: Optimize logo sizes based on card width & header space */
/* Calculated: Extra-small 44px → Small 48px → Mid 56px → Tablet 75px → Desktop 100px */
.match-details-team-logo{width:44px;/* Extra small phones (< 375px) */ height:44px;margin-bottom:4px;/* Mobile optimal */ margin-top:0;display:block;filter:drop-shadow(0 2px 4px rgba(0,0,0,0.1));transition:transform 0.2s ease, filter 0.2s ease;}
@media (hover: hover) {
    .match-details-team-logo:hover{transform:scale(1.05);filter:drop-shadow(0 4px 8px rgba(0,0,0,0.15));}
}

/* Small phones (375-480px) */
@media(min-width:375px){
    .match-details-team-logo{width:48px;height:48px;margin-bottom:4px;/* Keep mobile */}
}

/* Large phones (481px+) - FAZ2 FIX #15: Standardized breakpoint */
@media(min-width:481px){
    .match-details-team-logo{width:56px;height:56px;margin-bottom:4px;/* Keep mobile */}
}

/* Tablets (769px+) */
@media(min-width:769px){
    .match-details-team-logo{width:75px;height:75px;margin-bottom:5px;/* Tablet */}
}

/* Desktop (1025px+) */
@media(min-width:1025px){
    .match-details-team-logo{width:100px;height:100px;margin-bottom:6px;/* Desktop optimal */}
}

.live-scores-name, .match-card .team-name{font-size:14px;font-weight:500;vertical-align:middle;margin-top:0;}
.match-details-team-name{font-size:14px;font-weight:500;vertical-align:middle;margin-top:5px;margin-bottom:5px;}
.live-scores-score, .match-card .score{font-weight:bold;font-size:12px;flex-shrink:0;text-align:center;margin-left:auto;margin-top:2px;margin-bottom:2px;}
.live-scores-score-card, .match-card .score-card{background-color:#fff;border:1px solid #ddd;border-radius:var(--radius-md);padding:2px;display:flex;justify-content:center;align-items:center;box-shadow:0 1px 3px rgba(0,0,0,0.1);width:30px;height:calc(100% - 8px);text-align:center;box-sizing:border-box;margin-top:0;margin-bottom:0;}
@media(max-width:768px){
    .live-scores-score-card, .match-card .score-card{width:20px;padding:1px;font-size:12px;height:calc(100% - 6px);margin-top:0;margin-bottom:0;}
  .live-scores-score, .match-card .score{font-size:12px;}
}

@media(min-width:769px) and (max-width:1024px){
    .live-scores-score-card, .match-card .score-card{width:25px;padding:2px;font-size:13px;height:calc(100% - 7px);margin-top:0;margin-bottom:0;}
  .live-scores-score, .match-card .score{font-size:12px;}
}

@media(min-width:1025px){
    .live-scores-score-card, .match-card .score-card{width:30px;padding:2px;font-size:14px;height:calc(100% - 8px);margin-top:0;margin-bottom:0;}
  .live-scores-score, .match-card .score{font-size:12px;}
}

.live-scores-match .fa-chart-simple{margin-right:30px;color:#007bff;font-size:20px;position:absolute;right:15px;top:50%;transform:translateY(-50%);}
.live-scores-match-detail-header{display:flex;/* FIX #8:Semantic header with button + h1 */ align-items:center;gap:var(--space-3);/* Spacing between title and back button */ margin-bottom:15px;padding-bottom:10px;border-bottom:1px solid #ddd;flex-direction:row-reverse;/* ✅ Geri ikonu sağa taşı — button sağda, h1 solda */}
/* Semantic H1 heading */
.live-scores-match-detail-header h1, .live-scores-header-title{font-size:14px;/* Mobile-first base */ font-weight:600;color:#333;margin:0;padding:0;flex:1;/* Take remaining space */ min-width:0;/* Firefox fix:allow text truncation in flex */ overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
/* Back button styling */
.live-scores-back-button{background:none;border:none;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
/* Tablet (min-width: 769px) */
@media(min-width:769px){
    .live-scores-match-detail-header h1, .live-scores-header-title{font-size:16px;}
}

/* Desktop (min-width: 1025px) */
@media(min-width:1025px){
    .live-scores-match-detail-header h1, .live-scores-header-title{font-size:18px;}
}

.live-scores-match-detail-content{font-size:14px;/* Mobile-first base */}
/* Tablet (min-width: 769px) */
@media(min-width:769px){
    .live-scores-match-detail-content{font-size:16px;}
}

/* Desktop (min-width: 1025px) */
@media(min-width:1025px){
    .live-scores-match-detail-content{font-size:18px;}
}

.live-scores-menu{display:flex;justify-content:space-around;margin-top:20px;border-top:1px solid #ddd;padding-top:10px;overflow-x:auto;/* Taşan içeriğin kaydırılabilir olmasını sağlar */ -webkit-overflow-scrolling:touch;/* FIX #9:Smooth scroll momentum (iOS) */ white-space:nowrap;/* Metinlerin satır kaydırmasını engeller */ list-style:none;/* FIX #8:Nav element */ scrollbar-width:thin;/* FIX #9:Firefox thin scrollbar */ scrollbar-color:rgba(0,0,0,0.2) transparent;/* FIX #9:Firefox scrollbar color */ scroll-snap-type:x proximity;/* M-7 FIX:Smooth tab menu snapping on mobile */}
/* FIX #9: Webkit scrollbar styling (Chrome, Safari) */
.live-scores-menu::-webkit-scrollbar{height:6px;}
.live-scores-menu::-webkit-scrollbar-track{background:transparent;}
.live-scores-menu::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,0.2);border-radius:var(--radius-sm);}
.live-scores-menu::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,0.4);}
.live-scores-menu-item{cursor:pointer;padding:10px 12px;/* FIX #9:8px -> 10px vertical (WCAG AAA) */ font-size:13px;/* Mobile */ border-radius:var(--radius-md);transition:background-color 0.3s ease;position:relative;white-space:nowrap;/* Tab items stay on one line */ flex-shrink:0;/* Allow horizontal scroll */ background:none;/* FIX #8:Button styling reset */ border:none;color:#333;font-family:inherit;min-height:44px;/* FIX #9:WCAG AAA 44x44 minimum */ display:flex;/* FIX #9:Vertical centering */ align-items:center;justify-content:center;scroll-snap-align:center;/* M-7 FIX:Snap to center when scrolling */}
/* Tablet */
@media(min-width:769px){
    .live-scores-menu-item{padding:12px 16px;/* FIX #9:10px -> 12px vertical */ font-size:14px;/* Tablet */ min-height:48px;/* FIX #9:WCAG AAA 48x48 optimal */}
}

/* Desktop */
@media(min-width:1025px){
    .live-scores-menu-item{padding:12px 20px;/* FIX #9:10px -> 12px vertical */ font-size:16px;/* Desktop original */ min-height:48px;/* FIX #9:Maintained 48px */}
}

.live-scores-menu-item:hover{background-color:#f0f0f0;}
.live-scores-menu-item:focus{outline:2px solid #1e88e5;/* FIX #8:Keyboard focus visible */ outline-offset:2px;}
.live-scores-menu-item[aria-selected="true"]{background-color:#f5f7fa;color:#1e88e5;font-weight:600;}
.live-scores-menu-item[aria-selected="true"]::after{content:'';position:absolute;bottom:-2px;left:25%;width:50%;height:3px;background-color:#1e88e5;border-radius:var(--radius-sm);}
.live-scores-tab-content{display:none;padding-top:10px;/* Animasyon class'larıyla set edilecek */}
.live-scores-active{display:block;/* Animation class'ları tarafından override edilir */}
/* Tab geçiş animasyon durumları */
.live-scores-tab-content.entering{display:block !important;will-change:opacity, transform;animation:fadeIn 0.35s ease-in-out forwards;/* Fallback:fade in */}
.live-scores-tab-content.entering.slide-right{animation:slideInRight 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;}
.live-scores-tab-content.entering.slide-left{animation:slideInLeft 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;}
.live-scores-tab-content.exiting{will-change:opacity, transform;animation:fadeOut 0.15s ease-in forwards;/* Fallback:fade out */}
.live-scores-tab-content.exiting.slide-left{animation:slideOutLeft 0.15s ease-in forwards;}
.live-scores-tab-content.exiting.slide-right{animation:slideOutRight 0.15s ease-in forwards;}
/* Mobil cihazlar için optimize edilmiş animasyon süreleri */
@media(max-width:600px){
    .live-scores-tab-content.entering.slide-right, .live-scores-tab-content.entering.slide-left{animation-duration:0.25s;}
  
    .live-scores-tab-content.exiting.slide-left, .live-scores-tab-content.exiting.slide-right{animation-duration:0.12s;}
}

/* PHASE 2.10.2: Tab loading state - show skeleton/spinner while loading */
.live-scores-tab-content.loading{opacity:0.8;pointer-events:none;}
.live-scores-tab-content.loading .loading-spinner{display:block !important;margin:20px auto;}
@keyframes fadeIn {
    from{opacity:0;}
  to{opacity:1;}
}

@keyframes fadeOut {
    from{opacity:1;}
  to{opacity:0;}
}

/* Tab Animasyonları - Sağdan kayarak giriş */
@keyframes slideInRight {
    from{opacity:0;transform:translateX(20px);}
  to{opacity:1;transform:translateX(0);}
}

/* Tab Animasyonları - Sola kayarak çıkış */
@keyframes slideOutLeft {
    from{opacity:1;transform:translateX(0);}
  to{opacity:0;transform:translateX(-20px);}
}

/* Tab Animasyonları - Soldan kayarak giriş */
@keyframes slideInLeft {
    from{opacity:0;transform:translateX(-20px);}
  to{opacity:1;transform:translateX(0);}
}

/* Tab Animasyonları - Sağa kayarak çıkış */
@keyframes slideOutRight {
    from{opacity:1;transform:translateX(0);}
  to{opacity:0;transform:translateX(20px);}
}

.live-scores-lineup-card{margin-top:20px;padding:15px;background-color:#f9f9f9;border:1px solid #ddd;border-radius:var(--radius-md);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);position:relative;}
.live-scores-lineup-card h3{margin-top:0;}
.live-scores-saha-image-container{position:relative;width:100%;height:auto;}
.live-scores-saha-image{width:100%;height:auto;max-height:400px;object-fit:contain;display:block;margin-top:0;}
@media(max-width:768px){
    .container{flex-direction:column;padding:10px;}
  .live-scores-match, .match-card{max-width:100%;}
}

.live-scores-match-card{display:flex;justify-content:space-between;align-items:center;padding:var(--space-3);/* Mobile base */ background:linear-gradient(145deg, #ffffff, #f9f9f9);border:none;border-radius:var(--radius-xl);margin-bottom:10px;box-shadow:0 10px 25px rgba(0,0,0,0.07);transition:transform 0.3s ease, box-shadow 0.3s ease;overflow:hidden;/* Firefox fix:prevent content overflow */ /* GPU acceleration */ transform:translateZ(0);}
.live-scores-match-card:hover{will-change:transform;/* FAZ3 FIX #18:Sadece hover sırasında layer promote et */ transform:translateY(-2px);box-shadow:0 12px 30px rgba(0,0,0,0.1);}
/* Tablet */
@media(min-width:769px) and (max-width:1024px){
    .live-scores-match-card{padding:var(--space-4);/* Tablet padding */}
}

/* Desktop */
@media(min-width:1025px){
    .live-scores-match-card{padding:var(--space-5);/* Desktop original */}
}

.live-scores-match-card .live-scores-team{display:flex;flex-direction:column;align-items:center;margin-bottom:6px;/* Mobile base */}
/* Tablet */
@media(min-width:769px){
    .live-scores-match-card .live-scores-team{margin-bottom:8px;/* Tablet */}
}

/* Desktop */
@media(min-width:1025px){
    .live-scores-match-card .live-scores-team{margin-bottom:10px;/* Desktop */}
}

.live-scores-match-card .live-scores-team-name{font-weight:600;font-size:14px;margin-bottom:3px;text-align:center;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#212121;position:relative;display:inline-block;}
/* Team name tooltip: only show on devices with hover (mouse) */
@media (hover: hover) {
    .live-scores-team-name:hover:after{content:attr(title);position:absolute;left:50%;transform:translateX(-50%);bottom:-25px;background-color:rgba(0,0,0,0.8);color:white;padding:5px 10px;border-radius:var(--radius-sm);font-size:12px;white-space:nowrap;z-index:var(--z-fixed);opacity:0;animation:fadeIn 0.3s forwards;}
}

/* Takım Skoru - MOBIL-FIRST */
.live-scores-match-card .live-scores-team-score{font-size:32px;/* Mobil temel - increased from 28px */ font-weight:700;color:#212121;text-shadow:0 1px 2px rgba(0,0,0,0.05);line-height:inherit;}
/* Small phones (max 480px) */
@media(max-width:480px){
    .live-scores-match-card .live-scores-team-score{font-size:28px;/* Keep smaller for very small screens */}
}

/* Tablet+ */
@media(min-width:769px){
    .live-scores-match-card .live-scores-team-score{font-size:30px;}
}

/* Desktop */
@media(min-width:1025px){
    .live-scores-match-card .live-scores-team-score{font-size:36px;}
}

/* Maç zamanı - MOBIL-FIRST */
.live-scores-match-card .live-scores-match-time{font-size:18px;/* Mobil temel - slightly reduced to fit better */ font-weight:600;text-align:center;margin-top:8px;flex:1;min-width:0;/* Firefox fix:allow flex child to shrink */ padding:4px 6px;background-color:#f5f7fa;border-radius:var(--radius-lg);box-shadow:inset 0 1px 3px rgba(0,0,0,0.03);min-height:32px;display:flex;align-items:center;justify-content:center;}
/* Small phones (max 480px) */
@media(max-width:480px){
    .live-scores-match-card .live-scores-match-time{font-size:16px;padding:3px 5px;min-height:28px;}
}

/* Tablet+ */
@media(min-width:769px){
    .live-scores-match-card .live-scores-match-time{font-size:22px;padding:6px 8px;margin-top:10px;}
}

/* Desktop */
@media(min-width:1025px){
    .live-scores-match-card .live-scores-match-time{font-size:24px;padding:6px 8px;margin-top:10px;}
}

.live-scores-back-icon{font-size:28px;/* Mobile optimal */ cursor:pointer;z-index:var(--z-fixed-above);padding:var(--space-2);/* Touch area:44×44px */ display:flex;align-items:center;justify-content:center;transition:all 0.2s ease;color:#333;/* ✅ MOBİL FIX:İkon rengi belirgin */ flex-shrink:0;width:44px;height:44px;min-width:44px;min-height:44px;box-sizing:border-box;/* ✅ padding dahil 44px */ -webkit-mask-size:20px 20px;/* ✅ Görsel ok boyutu 20px */ mask-size:20px 20px;}
.live-scores-back-icon:hover{color:#666;transform:scale(1.05);/* Subtle scale on hover */}
.live-scores-back-icon:active{transform:scale(0.95);/* Press feedback */}
/* Desktop tab content - allow full scroll */
@media(min-width:1025px){
    .live-scores-match-detail-content .live-scores-tab-content{max-height:none;overflow-y:visible;}
}

/* Mobile/Tablet tab content — NO inner scroll (parent #match-details handles scroll) */
@media(max-width:1024px){
    .live-scores-match-detail-content .live-scores-tab-content{/* NO overflow-y, NO max-height */ padding-bottom:20px;}
  
    .live-scores-match-detail-content{display:flex;/* ← MOBILE FIX:Flexbox layout */ flex-direction:column;flex-grow:1;/* ← Expand to fill space */}
}

@media(min-width:769px){
    #match-details{top:250px;/* Varsayılan başlangıç yüksekliği */ position:fixed;right:20px;width:40%;max-height:calc(100vh - 310px);/* Viewport - top(250px) - taskbar margin(60px) */ max-height:calc(100dvh - 310px);/* Safari dvh */ overflow-y:auto;z-index:var(--z-fixed);}
}

@media(max-width:768px){
    .live-scores-match, .match-card{width:100%;}
}

.live-scores-lineup-card{display:flex;flex-direction:column;align-items:center;text-align:center;position:relative;}
.live-scores-lineup-card .live-scores-saha-image{width:100%;height:auto;max-height:400px;object-fit:contain;display:block;margin-top:0;}
.live-scores-lineup-card .live-scores-content{margin-top:20px;}
.live-scores-lineup-card-wrapper{display:flex;justify-content:space-between;gap:20px;}
.live-scores-lineup-card{width:48%;padding:var(--space-5);border:1px solid #ddd;border-radius:var(--radius-sm);background-color:#fff;}
.live-scores-lineup-card h3{margin-top:0;margin-bottom:10px;}
.live-scores-lineup-card ul{list-style-type:none;padding:0;}
.live-scores-lineup-card ul li{padding:5px 0;border-bottom:1px solid #ddd;}
.live-scores-lineup-card ul li:last-child{border-bottom:none;}
.live-scores-statistics-content{margin-top:20px;}
.live-scores-stat-row{display:flex;align-items:center;margin-bottom:24px;/* Daha fazla boşluk */ justify-content:space-between;position:relative;flex-direction:column;padding:0 5px;/* Yanlarda biraz boşluk */}
.live-scores-stat-label{width:100%;text-align:center;font-weight:600;font-size:14px;color:#333;position:absolute;top:-10px;margin-bottom:5px;letter-spacing:0.2px;font-family:'Roboto', Arial, sans-serif;}
@media(max-width:480px){
    .live-scores-stat-label{font-size:12px;}
}

@media(min-width:481px) and (max-width:768px){
    .live-scores-stat-label{font-size:13px;}
}

.live-scores-stat-bar-container{flex-grow:1;min-width:0;/* Firefox fix:allow flex child to shrink below content width */ display:flex;align-items:center;background-color:#f0f0f0;border-radius:var(--radius-md);overflow:hidden;height:10px;/* Biraz daha kalın */ width:100%;margin-top:10px;box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.05);/* İç gölge */}
@media(max-width:480px){
    .live-scores-stat-bar-container{height:12px;/* Mobile:daha kolay tıklanabilir */}
}

@media(min-width:481px) and (max-width:768px){
    .live-scores-stat-bar-container{height:11px;/* Tablet:medium yükseklik */}
}

.live-scores-stat-bar{height:100%;position:relative;transition:width 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);}
.live-scores-stat-bar.home{background:linear-gradient(to right, #1E88E5, #64B5F6);border-top-left-radius:10px;border-bottom-left-radius:10px;box-shadow:0 2px 3px rgba(0, 0, 0, 0.1);transition:all 0.3s ease;}
.live-scores-stat-bar.away{background:linear-gradient(to right, #E53935, #EF9A9A);border-top-right-radius:10px;border-bottom-right-radius:10px;box-shadow:0 2px 3px rgba(0, 0, 0, 0.1);transition:all 0.3s ease;}
.live-scores-stat-value{position:absolute;font-size:14px;color:#fff;}
.live-scores-stat-value.home{left:0;background-color:#1E88E5;padding:2px 8px;border-radius:var(--radius-sm);font-weight:500;box-shadow:0 1px 3px rgba(0, 0, 0, 0.1);transition:background-color 0.3s ease, box-shadow 0.3s ease;}
.live-scores-stat-value.away{right:0;background-color:#E53935;padding:2px 8px;border-radius:var(--radius-sm);font-weight:500;box-shadow:0 1px 3px rgba(0, 0, 0, 0.1);transition:background-color 0.3s ease, box-shadow 0.3s ease;}
/* CANLI yazısı için optimize edilmiş stiller - DOM güncelleme problemini çözmek için */
.match-status{display:inline-block;min-width:50px;max-width:140px;/* Flexible width - Türkçe metinler için (Başlamadı, Ertelendi) */ text-align:center;font-weight:bold;padding:2px 4px;word-wrap:break-word;overflow-wrap:break-word;white-space:normal;}
/* Mobile optimization for match-status */
@media(max-width:480px){
    .match-status{max-width:120px;/* Smaller max-width for very small phones */ font-size:0.9em;/* Slightly smaller font */ padding:2px 3px;/* Tighter padding */}
}

/* Tablet optimization */
@media(min-width:481px) and (max-width:768px){
    .match-status{max-width:130px;font-size:0.95em;padding:2px 4px;}
}

.match-status{border-radius:var(--radius-sm);box-sizing:border-box;/* Kritik:Auto boyut - esnek layout */ height:auto;line-height:1.3;/* GPU acceleration için transform kullan */ transform:translateZ(0);/* Layout thrashing'ı önle */ contain:layout style paint;}
.match-status-live{background-color:rgba(198, 40, 40, 0.1);color:#c62828;border:1px solid rgba(198, 40, 40, 0.3);/* Animasyon yerine sabit stil - performans için */ opacity:1;}
.match-status-notstarted{background-color:rgba(108, 117, 125, 0.1);color:#6c757d;border:1px solid rgba(108, 117, 125, 0.3);}
.match-status-finished{background-color:rgba(27, 94, 32, 0.1);color:#1b5e20;border:1px solid rgba(27, 94, 32, 0.3);}
.match-status-postponed{background-color:rgba(230, 81, 0, 0.1);color:#e65100;border:1px solid rgba(230, 81, 0, 0.3);}
/* Live indicator - optimize edilmiş animasyon */
.live-indicator{display:inline-block;width:8px;height:8px;border-radius:50%;background-color:#dc3545;margin-left:4px;vertical-align:middle;/* GPU acceleration */ transform:translateZ(0);/* Performanslı animasyon - sadece opacity değişimi */ animation:liveBlinking 2s infinite ease-in-out;/* Layout değişikliğini önle */ contain:layout;}
/* Optimize edilmiş blinking animasyonu - sadece opacity */
@keyframes liveBlinking {
    0%, 50%{opacity:1;}
  51%, 100%{opacity:0.3;}
}

/* Uzatma dakikası için stil */
.extra-time{font-size:0.8em;position:relative;top:-0.3em;color:#ff4136;/* Uzatma dakikasını kırmızı renkte göster */ font-weight:bold;}
/* Optimize edilmiş blinking quote - DOM güncelleme problemini çözmek için */
.blinking-quote{color:#3a6e3e;/* GPU acceleration için */ transform:translateZ(0);/* Performanslı animasyon - sadece opacity değişimi */ animation:blinkingText 1.5s infinite ease-in-out;/* Layout değişikliğini önle */ contain:layout;}
@keyframes blinkingText {
    0%, 40%{opacity:1;}
  41%, 100%{opacity:0.4;}
}

/* Uzatma dakikasında geçen süre gösterimi için stil */
.extra-time-elapsed{font-size:0.7em;margin-top:2px;color:#999;display:block;text-align:center;font-weight:normal;}
.live-scores-tournament-card .live-scores-tournament-flag{margin-bottom:0 !important;}
.place-holder{display:inline-block;width:30px;height:1px;margin-left:auto;}
#momentumChart{width:100%;height:200px;}
.lineup-field-image-container{width:100%;height:auto;position:relative;}
.lineup-field-image{width:100%;height:auto;}
.home-team-players .player, .away-team-players .player{position:absolute;transform:translate(-50%, -50%);text-align:center;}
.player.clickable-player{cursor:pointer;/* Tıklanabilir olduğunu göstermek için imleç */ position:absolute;/* Konumlandırma için gerekli */ z-index:var(--z-overlay);/* Diğer elementlerin üzerinde olması için yüksek bir değer */}
/* Yedek oyuncular için de tıklanabilir imleç */
.substitute-player.clickable-player{cursor:pointer;/* Tıklanabilir olduğunu göstermek için imleç */}
/* Tüm yedek oyuncular için tıklanabilir stil */
.substitute-player{cursor:pointer;/* Yedek oyuncuların tıklanabilir olduğunu göstermek için imleç */}
/* Tüm alt elemanlar için tıklama olaylarını geçir */
.player.clickable-player *,
.substitute-player.clickable-player *,
.substitute-player *{pointer-events:none;}
/* Tıklanabilirlik için player-jersey resminin görünür olduğundan emin ol */
.player-jersey{width:50px;/* Forma görselinin genişliği */ height:auto;pointer-events:auto !important;/* Resimin tıklanabilir olmasını sağla */}
.player-number{display:block;font-size:18px;/* Forma numarasının yazı boyutu */ font-weight:bold;margin-top:-50px;/* Forma numarası ile forma görseli arasındaki mesafe */ pointer-events:none;/* Tıklama olaylarını geçirmesini sağla */ z-index:var(--z-above);/* Forma görselinin altında kalmalı */}
.player-name{display:block;text-align:center;color:#ffffff;/* Beyaz yazı rengi */ font-size:12px;/* Oyuncu isminin yazı boyutu */ margin-top:20px;max-width:85px;/* Maksimum genişlik */ overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;/* Tıklama olaylarını geçirmesini sağla */ z-index:var(--z-above);/* Forma görselinin altında kalmalı */}
/* Rating ve Substitution ikonları için pointer-events ve z-index */
.player-rating, .substitution-icon{pointer-events:none;/* Tıklama olaylarını geçirmesini sağla */ z-index:var(--z-above);/* Forma görselinin altında kalmalı */}
@media only screen and (max-width: 600px) {
    .lineup-field-image-container{width:100%;}
}

@media(max-width:768px){
    .lineup-field-image{width:calc(100% - 6px);}
}

/* FAZ3 FIX #19: GPU-composited overlay-based flash animations (background-color yerine opacity) */
@keyframes flashGoal {
    0%, 20%, 40%, 60%, 80%, 100%{opacity:0;}
  10%, 30%, 50%, 70%, 90%{opacity:1;}
}

@keyframes flashCancel {
    0%, 20%, 40%, 60%, 80%, 100%{opacity:0;}
  10%, 30%, 50%, 70%, 90%{opacity:1;}
}

.flash-goal, .flash-cancel{position:relative;z-index:var(--z-player);border-radius:var(--radius-sm);}
.flash-goal::before, .flash-cancel::before{content:'';position:absolute;top:0;right:0;bottom:0;left:0;/* Samsung Internet <14 compat (inset shorthand) */ border-radius:inherit;pointer-events:none;z-index:var(--z-behind);}
.flash-goal::before{background-color:#3a6e3e;animation:flashGoal 3s steps(1, end) forwards;}
.flash-cancel::before{background-color:#ff4136;animation:flashCancel 3s steps(1, end) forwards;}
/* Box-shadow sadece animasyon sırasında - performans için */
.flash-goal.animating, .flash-cancel.animating{box-shadow:0 0 8px rgba(0, 0, 0, 0.2);}
.var-icon{color:#1976d2;/* ← UI/UX FIX:Consistent blue */}
.penalty-goal-icon{color:#4caf50;/* ← UI/UX FIX:Consistent green */}
.own-goal-icon{color:#d32f2f;/* ← UI/UX FIX:Consistent red */}
.qualified-icon{font-size:16px;/* Level 1:Status icons - Mobile */ color:#28a745;/* Green:Team qualified */ margin-left:4px;vertical-align:middle;filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));transition:transform 0.2s ease;}
@media (hover: hover) {
    .qualified-icon:hover{transform:scale(1.15);}
}

/* Responsive: Qualified Icon */
@media(min-width:769px) and (max-width:1024px){
    .qualified-icon{font-size:18px;/* Level 1:Tablet */}
}

@media(min-width:1025px){
    .qualified-icon{font-size:20px;/* Level 1:Desktop */}
}

.goal-icon{color:#4caf50;/* ← UI/UX FIX:Added explicit green */}
.yellow-card-icon{color:#fbc02d;/* ← UI/UX FIX:Consistent yellow */ margin-left:5px;font-size:16px;/* Level 2:Small cards - Mobile */ vertical-align:middle;filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));transition:transform 0.2s ease;}
@media (hover: hover) {
    .yellow-card-icon:hover{transform:scale(1.2);}
}

/* Responsive: Yellow Card */
@media(min-width:769px) and (max-width:1024px){
    .yellow-card-icon{font-size:18px;/* Level 2:Tablet */}
}

@media(min-width:1025px){
    .yellow-card-icon{font-size:20px;/* Level 2:Desktop */}
}

.red-card-icon{color:#c62828;/* ← UI/UX FIX:Darker red for contrast */ margin-left:5px;font-size:16px;/* Level 2:Small cards - Mobile */ vertical-align:middle;filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));transition:transform 0.2s ease;}
@media (hover: hover) {
    .red-card-icon:hover{transform:scale(1.2);}
}

/* Responsive: Red Card */
@media(min-width:769px) and (max-width:1024px){
    .red-card-icon{font-size:18px;/* Level 2:Tablet */}
}

@media(min-width:1025px){
    .red-card-icon{font-size:20px;/* Level 2:Desktop */}
}

.penalty-missed-icon{color:#d32f2f;/* ← Kırmızı:kaçan penaltı daha belirgin */ margin-left:5px;font-size:16px;/* Level 2:Mobile */ vertical-align:middle;filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));transition:transform 0.2s ease;}
@media (hover: hover) {
    .penalty-missed-icon:hover{transform:scale(1.2);}
}

/* Responsive: Penalty Missed */
@media(min-width:769px) and (max-width:1024px){
    .penalty-missed-icon{font-size:18px;/* Level 2:Tablet */}
}

@media(min-width:1025px){
    .penalty-missed-icon{font-size:20px;/* Level 2:Desktop */}
}

.goalkeeper-save-icon{color:#ff9800;/* ← UI/UX FIX:Added orange */}
.substitution-icon{color:#6c757d;}
.substitution-icon.injury{color:#c62828;/* ← UI/UX FIX:Darker red */}
.incident-details.home-incident span, .incident-details.away-incident span, .incident-details.general-incident span, .incident-details.home-incident i, .incident-details.away-incident i, .incident-details.general-incident i{margin-right:5px;}
/* ← UI/UX FIX: .incident-time moved outside .incident-details (new semantic HTML) */
.incident-time{color:#555;/* ← UI/UX FIX:Darker color for contrast */ white-space:nowrap;flex-shrink:0;font-weight:700;/* ← Consistent font-weight value */ display:inline-block;font-size:13px;/* ← Desktop default */ margin-right:12px;/* ← Desktop default */}
/* Old selector compatibility - for any nested .incident-time (if needed) */
.incident-details.home-incident .incident-time, .incident-details.away-incident .incident-time, .incident-details.general-incident .incident-time{margin-left:5px;}
/* Genel olay stili */
.incident{display:flex;align-items:center;margin-bottom:8px;padding:var(--space-3);background-color:#ffffff;/* FAZ2 FIX #14:Modern card design - white background */ border-radius:var(--radius-md);/* FAZ2 FIX #14:More rounded for modern look */ box-shadow:0 2px 8px rgba(0,0,0,0.12);/* FAZ2 FIX #14:More prominent shadow */ border:1px solid #e8e8e8;/* FAZ2 FIX #14:Subtle border for definition */ transition:all 0.2s ease;font-size:13px;/* ← Desktop default */}
.incident:hover{box-shadow:0 2px 5px rgba(0,0,0,0.15);}
/* ← UI/UX FIX: Focus state for keyboard navigation */
.incident:focus-within{outline:2px solid #0066cc;outline-offset:2px;box-shadow:0 0 0 4px rgba(0, 102, 204, 0.1);}
.incident:focus-visible{outline:2px solid #0066cc;outline-offset:2px;}
/* ← VAR CANCELLATION: Cancelled incident styling */
.incident.cancelled-incident{background-color:#f0f0f0;opacity:0.7;border-left:3px solid #999;}
.incident.cancelled-incident .incident-player{text-decoration:line-through;color:#999;}
.incident-details{font-size:13px;/* ← Desktop default */ display:flex;align-items:center;gap:6px;/* ← Desktop default */ flex-grow:1;min-width:0;/* Firefox fix:allow shrink on tablet+ */ color:#1a1a1a;flex-wrap:nowrap;}
.incident-score{font-weight:700;/* ← Consistent with incident-time */ margin-right:5px;flex-shrink:0;color:#d32f2f;/* ← Emphasis color */}
.incident-player{font-weight:700;/* ← Consistent with incident-time */ color:#1a1a1a;/* ← UI/UX FIX:Darker color */}
.incident-player-out{font-weight:700;/* ← Consistent with incident-time */ color:#c62828;/* ← UI/UX FIX:Darker red for contrast */}
.incident-player-in{font-weight:700;/* ← Consistent with incident-time */ color:#1b5e20;/* ← UI/UX FIX:Darker green (AAA contrast) */}
.assist{font-style:italic;color:#555;/* ← UI/UX FIX:Better contrast */ font-size:12px;}
/* Ev sahibi olayları */
.home-incident{display:flex;flex-direction:row;text-align:left;/* ← Text aligned LEFT */ align-items:center;justify-content:flex-start;/* ← Content starts from left */}
.home-incident .incident-time{order:-1;/* Time appears FIRST */ margin-left:0;margin-right:8px;}
.home-incident .incident-details{flex-grow:1;justify-content:flex-start;}
/* Deplasman olayları */
.away-incident{display:flex;flex-direction:row;text-align:right;/* ← Text aligned RIGHT */ align-items:center;justify-content:flex-end;/* ← Content ends at right */}
.away-incident .incident-time{order:1;/* Time appears LAST */ margin-left:8px;margin-right:0;}
.away-incident .incident-details{flex-grow:1;justify-content:flex-end;}
/* Genel olaylar — ortalanmış ve bold */
.general-incident{display:flex;justify-content:center;text-align:center;}
.general-incident .incident-details, .general-incident .incident-details.center-incident{justify-content:center;text-align:center;font-weight:700;}
/* Mobil optimizasyonlar */
@media(max-width:768px){
    #match-incidents{grid-template-columns:1fr;gap:0;padding:0;/* NO overflow-y, NO max-height — parent #match-details handles scroll */}
  
    .incident{padding:6px 8px;margin-bottom:3px;font-size:12px;min-height:auto;line-height:1.2;background-color:#fafafa;border-radius:0;box-shadow:none;}
  
    /* General incidents - centered */
    .incident.general-incident{display:flex;justify-content:center;align-items:center;text-align:center;background-color:#e0e0e0;padding:6px 8px;margin-bottom:3px;width:100%;/* ✅ Tam genişlik */}
  
    .incident.general-incident .incident-details{text-align:center;justify-content:center;font-weight:700;/* ✅ MOBİL FIX:Desktop ile uyumlu bold */ color:#333;gap:var(--space-1);font-size:12px;flex-direction:row;/* ✅ Tek satır */ width:100%;}
  
    /* Home incidents - left aligned */
    .home-incident{text-align:left;justify-content:flex-start;flex-direction:row;}
  
    /* Away incidents - right aligned */
    .away-incident{text-align:right;justify-content:flex-end;flex-direction:row;}
  
    .incident-details{gap:var(--space-1);flex:1;min-width:0;font-size:12px;flex-wrap:nowrap;display:flex;align-items:center;}
  
    .incident-time{font-size:12px;color:#000;}
  
    .home-incident .incident-time{order:-1;margin-right:4px;margin-left:0;}
  
    .away-incident .incident-time{order:1;margin-left:4px;margin-right:0;}
  
    .incident-score{font-size:12px;flex-shrink:0;}
  
    .incident-player, .incident-player-out,
    .incident-player-in{flex-shrink:0;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  
    /* Hide assist on mobile */
    .assist{display:none !important;}
  
    /* Icon sizing — ✅ MOBİL FIX: .incident scope ile sınırla (chart ikonlarını etkilemesin) */
    .incident i{font-size:12px;flex-shrink:0;}
  
    .incident .fa-futbol, .incident .fa-square,
    .incident .fa-exchange-alt, .incident .fa-times-circle{font-size:12px;flex-shrink:0;min-width:12px;min-height:12px;display:inline-block;}
  
    /* Arrow icon */
    .incident .fa-arrow-right{font-size:9px;margin:0 2px;flex-shrink:0;}
}

/* Tablet optimizasyonları (769px - 1024px) */
@media(min-width:769px) and (max-width:1024px){
    #match-incidents{grid-template-columns:1fr;gap:0;/* NO overflow-y, NO max-height — parent #match-details handles scroll */}
  
    .incident{padding:var(--space-2);margin-bottom:6px;font-size:12px;flex-wrap:wrap;align-items:center;}
  
    .incident-time{font-size:12px;margin-right:8px;}
  
    .incident-details{font-size:12px;gap:var(--space-1);}
}

/* Desktop optimizasyonları (1025px+) */
@media(min-width:1025px){
    #match-incidents{grid-template-columns:1fr;gap:0;/* NO overflow-y, NO max-height — parent #match-details handles scroll */}
  
    .incident{padding:var(--space-3);margin-bottom:8px;font-size:13px;flex-wrap:wrap;align-items:center;}
  
    .incident-time{font-size:13px;margin-right:8px;}
  
    .incident-details{font-size:13px;gap:6px;}
}

@media(max-width:479px){
    .incident{padding:6px;margin-bottom:3px;font-size:12px;}
  
    .incident-time{font-size:12px;margin-right:6px;}
  
    .incident-details{font-size:12px;flex-direction:row;/* ✅ Desktop gibi yatay düzen — alt alta değil */ align-items:center;gap:var(--space-1);flex-wrap:nowrap;}
  
    .assist{font-size:12px;}
}

.match-details-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:18px;}
.match-details-header .back-button{cursor:pointer;font-size:24px;}
.match-details-content{margin-top:10px;}
.match-details-content h3{font-size:20px;margin-top:0;}
.match-details-content p{margin-bottom:10px;}
.match-details-stats{margin-top:20px;}
.match-details-stats .stat{display:flex;justify-content:space-between;margin-bottom:10px;}
.match-details-stats .stat span{font-size:14px;}
.match-details-lineups{margin-top:20px;}
.match-details-lineups .team{display:flex;justify-content:space-between;align-items:center;padding:10px;border:1px solid #ddd;border-radius:var(--radius-sm);margin-bottom:10px;}
.match-details-lineups .team img{width:30px;height:auto;margin-right:10px;}
.match-details-lineups .team .name{flex-grow:1;min-width:0;/* Firefox fix */ overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;}
.match-details-lineups .team .score{font-weight:bold;font-size:16px;}
.incident p{margin:0;font-size:14px;}
#attack-momentum-chart{display:flex;justify-content:center;align-items:center;width:100%;padding:0;margin:0;flex-direction:column;}
#attack-momentum-graph-container{display:flex;align-items:center;position:relative;width:100%;margin:0;padding:0;flex-direction:column;}
/* Veri bulunamadığında gösterilecek mesaj stilini tanımlama */
.no-data-message{text-align:center;padding:var(--space-5);background-color:#f8f9fa;border-radius:var(--radius-md);margin:10px 0;color:#666;border:1px solid #ddd;}
.no-data-message p{margin:0;font-size:14px;}
/* Canlı maç bulunamadığında gösterilecek mesaj stili */
.live-scores-no-live-events, .live-scores-no-events{text-align:center;padding:40px 20px;background-color:#f8f9fa;border-radius:var(--radius-md);margin:20px 0;color:#666;border:1px solid #ddd;font-size:16px;font-weight:500;line-height:1.5;/* Okunabilirlik için */}
/* Canlı maç yok mesajı için özel stil */
.live-scores-no-live-events{background:linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);border-color:#ffcc80;color:#e65100;/* Animasyon ekleyelim */ animation:fadeIn 0.5s ease-in-out;}
/* Mobil uyumluluk */
@media(max-width:768px){
    .live-scores-no-live-events, .live-scores-no-events{padding:30px 15px;font-size:14px;margin:15px 0;}
}

.attack-momentum-team-logo{position:absolute;width:20px;height:20px;margin:0;}
.attack-momentum-team-logo img{width:20px;height:20px;}
.home-team-logo{top:25%;/* CSS fallback — JS chartArea plugin overrides with exact px */ left:5px;}
.away-team-logo{top:55%;/* CSS fallback — JS chartArea plugin overrides with exact px */ left:5px;}
#attack-momentum-graph-canvas{width:100%;padding-left:20px;margin:0;height:180px;position:relative;box-sizing:border-box;overflow:visible;/* Allow incident icons to display outside chart */ z-index:var(--z-above);/* Lower than icons so icons appear on top */}
/* Tablet (768px - 1024px) */
@media(max-width:1024px) and (min-width:769px){
    #attack-momentum-graph-canvas{height:160px;padding-left:15px;overflow:visible;}
}

/* Mobil - Tablet (480px - 768px) */
@media(max-width:768px){
    #attack-momentum-graph-canvas{width:100%;/* ✅ MOBİL FIX:box-sizing:border-box ile padding zaten dahil */ height:35vh;height:35dvh;/* FAZ2 FIX #10:Safari dvh */ min-height:180px;padding-left:15px;overflow:visible;}
}

/* Küçük mobil (< 480px) */
@media(max-width:479px){
    #attack-momentum-graph-canvas{width:100%;/* ✅ MOBİL FIX:box-sizing:border-box ile padding zaten dahil */ height:35vh;height:35dvh;/* FAZ2 FIX #10:Safari dvh */ min-height:160px;padding-left:10px;overflow:visible;}
}

/* Lejant stil tanımlamaları */
.attack-momentum-legend{display:flex;justify-content:center;margin-top:10px;width:100%;flex-wrap:wrap;}
.legend-item{display:flex;align-items:center;margin:0 10px;}
.legend-color{width:15px;height:15px;margin-right:5px;border-radius:var(--radius-sm);}
.home-color{background-color:rgba(0, 180, 0, 0.8);}
.away-color{background-color:rgba(0, 0, 200, 0.8);}
.legend-text{font-size:12px;color:#666;}
@media(max-width:768px){
    #attack-momentum-graph-container{padding-left:0;}
   .attack-momentum-team-logo{width:20px;height:20px;}
   .home-team-logo{top:25%;/* CSS fallback — JS chartArea plugin overrides with exact px */ left:0px;}
   .away-team-logo{top:55%;/* CSS fallback — JS chartArea plugin overrides with exact px */ left:0px;}
  
    .legend-item{margin:0 5px;}
  
    .legend-text{font-size:12px;}
}

@media(max-width:480px){
    #attack-momentum-graph-canvas{height:120px;}
  
    .attack-momentum-legend{flex-direction:row;/* ✅ Tek satırda göster */ align-items:center;justify-content:center;gap:var(--space-2);}
  
    .legend-item{margin:0;}
}

/* FAZ2 FIX #13: Tarih seçici mobil UX iyileştirmesi */
@media(max-width:768px){
    .date-picker-container{max-width:90%;margin:0 auto;}
   .date-picker-display{padding:8px 12px;/* FIX #13:2px → 8px 12px (WCAG dokunma hedef) */ display:flex;justify-content:center;text-align:center;width:100%;box-sizing:border-box;min-height:44px;/* FIX #13:WCAG minimum dokunma hedefi */ font-size:14px;/* FIX #13:Okunabilir font boyutu */ border-radius:var(--radius-md);}
   .date-picker-prev, .date-picker-next{padding:8px 12px;/* FIX #13:0 5px → 8px 12px (daha büyük dokunma alanı) */ min-width:44px;/* FIX #13:WCAG minimum dokunma hedefi */ min-height:44px;display:flex;align-items:center;justify-content:center;}
   .date-picker-current{flex:1;min-width:0;/* Firefox fix */ text-align:center;}
}

/* Maç Listesi Kartı İçin CSS */
.live-scores-team .live-scores-name{display:flex;align-items:center;justify-content:space-between;min-width:0;/* Firefox fix:allow name to shrink */ overflow:hidden;/* Firefox fix:clip overflow */}
.live-scores-team .live-scores-name .team-country{font-size:12px;color:#666;margin-left:5px;}
.live-scores-team-name, .match-details-team-name{font-size:13px;/* Mobile-first base */ font-weight:600;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#333;position:relative;display:inline-block;line-height:1.3;}
/* Tablet (min-width: 769px) */
@media(min-width:769px){
    .live-scores-team-name, .match-details-team-name{font-size:15px;max-width:200px;}
}

/* Desktop (min-width: 1025px) */
@media(min-width:1025px){
    .live-scores-team-name, .match-details-team-name{font-size:16px;max-width:180px;}
}

/* FAZ2 FIX #11: Tooltip sadece hover destekleyen cihazlarda göster */
@media (hover: hover) {
    .live-scores-team-name[title]:hover::after, .match-details-team-name[title]:hover::after{content:attr(title);position:absolute;left:50%;transform:translateX(-50%);top:100%;margin-top:5px;background-color:rgba(0,0,0,0.8);color:white;padding:5px 10px;border-radius:var(--radius-sm);font-size:12px;white-space:nowrap;z-index:var(--z-fixed-top);opacity:0;pointer-events:none;animation:tooltipFadeIn 0.3s forwards;}
}

@keyframes tooltipFadeIn {
    0%{opacity:0;transform:translateX(-50%) translateY(10px);}
  100%{opacity:1;transform:translateX(-50%) translateY(0);}
}

/* Maç listesi kartı için stil */
.live-scores-team-country{font-size:12px;color:gray;margin-left:5px;}
/* Maç detay kartı için stil */
.match-details-team-country{display:block;font-size:13px;font-weight:400;color:#616161;opacity:0.8;margin-top:3px;margin-bottom:3px;/* Mobile base */ letter-spacing:0.2px;font-family:'Roboto', sans-serif;}
/* Tablet */
@media(min-width:769px){
    .match-details-team-country{margin-bottom:4px;/* Tablet */}
}

/* Desktop */
@media(min-width:1025px){
    .match-details-team-country{margin-bottom:5px;/* Desktop */}
}

/* Responsive styles for team country and names */
@media(min-width:769px){
    .match-details-team-country{font-size:13px;/* Tablet size */ margin-top:3px;}
  
    .live-scores-team-name, .match-details-team-name{max-width:200px;/* More space on tablet for team names */}
}

@media(max-width:768px){
    .match-details-team-country{font-size:12px;/* Mobile override for smaller screen */ margin-top:2px;}
  
    .live-scores-team-name, .match-details-team-name{max-width:calc(100vw - 140px);/* Dinamik width:ekran genişliğinden logoların ve spacing'in uzunluğu çıkarılır */ /* Example:375px - 140px (2×logo 48px + padding 20px + score 24px) = 235px */}
}

/* İstatistik sekmesi butonları - modern tasarım */
.statistics-period-selection{display:flex;justify-content:center;margin-bottom:20px;background-color:#f5f5f5;border-radius:var(--radius-md);padding:6px;box-shadow:0 2px 5px rgba(0,0,0,0.05);gap:var(--space-1);}
@media(max-width:480px){
    .statistics-period-selection{padding:var(--space-2);gap:6px;margin-bottom:16px;}
}

@media(min-width:481px) and (max-width:768px){
    .statistics-period-selection{padding:7px;gap:5px;}
}

.statistics-period-selection button{-webkit-appearance:none;/* iOS */ appearance:none;background-color:transparent;border:none;padding:10px 20px;margin:0;cursor:pointer;font-size:14px;color:#555;border-radius:var(--radius-md);transition:all 0.3s ease;position:relative;overflow:hidden;flex:1;font-weight:500;letter-spacing:0.3px;font-family:'Roboto', Arial, sans-serif;min-height:40px;display:flex;align-items:center;justify-content:center;}
@media(max-width:480px){
    .statistics-period-selection button{min-height:44px;padding:12px 16px;font-size:13px;}
}

@media(min-width:481px) and (max-width:768px){
    .statistics-period-selection button{min-height:42px;padding:11px 18px;font-size:13px;}
}

@media (hover: hover) {
    .statistics-period-selection button:hover{background-color:rgba(0, 0, 0, 0.05);color:#333;}
}

.statistics-period-selection button.active{background-color:white;color:#1E88E5;font-weight:600;box-shadow:0 2px 5px rgba(0, 0, 0, 0.08);transition:all 0.3s ease;}
.statistics-period-selection button:focus-visible{outline:2px solid #1e88e5;outline-offset:2px;}
.statistics-period-selection button:focus:not(:focus-visible){outline:none;}
.statistics-period-selection button:active{transform:translateY(1px);box-shadow:0 2px 3px rgba(0, 123, 255, 0.3);}
.live-scores-statistics-content{padding:var(--space-5);}
.live-scores-stat-group h4{background-color:#f3f6fa;/* Daha açık bir arka plan rengi */ color:#2c3e50;/* Daha modern koyu mavi/gri renk */ padding:8px 12px;/* Daha fazla iç boşluk */ text-align:center;margin:0 0 16px 0;border-radius:var(--radius-md);/* Yuvarlak köşeler */ box-shadow:0 2px 8px rgba(0, 0, 0, 0.05);/* İnce gölge */ font-size:16px;/* Yazı boyutu */ font-weight:600;/* Kalın yazı tipi */ font-family:'Roboto', Arial, sans-serif;/* Modern yazı tipi */ transition:all 0.3s ease;/* Geçiş efektleri */ border-left:3px solid #4285f4;/* Sol kenar çizgisi */ letter-spacing:0.3px;/* Harf aralığı */}
.standings-buttons{display:flex;justify-content:center;margin-bottom:15px;}
.standings-table{width:100%;border-collapse:separate;border-spacing:0;border-radius:var(--radius-md);overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,0.05);margin-bottom:20px;}
.standings-table th, .standings-table td{padding:10px;text-align:center;transition:all 0.2s ease;}
.standings-table th{background-color:#f1f3f5;padding:12px 10px;font-weight:600;text-transform:uppercase;font-size:14px;letter-spacing:0.5px;color:#495057;border-bottom:2px solid #dee2e6;}
.standings-table td{border-bottom:1px solid #e9ecef;vertical-align:middle;}
/* Zebra çizgili tablo */
.standings-table tbody tr:nth-child(odd){background-color:#f8f9fa;}
.standings-table tbody tr:nth-child(even){background-color:#ffffff;}
/* Hover efekti */
.standings-table tbody tr:hover{background-color:#e9ecef;transition:background-color 0.2s ease;}
.standings-table td.team-cell{text-align:left;}
.standings-table tbody tr.highlighted-row{background-color:#e6f3fe;/* Vurgulamak için açık mavi bir renk */ font-weight:bold;}
/* Puan durumu tablosu statü renkleri - Lig formatı */
.promotion-champions{background-color:rgba(46, 204, 113, 0.2);border-left:3px solid #2ecc71;}
.promotion-champions-qual{background-color:rgba(39, 174, 96, 0.2);border-left:3px solid #27ae60;}
.promotion-europa{background-color:rgba(52, 152, 219, 0.2);border-left:3px solid #3498db;}
.promotion-conference{background-color:rgba(41, 128, 185, 0.2);border-left:3px solid #2980b9;}
.promotion-relegation{background-color:rgba(231, 76, 60, 0.2);border-left:3px solid #e74c3c;}
/* Puan durumu tablosu statü renkleri - Turnuva formatı */
.promotion-next-round{background-color:rgba(46, 204, 113, 0.2);/* açık yeşil (pale green) */ border-left:3px solid #2ecc71;}
.promotion-playoffs{background-color:rgba(241, 196, 15, 0.2);/* altın sarısı (gold) */ border-left:3px solid #f1c40f;}
.promotion-qualification-playoffs{background-color:rgba(230, 126, 34, 0.2);/* turuncu (orange) */ border-left:3px solid #e67e22;}
.promotion-qualified{background-color:rgba(52, 152, 219, 0.2);/* açık gökyüzü mavisi (light sky blue) */ border-left:3px solid #3498db;}
/* Tooltip stili */
.tooltip{position:relative;cursor:help;}
/* Özel tooltip stili */
.custom-tooltip{position:fixed;background:rgba(0,0,0,0.8);color:white;padding:6px 12px;border-radius:var(--radius-sm);font-size:12px;font-weight:normal;white-space:nowrap;z-index:var(--z-modal);display:block;min-width:60px;text-align:center;pointer-events:none;/* Mouse olaylarını alt elemanlarına geçir */ box-shadow:0 2px 5px rgba(0,0,0,0.2);opacity:0.9;}
/* Puan durumu lejant stili */
.standings-legend{margin-top:15px;padding:10px;background-color:#f8f9fa;border-radius:var(--radius-sm);font-size:14px;}
.legend-title{font-weight:bold;margin-bottom:10px;}
.legend-items{display:flex;flex-wrap:wrap;gap:10px;}
.legend-item{display:flex;align-items:center;margin-right:10px;}
.legend-color{display:inline-block;width:20px;height:20px;margin-right:5px;border:1px solid #ddd;}
.legend-text{font-size:13px;}
@media(max-width:768px){
    .legend-items{flex-direction:column;gap:5px;}
  
    .legend-item{margin-right:0;margin-bottom:5px;}
  
    .legend-color{width:15px;height:15px;}
  
    .legend-text{font-size:12px;}
}


/* Geniş ekranlar için */
@media screen and (min-width:769px){
    .standings-table{display:table;}
  .standings-table tbody tr{display:table-row;}
  .standings-table th, .standings-table td{display:table-cell;}
  .standings-table th.position-cell, .standings-table td.position-cell{width:5%;/* # sütunu genişliği */}
  .standings-table th.team-cell, .standings-table td.team-cell{width:35%;/* Takım sütunu genişliği */ text-align:left;}
  .standings-table th.matches-cell, .standings-table td.matches-cell,
    .standings-table th.wins-cell, .standings-table td.wins-cell,
    .standings-table th.draws-cell, .standings-table td.draws-cell,
    .standings-table th.losses-cell, .standings-table td.losses-cell,
    .standings-table th.goals-cell, .standings-table td.goals-cell,
    .standings-table th.points-cell, .standings-table td.points-cell{width:9%;/* Diğer sütunların genişlikleri */}
   .standings-table th{font-size:16px;/* Başlık font büyüklüğü */ font-weight:bold;/* Başlık font ağırlığı */}
   .standings-table td{font-size:14px;/* Veri font büyüklüğü */}
}

.standings-period-selection{text-align:center;margin-bottom:15px;}
.standings-period-selection button{-webkit-appearance:none;/* iOS */ appearance:none;background-color:#007bff;border:none;padding:10px 20px;margin:0 8px;cursor:pointer;font-size:14px;color:white;border-radius:var(--radius-pill);transition:all 0.3s ease;box-shadow:0 2px 5px rgba(0, 123, 255, 0.3);position:relative;overflow:hidden;}
@media (hover: hover) {
    .standings-period-selection button:hover{background-color:#0069d9;transform:translateY(-2px);box-shadow:0 4px 8px rgba(0, 123, 255, 0.4);}
}

.standings-period-selection button.active{background-color:#0056b3;font-weight:bold;transform:scale(1.05);box-shadow:0 4px 10px rgba(0, 86, 179, 0.5);}
.standings-period-selection button:focus-visible{outline:2px solid #1e88e5;outline-offset:2px;}
.standings-period-selection button:focus:not(:focus-visible){outline:none;}
.standings-period-selection button:active{transform:translateY(1px);box-shadow:0 2px 3px rgba(0, 123, 255, 0.3);}
.standings-table td.team-cell img{vertical-align:middle;}
/* Mobil Kart Görünümü Stilleri */
.standings-cards{display:none;/* Varsayılan olarak gizli, media query ile gösterilecek */}
.standings-card{background-color:#ffffff;border-radius:var(--radius-md);box-shadow:0 2px 5px rgba(0,0,0,0.1);padding:var(--space-3);margin-bottom:10px;display:flex;align-items:center;position:relative;transition:all 0.3s ease;}
.standings-card:hover{transform:translateY(-2px);box-shadow:0 4px 8px rgba(0,0,0,0.15);}
.card-position{width:30px;height:30px;border-radius:50%;background-color:#f8f9fa;display:flex;align-items:center;justify-content:center;font-weight:bold;margin-right:10px;}
.card-team{display:flex;align-items:center;flex:1;min-width:0;/* Firefox fix:flex child shrink */}
.card-team-logo{width:30px;height:30px;margin-right:10px;}
.card-team-name{font-weight:600;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px;}
.card-stats{min-width:100px;text-align:right;}
.card-stat{margin-bottom:5px;display:flex;flex-direction:column;align-items:center;}
.card-stat-label{font-size:12px;color:#6c757d;margin-right:5px;}
.card-stat-value{font-weight:600;font-size:14px;}
.card-points{font-size:20px;font-weight:700;color:#007bff;}
.card-stats-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:5px;margin-top:5px;}
/* Vurgulanan kartlar için stil */
.highlighted-card{box-shadow:0 0 0 2px #4dabf7;}
/* Küçük ekranlar için */
@media screen and (max-width:768px){
    /* Masaüstündeki tablo görünümünü göster */
    .standings-table{display:table !important;}
  
    /* Kart görünümünü gizle */
    .standings-cards{display:none !important;}
  
    .standings-table-container{display:block !important;overflow-x:auto;-webkit-overflow-scrolling:touch;/* iOS'ta daha akıcı kaydırma */ margin-bottom:10px;}
  
    /* Mobil için tablo görünümünü optimize edelim */
    .standings-table thead th{padding:8px 4px;font-size:12px;}
  
    .standings-table tbody td{padding:8px 4px;font-size:12px;}
  
    /* Takım hücresi için özel stil */
    .standings-table .team-cell{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px;}
  
    /* Takım logosunu optimize edelim */
    .standings-table .team-cell img{width:16px;height:16px;margin-right:4px;vertical-align:middle;}
  
    /* Diğer hücreleri sıkıştıralım */
    .standings-table th.matches-cell, .standings-table td.matches-cell,
    .standings-table th.wins-cell, .standings-table td.wins-cell,
    .standings-table th.draws-cell, .standings-table td.draws-cell,
    .standings-table th.losses-cell, .standings-table td.losses-cell,
    .standings-table th.goals-cell, .standings-table td.goals-cell,
    .standings-table th.points-cell, .standings-table td.points-cell{padding:4px 2px;}
  
    /* Daha iyi bir kontrastlık için zebra çizgisi efektini güçlendirelim */
    .standings-table tbody tr:nth-child(odd){background-color:#f5f5f5;}
  
    /* Vurgulanan satırın her ekran boyutunda tutarlı görünmesini sağlayalım */
    .standings-table tbody tr.highlighted-row{background-color:#e6f3fe;/* Açık mavi arka plan */ font-weight:bold;}
  
    /* Hücrelerin hizalaması */
    .standings-table td{text-align:center;}
  
    /* Lejant bölümü optimizasyonu */
    .standings-legend{padding:var(--space-2);font-size:12px;}
  
    .legend-title{font-size:12px;margin-bottom:5px;}
  
    .legend-items{display:grid;grid-template-columns:repeat(2, 1fr);/* 2 sütunlu grid */ gap:5px;}
  
    .legend-item{margin-right:0;margin-bottom:5px;}
  
    .legend-color{width:12px;height:12px;}
  
    .legend-text{font-size:12px;}
}

/* Orta ekranlar için (tablet) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .standings-table{width:100%;}
  
    .standings-table th, .standings-table td{font-size:12px;padding:var(--space-2);text-align:center;}
   .standings-table th.position-cell, .standings-table td.position-cell{width:5%;}
   .standings-table th.team-cell, .standings-table td.team-cell{width:35%;text-align:left;vertical-align:middle;}
   .standings-table th.matches-cell, .standings-table td.matches-cell,
    .standings-table th.wins-cell, .standings-table td.wins-cell,
    .standings-table th.draws-cell, .standings-table td.draws-cell,
    .standings-table th.losses-cell, .standings-table td.losses-cell,
    .standings-table th.goals-cell, .standings-table td.goals-cell,
    .standings-table th.points-cell, .standings-table td.points-cell{width:9%;}
   .standings-table td.team-cell{line-height:1.5;}
   .standings-table td.team-cell img{width:20px;height:auto;margin-right:3px;vertical-align:middle;}
}

/* Skor bölümü kontaineri (İMS, Zaman, TOP, PEN) */
.live-scores-match-time-container{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 1 auto;/* Firefox fix:don't grow, allow shrink, natural width */ min-width:0;/* Firefox fix */ gap:2px;/* Skor öğeleri arasında boşluk */ padding:4px 0;}
/* İMS - Üstte */
.previous-leg-score{order:1;}
/* Maç zamanı - Ortada */
.live-scores-match-time{font-size:1.2em;font-weight:700;text-align:center;letter-spacing:0.5px;order:2;/* TOP ve İMS'in ortasına yerleştir */ padding:2px 4px;min-height:28px;display:flex;align-items:center;justify-content:center;word-wrap:break-word;overflow-wrap:break-word;}
/* Mobile optimization for container match-time */
@media(max-width:768px){
    .live-scores-match-time{padding:2px 3px;/* Tighter padding on mobile */ min-height:24px;/* Smaller min-height */}
}

/* TOP - Zaman altında */
.total-score{order:3;}
/* PEN - Altta */
.penalties-score{order:4;}
.aggregated-score{font-size:0.8em;font-weight:normal;text-align:center;margin-bottom:5px;font-family:Arial, sans-serif;}
@media(max-width:768px){
    .lineup-field-image-container{width:100%;padding:5px 0;/* Saha görselinin çevresindeki boşluğu azalttık */}
  .lineup-field-image{width:100%;height:auto;}
  .home-team-players .player, .away-team-players .player{transform:translate(-50%, -50%) scale(0.8);/* Ölçeği biraz daha küçülttük */}
  .player-jersey{width:40px;/* Forma boyutunu daha da küçülttük */ height:auto;}
  .player-number{font-size:16px;/* Numara boyutunu küçülttük */ margin-top:-45px;/* Numarayı formaya daha yakın hale getirdik */}
  .player-name{font-size:12px;/* İsim boyutunu küçülttük */ margin-top:10px;/* İsmi formaya daha yakın hale getirdik */ max-width:80px;/* Maksimum genişliği artırdık */ overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  /* Oyuncu konumlarını optimize etmek için gereksiz transform'ları kaldırdık */
    /* Bunlar zaten position: absolute ile sağlanan oyuncu konumlarını bozuyor */
    /* 
    .home-team-players .player:nth-child(odd),
    .away-team-players .player:nth-child(odd){transform:translateX(-60%) scale(0.8);}
  .home-team-players .player:nth-child(even),
    .away-team-players .player:nth-child(even){transform:translateX(-40%) scale(0.8);}
  */
    /* Rating ve substitution icon için eklenen stiller */
    .player-rating{bottom:20px;left:-10px;font-size:12px;padding:3px 6px;}
.substitution-icon{position:absolute;/* İkonun doğru şekilde konumlandırılması için ekleniyor */ bottom:18px !important;/* Forma görselinin altına yerleştirmek için */ right:-10px !important;/* Forma görselinin sağına yerleştirmek için */ font-size:16px;/* İkonun boyutunu ayarlayın */ color:#FF0000;/* Kırmızı renk, isteğe göre değiştirilebilir */}
}

/* KD-8 FIX: Breakpoint inversion düzeltildi — 480px efektif boyutlar artık 768px'ten küçük
   768px: jersey 40×0.8=32px, number 16×0.8=12.8px, name 12×0.8=9.6px
   480px: jersey 38×0.7=26.6px, number 15×0.7=10.5px, name 13×0.7=9.1px ✓ (monoton azalma) */
@media(max-width:480px){
    .player-jersey{width:38px;/* 38×0.7=26.6px < 768px'teki 32px ✓ */}
  .player-number{font-size:15px;/* 15×0.7=10.5px ✓ */ margin-top:-40px;}
  .player-name{font-size:13px;/* 13×0.7=9.1px ✓ */ margin-top:10px;max-width:70px;}
  .home-team-players .player, .away-team-players .player{transform:translate(-50%, -50%) scale(0.7);}
  /* Rating ve substitution icon için eklenen stiller */
    .player-rating{bottom:12px;left:-10px;font-size:14px;/* 14×0.7=9.8px ✓ */ padding:1px 2px;}
  .substitution-icon{font-size:12px;bottom:15px !important;right:-3px !important;}
}

/* FAZ4 FIX #25: Ultra-küçük ekranlar (≤360px) için formasyon scaling */
/* K-5 FIX: scale(0.6)→0.75, font-size artırıldı — min 10px efektif garanti */
@media(max-width:360px){
    .lineup-field-image-container{width:100%;overflow:hidden;}
  .home-team-players .player, .away-team-players .player{transform:translate(-50%, -50%) scale(0.75);}
  .player-jersey{width:35px;}
  .player-number{font-size:14px;/* 14 × 0.75 = 10.5px ✓ */ margin-top:-38px;}
  .player-name{font-size:14px;/* 14 × 0.75 = 10.5px ✓ (was 12px → 7.2px ✗) */ margin-top:8px;max-width:56px;/* K-9 FIX:70→56px — 5 oyunculu hatlarda çakışma önlenir */ overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .player-rating{font-size:13px;/* 13 × 0.75 = 9.75px ≈ 10px ✓ (was 9px → 5.4px ✗) */ padding:1px 3px;bottom:15px;left:-8px;}
  .substitution-icon{font-size:13px;/* 13 × 0.75 = 9.75px ✓ */ bottom:12px !important;right:-5px !important;}
  /* Takım bilgi kartları */
    .team-info .team-name{font-size:0.75em;}
  .team-info .team-coach, .team-info .team-formation{font-size:0.6em;}
}

/* FAZ4 FIX #25: Landscape modda formasyon optimize - daha az dikey alan */
@media (max-height: 500px) and (orientation: landscape) {
    .lineup-field-image-container{max-height:60vh;overflow:hidden;}
  .home-team-players .player, .away-team-players .player{transform:translate(-50%, -50%) scale(0.65);}
}

.stats-card{display:flex;justify-content:center;align-items:center;padding:10px;background-color:#f9f9f9;border:1px solid #ddd;border-radius:var(--radius-md);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);margin-top:20px;}
.stats-card i{font-size:24px;color:#007bff;}
@media(max-width:768px){
    .stats-card{padding:5px;margin-top:10px;}
   .stats-card i{font-size:18px;}
}
/* ====================================================================
   Maç ayrıntıları tabı için stiller
   ARCHITECTURE: #match-details is the ONLY scroll container.
   All inner elements use overflow: visible to avoid nested scroll.
   ==================================================================== */

/* Base: hidden like all tabs. Active state shows as flex. */
#tab-details{display:none;/* ← Normal tab rules:hidden by default */ flex-direction:column;position:relative;min-height:0;}
/* When active, show as flex column */
#tab-details.live-scores-active{display:flex !important;}
#tab-details .tab-section{width:100%;}
#tab-details .top-section{order:1;margin-bottom:20px;flex-shrink:0;/* Attack momentum boyutu sabit kalsın */}
#tab-details .bottom-section{order:2;min-height:0;/* NO overflow-y, NO max-height — parent #match-details handles scroll */}
/* Tüm tab'lar seçili olmadığında gizlensin */
.live-scores-tab-content:not(.live-scores-active){display:none !important;}
/* ✅ Match Incidents Container — NO inner scroll */
#match-incidents{width:100%;display:grid;grid-template-columns:1fr;gap:0;min-height:0;/* NO overflow-y, NO max-height — parent #match-details handles scroll */}
/* General incidents span full width */
.incident.general-incident{grid-column:1;}
/* Mobile/Tablet: incident spacing */
@media(max-width:1024px){
    /* ← MOBILE FIX: Substitution arrow and player spacing */
    .incident-player-out, .incident-player-in{display:inline-block;max-width:calc(50% - 15px);word-break:break-word;white-space:normal;}
  
    .incident-details.away-incident, .incident-details.home-incident{flex-wrap:wrap;gap:var(--space-1);}
}

/* Genel stiller */
.team-info-card{background-color:#2e7d00;/* Zemin rengi — K-6 FIX:#59b200→2e7d00 kontrast 3.27:1→4.6:1 */ padding:6px 10px;/* ✅ Daha fazla iç boşluk — okunaklılık */ margin:0;/* Kartların arasındaki boşlukları kaldır */ border-radius:0;/* Kenarları oval yapmayı kaldır */ display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;color:#ffffff;/* Yazı rengi beyaz */ font-family:'Roboto', sans-serif;/* Yazı tipi */}
.away-team-info-card{background-color:#2e7d00;/* Zemin rengi — K-6 FIX */}
.team-info{display:flex;flex-direction:column;width:100%;position:relative;}
.team-info .team-name{font-size:1.1em;/* ✅ Daha büyük — okunaklı */ font-weight:bold;text-align:left;/* Takım ismi sola dayalı */ width:50%;/* Yüzde olarak genişlik ayarı */ display:inline-block;}
.team-info .team-coach{font-size:0.9em;/* ✅ Daha büyük — okunaklı */ text-align:left;/* Teknik direktör bilgisi sola dayalı */ width:100%;/* Yüzde olarak genişlik ayarı */}
.team-info .team-formation{font-size:0.9em;/* ✅ Daha büyük — okunaklı */ text-align:right;/* Diziliş bilgisi sağa dayalı */ width:50%;/* Yüzde olarak genişlik ayarı */ display:inline-block;position:absolute;top:0;right:5px;/* Sağdan biraz boşluk bıraktık */ vertical-align:top;/* Üst hizalama */}
/* Responsive tasarım */
@media(max-width:768px){
    .team-info-card{padding:5px 8px;/* ✅ Mobilde de yeterli padding */ margin:0;/* Kartların arasındaki boşlukları kaldır */}
   .team-info .team-name{font-size:1em;/* ✅ 0.9em→1em — okunaklı */}
   .team-info .team-coach, .team-info .team-formation{font-size:0.85em;/* ✅ 0.7em→0.85em — okunaklı */}
   .lineup-field-image-container{margin-top:0;/* Saha görselinin üst boşluğunu kaldır */ margin-bottom:0;/* Saha görselinin alt boşluğunu kaldır */}
}

@media(max-width:480px){
    .team-info-card{flex-direction:column;align-items:center;margin:0;/* Kartların arasındaki boşlukları kaldır */}
}

/* Kartlar ve saha görseli arasında boşluk kaldırma */
.lineup-field-image-container{margin:0;/* Saha görselinin tüm boşluklarını kaldır */}
.home-team-players, .away-team-players{margin:0;/* Oyuncu dizilimi ile saha görseli arasındaki boşluğu kaldır */}
.team-info-card:last-child{margin-top:0;/* Alt kart ile saha görseli arasındaki boşluğu kaldır */}
/* Ek CSS kuralları */
.lineup-field-image-container{padding:0;/* İç boşlukları kaldır */ display:flex;flex-direction:column;}
.home-team-info-card{margin-bottom:0;/* Üst kart ile saha görseli arasındaki boşluğu kaldır */}
.away-team-info-card{margin-top:0;/* Saha görseli ile alt kart arasındaki boşluğu kaldır */}
/* FAZ1 FIX #6: History butonları sadece tab aktifken görünsün */
#tab-history:not(.live-scores-active) .history-buttons{display:none !important;}
/* H2H filtreleme butonları için stiller */
.history-buttons{display:flex;justify-content:center;margin-bottom:15px;flex-wrap:wrap;/* Mobil için satır atlamasına izin ver */}
.history-buttons button{-webkit-appearance:none;/* iOS:remove native button styling */ appearance:none;background-color:#007bff;border:none;padding:10px 20px;margin:0 8px 8px 8px;/* Alt margin eklendi */ cursor:pointer;font-size:14px;color:white;border-radius:var(--radius-pill);transition:all 0.3s ease;box-shadow:0 2px 5px rgba(0, 123, 255, 0.3);position:relative;overflow:hidden;text-align:center;/* Buton içindeki metin ortalandı */ display:flex;align-items:center;justify-content:center;/* İçerik ortalandı */ min-width:120px;/* Minimum genişlik belirlendi */}
@media (hover: hover) {
    .history-buttons button:hover{background-color:#0069d9;transform:translateY(-2px);box-shadow:0 4px 8px rgba(0, 123, 255, 0.4);}
}

.history-buttons button.active{background-color:#0056b3;font-weight:bold;transform:scale(1.05);box-shadow:0 4px 10px rgba(0, 86, 179, 0.5);}
.history-buttons button:focus-visible{outline:2px solid #1e88e5;outline-offset:2px;}
.history-buttons button:focus:not(:focus-visible){outline:none;}
.history-buttons button:active{transform:translateY(1px);box-shadow:0 2px 3px rgba(0, 123, 255, 0.3);background-color:#003f7f;}
@media(max-width:768px){
    .history-buttons button{font-size:12px;padding:8px 16px;margin:0 4px 8px 4px;/* Alt margin korundu */ min-width:100px;/* Mobil için daha küçük minimum genişlik */ flex:0 0 calc(50% - 8px);/* 2 sütun için boyut hesaplama */ max-width:calc(50% - 8px);}
  
    /* Geçmiş sekme içeriği için padding azaltıldı */
    #history-content{padding:10px;}
}

@media(min-width:769px) and (max-width:1024px){
    .history-buttons button{font-size:13px;padding:9px 18px;}
}

@media(min-width:1025px){
    .history-buttons button{font-size:14px;padding:10px 20px;}
}

#history-content{padding:var(--space-5);}
.h2h-content{display:flex;flex-direction:column;gap:5px;}
.h2h-summary-title{font-size:16px;font-weight:bold;margin-bottom:10px;text-align:center;color:#333;padding:5px 0;background-color:#f5f5f5;border-radius:var(--radius-sm);}
/* Maç Karşılaşma İstatistik Barı */
.match-history-stats{margin:5px 0 15px 0;}
.match-history-stats-bar{display:flex;height:26px;width:100%;border-radius:var(--radius-sm);overflow:hidden;background-color:#f0f0f0;margin-bottom:8px;}
.match-history-segment{display:flex;justify-content:center;align-items:center;color:white;font-weight:bold;font-size:14px;transition:all 0.3s ease;}
.match-history-segment.home-wins{background-color:#007bff;/* Mevcut ev sahibi mavi renk */}
.match-history-segment.draws{background-color:#FFC107;/* Sarı */}
.match-history-segment.away-wins{background-color:#ff4136;/* Mevcut deplasman kırmızı renk */}
.match-history-stats-legend{display:flex;justify-content:space-between;font-size:12px;}
.legend-item{display:flex;align-items:center;}
.match-history-color{display:inline-block;width:12px;height:12px;margin-right:5px;border-radius:var(--radius-xs);}
.match-history-color.home-wins{background-color:#007bff;}
.match-history-color.draws{background-color:#FFC107;}
.match-history-color.away-wins{background-color:#ff4136;}
/* Takım performans istatistikleri */
.team-performance-stats{margin:5px 0 15px 0;}
.team-performance-title{font-size:15px;font-weight:bold;margin-bottom:8px;text-align:center;color:#333;padding:5px 0;background-color:#f5f5f5;border-radius:var(--radius-sm);}
/* Galibiyet, beraberlik ve mağlubiyet renkleri */
.match-history-segment.wins{background-color:#4CAF50;/* Galibiyet için yeşil */}
.match-history-segment.losses{background-color:#F44336;/* Mağlubiyet için kırmızı */}
/* Mobil için responsive düzenlemeler */
@media(max-width:767px){
    /* Mobil için responsive düzenlemeler */
    .match-history-stats-bar{height:20px;}
   .match-history-segment{font-size:12px;}
  
    .match-history-stats-legend{flex-direction:column;align-items:flex-start;}
  
    .legend-item{margin-bottom:4px;}
  
    .team-performance-title{font-size:12px;}
  
    .h2h-summary-title{font-size:14px;padding:3px 0;}
}

.h2h-match-card.match-card{display:flex;justify-content:space-between;align-items:center;padding:10px;border:1px solid #ddd;border-radius:var(--radius-md);margin-bottom:5px;cursor:pointer;transition:background-color 0.3s ease;background-color:#fff;box-shadow:0 1px 3px rgba(0, 0, 0, 0.1);position:relative;height:55px;overflow:hidden;}
@media(max-width:768px){
    .h2h-match-card.match-card{height:55px;}
}

@media(min-width:769px) and (max-width:1024px){
    .h2h-match-card.match-card{height:50px;}
}

@media(min-width:1025px){
    .h2h-match-card.match-card{height:55px;}
}

.h2h-match-card.match-card:hover{background-color:#f0f0f0;}
.h2h-time-container.time-container{display:flex;flex-direction:column;align-items:center;margin-right:10px;}
.h2h-time.time{font-weight:bold;font-size:14px;}
.h2h-minute.minute{font-size:14px;color:#666;width:60px;display:inline-block;text-align:center;}
.h2h-teams.teams{flex-grow:1;min-width:0;/* Firefox fix */ overflow:hidden;/* Firefox fix */ display:flex;justify-content:space-between;align-items:center;}
.h2h-team.team{display:flex;align-items:center;}
.h2h-team-logo.team-logo{width:20px;height:20px;margin-right:5px;margin-bottom:0 !important;}
.h2h-team-name.team-name{font-size:14px;font-weight:500;vertical-align:middle;margin-top:0;}
.h2h-score-card.score-card{background-color:#fff;border:1px solid #ddd;border-radius:var(--radius-md);padding:2px;display:flex;justify-content:center;align-items:center;box-shadow:0 1px 3px rgba(0,0,0,0.1);width:30px;height:calc(100% - 8px);text-align:center;box-sizing:border-box;margin-left:auto;}
@media(max-width:768px){
    .h2h-score-card.score-card{width:20px;padding:1px;font-size:12px;height:calc(100% - 6px);margin-top:0;margin-bottom:0;}
  .h2h-score.score{font-size:12px;}
}

@media(min-width:769px) and (max-width:1024px){
    .h2h-score-card.score-card{width:25px;padding:2px;font-size:13px;height:calc(100% - 7px);margin-top:0;margin-bottom:0;}
  .h2h-score.score{font-size:12px;}
}

@media(min-width:1025px){
    .h2h-score-card.score-card{width:30px;padding:2px;font-size:14px;height:calc(100% - 8px);margin-top:0;margin-bottom:0;}
  .h2h-score.score{font-size:12px;}
}

.h2h-red-card-icon{color:#dc3545;margin-left:5px;font-size:14px;vertical-align:middle;}
.h2h-match-card .minute .blinking-quote{display:none;}
.h2h-red-card-count{font-size:12px;/* Yazı tipi boyutu */ font-weight:bold;/* Kalın yazı */ margin-left:2px;/* Soldan biraz boşluk */}
/* H2H filtreleme butonları için stiller */
.h2h-filter-buttons{display:flex;justify-content:center;margin:15px 0;}
.h2h-filter-button{-webkit-appearance:none;/* iOS:remove native button styling */ appearance:none;background-color:#007bff;border:none;padding:10px 20px;margin:0 8px;cursor:pointer;font-size:14px;color:white;border-radius:var(--radius-pill);transition:all 0.3s ease;box-shadow:0 2px 5px rgba(0, 123, 255, 0.3);position:relative;overflow:hidden;}
@media (hover: hover) {
    .h2h-filter-button:hover{background-color:#0069d9;transform:translateY(-2px);box-shadow:0 4px 8px rgba(0, 123, 255, 0.4);}
}

.h2h-filter-button.active{background-color:#0056b3;font-weight:bold;transform:scale(1.05);box-shadow:0 4px 10px rgba(0, 86, 179, 0.5);}
.h2h-filter-button:focus-visible{outline:2px solid #1e88e5;outline-offset:2px;}
.h2h-filter-button:focus:not(:focus-visible){outline:none;}
.h2h-filter-button:active{transform:translateY(1px);box-shadow:0 2px 3px rgba(0, 123, 255, 0.3);}
/* Mobil görünüm için */
@media(max-width:768px){
    .h2h-filter-button{padding:8px 15px;font-size:12px;margin:0 4px;}
}

.custom-h2h-match-card.match-card{display:flex;align-items:center;padding:10px;border:1px solid #ddd;border-radius:var(--radius-md);margin-bottom:5px;cursor:pointer;transition:background-color 0.3s ease;background-color:#fff;box-shadow:0 1px 3px rgba(0, 0, 0, 0.1);position:relative;height:auto;overflow:hidden;}
.custom-h2h-match-card .team{display:flex;align-items:center;width:100%;}
.custom-h2h-match-card .team-name{font-size:14px;font-weight:500;width:40%;/* Kartın %40'ını kapla */ text-align:left;}
.custom-h2h-match-card .team-streak{font-size:14px;font-weight:500;width:45%;/* Kartın %45'ini kapla */ text-align:left;}
.custom-h2h-match-card .streak-value{font-size:14px;font-weight:500;width:15%;/* Kartın %15'ini kapla */ text-align:right;/* Sağ hizalama */}
.aggregated-score{font-size:0.8em;color:#888;}
.live-scores-team .live-scores-score.hidden{visibility:hidden;}
.performance-container{display:flex;justify-content:space-between;margin-top:20px;flex-wrap:wrap;/* Küçük ekranlarda kartların sarma yapmasına izin verir */}
.performance-team{width:48%;margin-bottom:10px;/* Kartlar arasında dikey boşluk */}
.performance-card{margin-bottom:15px;padding:10px;border-radius:var(--radius-md);background-color:#f8f8f8;box-shadow:0 2px 4px rgba(0,0,0,0.1);transition:all 0.3s ease;}
@media (hover: hover) {
    .performance-card:hover{transform:translateY(-2px);box-shadow:0 4px 8px rgba(0,0,0,0.15);}
}

.performance-card .match-date{font-size:12px;color:#666;margin-bottom:5px;display:flex;justify-content:space-between;align-items:center;}
.performance-card .tournament-name{font-size:12px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60%;}
.performance-card .match-teams{display:flex;flex-direction:column;gap:0px;}
.performance-card .team{display:flex;align-items:center;margin:0;padding:0;}
.performance-card .team-logo{width:20px;height:20px;margin-right:8px;}
.performance-card .team-name{flex:1;min-width:0;/* Firefox fix:allow text truncation in flex */ font-size:14px;text-align:left;margin:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.performance-card .match-score{font-size:18px;font-weight:bold;text-align:right;width:30px;margin:0;align-self:center;}
.performance-card .team-score-row{display:flex;align-items:center;justify-content:space-between;}
.performance-card .team-score-row:first-child{margin-bottom:10px;}
.performance-card .team-score-row:last-child{margin-top:5px;}
.performance-card.win{background-color:#e6ffe6;}
.performance-card.loss{background-color:#ffe6e6;}
.performance-card.draw{background-color:#f0f0f0;}
/* Küçük ekranlar için medya sorgusu */
@media(max-width:767px){
    .performance-container{display:flex;flex-wrap:wrap;gap:var(--space-1);/* Kartlar arasındaki yatay ve dikey boşluk */ margin:0;/* Kenarlarda boşluk bırakılmaması için */}
   .performance-team{width:calc(50% - 4px);/* Kart genişliğini %50 yaparken arada 4px boşluk bırakır */ box-sizing:border-box;}
   .performance-card{margin:0;margin-bottom:4px;/* Alt alta gelen kartlar arasında dikeyde 4px boşluk */ padding:10px;box-sizing:border-box;/* Padding'in genişliği etkilememesi için */}
   .performance-card .team{display:flex;align-items:center;margin:0;/* Takımlar arasındaki boşluğu kaldırdık */}
   .performance-card .team-logo{width:20px;height:20px;margin-right:0;/* Logo ile takım ismi arasındaki boşluğu kaldırdık */}
   .performance-card .team-name{flex:1;min-width:0;/* Firefox fix */ font-size:12px;text-align:left;margin:0;padding:0;/* Gereksiz iç boşlukları kaldırdık */ white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
   .performance-card .match-score{font-size:16px;/* Skorun font boyutunu küçülttük */ text-align:right;}
   .performance-card .match-date{font-size:12px;color:#666;margin-bottom:5px;display:block;/* Tarih ve turnuva bilgisini dikey hizalamak için block yapıldı */}
   .performance-card .tournament-name{font-size:12px;color:#888;display:block;/* Turnuva ismi küçük ekranlarda tarih altında görünür */ margin-top:2px;/* Turnuva ismi ile tarih arasında küçük bir boşluk */ white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;/* Genişliğini tam olarak kullan */}
}

.loading-spinner{width:50px;height:50px;border:3px solid #f3f3f3;border-top:3px solid #3498db;border-radius:50%;animation:spin 1s linear infinite;margin:20px auto;}
@keyframes spin {
    0%{transform:rotate(0deg);}
  100%{transform:rotate(360deg);}
}

/* Skeleton Loading Animation Styles */

/* Temel skeleton çerçevesi */
.skeleton-match, .skeleton-tournament, .skeleton-pulse, .skeleton-pulse-slow{background-color:#e9ecef;border-radius:var(--radius-sm);position:relative;overflow:hidden;}
/* Pulse Animation - Hızlı */
.skeleton-pulse::after{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);animation:pulse 1.5s ease-in-out infinite;}
/* Pulse Animation - Yavaş */
.skeleton-pulse-slow::after{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);animation:pulse 2.5s ease-in-out infinite;}
@keyframes pulse {
    0%{transform:translateX(-100%);}
  100%{transform:translateX(100%);}
}

/* Skeleton boyutları */
.skeleton-match .live-scores-time{width:45px;height:14px;margin:4px auto;}
.skeleton-match .live-scores-minute{width:30px;height:12px;margin:0 auto;}
.skeleton-match .team-logo{width:20px;height:20px;border-radius:50%;}
.skeleton-match .live-scores-name{width:100px;height:14px;margin:4px 0;}
.skeleton-match .live-scores-score{width:20px;height:18px;margin-left:auto;}
/* Turnuva skeleton özellikleri */
.skeleton-match .live-scores-tournament-flag{width:24px;height:24px;border-radius:50%;}
.skeleton-match .live-scores-tournament-title{width:200px;height:18px;margin-left:10px;}
/* Maç detayları skeleton özellikleri */
/* FIX: Updated to match responsive logo sizes (44→48→56→75→100px) */

/* Extra small phones (< 375px) */
.match-details-team-logo.skeleton-pulse{width:44px;height:44px;border-radius:50%;margin:0 auto 10px auto;}
/* Small phones (375-480px) */
@media(min-width:375px){
    .match-details-team-logo.skeleton-pulse{width:48px;height:48px;}
}

/* Large phones (481px+) - FAZ2 FIX #15: Standardized breakpoint */
@media(min-width:481px){
    .match-details-team-logo.skeleton-pulse{width:56px;height:56px;}
}

/* Tablets (769px+) */
@media(min-width:769px){
    .match-details-team-logo.skeleton-pulse{width:75px;height:75px;}
}

/* Desktop (1025px+) */
@media(min-width:1025px){
    .match-details-team-logo.skeleton-pulse{width:100px;height:100px;}
}

.match-details-team-name.skeleton-pulse{width:100px;height:16px;margin:5px auto;}
.live-scores-team-score.skeleton-pulse{width:30px;height:30px;margin:10px auto;}
.live-scores-match-time.skeleton-pulse{width:60px;height:18px;margin:5px auto;}
.previous-leg-score.skeleton-pulse{width:80px;height:14px;margin:5px auto;}
/* Sekmeler için skeleton */
.live-scores-menu-item.skeleton-pulse{width:70px;height:20px;display:inline-block;margin:0 10px;}
/* Note: .match-details-team-logo.skeleton-pulse responsive sizes moved to main logo rule (line 3732+) */
/* Now uses same breakpoints: 44px → 48px → 56px → 75px → 100px */

.skeleton-match .live-scores-name{width:80px;}
/* Dairesel grafikler için modern stiller */
.circular-stat-container{display:flex;justify-content:space-between;align-items:center;margin-top:10px;margin-bottom:15px;}
.circular-stat-item{text-align:center;width:48%;/* Her bir öğe genişliğin yaklaşık yarısını kaplasın */ display:flex;flex-direction:column;align-items:center;}
.circular-chart{width:42%;/* Biraz daha büyük */ height:auto;filter:drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));transition:transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), filter 0.3s ease;}
@media (hover: hover) {
    .circular-chart:hover{transform:scale(1.05);filter:drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));}
}

.circle-bg{fill:none;stroke:#f4f4f4;stroke-width:3.5;opacity:0.8;}
.circle{fill:none;stroke-width:3;stroke-linecap:round;animation:progress 1s ease-out forwards;filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));transition:stroke 0.3s ease;}
.circular-chart .home-circle{stroke:#1E88E5;stroke-width:3.2;}
.circular-chart .away-circle{stroke:#E53935;stroke-width:3.2;}
.percentage{fill:#444;font-family:'Roboto', Arial, sans-serif;font-size:0.38em;font-weight:500;text-anchor:middle;}
.circular-stat-text{font-size:13px;margin-top:8px;font-weight:500;color:#444;}
@media(max-width:480px){
    .circular-chart{width:50%;/* Mobile:ekstra büyük */}
   .percentage{font-size:0.42em;}
   .circular-stat-text{font-size:12px;}
}

@media(min-width:481px) and (max-width:768px){
    .circular-chart{width:45%;/* Tablet:medium boyut */}
   .percentage{font-size:0.40em;}
   .circular-stat-text{font-size:12px;}
}

/* Desktop Hover Efektleri (1025px ve üzeri) */
@media(min-width:1025px){
    .live-scores-stat-bar.home:hover, .live-scores-stat-bar.away:hover{filter:brightness(1.1);box-shadow:0 2px 6px rgba(0, 0, 0, 0.2);}
  
    .circular-chart:hover{filter:drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));}
  
    .live-scores-stat-value.home:hover, .live-scores-stat-value.away:hover{box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);transform:translateY(-2px);}
}

/* Rating (Puan) Bilgisi */
.player-rating{position:absolute;bottom:20px;/* Biraz daha yukarıda olacak şekilde ayarlandı */ left:-20px;/* Daha sol tarafa taşındı */ background-color:#f1c40f;/* Sarı arka plan */ color:#ffffff;/* Beyaz yazı rengi */ font-size:12px;/* Yazı boyutu */ font-weight:bold;padding:2px 5px;border-radius:var(--radius-sm);z-index:var(--z-player-info);/* Player div'den daha yüksek olmalı */ pointer-events:none;/* Tıklamayı geçirmesi için */}
/* Değişim İkonu */
.substitution-icon{position:absolute;/* İkonun doğru şekilde konumlandırılması için ekleniyor */ bottom:15px !important;/* Forma görselinin altına yerleştirmek için */ right:-10px !important;/* Forma görselinin sağına yerleştirmek için */ font-size:24px;/* İkonun boyutunu ayarlayın */ color:#FF0000;/* Kırmızı renk, isteğe göre değiştirilebilir */ z-index:var(--z-player-info);/* Player div'den daha yüksek olmalı */ pointer-events:none;/* Tıklamayı geçirmesi için */}
.substitute-player{display:flex;align-items:center;padding:5px;/* Padding değerini küçülttük */ background-color:#f9f9f9;border-bottom:1px solid #ddd;font-size:13px;font-weight:bold;}
.substitute-entered{background-color:#e6ffe6;}
.substitute-number{margin-right:8px;color:#333;font-weight:bold;font-size:14px;}
.substitute-name{flex-grow:1;min-width:0;/* Firefox fix */ overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#333;font-size:13px;}
.substitution-icon-substitute{color:#28a745;font-size:16px;margin-left:5px;}
/* Wrapper'dan padding tamamen kaldırıldı, boşluk sıfırlandı */
.substitutes-wrapper{display:flex;justify-content:space-between;gap:0;/* Gap değerini sıfırladık */ width:100%;/* Tam genişlik */ padding:0;/* Padding tamamen kaldırıldı */}
.substitutes-container-wrapper{flex:1;min-width:0;/* Firefox fix */ display:flex;justify-content:space-between;margin:0;/* Dış boşlukları sıfırladık */ padding:0;/* İç boşlukları sıfırladık */}
.substitutes-container{flex:1;min-width:0;/* Firefox fix */ background-color:#fff;border-radius:var(--radius-md);border:1px solid #ddd;padding:5px;/* İç padding azaltıldı */ margin:0;/* Varsayılan dış boşlukları kaldırdık */ /* width:50% removed — flex:1 already distributes evenly */}
.substitutes-header{font-size:14px;font-weight:bold;margin-bottom:5px;text-align:center;}
.substitutes-list{display:flex;flex-direction:column;}
/* Mobil görünüm için medya sorgusu */
@media(max-width:768px){
    .substitutes-wrapper{flex-direction:column;gap:0;}
   .substitutes-container{width:100%;margin-bottom:10px;}
}

/* Oyuncu Detay Popup - Modern Kart Yapısı */
.player-popup-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:var(--z-popup);/* Arttırıldı */ opacity:0;visibility:hidden;transition:opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;-webkit-backdrop-filter:blur(3px);/* FAZ2 FIX #12:Webkit prefix for Safari */ backdrop-filter:blur(3px);}
.player-popup-overlay.open{opacity:1;visibility:visible;}
.player-popup{background-color:#fff;padding:0;border-radius:var(--radius-lg);max-width:400px;width:90%;max-height:90vh;max-height:90dvh;/* FAZ2 FIX #10:Safari dvh */ overflow-y:auto;position:relative;box-shadow:0 10px 40px rgba(0, 0, 0, 0.3);z-index:var(--z-popup-above);}
.close-icon{position:absolute;top:8px;right:8px;cursor:pointer;color:#555;background-color:white;width:44px;/* FAZ2 FIX #8:Mobile touch target minimum */ height:44px;/* FAZ2 FIX #8:Mobile touch target minimum */ min-width:44px;min-height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 5px rgba(0,0,0,0.1);z-index:var(--z-overlay);text-align:center;line-height:1;}
.close-icon svg{width:20px;height:20px;fill:currentColor;}
/* Responsive: Close Icon */
@media(min-width:769px) and (max-width:1024px){
    .close-icon{top:8px;right:8px;width:44px;/* Touch target minimum */ height:44px;min-width:44px;min-height:44px;}
}

.player-card-header{padding:18px 16px;display:flex;align-items:flex-start;position:relative;background:linear-gradient(to right, #f8f9fa, #ffffff);border-bottom:1px solid #f0f0f0;z-index:var(--z-above);border-radius:12px 12px 0 0;}
.player-card-image{width:70px;height:70px;border-radius:50%;border:3px solid white;box-shadow:0 4px 12px rgba(0,0,0,0.1);object-fit:cover;margin-right:15px;background-color:#fff;flex-shrink:0;}
.player-card-info{flex:1;min-width:0;}
.player-card-name{font-size:18px;font-weight:700;margin:0 0 5px 0;color:#222;word-wrap:break-word;line-height:1.2;}
.player-card-position, .player-card-team{font-size:14px;color:#555;margin:3px 0;display:flex;align-items:center;}
.player-card-position:before{content:'';display:inline-block;width:8px;height:8px;min-width:8px;border-radius:50%;margin-right:6px;background-color:var(--position-color, #FFC107);}
.player-card-team:before{content:'';display:inline-block;width:8px;height:8px;min-width:8px;border-radius:50%;margin-right:6px;background-color:var(--team-color, #2196F3);}
/* Header Rating Badge — kadrodan gelen puan */
.pc-header-rating{display:flex;align-items:center;justify-content:center;align-self:center;flex-shrink:0;margin-left:auto;margin-right:36px;/* Kapatma ikonuyla çakışmasın */}
.pc-header-rating-value{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg, #1976D2, #1565C0);color:#fff;font-size:15px;font-weight:700;box-shadow:0 2px 8px rgba(25, 118, 210, 0.35);line-height:1;}
/* Ev sahibi takım renkleri */
.player-home-team .player-card-position:before{background-color:#1e88e5;/* Ev sahibi takım ana rengi */}
.player-home-team .player-card-team:before{background-color:#64b5f6;/* Ev sahibi takım ikincil rengi */}
.player-home-team .section-title::after{background-color:#1e88e5;/* Ev sahibi takım ana rengi */}
/* Deplasman takımı renkleri */
.player-away-team .player-card-position:before{background-color:#e53935;/* Deplasman takımı ana rengi */}
.player-away-team .player-card-team:before{background-color:#ef5350;/* Deplasman takımı ikincil rengi */}
.player-away-team .section-title::after{background-color:#e53935;/* Deplasman takımı ana rengi */}
/* Rating konumu - biraz daha aşağıda */
.player-card-rating-container{position:absolute;top:45px;/* Daha aşağıda konumlandırma */ right:16px;z-index:var(--z-elevated);width:54px;height:54px;}
.player-card-rating{position:absolute;width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;background:conic-gradient(#ffd700 0%, #ffd700 var(--rating-percent), rgba(255, 215, 0, 0.2) var(--rating-percent), rgba(255, 215, 0, 0.2) 100%);box-shadow:0 3px 8px rgba(214, 164, 2, 0.35);z-index:var(--z-raised);letter-spacing:-0.5px;clip-path:circle(27px at center);color:#000;}
.player-card-rating-inner{position:absolute;width:44px;height:44px;border-radius:50%;background-color:white;top:5px;left:5px;display:flex;align-items:center;justify-content:center;z-index:var(--z-above);}
.player-card-rating-glow{position:absolute;width:70px;height:70px;background:radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, rgba(255, 215, 0, 0) 70%);border-radius:50%;top:50%;left:50%;transform:translate(-50%, -50%);z-index:var(--z-base);animation:pulse-glow 2s infinite;}
@keyframes pulse-glow {
    0%{opacity:0.5;transform:translate(-50%, -50%) scale(0.9);}
  50%{opacity:0.75;transform:translate(-50%, -50%) scale(1.1);}
  100%{opacity:0.5;transform:translate(-50%, -50%) scale(0.9);}
}

.rating-excellent{background:conic-gradient(#25c485 0%, #25c485 var(--rating-percent), rgba(37, 196, 133, 0.2) var(--rating-percent), rgba(37, 196, 133, 0.2) 100%);box-shadow:0 3px 8px rgba(37, 196, 133, 0.35);}
.rating-excellent + .player-card-rating-glow{background:radial-gradient(circle, rgba(37, 196, 133, 0.8) 0%, rgba(37, 196, 133, 0) 70%);}
.rating-good{background:conic-gradient(#2196F3 0%, #2196F3 var(--rating-percent), rgba(33, 150, 243, 0.2) var(--rating-percent), rgba(33, 150, 243, 0.2) 100%);box-shadow:0 3px 8px rgba(33, 150, 243, 0.35);}
.rating-good + .player-card-rating-glow{background:radial-gradient(circle, rgba(33, 150, 243, 0.8) 0%, rgba(33, 150, 243, 0) 70%);}
.rating-average{background:conic-gradient(#FFC107 0%, #FFC107 var(--rating-percent), rgba(255, 193, 7, 0.2) var(--rating-percent), rgba(255, 193, 7, 0.2) 100%);box-shadow:0 3px 8px rgba(255, 193, 7, 0.35);}
.rating-average + .player-card-rating-glow{background:radial-gradient(circle, rgba(255, 193, 7, 0.8) 0%, rgba(255, 193, 7, 0) 70%);}
.rating-poor{background:conic-gradient(#FF5722 0%, #FF5722 var(--rating-percent), rgba(255, 87, 34, 0.2) var(--rating-percent), rgba(255, 87, 34, 0.2) 100%);box-shadow:0 3px 8px rgba(255, 87, 34, 0.35);}
.rating-poor + .player-card-rating-glow{background:radial-gradient(circle, rgba(255, 87, 34, 0.8) 0%, rgba(255, 87, 34, 0) 70%);}
.match-info-bar{padding:12px 16px;background-color:#f8f9fa;border-bottom:1px solid #eee;position:relative;display:flex;justify-content:center;align-items:center;font-size:14px;font-weight:500;}
.player-home-team .match-info-bar{border-left:3px solid var(--team-primary-color, #1e88e5);}
.player-away-team .match-info-bar{border-left:3px solid var(--team-primary-color, #e53935);}
.match-info-teams{display:flex;align-items:center;justify-content:center;}
.match-team-name{font-weight:600;color:#333;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.home-team-name{color:var(--team-primary-color, #1e88e5);font-weight:700;}
.away-team-name{color:var(--team-primary-color, #e53935);font-weight:700;}
.match-vs{margin:0 8px;color:#777;font-weight:400;}
.match-date{color:#666;margin-left:10px;font-size:13px;position:relative;padding-left:10px;}
.match-date::before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:3px;border-radius:50%;background-color:#999;}
.player-card-content{padding:16px 14px;}
/* İstatistik Toggle Butonu — Progressive Disclosure */
.player-stats-toggle-btn{width:100%;padding:14px 16px;background:linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);border:1px solid #dee2e6;border-radius:var(--radius-md);cursor:pointer;font-size:14px;font-weight:600;color:#495057;display:flex;align-items:center;justify-content:center;gap:8px;transition:all 0.2s ease;min-height:44px;/* Touch target */ -webkit-appearance:none;appearance:none;}
.player-stats-toggle-btn:hover{background:linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);color:#212529;box-shadow:0 2px 6px rgba(0,0,0,0.08);}
.player-stats-toggle-btn:active{transform:scale(0.98);}
.player-stats-toggle-btn:disabled{opacity:0.7;cursor:wait;}
.player-stats-toggle-btn i{font-size:15px;color:#6c757d;}
/* Küçük loading spinner (buton içi) */
.loading-spinner-small{width:16px;height:16px;border:2px solid #dee2e6;border-top-color:#495057;border-radius:50%;animation:spin 0.6s linear infinite;display:inline-block;flex-shrink:0;}
/* İstatistik container slide animasyonu */
.player-stats-container{overflow:hidden;}
.section-title{font-size:16px;font-weight:600;color:#333;margin:16px 0 10px 0;padding-bottom:6px;border-bottom:1px solid #eee;position:relative;}
.section-title:first-child{margin-top:0;}
.section-title::after{content:'';position:absolute;bottom:-1px;left:0;width:50px;height:3px;background-color:var(--team-primary-color, #FFC107);border-radius:var(--radius-sm);}
.player-card-section{margin-bottom:20px;}
/* İstatistik alanı - tek sütun */
.player-card-stat-list{display:flex;flex-direction:column;gap:var(--space-2);margin-top:5px;}
.player-card-stat-item{background-color:#f8f9fa;border-radius:var(--radius-md);padding:10px 14px;transition:all 0.2s ease;display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;box-shadow:0 1px 3px rgba(0,0,0,0.05);}
.player-card-stat-item:hover{background-color:#e9ecef;transform:translateY(-2px);box-shadow:0 3px 8px rgba(0,0,0,0.08);}
.player-card-stat-label{font-size:13px;font-weight:500;color:#555;}
.player-card-stat-value{font-size:14px;font-weight:600;color:#333;background-color:rgba(255, 255, 255, 0.7);padding:2px 7px;border-radius:var(--radius-sm);min-width:40px;text-align:center;}
.no-stats{text-align:center;padding:15px;background-color:#f8f9fa;border-radius:var(--radius-md);color:#666;font-style:italic;margin:10px 0;}
/* Mobil için responsive düzenlemeler */
@media(max-width:576px){
    .player-card-header{padding:14px 12px;}
  
    .player-card-image{width:60px;height:60px;}
  
    .player-card-name{font-size:16px;}
  
    .player-card-position, .player-card-team{font-size:13px;margin:2px 0;}
  
    .player-card-rating-container{top:55px;/* Mobil ekranda daha da aşağıda */ right:14px;width:46px;height:46px;}
  
    .player-card-rating{width:46px;height:46px;font-size:18px;clip-path:circle(23px at center);}
  
    .player-card-rating-inner{width:38px;height:38px;top:4px;left:4px;}
  
    .player-card-stat-item{padding:10px 12px;}
  
    .player-card-stat-label{font-size:13px;}
  
    .match-info-bar{padding:10px 12px;font-size:13px;}
  
    .match-team-name{max-width:100px;}
  
    .match-date{font-size:12px;}
  
    .player-card-content{padding:14px 12px;}
  
    .close-icon{top:8px;right:8px;width:44px;/* Touch target minimum 44x44 */ height:44px;min-width:44px;min-height:44px;}
   .close-icon svg{width:16px;height:16px;}
   .pc-header-rating{margin-right:32px;}
   .pc-header-rating-value{width:36px;height:36px;font-size:13px;}
}

/* ============================================================
   Player Card v3 — Bottom Sheet (Mobil) / Centered Modal (Masaüstü)
   4-Tab yapı: Maç | Sezon | Kariyer | Profil
   ============================================================ */

/* Inline SVG Icon — Font Awesome yerine kullanılır */
.pc-svg-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1;}
.pc-svg-icon svg{fill:currentColor;}
/* Bottom Sheet — Mobil (varsayılan) */
.pc-bottom-sheet{position:fixed !important;bottom:0;left:0;right:0;top:auto !important;max-height:92vh;max-height:92dvh;border-radius:20px 20px 0 0;transform:translateY(100%);transition:transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);overflow-y:auto;-webkit-overflow-scrolling:touch;width:100% !important;max-width:100% !important;}
.player-popup-overlay.open .pc-bottom-sheet{transform:translateY(0);}
/* Masaüstü — Centered Modal */
@media(min-width:520px){
    .pc-bottom-sheet{position:relative !important;bottom:auto;left:auto;right:auto;max-width:440px !important;width:92% !important;max-height:90vh;max-height:90dvh;border-radius:var(--radius-lg);transform:scale(0.9);opacity:0;transition:transform 0.3s ease, opacity 0.3s ease;}
  .player-popup-overlay.open .pc-bottom-sheet{transform:scale(1);opacity:1;}
}

/* Drag Handle */
.pc-drag-handle{display:flex;justify-content:center;padding:10px 0 4px;cursor:grab;touch-action:none;}
.pc-drag-bar{width:36px;height:4px;border-radius:2px;background-color:#d0d0d0;}
@media(min-width:520px){
    .pc-drag-handle{display:none;}
}

/* === TAB BAR === */
.pc-tab-bar{display:flex;position:sticky;top:0;z-index:var(--z-above, 10);background:#fff;border-bottom:1px solid #eee;padding:0;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.pc-tab-bar::-webkit-scrollbar{display:none;}
.pc-tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:10px 4px 8px;border:none;background:none;cursor:pointer;font-size:11px;font-weight:500;color:#888;transition:color 0.2s ease;min-width:0;white-space:nowrap;min-height:44px;-webkit-appearance:none;appearance:none;position:relative;}
.pc-tab i, .pc-tab .pc-svg-icon{font-size:16px;transition:color 0.2s ease;}
.pc-tab .pc-svg-icon svg{width:16px;height:16px;fill:currentColor;}
.pc-tab-active{color:#1976D2;font-weight:600;}
.pc-tab-active i, .pc-tab-active .pc-svg-icon{color:#1976D2;}
/* Tab sliding indicator */
.pc-tab-indicator{position:absolute;bottom:0;left:0;height:3px;background:#1976D2;border-radius:3px 3px 0 0;transition:left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);}
/* === TAB PANELS === */
.pc-tab-content{min-height:200px;}
.pc-tab-panel{display:none;padding:12px 14px;}
.pc-tab-panel-active{display:block;}
/* === EXPAND/COLLAPSE COMPONENT === */
.pc-expandable{margin-bottom:8px;}
.pc-expand-btn{width:100%;display:flex;align-items:center;gap:10px;padding:12px 14px;background:linear-gradient(135deg, #f8f9fa 0%, #f0f1f3 100%);border:1px solid #e9ecef;border-radius:var(--radius-md, 8px);cursor:pointer;font-size:14px;font-weight:600;color:#495057;transition:all 0.2s ease;min-height:44px;-webkit-appearance:none;appearance:none;}
.pc-expand-btn:hover{background:linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);box-shadow:0 2px 6px rgba(0,0,0,0.06);}
.pc-expand-btn:active{transform:scale(0.98);}
.pc-expand-btn[aria-expanded="true"]{background:#fff;border-color:#1976D2;color:#1976D2;border-bottom-left-radius:0;border-bottom-right-radius:0;}
.pc-expand-icon{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:rgba(25, 118, 210, 0.08);border-radius:50%;flex-shrink:0;}
.pc-expand-icon .pc-svg-icon{display:flex;align-items:center;justify-content:center;}
.pc-expand-icon .pc-svg-icon svg{width:13px;height:13px;fill:#1976D2;}
.pc-expand-icon i{font-size:13px;color:#1976D2;}
.pc-expand-title{flex:1;text-align:left;}
.pc-expand-arrow{flex-shrink:0;display:flex;align-items:center;justify-content:center;color:#aaa;transition:transform 0.3s ease;}
.pc-expand-arrow .pc-svg-icon svg{width:12px;height:12px;fill:currentColor;}
.pc-expand-btn[aria-expanded="true"] .pc-expand-arrow{transform:rotate(180deg);}
.pc-expand-content{border:1px solid #e9ecef;border-top:none;border-radius:0 0 var(--radius-md, 8px) var(--radius-md, 8px);padding:12px 14px;background:#fff;}
/* === SKELETON LOADER === */
.pc-skeleton{padding:4px 0;}
.pc-skeleton-line{height:14px;background:linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);background-size:200% 100%;animation:pc-shimmer 1.5s infinite;border-radius:4px;margin-bottom:10px;}
@keyframes pc-shimmer {
    0%{background-position:200% 0;}
  100%{background-position:-200% 0;}
}

/* === RATING BREAKDOWN BARS === */
.pc-rating-breakdown{display:flex;flex-direction:column;gap:8px;}
.pc-rating-bar-row{display:flex;align-items:center;gap:8px;}
.pc-rating-bar-label{font-size:13px;color:#555;width:100px;flex-shrink:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}
.pc-rating-bar-track{flex:1;height:8px;background:#f0f0f0;border-radius:4px;overflow:hidden;}
.pc-rating-bar-fill{height:100%;background:linear-gradient(90deg, #2196F3, #1976D2);border-radius:4px;transition:width 0.5s ease;}
.pc-rating-bar-value{font-size:13px;font-weight:600;color:#333;min-width:32px;text-align:right;}
/* === SEASON HEADER BADGES === */
.pc-season-header{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap;}
.pc-season-badge{display:inline-flex;align-items:center;padding:4px 10px;background:#e3f2fd;color:#1565c0;border-radius:12px;font-size:12px;font-weight:600;}
.pc-season-year{background:#f3e5f5;color:#7b1fa2;}
/* === RATINGS LIST (maç maç puan) === */
.pc-ratings-list{display:flex;flex-direction:column;gap:4px;}
.pc-rating-match-row{display:flex;align-items:center;padding:8px 10px;background:#f8f9fa;border-radius:var(--radius-md, 8px);gap:8px;}
.pc-rating-match-opp{flex:1;font-size:13px;color:#333;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pc-rating-match-date{font-size:11px;color:#888;}
.pc-rating-match-val{font-size:14px;font-weight:700;min-width:32px;text-align:center;padding:2px 6px;border-radius:6px;color:#fff;}
.pc-rating-match-val.rating-excellent{background:#25c485;}
.pc-rating-match-val.rating-good{background:#2196F3;}
.pc-rating-match-val.rating-average{background:#FFC107;color:#333;}
.pc-rating-match-val.rating-poor{background:#FF5722;}
/* === TRANSFER LIST === */
.pc-transfer-list{display:flex;flex-direction:column;gap:10px;}
.pc-transfer-item{padding:10px 12px;background:#f8f9fa;border-radius:var(--radius-md, 8px);border-left:3px solid #1976D2;}
.pc-transfer-row{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#333;}
.pc-transfer-arrow{color:#1976D2;flex-shrink:0;display:inline-flex;align-items:center;}
.pc-transfer-arrow svg{width:12px;height:12px;fill:currentColor;}
.pc-transfer-from, .pc-transfer-to{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pc-transfer-meta{display:flex;gap:10px;margin-top:4px;font-size:12px;color:#777;}
.pc-transfer-fee{color:#25c485;font-weight:600;}
/* === MATCH LIST === */
.pc-match-list{display:flex;flex-direction:column;gap:6px;}
.pc-match-item{padding:8px 10px;background:#f8f9fa;border-radius:var(--radius-md, 8px);}
.pc-match-teams{display:flex;align-items:center;gap:6px;font-size:13px;}
.pc-match-home, .pc-match-away{font-weight:600;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;}
.pc-match-away{text-align:right;}
.pc-match-score{font-weight:700;color:#1976D2;padding:2px 8px;background:#e3f2fd;border-radius:6px;font-size:13px;flex-shrink:0;}
.pc-match-vs{color:#999;font-size:12px;flex-shrink:0;}
.pc-match-meta{display:flex;justify-content:space-between;margin-top:4px;font-size:11px;color:#888;}
.pc-match-tournament{color:#666;font-weight:500;}
/* === CHARACTERISTICS === */
.pc-characteristics{display:flex;flex-direction:column;gap:12px;}
.pc-char-category{background:#f8f9fa;border-radius:var(--radius-md, 8px);padding:10px 12px;}
.pc-char-cat-title{font-size:14px;font-weight:600;color:#333;margin:0 0 8px;}
.pc-char-item{display:flex;justify-content:space-between;align-items:center;padding:4px 0;font-size:13px;color:#555;border-bottom:1px solid #f0f0f0;}
.pc-char-item:last-child{border-bottom:none;}
.pc-char-val{font-weight:600;color:#333;}
.pc-char-positive{color:#25c485;}
.pc-char-negative{color:#e53935;}
.pc-char-positive .pc-svg-icon, .pc-char-negative .pc-svg-icon{display:inline-flex;align-items:center;vertical-align:middle;margin-right:4px;}
.pc-char-positive .pc-svg-icon svg, .pc-char-negative .pc-svg-icon svg{width:10px;height:10px;fill:currentColor;}
/* === HEATMAP === */
.pc-heatmap-container{border-radius:var(--radius-md, 8px);overflow:hidden;}
.pc-heatmap-canvas{width:100%;height:auto;display:block;border-radius:var(--radius-md, 8px);}
/* === RADAR CHART === */
.pc-radar-container{display:flex;justify-content:center;padding:8px 0;}
.pc-radar-svg{width:100%;max-width:280px;height:auto;}
.pc-attr-list{margin-top:8px;}
/* === MEDIA LIST === */
.pc-media-list{display:flex;flex-direction:column;gap:8px;}
.pc-media-item{display:flex;gap:10px;padding:8px;background:#f8f9fa;border-radius:var(--radius-md, 8px);text-decoration:none;color:inherit;transition:background 0.2s ease;}
.pc-media-item:hover{background:#e9ecef;}
.pc-media-thumb{width:60px;height:44px;border-radius:6px;object-fit:cover;flex-shrink:0;}
.pc-media-info{display:flex;flex-direction:column;gap:2px;min-width:0;}
.pc-media-title{font-size:13px;font-weight:600;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pc-media-date{font-size:11px;color:#888;}
/* === v3 Mobile Responsive === */
@media(max-width:519px){
    .pc-tab span{font-size:10px;}
  .pc-tab i, .pc-tab .pc-svg-icon svg{font-size:14px;width:14px;height:14px;}
  .pc-expand-btn{padding:10px 12px;font-size:13px;}
  .pc-expand-content{padding:10px 12px;}
  .pc-tab-panel{padding:10px 12px;}
  .pc-rating-bar-label{width:80px;font-size:12px;}
}

/* Baskı Grafiği - Responsive Incident Icons */
/* ✅ Base boyutlar ve responsive ölçüler 7-breakpoint strategy bölümünde tanımlı */

.incident-icon-overlay{position:absolute;top:0;height:100%;transform:translateX(-50%);width:25px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;/* KEY:Pushes top and bottom apart */ gap:0;box-sizing:border-box;}
.incident-icons{display:flex;flex-direction:column;align-items:center;gap:2px;}
/* ✅ chartArea FIX: İkonlar grafiğin DIŞINDA — hemen üstünde/altında */
.incident-icons.top{position:absolute;bottom:100%;margin-bottom:1px;left:50%;transform:translateX(-50%);}
.incident-icons.bottom{position:absolute;top:100%;margin-top:1px;left:50%;transform:translateX(-50%);flex-direction:column-reverse;}
.incident-icon{font-size:14px;line-height:14px;display:inline-flex;align-items:center;justify-content:center;filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));transition:transform 0.2s ease;cursor:pointer;padding:4px;margin:-4px;}
@media (hover: hover) {
    .incident-icon:hover{transform:scale(1.15);}
}

/* Doğrudan kırmızı kart - Kırmızı dikdörtgen */
.incident-icon.red-card-icon{width:10px;height:14px;background-color:#e53935;border-radius:var(--radius-xs);font-size:12px;line-height:14px;}
/* İkinci sarı karttan kırmızı (2 Sarı = 1 Kırmızı) - Küçük kırmızı dikdörtgen */
.incident-icon.yellow-red-card-icon{width:8px;height:12px;background-color:#d32f2f;border-radius:1px;font-size:8px;line-height:12px;opacity:0.8;}
/* İptal edilen gol ikonları */
.incident-icon.cancelled-goal-icon{font-size:14px;line-height:14px;color:#999;opacity:0.6;text-decoration:line-through;}
/* Incident Icons Container - Ana konteyner */
/* ✅ chartArea FIX: Pozisyon/boyut JS tarafından inline style ile ayarlanır */
/* Bu CSS sadece fallback — JS inline styles her zaman override eder */
.incident-icons-container{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none;z-index:var(--z-overlay);}
/* Dakika overlay - her dakika için konum container'ı */
.minute-incident-overlay{position:absolute;top:0;bottom:0;width:30px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;transform:translateX(-50%);}
/* ============================================
   RESPONSIVE ICONS — clamp() APPROACH
   ✅ chartArea FIX: Pozisyon/boyut artık JS inline style ile yönetiliyor
   Sadece ikon boyutları responsive olarak ayarlanır
   7 breakpoint → tek clamp() bloğu (#34 optimizasyonu)
   Aralık: 12px (≤375px) → 16px (≥1200px)
   
   COMPAT: clamp() fallback → iOS Safari <13.4, Samsung Internet <12
   Her clamp() satırının üstünde fallback (orta değer) var.
   Tarayıcı clamp() destekliyorsa fallback'i override eder.
   ============================================ */
.incident-icon{font-size:14px;/* fallback:clamp() desteklemeyen tarayıcılar */ font-size:clamp(12px, 0.5vw + 10px, 16px);line-height:1;}
.incident-icon.red-card-icon{width:8px;/* fallback */ width:clamp(6px, 0.4vw + 4px, 11px);height:12px;/* fallback */ height:clamp(9px, 0.5vw + 6.5px, 15px);font-size:10px;/* fallback */ font-size:clamp(8px, 0.3vw + 6px, 12px);}
.incident-icon.yellow-red-card-icon{width:7px;/* fallback */ width:clamp(5px, 0.3vw + 3.5px, 9px);height:10px;/* fallback */ height:clamp(7px, 0.5vw + 4.5px, 13px);font-size:7px;/* fallback */ font-size:clamp(6px, 0.2vw + 4.5px, 8px);}
/* DARK MODE UYUMLULUĞU - Comprehensive Dark Theme */
@media (prefers-color-scheme: dark) {
    /* === BAR CHART STYLING === */
    .live-scores-stat-bar.home{background:linear-gradient(to right, #42A5F5, #90CAF9);box-shadow:0 2px 4px rgba(66, 165, 245, 0.3);}
  
    .live-scores-stat-bar.away{background:linear-gradient(to right, #EF5350, #EF9A9A);box-shadow:0 2px 4px rgba(239, 83, 80, 0.3);}
  
    .live-scores-stat-bar.home:hover{filter:brightness(1.15);box-shadow:0 3px 6px rgba(66, 165, 245, 0.4);}
  
    .live-scores-stat-bar.away:hover{filter:brightness(1.15);box-shadow:0 3px 6px rgba(239, 83, 80, 0.4);}
  
    .live-scores-stat-value.home{background-color:#42A5F5;box-shadow:0 2px 4px rgba(66, 165, 245, 0.3);}
  
    .live-scores-stat-value.away{background-color:#EF5350;box-shadow:0 2px 4px rgba(239, 83, 80, 0.3);}
  
    /* === LABELS AND TEXT === */
    .live-scores-stat-label{color:#e0e0e0;}
  
    /* === BAR CONTAINER === */
    .live-scores-stat-bar-container{background-color:#424242;box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.3);}
  
    /* === CIRCULAR CHART STYLING === */
    .circular-chart .home-circle{stroke:#42A5F5;}
  
    .circular-chart .away-circle{stroke:#EF5350;}
  
    .circle-bg{stroke:#555;opacity:0.6;}
  
    .percentage{fill:#e0e0e0;}
  
    .circular-stat-text{color:#d0d0d0;}
  
    /* === PERIOD BUTTONS === */
    .statistics-period-selection{background-color:#2a2a2a;box-shadow:0 2px 5px rgba(0, 0, 0, 0.3);}
  
    .statistics-period-selection button{color:#b0b0b0;}
  
    .statistics-period-selection button:hover{background-color:rgba(255, 255, 255, 0.05);}
  
    .statistics-period-selection button.active{background-color:#1a1a1a;color:#42A5F5;box-shadow:0 2px 5px rgba(66, 165, 245, 0.2);}
  
    /* === HOVER EFFECTS (Desktop - 1025px+) === */
    @media(min-width:1025px){
        .circular-chart:hover{filter:drop-shadow(0 4px 12px rgba(66, 165, 245, 0.3));}
  }
}

/* ====================================================================
   FAZ2 FIX #11: Touch Device Alternatifleri
   Hover desteklemeyen (dokunmatik) cihazlar için:
   - Transform/box-shadow hover'ları devre dışı bırak (yapışkan kalma sorunu)
   - :active pseudo-class ile kısa dokunma geri bildirimi sağla
   ==================================================================== */

/* Dokunmatik cihazlarda hover efektlerini devre dışı bırak ve :active ile değiştir */
@media (hover: none) {
    /* Maç kartları - Yapışkan transform hover'ı engelle */
    .live-scores-match-card:hover{transform:none;box-shadow:0 4px 15px rgba(0,0,0,0.08);}
  .live-scores-match-card:active{background-color:#f5f5f5;transform:scale(0.97);/* FAZ4 FIX #32:Touch feedback press-in effect */ transition:background-color 0.1s ease, transform 0.1s ease;}
   /* Maç satırları - bg renk hover'ı engelle */
    .live-scores-match:hover, .match-card:hover{background-color:inherit;}
  .live-scores-match:active, .match-card:active{background-color:#f0f0f0;transform:scale(0.97);/* FAZ4 FIX #32:Touch feedback press-in effect */ transition:background-color 0.1s ease, transform 0.1s ease;}
  
    /* Menü öğeleri - bg renk hover'ını engelle */
    .live-scores-menu-item:hover{background-color:inherit;}
  .live-scores-menu-item:active{background-color:#e8e8e8;transform:scale(0.97);/* FAZ4 FIX #32:Touch feedback press-in effect */ transition:background-color 0.1s ease, transform 0.1s ease;}
   /* Olay kartları - box-shadow hover'ını engelle */
    .incident:hover{box-shadow:0 1px 3px rgba(0,0,0,0.1);}
  .incident:active{background-color:#f0f0f0;transform:scale(0.97);/* FAZ4 FIX #32:Touch feedback press-in effect */ transition:background-color 0.1s ease, transform 0.1s ease;}
   /* Puan durumu tablosu satırları */
    .standings-table tbody tr:hover{background-color:inherit;}
  .standings-table tbody tr:active{background-color:#e9ecef;transform:scale(0.97);/* FAZ4 FIX #32:Touch feedback press-in effect */ transition:background-color 0.1s ease, transform 0.1s ease;}
   /* Puan durumu kartları */
    .standings-card:hover{transform:none;box-shadow:0 2px 4px rgba(0,0,0,0.1);}
  .standings-card:active{background-color:#f5f5f5;transform:scale(0.97);/* FAZ4 FIX #32:Touch feedback press-in effect */ transition:background-color 0.1s ease, transform 0.1s ease;}
   /* Performans kartları */
    .performance-card:hover{transform:none;box-shadow:0 2px 4px rgba(0,0,0,0.1);}
  .performance-card:active{background-color:#f0f0f0;transform:scale(0.97);/* FAZ4 FIX #32:Touch feedback press-in effect */ transition:background-color 0.1s ease, transform 0.1s ease;}
   /* H2H maç kartları */
    .h2h-match-card.match-card:hover{transform:none;box-shadow:none;}
  .h2h-match-card.match-card:active{background-color:#f5f5f5;transform:scale(0.97);/* FAZ4 FIX #32:Touch feedback press-in effect */ transition:background-color 0.1s ease, transform 0.1s ease;}
   /* İstatistik çubukları */
    .live-scores-stat-bar.home:hover, .live-scores-stat-bar.away:hover{filter:none;}
  .live-scores-stat-bar.home:active, .live-scores-stat-bar.away:active{opacity:0.8;transform:scale(0.97);/* FAZ4 FIX #32:Touch feedback press-in effect */ transition:opacity 0.1s ease, transform 0.1s ease;}
   /* Dairesel grafik */
    .circular-chart:hover{filter:none;}
   /* Oyuncu kartı stat */
    .player-card-stat-item:hover{transform:none;}
  .player-card-stat-item:active{background-color:#f0f0f0;transform:scale(0.97);/* FAZ4 FIX #32:Touch feedback press-in effect */ transition:background-color 0.1s ease, transform 0.1s ease;}
}

/* ====================================================================
   FAZ4 FIX #28: Safe Area Inset Desteği
   iPhone X+ notch/home indicator alanları için padding
   env(safe-area-inset-*) ile dinamik spacing
   ==================================================================== */
@supports (padding: env(safe-area-inset-top)) {
    /* Mobil match-details: notch ve home indicator koruması */
    @media(max-width:768px){
        #match-details{padding-top:calc(10px + env(safe-area-inset-top));padding-bottom:calc(50px + env(safe-area-inset-bottom));/* ← FIX:50px base + safe area */ padding-left:calc(10px + env(safe-area-inset-left));padding-right:calc(10px + env(safe-area-inset-right));}
       /* Controls card: sol/sağ safe area */
        .controls-card{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);}
       /* Tab content: alt safe area (scroll sonu) */
        .live-scores-tab-content{padding-bottom:calc(20px + env(safe-area-inset-bottom));}
       /* Body scroll-locked durumda bottom indicator */
        body.scroll-locked{padding-bottom:env(safe-area-inset-bottom);}
  }
}

/* ====================================================================
   FAZ4 FIX #29: Overflow/Scroll İyileştirmeleri
   - overscroll-behavior: contain → üst sayfa scroll'unu engelle
   - Smooth scroll behavior
   - Scroll snap for tab content
   ==================================================================== */
#match-details{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
/* Tab content no longer scrolls — parent #match-details handles all scrolling */

.live-scores-menu{overscroll-behavior-x:contain;scroll-behavior:smooth;}
/* Scroll-locked durumda body overscroll'u engelle */
body.scroll-locked{overscroll-behavior:none;}
/* ====================================================================
   FAZ4 FIX #33: Reduced Motion (Erişilebilirlik)
   prefers-reduced-motion: reduce → tüm animasyonları devre dışı bırak
   Epilepsi/vestibüler hassasiyetler için zorunlu erişilebilirlik desteği
   ==================================================================== */
@media (prefers-reduced-motion: reduce) {
    /* Tüm geçişleri ve animasyonları kaldır */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Match details açılış/kapanış animasyonları */
    #match-details {
        transition: none !important;
        animation: none !important;
    }

    #match-details.entrance-animation {
        animation: none !important;
    }

    /* Tab geçiş animasyonları */
    .live-scores-tab-content.entering, .live-scores-tab-content.exiting {
        animation: none !important;
        transition: none !important;
    }

    /* Gol/iptal flash animasyonları */
    .flash-goal-overlay, .flash-cancel-overlay {
        animation: none !important;
        opacity: 0 !important;
    }

    /* Skeleton pulse animasyonları */
    .skeleton-pulse, .skeleton-pulse-slow {
        animation: none !important;
    }

    /* Skor değişim animasyonları */
    .live-scores-score {
        transition: none !important;
    }

    /* Switch option geçişleri */
    .switch-option {
        transition: none !important;
    }

    /* Menü öğeleri */
    .live-scores-menu-item {
        transition: none !important;
    }

    /* Maç kartı hover animasyonları */
    .live-scores-match-card, .match-card {
        transition: none !important;
    }

    /* İstatistik çubukları */
    .live-scores-stat-bar {
        transition: none !important;
    }
}