:root {
  --bg: #0f0f2f;
  --card-bg: #1f174d;
  --accent: #ffc107;
  --radius: 12px;
  --text: #f1f1f9;
  --muted: #c5c5d1;
}

body {
  background: linear-gradient(135deg,#1f1b55 0%,#0f0f2f 80%);
  color: var(--text);
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  padding-top: 90px; /* space for fixed header */
}

.team-detail-page .inner {
  max-width: 1100px;
  margin: auto;
  padding: 20px 16px 60px;
}

.back-link {
  margin-bottom: 10px;
}
.back-link a {
  display: inline-block;
  color: white;
  background: transparent;
  border: 2px solid var(--accent);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background .25s, color .25s;
}
.back-link a:hover {
  background: var(--accent);
  color: #1f1140;
}

.team-header {
  text-align: center;
  margin: 30px 0 40px;
  position: relative;
}
.logo-wrapper {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  margin-bottom: 12px;
}
.team-logo {
  width: 120px;
  height: auto;
  display: block;
}
.team-title {
  font-size: 2.4rem;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
  position: relative;
}

.no-players {
  background: rgba(255,255,255,0.05);
  padding: 18px 20px;
  border-radius: 10px;
  text-align: center;
  font-size: 1.1rem;
  margin-top: 10px;
}

.player-section {
  margin-bottom: 50px;
}
.role-heading {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--accent);
  position: relative;
}
.role-heading:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 6px;
}

.players {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
  justify-content: center;
}

.player-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  width: 160px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.player-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.5);
}
.player-card .thumb {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}
.player-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.player-card .info {
  text-align: center;
  margin-top: 8px;
}
.player-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.player-role {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .team-title {
    font-size: 2rem;
  }
  .players {
    gap: 16px;
  }
  .player-card {
    width: 140px;
  }
}
@media (max-width: 600px) {
  body {
    padding-top: 100px;
  }
  .team-detail-page .inner {
    padding: 16px;
  }
  .player-card {
    width: 100%;
    max-width: 300px;
  }
  .team-title {
    font-size: 1.8rem;
  }
}
