/* Ana sayfa — canlı maçlar (üst bölüm) */
.live-matches-section--hero {
  order: -1;
  margin: 0 0.55rem 0.75rem;
  padding: 1rem 1.1rem 1.15rem;
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 16px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  position: relative;
  overflow: hidden;
  z-index: 3;
}

.live-matches-section--hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #f97316, #ef4444);
  background-size: 200% 100%;
  animation: liveBarShift 3s ease-in-out infinite;
}

@keyframes liveBarShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes livePulseDot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { opacity: 0.85; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.live-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.live-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: livePulseDot 1.4s ease-in-out infinite;
}

.live-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f8fafc;
  font-family: 'Poppins', 'Inter', sans-serif;
}

.live-match-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.live-matches-stack {
  display: flex;
  flex-direction: column;
  gap: 0.91rem;
}

/* Kart */
.live-matches-section .live-match-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem 0.85rem;
  text-decoration: none;
  color: #f1f5f9;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.live-matches-section .lmc-card-link {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.live-matches-section .live-match-card:hover {
  border-color: rgba(239, 68, 68, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(239, 68, 68, 0.25);
}

/* Üst: süre + CANLI */
.lmc-timer-row.match-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lmc-timer-row .lmc-badge {
  flex-shrink: 0;
}

.lmc-timer-row .lmc-timer.match-timer {
  flex: 0 1 auto;
  justify-content: center;
}

.lmc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.lmc-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: livePulseDot 1.4s ease-in-out infinite;
}

/* Orta: takım adı + skor + takım adı (tek satır) */
.lmc-main.teams-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.lmc-scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.45rem;
  width: 100%;
}

.lmc-team-name--home {
  text-align: right;
  justify-self: end;
}

.lmc-team-name--away {
  text-align: left;
  justify-self: start;
}

.lmc-events-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 0.75rem;
  width: 100%;
}

.lmc-team {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.lmc-team.home-team {
  align-items: flex-end;
  text-align: right;
}

.lmc-team.away-team {
  align-items: flex-start;
  text-align: left;
}

.lmc-team-name.team-name {
  font-size: clamp(0.8rem, 2.8vw, 1rem);
  font-weight: 700;
  line-height: 1.3;
  color: #f8fafc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.lmc-events-wrap {
  width: 100%;
  margin-top: 0;
}

.lmc-events {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
}

.lmc-events--home {
  align-items: flex-end;
}

.lmc-events--away {
  align-items: flex-start;
}

.lmc-ev {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  font-size: 0.72rem;
  line-height: 1.25;
  color: #cbd5e1;
}

.lmc-events--home .lmc-ev {
  flex-direction: row-reverse;
  text-align: right;
}

.lmc-ev-player {
  font-weight: 600;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 9rem;
}

.lmc-ev-type {
  font-weight: 500;
  color: #94a3b8;
  font-size: 0.65rem;
}

.lmc-ev-min {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.68rem;
  color: #86efac;
  font-variant-numeric: tabular-nums;
}

.lmc-ev--goal .lmc-ev-min::before {
  content: '⚽';
  margin-right: 0.15rem;
  font-size: 0.62rem;
}

.lmc-events--home .lmc-ev--goal .lmc-ev-min::before {
  margin-right: 0;
  margin-left: 0.15rem;
}

.lmc-ev-icon {
  flex-shrink: 0;
  font-size: 0.62rem;
  line-height: 1;
}

.lmc-ev--yellow .lmc-ev-player {
  color: #fde68a;
}

.lmc-ev--red .lmc-ev-player {
  color: #fecaca;
}

.lmc-scorebox.vs-separator {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  min-width: 5.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.lmc-score-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lmc-score-num {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.lmc-score-sep {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
}

.lmc-scorebox .score {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

/* Süre kutusu */
.lmc-timer.match-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
}

.lmc-timer.is-running {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.15);
}

.lmc-timer.is-running .lmc-timer-icon {
  color: #f87171;
}

.lmc-timer.is-running .lmc-clock {
  color: #fecaca;
}

.lmc-timer.is-paused {
  border-color: rgba(245, 158, 11, 0.45);
}

.lmc-timer.is-paused .lmc-timer-icon {
  color: #fbbf24;
}

.lmc-timer.is-paused .lmc-clock {
  color: #fde68a;
}

.lmc-timer.is-break {
  border-color: rgba(245, 158, 11, 0.4);
}

.lmc-timer.is-finished {
  border-color: rgba(100, 116, 139, 0.5);
}

.lmc-timer-inner.match-minute {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  min-width: auto;
}

.lmc-timer-icon {
  font-size: 0.85rem;
  color: #64748b;
}

.minute-text.lmc-clock {
  font-family: 'Poppins', 'Inter', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: #e2e8f0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  min-width: 3.5rem;
  text-align: center;
}

.lmc-period.half-indicator {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 6px;
  min-width: auto;
  box-shadow: none;
}

.lmc-period.second-half,
.lmc-period .half-text.second-half {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.35);
}

/* Alt: saha + detay */
.lmc-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lmc-meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}

.lmc-venue,
.lmc-category {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
}

.lmc-venue i {
  margin-right: 0.2rem;
  color: #64748b;
}

.lmc-category {
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  border: none;
}

.lmc-category.badge-olgun {
  background-color: #d4a017;
  color: #000;
  font-size: 0.8rem;
}

.lmc-category.badge-genc {
  background-color: #06b6d4;
  color: #000;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .lmc-category.badge-olgun,
  .lmc-category.badge-genc {
    font-size: 0.75rem;
  }
}

.lmc-meta-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.lmc-youtube-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.25);
}

.lmc-youtube-btn:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  color: #fff;
}

.lmc-youtube-btn i {
  font-size: 0.85rem;
}

.lmc-detail-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.live-match-card:hover .lmc-detail-link {
  color: #f87171;
}

.lmc-detail-link i {
  font-size: 0.65rem;
  margin-left: 0.15rem;
}

.live-matches-section .red-card-icon {
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.main-content--home-top {
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .live-matches-section--hero {
    margin: 0 0.4rem 0.6rem;
    padding: 0.85rem 0.75rem;
  }

  .live-matches-stack {
    gap: 0.8125rem;
  }

  .lmc-timer-row.match-info {
    justify-content: space-between;
  }

  .lmc-timer-row .lmc-timer.match-timer {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  .lmc-scoreline {
    column-gap: 0.35rem;
  }

  .lmc-team-name.team-name {
    font-size: clamp(0.72rem, 3.2vw, 0.9rem);
    -webkit-line-clamp: 2;
  }

  .lmc-events-grid {
    column-gap: 0.5rem;
  }

  .lmc-main.teams-section {
    gap: 0.35rem;
  }

  .lmc-meta-actions {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .lmc-detail-link {
    margin-left: 0;
    text-align: center;
  }

  .lmc-meta-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .lmc-meta-left {
    justify-content: center;
  }

  .lmc-detail-link {
    margin-left: 0;
    text-align: center;
  }
}

