.ht-wcp-page {
    display: grid;
    gap: 20px;
}

.ht-wcp-hero {
    background: linear-gradient(135deg, #0f5ea8, #0c3763);
    border-radius: 16px;
    color: #fff;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(12, 55, 99, 0.25);
}

.ht-wcp-panel {
    overflow: unset;
}

.ht-wcp-hero h2,
.ht-wcp-hero p {
    margin: 0 0 10px;
}

.ht-wcp-hero-note {
    font-size: 13px;
    opacity: 0.9;
}

.ht-wcp-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.ht-wcp-panel-header h3 {
    margin: 0 0 16px;
}

.ht-wcp-match-controls {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    flex-wrap: wrap;
}

.ht-wcp-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ht-wcp-tab {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #123f70;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.8rem;
}

.ht-wcp-tab.is-active {
background: #00587b;
  border-color: #004763;
  color: #fff;
}

.ht-wcp-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(18, 63, 112, 0.12);
    color: inherit;
    font-size: 12px;
}

.ht-wcp-tab.is-active .ht-wcp-tab-count {
    background: rgb(0, 104, 145);
}

.ht-wcp-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ht-wcp-filters label {
    font-weight: 700;
    color: #123f70;
}

.ht-wcp-phase-filter {
    min-width: 200px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
}

#ht-wcp-match-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ht-wcp-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 16px;
}

.ht-wcp-load-more {
    min-width: 200px;
}

.ht-wcp-match-card {
    border: 1px solid #fff;
    border-radius: 14px;
    padding: 10px;
    background: #fff;
    height: 100%;
    box-shadow: 0 0 0 2px #000000;
}

.ht-wcp-match-top,
.ht-wcp-match-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.ht-wcp-match-top--phase {
    justify-content: center;
    text-align: center;
}

.ht-wcp-match-phase {
    width: 100%;
}

.ht-wcp-match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin: 0 0 10px 0 !important;
}

.ht-wcp-team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    text-align: center;
}

.ht-wcp-team-code,
.ht-wcp-badge {
    display: inline-block;
    background: #123f70;
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
}

.ht-wcp-badge {
    background: #e6f0fb;
    color: #123f70;
    font-weight: 700;
}

.ht-wcp-flag {
    display: inline-block;
    object-fit: cover;
    border-radius: 2px;
}

.ht-wcp-team-flag {
    width: 22px;
    height: 16px;
    box-shadow: 0 0 0 1px rgba(18, 63, 112, 0.12);
}

.ht-wcp-versus {
    font-weight: 700;
    color: #ffbf00;
}

.ht-wcp-result-line,
.ht-wcp-note {
    margin-top: 8px;
}

.ht-wcp-note {
    text-align: center;
}

.ht-wcp-countdown {
    margin-top: 8px;
    font-size: 13px;
    color: #123f70;
    font-weight: 700;
}

.ht-wcp-kickoff {
    margin-top: 4px;
    color: #5b728a;
    font-size: 13px;
}

.ht-wcp-choice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    align-items: stretch;
}

.ht-wcp-choice-list.is-saving {
    opacity: 0.7;
}

.ht-wcp-match-actions {
    justify-content: center;
}

.ht-wcp-choice {
    background: #eef5fc;
    border: 1px solid #c4d8ee;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    width: 100%;
}

.ht-wcp-choice.is-active {
    background: #123f70;
    border-color: #123f70;
    color: #fff;
}

.ht-wcp-choice-label,
.ht-wcp-choice-icon {
    display: inline-flex;
    align-items: center;
}

.ht-wcp-choice-icon {
    min-width: 14px;
    justify-content: center;
}

.ht-wcp-table-wrap {
    overflow-x: auto;
    width: 100%;
}

.ht-wcp-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ht-wcp-table th{
    font-weight: bold;
}

.ht-wcp-table th,
.ht-wcp-table td {
    border-bottom: 1px solid #e8edf3;
    padding: 10px 8px;
    text-align: left;
    white-space: nowrap;
}

.ht-wcp-table td n,
.ht-wcp-table td .name-no-ct,
.ht-wcp-table td .name-ct,
.ht-wcp-table td .name-admin,
.ht-wcp-table td .name-general-admin,
#ht-wcp-match-modal-content td n,
#ht-wcp-match-modal-content td .name-no-ct,
#ht-wcp-match-modal-content td .name-ct,
#ht-wcp-match-modal-content td .name-admin,
#ht-wcp-match-modal-content td .name-general-admin,
#ht-wcp-user-modal-content h3 n,
#ht-wcp-user-modal-content h3 .name-no-ct,
#ht-wcp-user-modal-content h3 .name-ct,
#ht-wcp-user-modal-content h3 .name-admin,
#ht-wcp-user-modal-content h3 .name-general-admin {
    font-weight: 700;
}

.ht-wcp-empty,
.ht-wcp-loading {
    color: #5b728a;
    padding: 12px 0;
}

.ht-wcp-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 72px;
}

.ht-wcp-loading-image {
    display: block;
    max-width: none;
    height: auto;
}

#ht-wcp-match-list .ht-wcp-empty,
#ht-wcp-match-list .ht-wcp-loading {
    grid-column: 1 / -1;
}

.is-correct {
    color: #157347;
    font-weight: 700;
}

.is-incorrect {
    color: #b32d2e;
    font-weight: 700;
}

@media (max-width: 980px) {
    .ht-wcp-match-controls {
        align-items: stretch;
    }

    .ht-wcp-filters {
        width: 100%;
    }

    .ht-wcp-phase-filter {
        width: 100%;
    }

    #ht-wcp-match-list {
        grid-template-columns: 1fr;
    }
}
