/* ==========================================================================
   MAÇ CEPTE — ULTRA MODERN MOBILE DESIGN ENGINE (mobile.css)
   Mobile-First / Native App Experience for Smartphones & Tablets
   ========================================================================== */

:root {
  --mobile-header-h: 62px;
  --mobile-dock-h: 68px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --tap-min-h: 44px;
}

/* ── Reset & Mobile Base ── */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

.mobile-menu-pill-btn {
  display: none;
}

/* Provide bottom padding so fixed bottom dock doesn't cover content on phones */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(var(--mobile-dock-h) + var(--safe-bottom) + 16px) !important;
  }
}

/* Tactile tap feedback on buttons and interactive cards */
@media (hover: none) and (pointer: coarse) {
  a, button, .match-card-premium, .leader-card, .spotlight-card, .team-card-premium, .dock-tab {
    touch-action: manipulation;
  }
  button:active, .nav-btn:active, .cta-button:active, .dock-tab:active, .player-info-btn:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease !important;
  }
}

/* ==========================================================================
   1. UNIFIED MOBILE HEADER & STICKY NAVBAR
   ========================================================================== */
@media (max-width: 1024px) {
  .premium-navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: rgba(10, 14, 26, 0.92) !important;
    backdrop-filter: blur(18px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
  }

  [data-theme="light"] .premium-navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  }

  .navbar-container {
    padding: 0.65rem 0.85rem !important;
    min-height: var(--mobile-header-h) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 0.4rem !important;
  }

  /* SOL ÜSTTEKİ 3 ÇİZGİ MENÜ BUTONU (Hamburger left-aligned on mobile) */
  .nav-hamburger {
    order: -1 !important;
    margin-right: 0.35rem !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    position: relative !important;
    gap: 5px !important;
    transition: all 0.25s ease !important;
  }

  .navbar-brand {
    order: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .navbar-brand .brand-icon {
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0 !important;
  }

  .brand-text {
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    white-space: nowrap !important;
  }

  /* Hide the old static in-flow menu on mobile; replaced by drawer */
  .navbar-menu {
    display: none !important;
  }

  .navbar-actions {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    flex-shrink: 0 !important;
  }

  .navbar-actions .nav-btn.primary-btn {
    padding: 0.42rem 0.75rem !important;
    font-size: 0.78rem !important;
    border-radius: 999px !important;
  }

  /* Sağ üstteki Hızlı Menü Butonu */
  .mobile-menu-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0.36rem 0.65rem !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    background: rgba(59, 130, 246, 0.15) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: #60a5fa !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  [data-theme="light"] .mobile-menu-pill-btn {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    color: #2563eb !important;
  }

  @media (max-width: 640px) {
    .navbar-actions .nav-btn.primary-btn {
      display: none !important;
    }
  }

  [data-theme="light"] .nav-hamburger {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
  }

  .nav-hamburger span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    background: var(--text, #f0f6fc) !important;
    border-radius: 2px !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease !important;
  }

  .nav-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
  }
  .nav-hamburger.is-open span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
  }
  .nav-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
  }
}

