/* Turnuva puan cetveli — mobil (turnuva_puan_cetveli.php) */

.tpc-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;
}

.tpc-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;
}

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

.tpc-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;
}

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

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

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

.tpc-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;
}

.tpc-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;
}

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

.tpc-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;
}

.tpc-page .select-card select + .select-label {
  margin-top: 12px;
}

.tpc-page .summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.tpc-page .summary-box {
  min-height: 82px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(8, 60, 116, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}

.tpc-page .summary-box strong {
  font-size: 23px;
  line-height: 1;
  color: #0d6efd;
  font-weight: 900;
}

.tpc-page .summary-box span {
  margin-top: 7px;
  color: #6b7f99;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
}

.tpc-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;
}

.tpc-page .standings-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 23px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}

.tpc-page .standings-note {
  padding: 13px 14px;
  background: #f8fbff;
  border-bottom: 1px solid #e7eff8;
  color: #6b7f99;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 800;
}

.tpc-page .table-scroll {
  overflow: hidden;
}

.tpc-page .table-scroll table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 0;
  font-size: 11px;
}

.tpc-page .table-scroll th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 4px;
  background: #edf6ff;
  color: #275072;
  text-align: left;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: normal;
}

.tpc-page .table-scroll td {
  padding: 10px 4px;
  border-top: 1px solid #eef4fb;
  color: #10243d;
  font-weight: 800;
  white-space: normal;
}

.tpc-page .table-scroll th.num,
.tpc-page .table-scroll td.num {
  text-align: center;
}

.tpc-page .table-scroll th:nth-child(1),
.tpc-page .table-scroll td:nth-child(1) {
  width: 26px;
}

.tpc-page .table-scroll th:nth-child(2),
.tpc-page .table-scroll td:nth-child(2) {
  width: 58%;
}

.tpc-page .table-scroll th:nth-child(3),
.tpc-page .table-scroll td:nth-child(3),
.tpc-page .table-scroll th:nth-child(4),
.tpc-page .table-scroll td:nth-child(4),
.tpc-page .table-scroll th:nth-child(5),
.tpc-page .table-scroll td:nth-child(5),
.tpc-page .table-scroll th:nth-child(6),
.tpc-page .table-scroll td:nth-child(6) {
  width: 28px;
}

.tpc-page .rank {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: #eaf5ff;
  color: #0d6efd;
  font-weight: 900;
}

.tpc-page .team-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.tpc-page .team-cell-link {
  text-decoration: none;
  color: inherit;
}

.tpc-page .team-cell-link:active b {
  opacity: 0.7;
}

.tpc-page .team-logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eaf5ff, #ffffff);
  color: #0d6efd;
  border: 1px solid #d7eafb;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
}

.tpc-page .team-logo .tpc-fb {
  position: relative;
  z-index: 0;
}

.tpc-page .team-logo .tpc-li {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpc-page .leader-logo .tpc-fb {
  position: relative;
  z-index: 0;
}

.tpc-page .leader-logo .tpc-li {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpc-page .team-cell b {
  display: block;
  color: #10243d;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
}

.tpc-page .team-cell small {
  display: block;
  color: #6b7f99;
  font-size: 9px;
  font-weight: 800;
  margin-top: 2px;
}

.tpc-page .pts {
  color: #0d6efd;
  font-weight: 900;
}

.tpc-page .win {
  color: #18b45b;
}

.tpc-page .draw {
  color: #f59e0b;
}

.tpc-page .lose {
  color: #ef4444;
}

.tpc-page .av-pos {
  color: #18b45b;
}

.tpc-page .av-neg {
  color: #ef4444;
}

.tpc-page .table-scroll tr.tpc-row-gruptan {
  background: #dcfce7 !important;
}

.tpc-page .table-scroll tr.tpc-row-playoff {
  background: #fef3c7 !important;
}

.tpc-page .table-scroll tr.tpc-row-elenen {
  background: #fee2e2 !important;
}

.tpc-page .legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  background: #fbfdff;
  border-top: 1px solid #e7eff8;
}

.tpc-page .legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6b7f99;
  font-size: 10px;
  font-weight: 900;
}

.tpc-page .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
}

.tpc-page .dot.win {
  background: #18b45b;
}

.tpc-page .dot.draw {
  background: #f59e0b;
}

.tpc-page .dot.lose {
  background: #ef4444;
}

.tpc-page .dot.pts {
  background: #0d6efd;
}

.tpc-page .legend-zones {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #6b7f99;
}

.tpc-page .legend-zones span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tpc-page .lz-k {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.tpc-page .lz-k.gruptan {
  background: #22c55e;
}

.tpc-page .lz-k.playoff {
  background: #f59e0b;
}

.tpc-page .lz-k.elenen {
  background: #ef4444;
}

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

.tpc-page .leader-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #eef4fb;
}

.tpc-page .leader-row:last-child {
  border-bottom: 0;
}

.tpc-page .leader-logo {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: #eaf5ff;
  color: #0d6efd;
  font-size: 16px;
  font-weight: 900;
  overflow: hidden;
  position: relative;
}

.tpc-page .leader-row h4 {
  margin: 0;
  color: #10243d;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.tpc-page .leader-row > div > span {
  display: block;
  margin-top: 4px;
  color: #6b7f99;
  font-size: 10px;
  font-weight: 800;
}

.tpc-page .leader-point {
  min-width: 52px;
  min-height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1688ff, #0d6efd);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.18);
}

.tpc-page .tpc-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;
}

@media (max-width: 360px) {
  .tpc-page .hero-actions,
  .tpc-page .summary-grid {
    grid-template-columns: 1fr;
  }
  .tpc-page .legend {
    grid-template-columns: 1fr;
  }
}
