/* Turnuva futbolcular — roster + liste (turnuva_futbolcular.php) */

.tf-page .page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 86% 18%, rgba(22, 136, 255, 0.38), transparent 34%),
    linear-gradient(135deg, #05264c, #074b87 68%, #0d6efd);
  color: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 20px;
}

.tf-page .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.45;
  pointer-events: none;
}

.tf-page .page-hero .hero-inner {
  position: relative;
  z-index: 2;
}

.tf-page .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #dbeafe;
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 13px;
}

.tf-page .page-hero h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.14;
  letter-spacing: -0.55px;
  text-transform: uppercase;
}

.tf-page .page-hero > .hero-inner > p {
  margin: 10px 0 0;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 600;
}

.tf-page .hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 16px;
}

.tf-page .hero-btn {
  min-height: 44px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.tf-page .select-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 21px;
  box-shadow: 0 12px 26px rgba(8, 60, 116, 0.08);
  padding: 12px;
  margin-bottom: 16px;
}

.tf-page .select-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #07376a;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 9px;
}

.tf-page .select-card select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfdff;
  color: #10243d;
  padding: 0 13px;
  outline: 0;
  font-size: 12px;
  font-weight: 800;
}

.tf-page .team-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 21px;
  box-shadow: 0 12px 26px rgba(8, 60, 116, 0.08);
  padding: 13px;
  margin-bottom: 14px;
}

.tf-page .summary-top {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
}

.tf-page .team-mark {
  width: 70px;
  height: 70px;
  border-radius: 21px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f766e, #ccfbf1);
  color: #053b36;
  font-size: 22px;
  font-weight: 900;
  border: 1px solid #b7eee8;
  box-shadow: 0 10px 22px rgba(8, 60, 116, 0.08);
  overflow: hidden;
  position: relative;
}

.tf-page .team-mark-fallback {
  position: relative;
  z-index: 0;
}

.tf-page .team-mark-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tf-page .summary-title small {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eaf5ff;
  color: #0d6efd;
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 7px;
}

.tf-page .summary-title h3 {
  margin: 0;
  color: #10243d;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
  text-transform: uppercase;
}

.tf-page .summary-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.tf-page .info-box {
  min-height: 50px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #e6f0fb;
  padding: 8px;
}

.tf-page .info-box span {
  display: block;
  color: #6b7f99;
  font-size: 9px;
  font-weight: 900;
  margin-bottom: 4px;
}

.tf-page .info-box b {
  display: block;
  color: #10243d;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.tf-page .search-card {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(8, 60, 116, 0.08);
  padding: 12px;
  margin-bottom: 14px;
}

.tf-page .search-card input {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfdff;
  color: #10243d;
  padding: 0 13px;
  outline: 0;
  font-size: 13px;
  font-weight: 800;
}

.tf-page .search-card button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #1688ff, #0d6efd);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.22);
  cursor: pointer;
}

.tf-page .captain-card {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(8, 60, 116, 0.08);
  padding: 12px;
  margin-bottom: 14px;
}

.tf-page .captain-avatar {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1688ff, #0d6efd);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  flex: 0 0 auto;
}

.tf-page .captain-card span {
  display: block;
  color: #6b7f99;
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 4px;
}

.tf-page .captain-card b {
  display: block;
  color: #10243d;
  font-size: 14px;
  font-weight: 900;
}

.tf-page .section-head span {
  color: #0d6efd;
  background: #eaf5ff;
  border: 1px solid #cfe5ff;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.tf-page .player-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tf-page .player-card {
  position: relative;
  overflow: hidden;
  min-height: 186px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(8, 60, 116, 0.09);
  padding: 13px;
  text-align: center;
}

.tf-page .player-card::after {
  content: "";
  position: absolute;
  right: -35px;
  top: -35px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(22, 136, 255, 0.13), rgba(13, 110, 253, 0.03));
  pointer-events: none;
}

.tf-page .player-no {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f8ff;
  border: 1px solid #d7eafb;
  color: #0d6efd;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 9px;
}

.tf-page .player-photo {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #eef2f7;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(8, 60, 116, 0.12);
  color: #64748b;
  font-size: 20px;
  font-weight: 900;
}

.tf-page .player-photo {
  position: relative;
}

.tf-page .player-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.tf-page .player-photo .ph-fallback {
  position: relative;
  z-index: 0;
}