/* ==========================================================================
   2. MOBILE OFFCANVAS DRAWER (Sağdan Kayarak Açılan Menü)
   ========================================================================== */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: linear-gradient(180deg, #0e1526 0%, #0a0f1d 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

[data-theme="light"] .mobile-drawer {
  background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-drawer.is-active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .drawer-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.drawer-brand img {
  width: 32px;
  height: 32px;
}

.drawer-brand span {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.drawer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text, #f0f6fc);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

[data-theme="light"] .drawer-close-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.drawer-body {
  flex: 1;
  padding: 1rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.7);
  padding: 0 0.5rem 0.4rem;
  margin: 0;
}

.drawer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-nav-item a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  color: var(--text, #e2e8f0);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: transparent;
}

.drawer-nav-item a:hover,
.drawer-nav-item a.active {
  background: rgba(59, 130, 246, 0.14);
  color: #3b82f6;
}

[data-theme="light"] .drawer-nav-item a:hover,
[data-theme="light"] .drawer-nav-item a.active {
  background: rgba(59, 130, 246, 0.1);
}

.drawer-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.drawer-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-admin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

/* ==========================================================================
   3. MOBILE BOTTOM DOCK (Ekran Altı Sabit 5-Sekmeli Navigasyon Çubuğu)
   ========================================================================== */
.mobile-bottom-dock {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--mobile-dock-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
    z-index: 9990;
    justify-content: space-around;
    align-items: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  [data-theme="light"] .mobile-bottom-dock {
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.06);
  }

  .dock-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    color: rgba(148, 163, 184, 0.75);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    transition: color 0.2s ease;
  }

  .dock-tab.active,
  .dock-tab:hover {
    color: #3b82f6;
  }

  [data-theme="light"] .dock-tab {
    color: #64748b;
  }

  [data-theme="light"] .dock-tab.active {
    color: #2563eb;
  }

  .dock-tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .dock-tab.active .dock-tab-icon {
    transform: translateY(-2px);
  }

  .dock-tab-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  /* Live blink badge on Matches tab */
  .dock-live-dot {
    position: absolute;
    top: -1px;
    right: -2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: dockPulse 1.4s ease-in-out infinite;
  }

  @keyframes dockPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
  }

  .dock-tab-label {
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/* ==========================================================================
   4. HERO & HOMEPAGE MOBILE POLISH
   ========================================================================== */
@media (max-width: 768px) {
  .premium-hero {
    min-height: auto !important;
    padding: 1.5rem 0 2.5rem !important;
  }

  .hero-content-wrapper {
    padding: 1rem 1rem !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .hero-copy {
    text-align: center !important;
  }

  .hero-kicker {
    margin: 0 auto 0.75rem auto !important;
    font-size: 0.75rem !important;
  }

  .season-chip {
    margin: 0 auto 1rem auto !important;
    font-size: 0.75rem !important;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.4rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 1rem !important;
  }

  .hero-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    max-width: 500px !important;
    margin: 0 auto 1.5rem auto !important;
  }

  .hero-actions {
    justify-content: center !important;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
  }

  .hero-actions .cta-button {
    padding: 0.75rem 1.4rem !important;
    font-size: 0.88rem !important;
    border-radius: 999px !important;
  }

  /* Balanced 2x2 stats grid */
  .hero-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    margin-top: 1rem !important;
  }

  .hero-stat-card {
    padding: 0.85rem !important;
    border-radius: 16px !important;
  }

  .hero-stat-card .stat-value {
    font-size: 1.35rem !important;
  }

  .hero-stat-card .stat-label {
    font-size: 0.72rem !important;
  }

  /* Featured Scorecard in Hero */
  .hero-visual {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .hero-scorecard {
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    border-radius: 20px !important;
  }

  .scorecard-teams {
    gap: 0.75rem !important;
  }

  .scorecard-score {
    font-size: 1.6rem !important;
  }

  .scorecard-logo {
    width: 42px !important;
    height: 42px !important;
  }

  .hero-talent-card {
    max-width: 440px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   5. MATCH CARDS & MARQUEE (Ultra-Clean 3-Column Mobile Scoreboard)
   ========================================================================== */
@media (max-width: 768px) {
  /* Kayan maçlar ile maç bölümü arasındaki gereksiz boşluğu kaldır & kompakt yap */
  #maclar.section-wrapper {
    padding-top: 0.75rem !important;
    padding-bottom: 2rem !important;
  }

  #maclar .section-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.85rem !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
  }

  #maclar .section-title {
    margin-bottom: 0.2rem !important;
    font-size: 1.35rem !important;
    gap: 0.6rem !important;
  }

  #maclar .section-subtitle {
    margin-bottom: 0 !important;
    font-size: 0.78rem !important;
  }

  #maclar .link-btn {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    padding: 0.35rem 0.75rem !important;
    background: rgba(59, 130, 246, 0.12) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    border-radius: 999px !important;
    flex-shrink: 0 !important;
  }

  .section-title .title-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
  }

  .section-title .title-icon .icon {
    width: 18px !important;
    height: 18px !important;
  }

  .matches-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .match-card-premium {
    padding: 1.15rem 1rem !important;
    border-radius: 18px !important;
  }

  /* Reset the broken <480px rule where score block was placed on top */
  .match-teams-row {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.85rem !important;
  }

  .score-block {
    order: 0 !important; /* Keep score centered! */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 0.35rem 0.65rem !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  [data-theme="light"] .score-block {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
  }

  .score-digit {
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    min-width: 18px !important;
    text-align: center !important;
  }

  .score-sep {
    font-size: 1.1rem !important;
    opacity: 0.5 !important;
  }

  .team-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.4rem !important;
    text-align: center !important;
  }

  .team-logo-premium,
  .team-avatar-premium {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    font-size: 0.9rem !important;
  }

  .team-name-premium {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    max-width: 110px !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .match-time {
    font-size: 0.75rem !important;
    margin-bottom: 0.85rem !important;
    text-align: left !important;
  }

  .live-indicator {
    top: 0.85rem !important;
    right: 0.85rem !important;
    padding: 0.2rem 0.55rem !important;
    font-size: 0.65rem !important;
  }

  .derby-badge {
    top: 0.85rem !important;
    right: 0.85rem !important;
    padding: 0.2rem 0.55rem !important;
    font-size: 0.62rem !important;
  }

  /* Goal event chips */
  .match-events-compact {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    margin-top: 0.5rem !important;
    padding-top: 0.65rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  .event-chip {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 8px !important;
  }
}

/* Marquee Ticker Touch Improvements */
.topline-marquee {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}
.topline-marquee::-webkit-scrollbar {
  display: none !important;
}

@media (max-width: 768px) {
  .topline-marquee .marquee-track {
    padding: 0.5rem 0 !important;
  }
  .marquee-item {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.8rem !important;
  }
}

/* ==========================================================================
   6. STANDINGS TABLE (Sticky Columns & Mobile Scroll Experience)
   ========================================================================== */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: 1.25rem !important;
  }

  .section-title {
    font-size: 1.45rem !important;
    letter-spacing: -0.02em !important;
  }

  .section-subtitle {
    font-size: 0.82rem !important;
  }

  /* Top 3 Leader Cards - Mobilde gizli, sadece puan tablosu gorunur */
  .standings-leaderboard {
    display: none !important;
  }

  .leader-card {
    padding: 1rem !important;
    border-radius: 16px !important;
  }

  .leader-header {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }

  .leader-rank {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
  }

  .leader-id {
    gap: 0.65rem !important;
  }

  .leader-logo {
    width: 36px !important;
    height: 36px !important;
  }

  .leader-name {
    font-size: 0.95rem !important;
  }

  .leader-meta {
    font-size: 0.72rem !important;
  }

  .leader-stats {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
    margin-top: 0.75rem !important;
  }

  .leader-chip {
    flex: 1 1 calc(33.33% - 0.45rem) !important;
    padding: 0.4rem 0.5rem !important;
    font-size: 0.75rem !important;
    text-align: center !important;
  }

  .leader-chip strong {
    font-size: 0.85rem !important;
  }

  /* The Full Standings Table: Sticky Left Column Engine */
  /* ==========================================================================
     MACKOLIK-STYLE ZERO-SCROLL COMPACT STANDINGS TABLE
     (Sıfır Kaydırmalı, Tek Ekrana Tam Sığan Profesyonel Lig Tablosu)
     ========================================================================== */
  .premium-table-card {
    border-radius: 16px !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(15, 23, 42, 0.75) !important;
  }

  [data-theme="light"] .premium-table-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
  }

  .table-responsive {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-overflow-scrolling: auto !important;
  }

  /* Asla kaydırma ipucu gösterilmez çünkü kaydırma sıfırlandı */
  .table-scroll-hint {
    display: none !important;
  }

  .modern-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    margin: 0 !important;
  }

  /* Mackolik Koyu Başlık Şeridi */
  .modern-table thead tr {
    background: #1e293b !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  [data-theme="light"] .modern-table thead tr {
    background: #e2e8f0 !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
  }

  .modern-table thead th {
    padding: 8px 1px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
    border: none !important;
    white-space: nowrap !important;
  }

  [data-theme="light"] .modern-table thead th {
    color: #475569 !important;
  }

  .modern-table thead th:nth-child(2) {
    text-align: left !important;
    padding-left: 4px !important;
  }

  /* 10 Sütunlu Mackolik Hücre Genişlikleri (360px ekranda kusursuz %100 sığma) */
  .modern-table th:nth-child(1),
  .modern-table td:nth-child(1) { width: 28px !important; } /* Sıra */

  .modern-table th:nth-child(2),
  .modern-table td:nth-child(2) { width: calc(100% - 212px) !important; } /* Takım */

  .modern-table th:nth-child(3),
  .modern-table td:nth-child(3) { width: 22px !important; } /* O */

  .modern-table th:nth-child(4),
  .modern-table td:nth-child(4) { width: 22px !important; } /* G */

  .modern-table th:nth-child(5),
  .modern-table td:nth-child(5) { width: 22px !important; } /* B */

  .modern-table th:nth-child(6),
  .modern-table td:nth-child(6) { width: 22px !important; } /* M */

  .modern-table th:nth-child(7),
  .modern-table td:nth-child(7) { width: 24px !important; } /* A */

  .modern-table th:nth-child(8),
  .modern-table td:nth-child(8) { width: 24px !important; } /* Y */

  .modern-table th:nth-child(9),
  .modern-table td:nth-child(9) { width: 28px !important; } /* Av */

  .modern-table th:nth-child(10),
  .modern-table td:nth-child(10) { width: 28px !important; } /* P */

  /* Satırlar ve Hücre Tasarımı */
  .modern-table tbody tr {
    height: 38px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: background 0.15s ease !important;
    border-left: 3.5px solid transparent !important;
  }

  [data-theme="light"] .modern-table tbody tr {
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
  }

  /* Mackolik Lig Bölgesi Renk Çubukları */
  .modern-table tbody tr.rank-zone-1,
  .modern-table tbody tr:nth-child(1) {
    border-left: 3.5px solid #2563eb !important; /* Şampiyonlar Ligi Mavi */
  }

  .modern-table tbody tr.rank-zone-2,
  .modern-table tbody tr:nth-child(2) {
    border-left: 3.5px solid #f59e0b !important; /* 2. Sıra Turuncu */
  }

  .modern-table tbody tr.rank-zone-3,
  .modern-table tbody tr:nth-child(3) {
    border-left: 3.5px solid #06b6d4 !important; /* 3. Sıra Camgöbeği */
  }

  .modern-table tbody tr.rank-zone-4,
  .modern-table tbody tr:nth-child(4) {
    border-left: 3.5px solid #10b981 !important; /* 4. Sıra Yeşil */
  }

  .modern-table tbody tr.rank-zone-relegation {
    border-left: 3.5px solid #ef4444 !important; /* Düşme Hattı Kırmızı */
  }

  .modern-table tbody td {
    padding: 7px 1px !important;
    font-size: 11.5px !important;
    font-variant-numeric: tabular-nums !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    border: none !important;
    color: #cbd5e1 !important;
  }

  [data-theme="light"] .modern-table tbody td {
    color: #334155 !important;
  }

  /* Sıra Numarası */
  .modern-table td.rank-col {
    position: static !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    color: var(--text, #f8fafc) !important;
    padding-left: 2px !important;
  }

  .modern-table td.rank-col .medal-badge {
    display: none !important; /* Mobilde madalya yerine net sayı */
  }

  .modern-table td.rank-col .sr-only {
    position: static !important;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    clip-path: none !important;
    font-weight: 700 !important;
  }

  /* Takım Hücresi (Arma + Kırpılan Takım Adı) */
  .modern-table td.team-col {
    position: static !important;
    text-align: left !important;
    padding-left: 3px !important;
    box-shadow: none !important;
  }

  .team-cell {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .team-logo-tiny,
  .team-avatar-tiny {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    border-radius: 50% !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    font-size: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  .team-name-text {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: var(--text, #f8fafc) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
    flex: 1 !important;
    display: block !important;
  }

  [data-theme="light"] .team-name-text {
    color: #0f172a !important;
  }

  /* Averaj Hücresi */
  .modern-table td:nth-child(9) {
    font-size: 11px !important;
    color: #94a3b8 !important;
  }

  /* Puan Hücresi (Kalın, Belirgin Mackolik Stili) */
  .modern-table td.points-col {
    font-weight: 900 !important;
    font-size: 12.5px !important;
    color: #ffffff !important;
  }

  [data-theme="light"] .modern-table td.points-col {
    color: #0f172a !important;
  }

  .points-badge-modern {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 12.5px !important;
    font-weight: 900 !important;
    color: inherit !important;
  }
}

/* ==========================================================================
   7. TOP SCORERS & TEAMS SECTION
   ========================================================================== */
@media (max-width: 768px) {
  /* ==========================================================================
   7. TOP SCORERS — ULTRA MODERN GOLDEN PODIUM & SMART LEADERBOARD
   (Mobilde Benzersiz Podyum + Kompakt Gol Krallığı Sıralaması)
   ========================================================================== */
  .scorers-mobile-view {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .scorers-section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  .scorers-header-pill {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.35rem 0.85rem !important;
    background: rgba(59, 130, 246, 0.12) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    border-radius: 999px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #60a5fa !important;
  }

  /* ── Zirve Podyumu (Top 3 Podium - Tam Ekrana Oturan Responsive Grid) ── */
  .scorers-podium {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr) !important;
    align-items: flex-end !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.75rem 0 1.5rem !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .podium-col {
    cursor: pointer !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, filter 0.2s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .podium-col:active {
    transform: scale(0.96) !important;
  }

  .podium-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0.85rem 0.25rem 0 !important;
    border-radius: 16px 16px 0 0 !important;
    background: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: none !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  [data-theme="light"] .podium-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
  }

  /* Altın Lider (#1 Podyum) */
  .podium-gold .podium-card {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.18) 0%, rgba(15, 23, 42, 0.88) 100%) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 -4px 28px rgba(245, 158, 11, 0.18) !important;
    padding-top: 1.35rem !important;
    z-index: 2 !important;
  }

  [data-theme="light"] .podium-gold .podium-card {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.16) 0%, #ffffff 100%) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
  }

  .podium-crown {
    position: absolute !important;
    top: -16px !important;
    animation: crownBounce 2.4s ease-in-out infinite !important;
  }

  @keyframes crownBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
  }

  /* Gümüş (#2 Podyum) */
  .podium-silver .podium-card {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.12) 0%, rgba(15, 23, 42, 0.75) 100%) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
  }

  /* Bronz (#3 Podyum) */
  .podium-bronze .podium-card {
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.12) 0%, rgba(15, 23, 42, 0.75) 100%) !important;
    border-color: rgba(217, 119, 6, 0.3) !important;
  }

  /* Avatar Çerçevesi */
  .podium-avatar-wrap {
    position: relative !important;
    width: 46px !important;
    height: 46px !important;
    margin-bottom: 0.35rem !important;
    flex-shrink: 0 !important;
  }

  .podium-gold .podium-avatar-wrap {
    width: 56px !important;
    height: 56px !important;
  }

  .podium-avatar-img,
  .podium-avatar-initials {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 0.92rem !important;
    background: #1e293b !important;
    color: #fff !important;
    border: 2px solid transparent !important;
  }

  .podium-gold .podium-avatar-img,
  .podium-gold .podium-avatar-initials {
    border-color: #f59e0b !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.45) !important;
    font-size: 1.05rem !important;
  }

  .podium-silver .podium-avatar-img,
  .podium-silver .podium-avatar-initials {
    border-color: #94a3b8 !important;
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.3) !important;
  }

  .podium-bronze .podium-avatar-img,
  .podium-bronze .podium-avatar-initials {
    border-color: #d97706 !important;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.3) !important;
  }

  .podium-team-crest {
    position: absolute !important;
    bottom: -2px !important;
    right: -2px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #0f172a !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    object-fit: contain !important;
  }

  .podium-rank-badge {
    position: absolute !important;
    top: -3px !important;
    left: -3px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.6rem !important;
    font-weight: 900 !important;
    color: #fff !important;
  }

  .podium-gold .podium-rank-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.5) !important;
  }

  .podium-silver .podium-rank-badge {
    background: linear-gradient(135deg, #94a3b8, #64748b) !important;
  }

  .podium-bronze .podium-rank-badge {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
  }

  .podium-player-name {
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    color: var(--text, #fff) !important;
    margin: 0 0 2px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 3px !important;
    text-align: center !important;
  }

  .podium-gold .podium-player-name {
    font-size: 0.85rem !important;
    font-weight: 900 !important;
  }

  [data-theme="light"] .podium-player-name {
    color: #0f172a !important;
  }

  .podium-team-name {
    font-size: 0.64rem !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    margin-bottom: 0.45rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 3px !important;
    text-align: center !important;
  }

  .podium-goals-chip {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 2.5px 7px !important;
    border-radius: 999px !important;
    margin-bottom: 0.55rem !important;
    max-width: 90% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  .podium-gold .podium-goals-chip {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4) !important;
  }

  .podium-silver .podium-goals-chip {
    background: rgba(148, 163, 184, 0.2) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
  }

  .podium-bronze .podium-goals-chip {
    background: rgba(217, 119, 6, 0.2) !important;
    color: #fde68a !important;
    border: 1px solid rgba(217, 119, 6, 0.3) !important;
  }

  .podium-goals-num {
    font-size: 0.95rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
  }

  .podium-gold .podium-goals-num {
    font-size: 1.15rem !important;
  }

  .podium-goals-lbl {
    font-size: 0.58rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.4px !important;
  }

  /* Kaide Yükseklikleri */
  .podium-step-pedestal {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
    color: rgba(255, 255, 255, 0.25) !important;
    font-size: 1.25rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .podium-gold .podium-step-pedestal {
    height: 48px !important;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.04) 100%) !important;
    color: rgba(245, 158, 11, 0.6) !important;
  }

  .podium-silver .podium-step-pedestal {
    height: 36px !important;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.16) 0%, rgba(148, 163, 184, 0.03) 100%) !important;
    color: rgba(148, 163, 184, 0.5) !important;
  }

  .podium-bronze .podium-step-pedestal {
    height: 26px !important;
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.16) 0%, rgba(217, 119, 6, 0.03) 100%) !important;
    color: rgba(217, 119, 6, 0.5) !important;
  }

  /* ── Sıralama Listesi (Smart Leaderboard Rows) ── */
  .scorers-list-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    margin: 1.25rem 0 0.65rem !important;
    padding: 0 4px !important;
  }

  .sc-list-count {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
  }

  .scorers-leaderboard-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
  }

  .scorer-row-card {
    display: grid !important;
    grid-template-columns: 26px 36px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  [data-theme="light"] .scorer-row-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  }

  .scorer-row-card:active {
    transform: scale(0.98) !important;
    background: rgba(59, 130, 246, 0.08) !important;
  }

  .scorer-row-rank {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    color: #64748b !important;
    text-align: center !important;
  }

  .scorer-row-avatar-box {
    position: relative !important;
    width: 36px !important;
    height: 36px !important;
  }

  .scorer-row-img,
  .scorer-row-initials {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #1e293b !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  }

  .scorer-row-team-icon {
    position: absolute !important;
    bottom: -2px !important;
    right: -2px !important;
    width: 15px !important;
    height: 15px !important;
    border-radius: 50% !important;
    background: #0f172a !important;
    object-fit: contain !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
  }

  .scorer-row-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
  }

  .scorer-row-top {
    display: flex !important;
    flex-direction: column !important;
  }

  .scorer-row-name {
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    color: var(--text, #fff) !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  [data-theme="light"] .scorer-row-name {
    color: #0f172a !important;
  }

  .scorer-row-team {
    font-size: 0.7rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .scorer-row-bar-track {
    width: 100% !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 99px !important;
    overflow: hidden !important;
  }

  [data-theme="light"] .scorer-row-bar-track {
    background: #e2e8f0 !important;
  }

  .scorer-row-bar-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #3b82f6, #06b6d4) !important;
    border-radius: 99px !important;
    transition: width 0.6s ease-out !important;
  }

  .scorer-row-goals-badge {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    padding: 4px 8px !important;
    background: rgba(59, 130, 246, 0.12) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    border-radius: 10px !important;
  }

  .scorer-row-goals-num {
    font-size: 0.95rem !important;
    font-weight: 900 !important;
    color: #60a5fa !important;
    line-height: 1 !important;
  }

  .scorer-row-goals-tag {
    font-size: 0.55rem !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
    letter-spacing: 0.3px !important;
    margin-top: 2px !important;
  }

  /* ── Sezon İstatistikleri (Listenin Altında Yer Alan 2x2 Grid) ── */
  .scorers-bottom-stats {
    margin: 1.5rem 0 1rem !important;
    padding: 0.85rem !important;
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 18px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  [data-theme="light"] .scorers-bottom-stats {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
  }

  .scorers-stats-header {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.45rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  [data-theme="light"] .scorers-stats-header {
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
  }

  .sc-stats-header-icon {
    font-size: 1rem !important;
  }

  .sc-stats-header-title {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }

  .scorers-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .sc-stat-card {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  [data-theme="light"] .sc-stat-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  }

  .sc-stat-card-icon {
    font-size: 1.15rem !important;
    flex-shrink: 0 !important;
  }

  .sc-stat-card-info {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .sc-stat-card-lbl {
    font-size: 0.65rem !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sc-stat-card-val {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    color: var(--text, #fff) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.25 !important;
  }

  [data-theme="light"] .sc-stat-card-val {
    color: #0f172a !important;
  }

  .sc-stat-sub {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #f59e0b !important;
  }

  /* Teams Grid: 1-column cards on phone screens */
  .teams-premium-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .team-card-premium {
    padding: 1.5rem 1.15rem !important;
    border-radius: 20px !important;
  }

  .team-card-name {
    font-size: 1.2rem !important;
  }

  .team-card-stats {
    gap: 1.25rem !important;
  }

  .team-stat-value {
    font-size: 1.35rem !important;
  }

  /* Touch-friendly roster list */
  .roster-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
  }

  .roster-player {
    padding: 0.65rem 0.75rem !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .player-info-btn {
    min-height: 36px !important;
    min-width: 52px !important;
    padding: 0.35rem 0.85rem !important;
    font-size: 0.78rem !important;
    border-radius: 8px !important;
  }
}

/* ==========================================================================
   8. MOBILE BOTTOM SHEET MODALS (Maç & Oyuncu Detayları)
   ========================================================================== */
@media (max-width: 640px) {
  /* Ticker Match Modal */
  .ticker-match-layer {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .ticker-match-dialog {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 26px 26px 0 0 !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    animation: sheetSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding-bottom: calc(var(--safe-bottom) + 20px) !important;
    margin: 0 !important;
    border-bottom: none !important;
  }

  /* Draggable Handle Pill at Top of Bottom Sheets */
  .ticker-match-dialog::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 10;
  }
}

/* ==========================================================================
   OYUNCU DETAY BİLGİ MODALI (ULTRA PREMIUM FOTMOB/SOFASCORE STANDARDI)
   ========================================================================== */

.player-info-layer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10005 !important; /* Alt menü dock'unun (9990) ve tüm katmanların kesinlikle üstünde */
  background: rgba(4, 8, 18, 0.78) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.5rem !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.player-info-layer.is-visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.player-info-dialog {
  position: relative !important;
  width: min(440px, 100%) !important;
  max-height: min(85vh, 720px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border-radius: 24px !important;
  padding: 24px 20px !important;
  background: linear-gradient(180deg, #131d33 0%, #0d1527 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(59, 130, 246, 0.15) !important;
  color: #f8fafc !important;
  box-sizing: border-box !important;
}

[data-theme="light"] .player-info-dialog {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
}

/* Kapat Butonu */
.player-info-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 25 !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}

.player-info-close svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
}

.player-info-close:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  transform: scale(1.06) !important;
}

.player-info-close:active {
  transform: scale(0.94) !important;
}

[data-theme="light"] .player-info-close {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
}

/* Üst Başlık Bölümü (Hero & İsim & Rozetler) */
.player-info-hero {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-bottom: 18px !important;
  padding-right: 36px !important;
}

/* Oyuncu Fotoğrafı (Varsa - Kusursuz Yuvarlak Profil Çerçevesi) */
.player-info-photo,
.player-info-photo:not([hidden]) {
  width: 86px !important;
  height: 86px !important;
  min-width: 86px !important;
  max-width: 86px !important;
  min-height: 0 !important;
  max-height: 86px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  border: 3px solid rgba(96, 165, 250, 0.5) !important;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.4) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.25) !important;
  overflow: hidden !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px) {
  .player-info-photo,
  .player-info-photo:not([hidden]) {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
  }
}

.player-info-photo[hidden] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  width: 0 !important;
  border: none !important;
}

.player-info-photo img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center 15% !important;
  border-radius: 50% !important;
  display: block !important;
}

