.players-page {
  margin: 0;
  background: #eef2f7;
  color: #0b1422;
  font-family: "Cairo", system-ui, sans-serif;
}

.players-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 0%, rgba(226, 0, 28, 0.24), transparent 30%),
    linear-gradient(180deg, #070b12 0%, #0b1422 45%, #eef2f7 45%, #eef2f7 100%);
}

.players-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.players-hero,
.player-detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(226, 0, 28, 0.55);
}

.players-hero-bg,
.player-detail-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 13, 0.94), rgba(8, 14, 24, 0.7)),
    url("../images/uploads/sliders/1763709027603-271614278.png") center / cover no-repeat;
  opacity: 0.96;
}

.players-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 0 90px;
  color: #fff;
}

.players-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 900;
}

.players-breadcrumbs a {
  color: #fff;
}

.players-breadcrumbs strong,
.players-kicker,
.players-eyebrow {
  color: #e6001c;
}

.players-kicker,
.players-eyebrow {
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
}

.players-hero h1,
.player-title-block h1 {
  margin: 18px 0 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.players-hero p,
.player-title-block p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.8;
  font-weight: 800;
}

.players-card,
.player-detail-card {
  position: relative;
  z-index: 2;
  margin-top: -52px;
  margin-bottom: 72px;
  padding: 28px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(8, 16, 28, 0.16);
}

.players-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.players-card-head h2,
.player-info-panel h2,
.player-stats-panel h2 {
  margin: 4px 0 0;
  color: #07101c;
  font-size: 30px;
  font-weight: 900;
}

.players-count {
  min-width: 112px;
  padding: 12px 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  text-align: center;
}

.players-count strong {
  display: block;
  color: #e6001c;
  font-size: 26px;
  font-weight: 900;
}

.players-count span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.player-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #0b1422;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 16px 38px rgba(8, 16, 28, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.player-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(8, 16, 28, 0.22);
}

.player-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(3, 7, 13, 0.96));
}

.player-card-number {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e6001c;
  font-weight: 900;
}

.player-card figure {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
}

.player-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.03);
}

.player-card-body {
  padding: 24px;
}

.player-card-body span,
.player-card-body b {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.player-card-body h3 {
  margin: 8px 0 18px;
  color: #fff;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 900;
}

.player-card-body b {
  color: #e6001c;
}

.players-loading,
.players-empty {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #64748b;
  font-weight: 900;
}

.players-loading span {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(226, 0, 28, 0.18);
  border-top-color: #e6001c;
  border-radius: 50%;
  animation: players-spin 0.75s linear infinite;
}

@keyframes players-spin {
  to { transform: rotate(360deg); }
}

.player-detail-inner {
  position: relative;
  z-index: 1;
  min-height: 440px;
  padding: 58px 0 96px;
  color: #fff;
}

.player-hero-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  margin-top: 38px;
}

.player-photo-frame {
  margin: 0;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.player-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.player-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: 22px;
}

.player-info-panel,
.player-stats-panel {
  padding: 26px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  background: #fff;
}

.player-info-panel dl {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.player-info-panel dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.player-info-panel dt,
.player-stat span {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.player-info-panel dd {
  margin: 0;
  color: #0b1422;
  font-weight: 900;
  text-align: end;
}

.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.player-stat {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.player-stat strong {
  color: #e6001c;
  font-size: 30px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .players-container {
    width: min(100% - 24px, 1180px);
  }

  .players-card,
  .player-detail-card {
    padding: 18px;
  }

  .players-card-head,
  .player-hero-layout,
  .player-detail-grid {
    grid-template-columns: 1fr;
  }

  .players-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .player-photo-frame {
    height: 360px;
  }
}
.players-page [hidden] {
  display: none !important;
}
