/* ========================================
   Knockout Page
======================================== */
.knockout-wrapper {
  width: min(1080px, calc(100% - 28px));
  margin: 34px auto 0;
}

.knockout-wrapper .tab-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.knockout-wrapper .tab-button {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.knockout-wrapper .tab-button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.knockout-wrapper .tab-button.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(20, 190, 235, 0.24), rgba(20, 190, 235, 0.08));
  border-color: rgba(20, 190, 235, 0.32);
  box-shadow: var(--shadow-sm);
}

.knockout-wrapper .tab-content {
  display: none;
}

.knockout-wrapper .tab-content.is-active {
  display: grid;
  gap: 22px;
  justify-items: center;
}

.knockout-wrapper .match-box {
  width: min(720px, 100%);
  min-height: 116px;
  border-radius: 22px;
}

.knockout-wrapper .match-line {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.knockout-wrapper .match-line .team {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knockout-wrapper .match-line .team.left {
  text-align: left;
}

.knockout-wrapper .match-line .team.right {
  text-align: right;
}

.knockout-wrapper .match-line .score {
  min-width: 96px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(9, 17, 30, 0.08);
}

.knockout-wrapper .match-date {
  margin-top: 10px;
  color: #556985;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.knockout-empty {
  padding: 28px;
  width: min(720px, 100%);
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

@media (max-width: 640px) {
  .knockout-wrapper {
    width: calc(100% - 20px);
  }

  .knockout-wrapper .tab-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 0 6px 8px 0;
    scrollbar-width: none;
  }

  .knockout-wrapper .tab-bar::-webkit-scrollbar {
    display: none;
  }

  .knockout-wrapper .tab-button {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 0.94rem;
  }

  .knockout-wrapper .tab-content.is-active {
    gap: 14px;
  }

  .knockout-wrapper .match-box {
    min-height: 0;
    padding: 16px 14px;
    border-radius: 18px;
  }

  .knockout-wrapper .match-line {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    align-items: start;
  }

  .knockout-wrapper .match-line .team {
    font-size: 1rem;
    white-space: normal;
    line-height: 1.05;
  }

  .knockout-wrapper .match-line .team.left,
  .knockout-wrapper .match-line .team.right {
    text-align: left;
  }

  .knockout-wrapper .match-line .score {
    min-width: 58px;
    padding: 8px 10px;
    font-size: 1.2rem;
    align-self: center;
  }

  .knockout-wrapper .match-date {
    margin-top: 12px;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
  }
}