.player-info-title-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.player-info-name {
  margin: 0 !important;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  letter-spacing: -0.3px !important;
  line-height: 1.25 !important;
}

[data-theme="light"] .player-info-name {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

/* Rozetler Grubu: Takım & Pozisyon & Kaptan */
.player-info-badges {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 2px !important;
}

.player-info-team-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 11px 4px 6px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(6px) !important;
}

[data-theme="light"] .player-info-team-badge {
  background: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.player-info-logo {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border-radius: 50% !important;
  background: rgba(59, 130, 246, 0.2) !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  color: #93c5fd !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.player-info-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

.player-info-team {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
  line-height: 1 !important;
}

[data-theme="light"] .player-info-team {
  color: #334155 !important;
}

.player-info-position {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: rgba(59, 130, 246, 0.12) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #60a5fa !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

[data-theme="light"] .player-info-position {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
  color: #2563eb !important;
}

.player-info-captain-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.14));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.player-info-captain-badge[hidden],
.player-info-captain-badge.is-hidden {
  display: none !important;
}

/* Gövde ve İstatistik Kutuları */
.player-info-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.player-info-stat-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
}

.player-info-stat {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 6px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-align: center !important;
  transition: transform 0.2s ease !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.player-info-stat .label {
  display: block !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  color: #94a3b8 !important;
  margin-bottom: 4px !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

.player-info-stat .value {
  display: block !important;
  font-size: 1.45rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

.player-info-stat.stat-total {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.04)) !important;
  border-color: rgba(59, 130, 246, 0.28) !important;
}
.player-info-stat.stat-total .value { color: #60a5fa !important; }

.player-info-stat.stat-current {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.04)) !important;
  border-color: rgba(16, 185, 129, 0.28) !important;
}
.player-info-stat.stat-current .value { color: #34d399 !important; }

.player-info-stat.stat-seasons {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.04)) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}
.player-info-stat.stat-seasons .value { color: #fbbf24 !important; }

[data-theme="light"] .player-info-stat {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .player-info-stat .label { color: #64748b !important; }

/* Etiketler / Başarı Rozetleri */
.player-info-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 !important;
  min-height: 0 !important;
}

.player-info-tags:empty {
  display: none !important;
}

.player-info-tags .tag-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(99, 102, 241, 0.14)) !important;
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
  color: #93c5fd !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15) !important;
}

