/* League Match Detail - Tema ile uyumlu canlı görünüm ve büyük takım logoları */
:root {
  --ring-gradient: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary));
}

/* ====== Logolar için VS: eski tasarıma dön ====== */
/* Dairesel rozet efektlerini iptal et */
.match-detail-public-main .match-vs::before { content: none !important; }
.match-detail-public-main .match-vs {
  position: static !important;
  width: auto !important; height: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 8px !important;
  padding: 10px 15px;
  font-size: 24px; font-weight: 800;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: pulse 2s infinite;
}

/* 600px altı: logolar alt alta, VS arada (sadece yerleşim) */
@media (max-width: 600px) {
  .match-detail-public-main .match-teams { flex-direction: column; align-items: center; }
  .match-detail-public-main .match-vs { margin: 6px 0 !important; }
}

/* Üst blok yerleşimi ve arka plan vurguları */
.match-detail-public-main {
  background: radial-gradient(1200px 300px at 50% -50px, rgba(255, 107, 0, 0.18), rgba(0, 119, 255, 0.12) 50%, transparent 70%)
              , var(--light-bg);
}

/* Takım satırı: daha nefesli ve sahne etkisi */
.match-teams {
  justify-content: space-between;
  gap: 24px;
}

/* Takım logolarını büyüt ve img üzerinde halka efekti ver (pseudo kullanmadan) */
.match-detail-public-main .match-teams .team-logo {
  width: 200px !important;
  height: 200px !important;
  border-radius: 50% !important; /* kesin daire */
  aspect-ratio: 1 / 1; /* 1:1 kasa */
  object-fit: cover !important; /* daireyi tam doldur */
  box-sizing: border-box;
  padding: 0 !important; /* şekli bozmasın */
  border: 2px solid rgba(0,0,0,0.08) !important; /* ince düz çerçeve */
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.10) !important;
  display: block;
}

/* Sol/sağ takım için gölge tonu */
/* Takıma göre farklı gölgeleri kaldır, tek tip kalsın */
.match-detail-public-main .match-team:first-child .team-logo,
.match-detail-public-main .match-team:last-child  .team-logo { box-shadow: 0 6px 16px rgba(0,0,0,0.10) !important; }

/* Hover davranışı */
.match-detail-public-main .match-team:hover .team-logo { transform: scale(1.06); }

/* VS ifadesini daha çekici hale getir */
.match-vs {
  font-size: 40px;
  letter-spacing: 2px;
  text-shadow: 0 6px 16px rgba(0,0,0,0.18);
  position: relative;
}
.match-vs::after {
  content: '';
  position: absolute;
  left: -14px; right: -14px; bottom: -8px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .7;
}

