/* Turnuva yaklaşan maçlar — mobil (turnuva_maclar.php) */

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

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

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

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

.tmm-page .page-hero h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.65px;
  text-transform: uppercase;
}

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

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

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

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

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

.tmm-page .filter-card select,
.tmm-page .filter-card input[type="search"] {
  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;
}

.tmm-page .filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 9px;
}

.tmm-page .filter-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
  margin-top: 9px;
}

.tmm-page .filter-search-row input[type="search"] {
  min-width: 0;
}

.tmm-page .filter-search-btn {
  width: 48px;
  min-height: 48px;
  border-radius: 15px;
  border: 1px solid #cfe5ff;
  background: linear-gradient(135deg, #1688ff, #0d6efd);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
}

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

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

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

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

.tmm-page .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}

.tmm-page .section-head h3 {
  margin: 0;
  color: #07376a;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.25px;
}

.tmm-page .section-head h3::before {
  content: "";
  width: 7px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1688ff, #0d6efd);
}

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

.tmm-page .date-group {
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #07376a;
  font-size: 14px;
  font-weight: 900;
}

.tmm-page .date-group::before {
  content: "";
  width: 7px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1688ff, #0d6efd);
}

.tmm-page .match-list {
  display: grid;
  gap: 13px;
}

.tmm-page .match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 20px rgba(8, 60, 116, 0.06);
}

.tmm-page .match-row--played {
  border-left: 4px solid #16a34a;
}

.tmm-page .match-row-home {
  text-align: right;
  font-weight: 800;
}

.tmm-page .match-row-away {
  text-align: left;
  font-weight: 800;
}

.tmm-page .match-row-score {
  font-weight: 900;
  color: #dc2626;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tmm-page .match-row--live {
  border-color: rgba(234, 88, 12, 0.42);
  box-shadow: 0 10px 26px rgba(234, 88, 12, 0.14);
}

.tmm-page .match-row-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 58px;
}

.tmm-page .match-row-center--live {
  min-width: 72px;
}

.tmm-page .match-row-live-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
}

@keyframes tmm-live-score-blink {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.38;
    filter: brightness(1.2);
  }
}

.tmm-page .match-row-chrono {
  font-size: 11px;
  font-weight: 900;
  color: #c2410c;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  min-height: 14px;
  letter-spacing: 0.02em;
}

.tmm-page .match-row-score--live {
  animation: tmm-live-score-blink 1s ease-in-out infinite;
}

.tmm-page .match-row-live-pill {
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #dc2626);
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1;
  margin-top: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .tmm-page .match-row-score--live {
    animation: none;
    opacity: 1;
  }
}

.tmm-page .match-row-meta {
  grid-column: 1 / -1;
  margin-top: 2px;
  text-align: center;
  color: #6b7f99;
  font-size: 10px;
  font-weight: 700;
}

.tmm-page .match-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 26px rgba(8, 60, 116, 0.09);
  padding: 14px;
}

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

.tmm-page .match-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.tmm-page .league-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf5ff;
  color: #0d6efd;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  max-width: 68%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tmm-page .time-pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  background: #fff8e8;
  color: #b86d00;
  border: 1px solid #f6dfad;
  white-space: nowrap;
}

.tmm-page .match-teams {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tmm-page .team-side {
  text-align: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.tmm-page .team-logo {
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eaf5ff, #ffffff);
  color: #0d6efd;
  border: 1px solid #d7eafb;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(8, 60, 116, 0.08);
  position: relative;
  overflow: hidden;
}

.tmm-page .team-logo .tmm-fb {
  position: relative;
  z-index: 1;
}

.tmm-page .team-logo .tmm-li {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.tmm-page .team-side b {
  display: block;
  width: 100%;
  text-align: center;
  color: #10243d;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
  text-transform: uppercase;
}

.tmm-page .versus {
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #f8fbff;
  border: 1px solid #e6f0fb;
  color: #07376a;
  font-size: 13px;
  font-weight: 900;
}

.tmm-page .match-meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tmm-page .meta-box {
  min-height: 48px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #e6f0fb;
  padding: 8px;
}

.tmm-page .meta-box span {
  display: block;
  color: #6b7f99;
  font-size: 9px;
  font-weight: 900;
  margin-bottom: 3px;
}

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

.tmm-page .match-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

.tmm-page .match-actions .action {
  min-height: 42px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  color: inherit;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

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

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

.tmm-page .notice-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 14px;
  margin-top: 16px;
}

.tmm-page .notice-card h4 {
  margin: 0 0 8px;
  color: #07376a;
  font-size: 15px;
  font-weight: 900;
}

.tmm-page .notice-card p {
  margin: 0;
  color: #6b7f99;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 700;
}

.tmm-page .tmm-empty {
  text-align: center;
  padding: 28px 16px;
  color: #6b7f99;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 18px;
  margin-top: 8px;
}

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

  .tmm-page .match-teams {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tmm-page .versus {
    height: 42px;
    width: 92px;
    margin: 0 auto;
  }
}

@media (min-width: 720px) {
  .tmm-page .page-hero h2 {
    font-size: 28px;
  }
}