[data-theme="light"] .player-info-tags .tag-chip {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  color: #2563eb !important;
}

/* Sezon Geçmişi */
.player-info-history {
  margin-top: 4px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .player-info-history {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

.history-header {
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.history-title {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

[data-theme="light"] .history-title {
  color: #64748b !important;
}

.player-info-seasons {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.player-info-seasons li {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  font-size: 0.84rem !important;
  color: #e2e8f0 !important;
}

.player-info-seasons li.is-current {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.06)) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1) !important;
}

.player-info-seasons li .season-label {
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.player-info-seasons li.is-current .season-label::after {
  content: 'Aktif';
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  margin-left: 6px;
}

.player-info-seasons li .season-goals {
  font-weight: 800 !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  padding: 3px 9px !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  white-space: nowrap !important;
}

.player-info-seasons li.empty {
  justify-content: center !important;
  color: #64748b !important;
  font-size: 0.8rem !important;
  font-style: italic !important;
}

[data-theme="light"] .player-info-seasons li {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
  color: #1e293b !important;
}
[data-theme="light"] .player-info-seasons li .season-label {
  color: #0f172a !important;
}

/* ==========================================================================
   MOBİL BOTTOM SHEET DÜZENİ (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .player-info-layer {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .player-info-dialog {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 26px 26px 0 0 !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    animation: sheetSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 24px 18px max(24px, calc(env(safe-area-inset-bottom) + 20px)) !important;
    margin: 0 !important;
    border-bottom: none !important;
  }

  /* Tutma Çubuğu (Drag Handle) */
  .player-info-dialog::after {
    content: '';
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 4.5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    z-index: 10;
  }

  [data-theme="light"] .player-info-dialog::after {
    background: rgba(0, 0, 0, 0.2);
  }
}

/* ==========================================================================
   9. SUB-PAGES RESPONSIVE ENGINE (watch, finished, photos, haberler, oyu)
   ========================================================================== */
@media (max-width: 768px) {
  /* watch.php */
  .watch-section-premium {
    padding: 20px 0 60px !important;
  }

  .watch-hero {
    padding: 20px 0 20px !important;
  }

  .watch-hero h2 {
    font-size: 1.8rem !important;
  }

  .watch-player-container {
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .watch-player-header h3 {
    font-size: 1.1rem !important;
  }

  .watch-matches-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* photos.php */
  .gallery-toolbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .gallery-filters {
    display: flex !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 6px !important;
    scrollbar-width: none !important;
  }
  .gallery-filters::-webkit-scrollbar { display: none !important; }

  .gf-btn {
    flex-shrink: 0 !important;
    padding: 6px 16px !important;
    font-size: 0.8rem !important;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .gallery-card .gc-img-wrap {
    height: 160px !important;
  }

  /* haberler.php */
  .news-page {
    padding: 20px 14px 60px !important;
  }

  .news-hero {
    margin-bottom: 28px !important;
  }

  .news-hero h1 {
    font-size: 1.75rem !important;
  }

  .news-stats-bar {
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .news-card.is-featured {
    flex-direction: column !important;
    padding: 16px !important;
  }

  .news-card.is-featured .news-card-left {
    flex: none !important;
    width: 100% !important;
  }

  /* oyu.php (Game) */
  .game-page {
    padding: 16px 12px 60px !important;
  }

  .game-hero-title {
    font-size: 1.7rem !important;
  }

  .game-hero-meta {
    gap: 6px !important;
  }

  .game-scoreboard {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .shot-controls {
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  .shot-btn {
    flex: 1 !important;
    min-height: 48px !important;
    font-size: 0.85rem !important;
    padding: 10px 8px !important;
  }

  /* goal_vote.php & haftanin_golleri.php */
  .pv-container {
    padding: 20px 14px 60px !important;
  }

  .pv-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
    justify-content: flex-start !important;
    margin-bottom: 24px !important;
    scrollbar-width: none !important;
  }
  .pv-nav::-webkit-scrollbar { display: none !important; }

  .pv-nav a {
    flex-shrink: 0 !important;
    padding: 10px 18px !important;
    font-size: 0.85rem !important;
  }

  .pv-hero h1 {
    font-size: 1.75rem !important;
  }

  .vote-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* notifications.php */
  .wrap {
    padding: 12px 10px 60px !important;
  }

  .hero {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }

  .hero h1 {
    font-size: 1.4rem !important;
  }

  /* seasons.php & best.php */
  .best-container,
  .season-archive-shell {
    padding: 20px 12px 60px !important;
  }

  .best-hero,
  .season-hero {
    padding: 30px 16px !important;
    border-radius: 20px !important;
    margin-bottom: 30px !important;
  }

  .season-hero-grid {
    grid-template-columns: 1fr !important;
  }

  .seasons-archive-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .season-archive-card {
    padding: 1.25rem !important;
  }

  /* Footer */
  .premium-footer {
    padding: 3rem 1.25rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 0.5rem !important;
    text-align: center !important;
  }
}

/* ── Anchor Scroll Offset & iOS Input Zoom Fix ── */
section[id], div[id] {
  scroll-margin-top: calc(var(--mobile-header-h) + 14px);
}

@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }

  .drawer-footer {
    padding-bottom: calc(1.5rem + var(--safe-bottom)) !important;
  }
}

/* ==========================================================================
   MOBILE SECTION ROUTING ENGINE (Bölüm Görünüm Yönetimi)
   Mobilde anasayfa ilk açıldığında SADECE Öne Çıkan Maçlar ve Puan Durumu görünür!
   Devasa Gol Krallığı ve Takımlar alt alta yığılmaz; sol üstteki 3 çizgili
   hamburger menüden veya alt bardan tıklandığında bağımsız görünüm olarak açılır!
   ========================================================================== */
@media (max-width: 768px) {
  /* Varsayılan Mobil Anasayfa Modu: Gol Krallığı ve Takımlar alt alta yığılmaz, gizlenir */
  body:not(.mobile-view-takimlar):not(.mobile-view-goller) #gol-kralligi,
  body:not(.mobile-view-takimlar):not(.mobile-view-goller) #takimlar {
    display: none !important;
  }

  /* Takımlar Görünümü: Sadece Takımlar gösterilir */
  body.mobile-view-takimlar .site-banner-section,
  body.mobile-view-takimlar .premium-hero,
  body.mobile-view-takimlar .topline-marquee,
  body.mobile-view-takimlar #maclar,
  body.mobile-view-takimlar #puan,
  body.mobile-view-takimlar #gol-kralligi {
    display: none !important;
  }
  body.mobile-view-takimlar #takimlar {
    display: block !important;
    padding-top: 0.5rem !important;
  }

  /* Gol Krallığı Görünümü: Sadece Gol Krallığı gösterilir */
  body.mobile-view-goller .site-banner-section,
  body.mobile-view-goller .premium-hero,
  body.mobile-view-goller .topline-marquee,
  body.mobile-view-goller #maclar,
  body.mobile-view-goller #puan,
  body.mobile-view-goller #takimlar {
    display: none !important;
  }
  body.mobile-view-goller #gol-kralligi {
    display: block !important;
    padding-top: 0.5rem !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  body.mobile-view-goller #gol-kralligi .section-container {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobil Bölüm İçi Geri Dönüş Butonu Barı */
  .mobile-view-back-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.95rem;
    margin: 0.5rem 0 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 14px;
    backdrop-filter: blur(10px);
  }

  body.mobile-view-takimlar #takimlar .mobile-view-back-bar,
  body.mobile-view-goller #gol-kralligi .mobile-view-back-bar {
    display: flex !important;
  }

  .mobile-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: var(--text, #fff);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  [data-theme="light"] .mobile-back-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    color: #0f172a;
  }

  .mobile-back-btn:active {
    transform: scale(0.96);
  }

  .mobile-view-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
}


