:root {
  --bg: #0a0a0a;
  --text: #eeeeee;
  --accent: #e30613;
  --card: #1a1a1a;
}
[data-theme="light"] {
  --bg: #f8f8f8;
  --text: #111111;
  --card: #ffffff;
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(15px);
  z-index: 1000;
  padding: 1.3rem 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(227, 6, 19, 0.25);
}
[data-theme="light"] header { background: rgba(248, 248, 248, 0.97); }

.logo {
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: white;
  text-shadow: 0 0 30px var(--accent);
}
[data-theme="light"] .logo { color: #000; }

nav a {
  color: white;
  text-decoration: none;
  margin: 0 20px;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
}
[data-theme="light"] nav a { color: #111; }
nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.4s ease;
}
nav a:hover::after { width: 100%; }

.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* TEMA VE SEPET BUTONLARI - DÜZENLEME BURADA */
.theme-toggle, .cart {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* Sayacın sabit kalması için şart */
  padding: 5px;
}
[data-theme="light"] .theme-toggle,
[data-theme="light"] .cart { color: #111; }

/* SEPET SAYACI - SADECE BU KISMI EKLEDİM, HİZALAMAYI BOZMAZ */
.cart-count {
  position: absolute;
  top: -2px;
  right: -5px;
  background-color: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg); /* Sayfanın temasına göre renk değiştirir */
  pointer-events: none;
}

/* ===================== KADRO ===================== */
.kadro-section {
  padding: 130px 6% 100px;
}
.container { 
  max-width: 1480px; 
  margin: 0 auto; 
}

h1 {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 12px;
  color: var(--accent);
}
.subtitle {
  text-align: center;
  font-size: 1.38rem;
  margin-bottom: 65px;
  opacity: 0.9;
}

.kadro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 22px;
}

/* Oyuncu Kartı */
.player-card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.45);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
}

.player-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 22px 45px rgba(227, 6, 19, 0.35);
}

/* Fotoğraf Alanı */
.player-card .image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.85;
  overflow: hidden;
}

.player-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.5s ease;
}

.player-card:hover .image-wrapper img {
  transform: scale(1.07);
}

/* Numara */
.player-number {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  z-index: 2;
}

.player-info {
  padding: 16px 12px 20px;
  text-align: center;
}
.player-info h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.player-info p {
  color: #aaa;
  font-size: 0.95rem;
}

/* ===================== MODAL ===================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--card);
  border-radius: 24px;
  max-width: 720px;
  width: 92%;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.8);
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 28px;
  font-size: 48px;
  color: #ddd;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}
.close-modal:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.player-detail img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 20%;
}

.player-info-detail {
  padding: 32px 35px;
}

.player-info-detail h2 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.position {
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 22px;
  font-weight: 500;
}

/* Boy - Kilo - Ülke */
.player-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 25px 0 20px;
}

.stat-item {
  background: rgba(227, 6, 19, 0.1);
  border: 1px solid rgba(227, 6, 19, 0.25);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
}
.stat-item h4 {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 4px;
}
.stat-item p {
  font-size: 1.32rem;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.description {
  line-height: 1.85;
  color: #ccc;
}

.up-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 2.4rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(227,6,19,0.7);
  z-index: 999;
}

footer {
  background: #000;
  color: #777;
  text-align: center;
  padding: 60px 20px;
}
.music-player {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
}

.music-btn {
  width: 65px;
  height: 65px;
  background: #e30613;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(227,6,19,0.6);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-btn:hover {
  transform: scale(1.15);
}

.music-btn.playing {
  background: #00c853;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,150,83,0.7); }
  70% { box-shadow: 0 0 0 14px rgba(0,150,83,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,150,83,0); }
}

.volume-slider {
  width: 100px;
  accent-color: #e30613;
  cursor: pointer;
}