/* Bilgi satırlarını hafif kartlara dönüştür */
.match-detail-public-info {
  background: linear-gradient(0deg, rgba(0,0,0,0.02), rgba(0,0,0,0.02));
  border-left: 5px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

/* === Bölüm Başlıkları: Maç Videosu ve Karşılaşmadan Kareler === */
.match-detail-public-main .match-detail-public-videos > div strong,
.match-detail-public-main .match-photos-section > div strong {
  display: block;
  text-align: center;
  font-size: 24px !important;
  font-weight: 800;
  color: var(--primary) !important; /* Tek renk metin */
  letter-spacing: .3px;
  margin: 6px auto 14px auto !important;
  position: relative;
  background: none !important; /* Gradyan metni kaldır */
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial !important;
}

.match-detail-public-main .match-detail-public-videos > div strong::after,
.match-detail-public-main .match-photos-section > div strong::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 170px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ====== Karşılaşmadan Kareler: Polaroid (Instax) görünüm ====== */
/* Eski halo çerçevesini nötrleştir (polaroid ile çakışmasın) */
.match-detail-public-main .match-photo {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex;
  justify-content: center;
}

/* Konteyneri büyüt ve VS rozetini ortalamak için relative yap */
.match-detail-public-main .match-photos-container {
  position: relative;
  gap: 32px !important;
  justify-content: center !important;
}

/* Polaroid kartı */
.match-detail-public-main .polaroid {
  background: #ffffff;
  border-radius: 14px; /* kenarlar biraz daha oval */
  width: clamp(360px, 45vw, 520px); /* fotoğrafları büyüttük */
  padding: 12px 12px 20px 12px; /* çerçeve ekleyeceğimiz için padding'i hafif azalttık */
  border: 6px solid transparent; /* fotoğrafta renkli çerçeve */
  border-image: var(--ring-gradient) 1;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  transform: rotate(-1.2deg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.match-detail-public-main .match-photo:last-child .polaroid { transform: rotate(1.2deg); }
.match-detail-public-main .polaroid:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.22);
}

/* Sol/sağ polaroid için takım renginde hafif gölge tonu */
.match-detail-public-main .match-photo:first-child .polaroid { box-shadow: 0 14px 32px rgba(255,107,0,0.22); }
.match-detail-public-main .match-photo:last-child .polaroid  { box-shadow: 0 14px 32px rgba(0,119,255,0.22); }

/* Polaroid içindeki görsel oranı 4:3 yap, büyüt */
.match-detail-public-main .polaroid .match-image {
  width: 100% !important;
  aspect-ratio: 4/3 !important;
  object-fit: cover !important;
  border-radius: 12px; /* görsel köşelerini de biraz daha oval yap */
  display: block;
}

/* Alt yazı alanı (takım adı) */
.match-detail-public-main .polaroid .polaroid-caption {
  margin-top: 12px;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--dark);
  letter-spacing: .2px;
}

/* İki fotoğrafın ortasında VS rozeti */
.match-detail-public-main .photos-vs {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 90px; height: 90px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 28px;
  color: var(--accent); /* Fallback tek renk */
  border: none; /* VS rozetinde renkli çerçeve olmasın */
  z-index: 5;
  pointer-events: none; /* etkileşimi engellemesin */
}

.match-detail-public-main .photos-vs::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff; /* Beyaz rozet arka planı */
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  z-index: -1;
}

/* VS gradyan metni span üzerinde uygula (daha yaygın tarayıcı uyumu) */
.match-detail-public-main .photos-vs .vs-text {
  display: inline-block;
  line-height: 1;
  font-size: inherit;
  font-weight: inherit;
  color: var(--accent); /* Fallback tek renk */
}

/* Gradient metin desteği varsa uygula */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .match-detail-public-main .photos-vs .vs-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

@media (max-width: 768px) {
  .match-detail-public-main .polaroid { width: clamp(300px, 86vw, 420px); }
  .match-detail-public-main .photos-vs { width: 72px; height: 72px; font-size: 20px; }
}

@media (max-width: 576px) {
  .match-detail-public-main .match-photos-container { gap: 18px !important; }
  .match-detail-public-main .polaroid { width: 96vw; max-width: 420px; }
  /* VS rozetini blok akışına al ama boyutlarını koru */
  .match-detail-public-main .photos-vs {
    position: relative; /* ::before için bağlam */
    left: auto; top: auto; transform: none;
    margin: 8px auto 0;
    width: 68px; height: 68px; font-size: 22px;
    display: inline-flex; /* genişliği metin yüzünden taşmasın */
  }
}

/* ====== 600px kırılımı: fotoğraflar ve VS rozetinin davranışı ====== */
@media (min-width: 600px) {
  .match-detail-public-main .match-photos-container { gap: 36px !important; }
  .match-detail-public-main .polaroid { width: clamp(380px, 44vw, 560px); }
  .match-detail-public-main .photos-vs { width: 96px; height: 96px; font-size: 30px; position: absolute; transform: translate(-50%, -50%); left: 50%; top: 50%; margin: 0; }
}

@media (max-width: 600px) {
  .match-detail-public-main .polaroid { width: 94vw; max-width: 420px; }
  .match-detail-public-main .photos-vs {
    position: relative; /* ::before, inset:0 ile taşmadan çalışsın */
    left: auto; top: auto; transform: none;
    margin: 10px auto 0;
    width: 68px; height: 68px; font-size: 22px;
    display: inline-flex;
  }
  /* Fotoğrafları alt alta diz ve VS rozetini araya yerleştir */
  .match-detail-public-main .match-photos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .match-detail-public-main .match-photo { width: 100%; }
}