/* ==========================================================================
   MOBILE-FIRST COMPACT TEAMS HUB & COLLAPSIBLE SQUADS
   (Tüm Takımları Tek Ekranda Gösteren Kompakt Kartlar + Akordeon Kadro)
   ========================================================================== */
.teams-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #60a5fa;
}

/* ── Yatay Kayan Hızlı Takım Şeridi (Stories/Chips Bar) ── */
.teams-quick-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 14px;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
}

.teams-quick-bar::-webkit-scrollbar {
  display: none;
}

.team-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="light"] .team-quick-chip {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
  color: #334155;
}

.team-quick-chip:active {
  transform: scale(0.96);
}

.team-quick-chip.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

.chip-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: contain;
}

.chip-initials {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* ── Kompakt Takım Kartları Grid'i ── */
.teams-compact-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 641px) {
  .teams-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.team-compact-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 640px) {
  .team-compact-card {
    padding: 14px 12px;
  }
}

[data-theme="light"] .team-compact-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.team-card-main-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-logo-box {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.team-logo-img,
.team-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
}

[data-theme="light"] .team-avatar-fallback {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

.team-meta-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.team-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text, #fff);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .team-title {
  color: #0f172a;
}

.team-quick-stats {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-stat-dot {
  opacity: 0.4;
}

/* ── Kadro Açma/Kapama Akordeon Butonu ── */
.team-accordion-action {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .team-accordion-action {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.team-toggle-squad-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="light"] .team-toggle-squad-btn {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.2);
  color: #2563eb;
}

.team-toggle-squad-btn:active {
  transform: scale(0.98);
}

.team-toggle-squad-btn.is-active {
  background: rgba(59, 130, 246, 0.18);
  border-color: #3b82f6;
  color: #93c5fd;
}

.btn-arrow {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
  display: inline-block;
}

.team-toggle-squad-btn.is-active .btn-arrow {
  transform: rotate(180deg);
}

/* ── Açılır/Kapanır Kadro Paneli (Varsayılan Olarak KAPALI!) ── */
.team-squad-panel {
  display: none;
  margin-top: 12px;
  animation: squadExpand 0.25s ease-out;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@keyframes squadExpand {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.team-squad-panel.is-open {
  display: block;
}

.squad-panel-inner {
  padding-top: 4px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.squad-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 360px) {
  .squad-grid-compact {
    grid-template-columns: 1fr;
  }
}

.squad-player-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

[data-theme="light"] .squad-player-pill {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.06);
}

.squad-player-pill:active {
  transform: scale(0.96);
  background: rgba(59, 130, 246, 0.15);
}

.squad-player-pill.is-captain {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 8px 10px !important;
}

.s-player-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}

.s-player-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

[data-theme="light"] .s-player-name {
  color: #0f172a;
}

.s-player-pos {
  font-size: 0.62rem;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s-player-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.s-player-goals {
  font-size: 0.68rem;
  font-weight: 800;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  padding: 2px 4px;
  border-radius: 5px;
  white-space: nowrap;
}

.s-player-arrow {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 700;
  line-height: 1;
}

.roster-empty-notice {
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

/* ==========================================================================
   MOBİL İYİLEŞTİRMELER: BİLDİRİM TOAST ENGELİ, ÜST MENÜ BUTONU KALDIRMA & YENİ FOOTER
   ========================================================================== */

/* 1. Bildirim İzni Kutusunu Mobilde Kesinlikle Gizle */
@media (max-width: 768px) {
  #notifyPermissionBar,
  .notify-permission-bar-corner,
  .notify-permission-bar,
  .notify-permission-modal {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* 2. Üst Navbardaki Fazlalık Menü Butonlarını Mobilde Gizle (Sağ Altta Menü Zaten Var!) */
@media (max-width: 768px) {
  .nav-hamburger,
  #navHamburger,
  .mobile-menu-pill-btn,
  #navRightMenuBtn {
    display: none !important;
    visibility: hidden !important;
  }

  /* Navbar Container: Sadece Logo ve Sağ Aksiyonlar */
  .navbar-container {
    justify-content: space-between !important;
  }

  .navbar-brand {
    order: 0 !important;
    flex: 1 !important;
  }

  .navbar-actions {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
}

/* 3. Modern Spor Uygulaması Mobil Footer Tasarımı */
@media (max-width: 768px) {
  .premium-footer {
    padding: 2.25rem 1rem calc(92px + env(safe-area-inset-bottom, 24px)) 1rem !important;
    margin-top: 2rem !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(10, 15, 30, 0.98) 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  [data-theme="light"] .premium-footer {
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%) !important;
    border-top-color: rgba(0, 0, 0, 0.08) !important;
  }

  .footer-container {
    padding: 0 !important;
    max-width: 100% !important;
  }

  /* Marka Başlığı */
  .footer-brand-box {
    text-align: center;
    margin-bottom: 1.25rem;
  }

  .footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
  }

  [data-theme="light"] .footer-brand {
    color: #0f172a;
  }

  .footer-logo {
    width: 28px;
    height: 28px;
  }

  .footer-desc {
    max-width: 340px;
    margin: 0.35rem auto 0;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
  }

  [data-theme="light"] .footer-desc {
    color: #64748b;
  }

  /* 3'lü Yatay İstatistik Sayaç Şeridi */
  .footer-stats-strip {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 1.25rem !important;
  }

  .footer-stat-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 10px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  [data-theme="light"] .footer-stat-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  }

  .f-stat-icon {
    font-size: 1.1rem;
    line-height: 1;
    margin-bottom: 2px;
  }

  .f-stat-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
  }

  [data-theme="light"] .f-stat-val {
    color: #0f172a;
  }

  .f-stat-lbl {
    font-size: 0.66rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  [data-theme="light"] .f-stat-lbl {
    color: #64748b;
  }

  /* 2 Sütunlu Kompakt Link Menüsü */
  .footer-nav-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-bottom: 1.25rem !important;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 14px 16px;
  }

  [data-theme="light"] .footer-nav-grid {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }

  .footer-nav-heading {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #60a5fa;
    margin: 0 0 8px 0;
  }

  [data-theme="light"] .footer-nav-heading {
    color: #2563eb;
  }

  .footer-nav-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
  }

  .footer-nav-list li a {
    color: #cbd5e1 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
    display: inline-block !important;
    padding: 2px 0 !important;
  }

  [data-theme="light"] .footer-nav-list li a {
    color: #334155 !important;
  }

  .footer-nav-list li a:active {
    color: #3b82f6 !important;
  }

  /* Eski hantal footer-grid'i mobilde gizle */
  .footer-grid {
    display: none !important;
  }

  /* Sayaç Widget (Ultra-Clean Mobile Badge) */
  .pv-section {
    padding: 1.25rem 0.75rem 1rem !important;
    margin-bottom: 0.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  .pv-widget {
    padding: 10px 18px !important;
    max-width: 100% !important;
    width: auto !important;
    min-width: 190px !important;
    gap: 12px !important;
    border-radius: 14px !important;
    margin: 0 auto !important;
  }

  .pv-icon-wrap {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }

  .pv-eye {
    width: 18px !important;
    height: 18px !important;
  }

  .pv-label {
    font-size: 0.62rem !important;
    letter-spacing: 0.06em !important;
  }

  .pv-count {
    font-size: 1.3rem !important;
    line-height: 1.1 !important;
  }

  /* Telif & Sürüm */
  .footer-bottom {
    flex-direction: column !important;
    gap: 4px !important;
    text-align: center !important;
    font-size: 0.72rem !important;
    color: #64748b !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-top: 12px !important;
  }

  [data-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.06) !important;
  }

  .footer-version {
    font-size: 0.68rem !important;
    opacity: 0.8;
  }
}

/* ==========================================================================
   RESPONSIVE MODES: DESKTOP VS MOBILE STRICT ISOLATION
   ========================================================================== */
@media (min-width: 769px) {
  .desktop-only {
    display: block !important;
  }
  .mobile-only {
    display: none !important;
  }
  #gol-kralligi,
  #takimlar {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
}