.tf-page .player-photo .ph-fallback:not([hidden]) {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}

.tf-page .player-card h4 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #10243d;
  font-size: 13px;
  line-height: 1.28;
  font-weight: 900;
  text-transform: uppercase;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tf-page .position {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf5ff;
  color: #0d6efd;
  font-size: 9px;
  font-weight: 900;
}

.tf-page .detail-btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  margin-top: 11px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1688ff, #0d6efd);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.18);
  border: 0;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

.tf-page .tf-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 16px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.tf-page .tf-team-list {
  display: grid;
  gap: 12px;
}

.tf-page .tf-team-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 12px 26px rgba(8, 60, 116, 0.08);
  text-decoration: none;
  color: inherit;
}

.tf-page .tf-team-row-logo {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eaf5ff, #fff);
  border: 1px solid #d7eafb;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 18px;
  font-weight: 900;
  color: #0d6efd;
}

.tf-page .tf-team-row-fallback {
  position: relative;
  z-index: 0;
}

.tf-page .tf-team-row-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tf-page .tf-team-row-mid small {
  display: block;
  color: #6b7f99;
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 4px;
}

.tf-page .tf-team-row-mid b {
  display: block;
  color: #10243d;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.tf-page .tf-team-row-go {
  font-size: 11px;
  font-weight: 900;
  color: #0d6efd;
  background: #eaf5ff;
  border: 1px solid #cfe5ff;
  border-radius: 12px;
  padding: 10px 12px;
  white-space: nowrap;
}

/* Futbolcu detay modal (turnuva_futbolcular mobil) */
.player-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 14, 28, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.player-modal-overlay.show {
  display: flex;
}

.player-modal {
  width: min(100%, 390px);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(3, 14, 28, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.player-modal .modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
  background: #fff;
  border-bottom: 1px solid #e7eff8;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.player-modal .modal-head h3 {
  margin: 0;
  color: #10243d;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.25px;
}

.player-modal .modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f1f6fd;
  color: #6b7f99;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.player-modal .modal-body {
  padding: 18px;
}

.player-modal .modal-player-top {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.player-modal .modal-photo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef2f7;
  border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(8, 60, 116, 0.14);
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 22px;
  font-weight: 900;
}

.player-modal .modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-modal .modal-player-info h4 {
  margin: 0;
  color: #10243d;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.player-modal .modal-player-info .team-name {
  display: block;
  margin-top: 6px;
  color: #6b7f99;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.player-modal .modal-player-info .license {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #243c58;
  font-size: 12px;
  font-weight: 800;
}

.player-modal .license-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f8ff;
  border: 1px solid #d7eafb;
  color: #0d6efd;
  font-size: 10px;
  font-weight: 900;
}

.player-modal .modal-section {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #e7eff8;
}

.player-modal .modal-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10243d;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
}

.player-modal .empty-line {
  margin: 0;
  color: #9aa8ba;
  font-size: 13px;
  line-height: 1.55;
  font-style: italic;
  font-weight: 700;
}

.player-modal .stat-list {
  display: grid;
  gap: 8px;
}

.player-modal .stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #e6f0fb;
}

.player-modal .stat-row span {
  color: #6b7f99;
  font-size: 12px;
  font-weight: 900;
}

.player-modal .stat-row b {
  color: #10243d;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.player-modal .modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 16px;
}

.player-modal .modal-action {
  min-height: 43px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  border: 0;
}

.player-modal .modal-action.secondary {
  background: #eaf5ff;
  color: #0d6efd;
  border: 1px solid #cfe5ff;
}

.player-modal .modal-action.primary {
  background: linear-gradient(135deg, #1688ff, #0d6efd);
  color: #fff;
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.2);
}

@media (max-width: 360px) {
  .player-modal .modal-actions {
    grid-template-columns: 1fr;
  }
}

.tf-foto-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tf-foto-lightbox.show {
  display: flex;
}

.tf-foto-lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
}

.tf-foto-lightbox-inner img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  display: block;
}

.tf-foto-lightbox-close {
  position: absolute;
  top: -38px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 360px) {
  .tf-page .player-grid {
    grid-template-columns: 1fr;
  }
  .tf-page .hero-actions {
    grid-template-columns: 1fr;
  }
  .tf-page .tf-team-row {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
  }
  .tf-page .tf-team-row-go {
    grid-column: 1 / -1;
    text-align: center;
  }
}