/* ====== Meta Bilgileri (Tarih-Saat-Yer & Skor) ====== */
.match-detail-public-main .match-meta { margin: 12px 0 6px; }
.match-detail-public-main .match-meta .meta-row.top {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.match-detail-public-main .match-meta .meta-item {
  flex: 0 1 auto;
  min-width: 260px;
}
.match-detail-public-main .match-meta .meta-row.bottom {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.match-detail-public-main .match-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,107,0,0.08), rgba(0,119,255,0.08));
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform var(--transition-fast), box-shadow var(--transition-normal);
}
.match-detail-public-main .match-score-badge .score-label {
  font-weight: 800;
  color: var(--dark);
  opacity: .85;
  margin-right: 2px;
}
.match-detail-public-main .match-score-badge .score-home {
  font-weight: 900;
  font-size: 30px;
  color: var(--primary);
}
.match-detail-public-main .match-score-badge .score-away {
  font-weight: 900;
  font-size: 30px;
  color: var(--accent);
}
.match-detail-public-main .match-score-badge .score-sep {
  font-weight: 900;
  font-size: 28px;
  color: var(--dark);
}

.match-detail-public-main .match-score-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

@media (max-width: 576px) {
  .match-detail-public-main .match-score-badge { gap: 10px; padding: 8px 14px; }
  .match-detail-public-main .match-score-badge .score-home,
  .match-detail-public-main .match-score-badge .score-away { font-size: 26px; }
  .match-detail-public-main .match-score-badge .score-sep { font-size: 24px; }
}

/* === Halo/çerçeve: YouTube video kutusu === */
.match-detail-public-main .video-responsive {
  padding: 10px !important; /* iç boşluk halo için */
  border: 6px solid transparent;
  border-image: var(--ring-gradient) 1;
  border-radius: var(--radius-md);
  background-color: #000; /* video çevresi siyah kalsın */
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

/* iframe içeriği padding sonrası tam otursun */
.match-detail-public-main .video-responsive iframe {
  border-radius: calc(var(--radius-md) - 6px);
}

/* Set tablosunda hover vurgusunu biraz güçlendir */
.set-scores-table tr:hover td {
  background-color: rgba(0,119,255,0.08);
}

/* Fotoğraf kutularında hafif zoom ve renk vurgusu */
.match-photo:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 14px 22px rgba(0,0,0,0.15);
}

/* === Halo/çerçeve: Maç fotoğrafları === */
.match-detail-public-main .match-photo {
  padding: 8px;
  border: 4px solid transparent;
  border-image: var(--ring-gradient) 1;
  border-radius: var(--radius-md);
  background: #fff;
}
.match-detail-public-main .match-photo img.match-image {
  border-radius: calc(var(--radius-md) - 4px);
}

/* === Halo/çerçeve: Ödül kartlarındaki oyuncu fotoğrafları === */
.match-detail-public-main .awards-grid .photo-wrapper,
.match-detail-public-main .awards-grid .mvp-photo-wrapper {
  padding: 8px;
  border: 4px solid transparent;
  border-image: var(--ring-gradient) 1;
  background: #fff;
}
.match-detail-public-main .awards-grid .photo-wrapper .player-photo,
.match-detail-public-main .awards-grid .mvp-photo-wrapper .player-photo {
  border: none !important; /* içteki mavi/turuncu border'ı kaldır */
}

/* Ödül başlığını temadaki gradyanla daha parlak hale getir */
.awards-title {
  color: var(--dark);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Duyarlı boyutlandırma */
@media (max-width: 992px) {
  .team-logo { width: 160px; height: 160px; }
  .match-vs { font-size: 34px; }
}
@media (max-width: 768px) {
  .team-logo { width: 140px; height: 140px; }
  .match-vs { font-size: 30px; }
}
@media (max-width: 576px) {
  .team-logo { width: 120px; height: 120px; padding: 10px; }
  .match-vs { font-size: 26px; }
}
