.pst-container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.pst-breadcrumbs {
    align-items: center;
    color: #222;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 16px;
}

.pst-breadcrumbs__link {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.14px;
    text-decoration: none;
}

.pst-breadcrumbs__current {
    color: #222;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.14px;
    opacity: 0.64;
}

.pst-breadcrumbs__sep {
    align-items: center;
    display: flex;
    height: 18px;
    justify-content: center;
    width: 18px;
}

.pst-breadcrumbs__sep svg {
    display: block;
    height: 18px;
    transform: rotate(-90deg);
    width: 18px;
}

.pst-page-title {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: 44px;
    margin: 0 0 24px;
    text-align: center;
}

.pst-section-title {
    color: var(--black, #222) !important;
    font-family: "Bai Jamjuree", sans-serif !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 22px !important;
    letter-spacing: -0.2px;
    text-align: left !important;
    margin: 0 0 8px 0 !important;
}

.pst-live-badge,
.pst-live-badge-wrapper {
    display: none;
}

.pst-tabs-filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin: 0 0 16px;
}

.pst-nav-tabs {
    align-items: stretch;
    display: flex;
    min-height: 48px;
    overflow: hidden;
}

.pst-nav-tab {
    align-items: center;
    appearance: none;
    border: 0;
    color: #222;
    cursor: pointer;
    display: flex;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 600;
    height: 48px;
    letter-spacing: -0.16px;
    margin: 0;
    padding: 0 24px;
    text-decoration: none;
    white-space: nowrap;
}

.pst-nav-tab--now {
    background: #fff;
    border-radius: 8px 0 0 8px;
}

.pst-nav-tab--ongoing,
.pst-nav-tab--upcoming,
.pst-nav-tab--finished {
    background: #fff;
}

.pst-nav-tab--finished {
    border-radius: 0 8px 8px 0;
    position: relative;
}

.pst-nav-tab--finished::before {
    background: #f4f4f9;
    content: "";
    height: 48px;
    left: -1px;
    position: absolute;
    top: 0;
    width: 1px;
}

.pst-nav-tab.active,
.pst-nav-tab:focus-visible {
    background: linear-gradient(180deg, #4e3f84 0%, #fe2181 100%);
    box-shadow: 0 1px 0 0 #f25db6 inset, 0 1px 0 0 #ff7676;
    color: #fff;
    outline: none;
}

.pst-filters {
    display: flex;
}

.pst-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pst-filter-select {
    appearance: none;
    background-color: #fff;
    background-position: right 16px center, left 32px center;
    background-repeat: no-repeat;
    background-size: 18px 18px, 24px 24px;
    border: 1px solid #e9e9ef;
    border-radius: 6px;
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 600;
    height: 48px;
    letter-spacing: -0.16px;
    padding: 0 40px 0 32px;
}

.pst-filter-select--region {
    background-image:
        url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 7L9 10L12 7' stroke='%23222222' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 20.5C10.012 18.787 6.5 15.207 6.5 11.25C6.5 8.074 9.074 5.5 12.25 5.5C15.426 5.5 18 8.074 18 11.25C18 15.207 14.488 18.787 12.5 20.5H12Z' stroke='%23222222' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12.25' cy='11.25' r='1.75' stroke='%23222222' stroke-width='1.5'/%3E%3C/svg%3E");
    min-width: 230px;
    padding-left: 64px;
}

.pst-filter-select--type {
    background-image:
        url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 7L9 10L12 7' stroke='%23222222' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 12C5.5 8.962 7.962 6.5 11 6.5C14.038 6.5 16.5 8.962 16.5 12C16.5 15.038 14.038 17.5 11 17.5C7.962 17.5 5.5 15.038 5.5 12Z' stroke='%23222222' stroke-width='1.5'/%3E%3Ccircle cx='11' cy='12' r='2.5' stroke='%23222222' stroke-width='1.5'/%3E%3Cpath d='M17.5 10L18.5 9L20.5 11L19.5 12' stroke='%23222222' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    min-width: 162px;
    padding-left: 64px;
}

.pst-filter-select--year {
    background-image:
        url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 7L9 10L12 7' stroke='%23222222' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4.5' y='6.5' width='15' height='13' rx='2' stroke='%23222222' stroke-width='1.5'/%3E%3Cpath d='M8 4.5V8' stroke='%23222222' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M16 4.5V8' stroke='%23222222' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M4.5 10.5H19.5' stroke='%23222222' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    min-width: 177px;
    padding-left: 64px;
}

.pst-filter-select:focus {
    border-color: #ff7676;
    outline: none;
}

.pst-filter-btn {
    align-items: center;
    background: linear-gradient(180deg, #4e3f84 -84.06%, #f13464 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 0 0 #f25db6 inset, 0 1px 0 0 #ff7676;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 600;
    height: 48px;
    letter-spacing: -0.16px;
    padding: 14px 32px;
    text-decoration: none;
    white-space: nowrap;
}

.pst-filter-btn:hover,
.pst-filter-btn:focus-visible {
    background-color: #3e4346;
    background-image: linear-gradient(180deg, #3d2d76 -84.06%, #a20d32 100%);
    box-shadow: 0 1px 0 #ff7676, inset 0 1px 0 #a20d32;
    outline: none;
}

.pst-filters form button {
    margin-top: 0;
}

.pst-section {
    margin: 0 0 40px 0;
    padding: 0 !important;
    width: auto !important;
    position: static !important;
}


.pst-section.is-hidden {
    display: none;
}

.pst-partners-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 345px;
    gap: 20px;
    align-items: start;
    margin: 48px 0 48px;
}

.pst-partners-main {
    max-width: 1076px;
    width: 100%;
}

.pst-betting-title {
    color: #191b1c;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -0.42px;
    margin: 0;
}

.pst-betting-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
}

.pst-betting-item {
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 48px;
    padding: 0 16px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    overflow: hidden;
}

.pst-betting-logo {
    display: block;
    height: auto;
    max-height: 28px;
    max-width: 120px;
    object-fit: contain;
    width: auto;
    flex: 0 0 120px;
}

.pst-betting-item-text {
    color: #111111;
    flex: 1 1 auto;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: -0.16px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pst-betting-description {
    margin-top: 48px;
    color: #191b1c !important;
    font-family: "SF Pro Display", "Bai Jamjuree", sans-serif !important;
    font-weight: 400 !important;
    text-align: left !important;
    max-width: none !important;
}

.pst-betting-description h2 {
    font-size: 1.5em !important;
    line-height: 2em !important;
}

.pst-betting-description h3 {
    font-size: 1.4em !important;
    line-height: 1.4em !important;
    text-align: left !important;
}

.pst-betting-description p {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    text-align: left !important;
    max-width: none !important;
    margin: 0 0 24px 0 !important;
}

.pst-betting-description p:last-child {
    margin-bottom: 0;
}

.pst-skin-block {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    width: 345px;
}

.pst-partners-layout--has-title .pst-skin-block {
    margin-top: 56px;
}

.pst-skin-title {
    color: #191b1c;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.2px;
    margin: 0;
    text-align: left;
}

.pst-skin-divider {
    background: rgba(34, 34, 34, 0.12);
    height: 1px;
    width: 100%;
    margin: 16px 0;
}

.pst-skin-list {
    display: flex;
    flex-direction: column;
}

.pst-skin-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    overflow: hidden;
}

.pst-skin-logo {
    display: block;
    height: auto;
    max-height: 28px;
    max-width: 108px;
    object-fit: contain;
    width: auto;
    flex: 0 0 108px;
}

.pst-skin-text {
    color: #191b1c;
    flex: 1 1 auto;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: -0.16px;
    min-width: 0;
}

.pst-pagination {
    margin-top: 24px;
}

.pst-pagination ul {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.pst-pagination li {
    margin: 0;
}

.pst-pagination ul.page-numbers {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.pst-pagination li {
    margin: 0;
}

.pst-pagination a.page-numbers,
.pst-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: #fff;
    padding-left: 6px;
    padding-right: 6px;
    color: #191b1c;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
}

.pst-pagination span.page-numbers.current {
    background: linear-gradient(180deg, #4E3F84 0%, #FE2181 100%);
    box-shadow: 0 1px 0 0 #F25DB6 inset, 0 1px 0 0 #FF7676;
    border: none;
    color: #fff;
}

/* Tournament List */
.pst-tournaments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pst-tournament-item {
    background: #fff;
    border-radius: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px 160px 296px;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.pst-tournament-item:hover {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.04) 100%), #fff;
    border: 1px solid rgba(34, 34, 34, 0.08);
}

/* Single Tournament */
.pst-single-tournament {
    background: #f4f4f9;
    padding: 32px 0 56px;
}

.pst-tournaments-page {
    padding: 32px 0 56px;
}

.pst-single-tournament section {
    padding: 0 !important;
    position: static !important;
    width: auto !important;
}

.pst-unknown-text {
    display: block;
    margin-top: 24px;
}

.pst-tournament-title {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 44px;
    letter-spacing: -0.8px;
    text-align: center;
    margin: 0 0 24px 0;
}

.pst-stage-tabs {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 0 24px 0;
}

.pst-stage-tabs .pst-stage-tab {
    flex: 1 1 0;
    height: 48px;
    border: 0;
    background: #fff;
    box-shadow: none;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.16px;
    line-height: 1;
    padding: 0 24px;
    text-align: center;
    border-radius: 0;
    cursor: pointer;
}

.pst-stage-tab + .pst-stage-tab {
    border-left: 0;
    box-shadow: inset 1px 0 0 #f4f4f9;
}

.pst-stage-tab.active {
    border-radius: 0;
}

.pst-stage-tab.active {
    background: linear-gradient(180deg, #4E3F84 0%, #FE2181 100%);
    box-shadow: 0 1px 0 0 #F25DB6 inset, 0 1px 0 0 #FF7676;
    color: #fff;
}

.pst-stage-panels {
    margin-bottom: 32px;
}

.pst-stage-date-range {
    color: #222;
    font-family: "SF Pro Display", "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    margin: 0 0 16px;
}

.pst-stage-panel {
    display: none;
}

.pst-stage-panel.active {
    display: block;
}

.pst-format-section {
    margin-top: 0;
    padding: 0 !important;
}

.pst-format-title,
.pst-overview-title {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -0.42px;
    margin: 0;
}

.pst-format-title {
    margin: 0 0 16px 0;
}

.pst-overview-title {
    margin: 0 0 24px 0;
}

.pst-format-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px 328px 24px 320px;
    gap: 16px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    align-items: center;
}

.pst-format-row--single {
    display: flex;
    gap: 16px;
}


.pst-format-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 16px;
    width: 100%;
}

.pst-format-main {
    justify-content: space-between;
}

.pst-format-icon {
    height: 24px;
    width: 24px;
}

.pst-format-text {
    color: #111;
    font-family: "SF Pro Display", "Bai Jamjuree", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    white-space: nowrap;
}

.pst-format-item--wrap .pst-format-text {
    white-space: normal;
}

.pst-format-link {
    color: #ff3366;
    text-decoration: underline;
    text-decoration-skip-ink: none;
}

.pst-format-date {
    color: #111;
    font-family: "SF Pro Display", "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    margin-left: auto;
    white-space: nowrap;
}

.pst-overview-section {
    margin-top: 48px;
    padding: 0 !important;
}

.pst-overview-table {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pst-overview-row {
    display: grid;
    grid-template-columns: 32px 264px 108px 108px 48px 48px repeat(var(--pst-overview-rounds, 5), 128px);
    column-gap: 16px;
    align-items: center;
    padding: 0 16px;
    height: 48px;
    border-radius: 8px;
    background: #fff;
}

.pst-overview-table--no-rounds .pst-overview-row {
    grid-template-columns: 32px 264px 108px 108px 48px 48px;
}

.pst-overview-table--no-summary .pst-overview-row {
    grid-template-columns: 32px 264px 108px repeat(var(--pst-overview-rounds, 5), 128px);
}

.pst-overview-table--no-round-summary .pst-overview-row {
    grid-template-columns: 32px 264px 108px 48px repeat(var(--pst-overview-rounds, 5), 128px);
}

.pst-overview-table--no-bu .pst-overview-row {
    grid-template-columns: 32px 264px 108px 108px 48px repeat(var(--pst-overview-rounds, 5), 128px);
}

.pst-overview-table--no-rounds.pst-overview-table--no-summary .pst-overview-row {
    grid-template-columns: 32px 264px 108px;
}

.pst-overview-table--no-rounds.pst-overview-table--no-round-summary .pst-overview-row {
    grid-template-columns: 32px 264px 108px 48px;
}

.pst-overview-table--no-rounds.pst-overview-table--no-bu .pst-overview-row {
    grid-template-columns: 32px 264px 108px 108px 48px;
}

.pst-overview-header {
    background: linear-gradient(180deg, #fe5000 0%, #ffd4c0 93.75%);
    color: #fff;
    margin-bottom: 0;
}

.pst-overview-header .pst-overview-cell {
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.16px;
}

.pst-overview-row:not(.pst-overview-header):nth-child(n+2):nth-child(-n+4) {
    background: linear-gradient(90deg, rgba(0, 234, 140, 0.08) 0%, rgba(0, 234, 140, 0.08) 100%);
}

.pst-overview-row:not(.pst-overview-header):nth-child(n+5):nth-child(-n+7) {
    background: linear-gradient(90deg, rgba(255, 184, 0, 0.08) 0%, rgba(255, 184, 0, 0.08) 100%);
}

.pst-overview-row:not(.pst-overview-header):nth-child(n+8) {
    background: rgba(255, 51, 102, 0.08);
}

.pst-overview-cell {
    color: #222;
    font-family: "SF Pro Display", "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.pst-overview-team {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.pst-overview-team-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.pst-overview-team-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.pst-overview-team-letter {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.pst-overview-team-name {
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.16px;
    color: #222;
}

.pst-overview-round {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.pst-overview-round-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.pst-overview-round-logo img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.pst-overview-round-score {
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.14px;
    color: #222;
}

.pst-rounds-list {
    margin-top: 24px;
}

.pst-round-tabs {
    display: flex;
    gap: 8px;
    margin: 16px 0 16px;
    flex-wrap: wrap;
}

.pst-round-tab {
    appearance: none;
    background: #fff;
    border: 0;
    border-radius: 0;
    color: #222;
    cursor: pointer;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 0 16px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.pst-round-tab:hover {
    background: #fff;
}

.pst-round-tab.active {
    background: linear-gradient(180deg, #4E3F84 0%, #FE2181 100%);
    box-shadow: 0 1px 0 0 #F25DB6 inset, 0 1px 0 0 #FF7676;
    color: #fff;
}

.pst-round-tabs {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    gap: 0;
}

.pst-round-tab + .pst-round-tab {
    box-shadow: inset 1px 0 0 #f4f4f9;
}

.pst-round-panels {
    margin-top: 8px;
}

.pst-round-panel {
    display: none;
}

.pst-round-panel.active {
    display: block;
}

.pst-round-section {
    margin-top: 24px;
}

.pst-group-stage-section {
    margin-top: 24px;
}

.pst-round-title {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    margin: 0 0 8px 0;
}

.pst-round-subtitle {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    margin: 12px 0 8px 0;
}

.pst-round-header {
    height: 24px;
    border-radius: 8px;
    background: linear-gradient(180deg, #fe5000 0%, #ffd4c0 93.75%);
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.pst-round-date {
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.12px;
}

.pst-round-matches {
    background: #fff;
    border-radius: 8px;
    padding: 4px 0;
    margin-top: 8px;
}

.pst-round-match + .pst-round-match {
    border-top: 1px solid #f0f0f4;
}

.pst-round-match--table {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2px;
    background: transparent;
    border-top: 0 !important;
    margin-top: 2px;
}

.pst-round-table-side {
    align-items: center;
    background: #fff;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-height: 42px;
    padding: 8px 14px;
}

.pst-round-table-side--left {
    border-radius: 6px 0 0 6px;
}

.pst-round-table-side--right {
    border-radius: 0 6px 6px 0;
}

.pst-round-table-side--win {
    background: #e8fbf4;
}

.pst-tournament-extra-match {
    display: none !important;
}

.pst-tournament-view-all {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #24163f;
    color: #fff;
    cursor: pointer;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
    padding: 10px 14px;
    text-align: center;
}

.pst-tournament-view-all:hover {
    background: #3a2367;
}

.pst-round-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
}

.pst-round-team {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.pst-round-team-logo {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.pst-round-team-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.pst-round-team-letter {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.pst-round-team-name {
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pst-round-team-score {
    font-family: "SF Pro Display", "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #222;
    min-width: 24px;
    text-align: right;
}
.pst-overview-empty {
    margin-top: 16px;
    color: #7e8b98;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
}

.pst-tournament-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 616px;
    min-width: 0;
}

.pst-tournament-link {
    text-decoration: none;
    color: inherit;
}

.pst-tournament-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.pst-tournament-icon {
    flex-shrink: 0;
    height: 40px;
    object-fit: contain;
    width: 40px;
}

.pst-tournament-icon-placeholder {
    align-items: center;
    background: #e9e9ef;
    border-radius: 4px;
    display: flex;
    font-size: 20px;
    height: 40px;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
}

.pst-tournament-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pst-tournament-name {
    color: #222 !important;
    font-family: "Bai Jamjuree", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    letter-spacing: -0.16px;
    line-height: 22px !important;
    margin: 0 !important;
    text-align: left !important;
    max-width: none !important;
}

.pst-tournament-location {
    color: #7e8b98;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
}

.pst-tournament-meta-row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pst-meta-item {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
}

.pst-meta-item.pst-tier,
.pst-meta-item.pst-prize {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    min-width: 80px;
}

.pst-meta-item.pst-tier {
    min-width: 128px;
}

.pst-meta-item.pst-prize {
    min-width: 160px;
}

.pst-meta-item.pst-tier,
.pst-meta-item.pst-prize {
    width: 100%;
}

.pst-tier-value,
.pst-prize-value {
    display: block;
    color: #191b1c;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.24px;
    margin: 0;
}

.pst-tier-label,
.pst-prize-label {
    display: block;
    color: #191b1c;
    font-family: "SF Pro Display", "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    margin: 4px 0 0 0;
}

.pst-teams-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-self: end;
    gap: 8px;
    width: 250px;
}

.pst-teams-icons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.pst-teams-count {
    align-self: flex-start;
    text-align: left;
    width: 100%;
}

.pst-team-link {
    display: inline-block;
    text-decoration: none;
}

.pst-team-icon {
    height: 24px;
    object-fit: contain;
    width: 24px;
}

.pst-teams-count {
    color: #7e8b98;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
}

/* ═══════════════════════════════════════════════════════════════
   MATCH ARCHIVE PAGE
   ═══════════════════════════════════════════════════════════════ */

.pst-matches-page {
    background: #f4f4f9;
    padding: 32px 0 56px;
}

/* ── Match list container ─────────────────────────────────────── */

.pst-matches-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Single match row ─────────────────────────────────────────── */

.pst-match-item {
    align-items: center;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
    display: grid;
    /* tournament | teams+score | location+date */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px;
    column-gap: 16px;
    padding: 12px 24px;
    width: 100%;
}

.pst-match-item:hover {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.04) 100%), #fff;
    border-color: rgba(34, 34, 34, 0.08);
}

/* ── Tournament column ─────────────────────────────────────────── */

.pst-match-tournament {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 0;
}

.pst-match-tournament-link {
    align-items: center;
    color: inherit;
    display: flex;
    flex: 1;
    gap: 8px;
    min-width: 0;
    text-decoration: none;
}

.pst-match-tournament-icon {
    border-radius: 4px;
    flex-shrink: 0;
    height: 24px;
    object-fit: contain;
    width: 24px;
}

.pst-match-tournament-icon--placeholder {
    align-items: center;
    background: #e9e9ef;
    border-radius: 4px;
    display: flex;
    flex-shrink: 0;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.pst-match-tournament-name {
    color: #222;
    flex: 1;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.14px;
    line-height: 18px;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pst-match-tournament-link:hover .pst-match-tournament-name {
    text-decoration: underline;
}

/* ── LIVE badge ────────────────────────────────────────────────── */

.pst-match-live-badge {
    background: linear-gradient(180deg, #fe5000 0%, #ffb800 100%);
    border-radius: 4px;
    color: #fff;
    flex-shrink: 0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    line-height: 1;
    padding: 3px 6px;
    text-transform: uppercase;
}

/* ── Middle section (team1 + score + team2) ───────────────────── */

.pst-match-middle {
    align-items: center;
    display: grid;
    /* team1 | score | team2 — equal halves around the score */
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    column-gap: 8px;
    min-width: 0;
}

/* ── Meta section (location + date) ───────────────────────────── */

.pst-match-meta {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    min-width: 0;
}

/* ── Team columns ─────────────────────────────────────────────── */

.pst-match-team {
    align-items: center;
    display: flex;
    gap: 6px;
    min-width: 0;
}

.pst-match-team-link {
    align-items: center;
    color: inherit;
    display: flex;
    gap: 6px;
    min-width: 0;
    text-decoration: none;
}

.pst-match-team-link--left {
    justify-content: flex-end;
}

.pst-match-team-link--right {
    justify-content: flex-start;
}

.pst-match-team--left {
    justify-content: flex-end;
}

.pst-match-team--right {
    justify-content: flex-start;
}

.pst-flag {
    border-radius: 2px;
    flex-shrink: 0;
    height: 12px;
    width: 16px;
    object-fit: cover;
}

.pst-match-team-flag {
    border-radius: 2px;
    flex-shrink: 0;
    height: 12px;
    object-fit: cover;
    width: 16px;
}

.pst-match-team-logo {
    border-radius: 4px;
    flex-shrink: 0;
    height: 24px;
    object-fit: contain;
    width: 24px;
}

.pst-match-team-name {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.14px;
    line-height: 18px;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pst-match-team-link:hover .pst-match-team-name {
    text-decoration: underline;
}

.pst-match-team-name--winner {
    color: #111;
}

/* ── Score ─────────────────────────────────────────────────────── */

.pst-match-score {
    align-items: center;
    display: flex;
    gap: 3px;
    justify-content: center;
    white-space: nowrap;
}

.pst-match-score-num {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.14px;
    line-height: 18px;
    min-width: 14px;
    text-align: center;
}

/* Finished match: winner green, loser red */
.pst-match-score-num--winner {
    color: #1a9e44;
    font-weight: 700;
}

.pst-match-score-num--loser {
    color: #e03030;
    font-weight: 700;
}

.pst-match-score-sep {
    color: #9096a0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}

.pst-match-score-live,
.pst-match-score-upcoming {
    color: #9096a0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.13px;
    line-height: 18px;
}

.pst-match-score-live {
    color: #fe5000;
}

/* ── Location column ──────────────────────────────────────────── */

.pst-match-location {
    align-items: center;
    display: flex;
    gap: 6px;
    min-width: 0;
}

.pst-match-location-flag {
    border-radius: 2px;
    flex-shrink: 0;
    height: 12px;
    object-fit: cover;
    width: 16px;
}

.pst-match-location-text {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Date column ──────────────────────────────────────────────── */

.pst-match-date {
    color: #7e8b98;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    text-align: right;
    white-space: nowrap;
}

/* ── Match footer (per-page + pagination) ─────────────────────── */

.pst-match-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin-top: 16px;
}

.pst-per-page {
    align-items: center;
    display: flex;
    gap: 8px;
}

.pst-per-page-label {
    color: #7e8b98;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
}

.pst-per-page-options {
    display: flex;
    gap: 4px;
}

.pst-per-page-option {
    align-items: center;
    background: #fff;
    border-radius: 6px;
    color: #222;
    display: inline-flex;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    height: 32px;
    justify-content: center;
    letter-spacing: -0.14px;
    min-width: 40px;
    padding: 0 10px;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
}

.pst-per-page-option.active,
.pst-per-page-option:hover {
    background: linear-gradient(180deg, #4e3f84 0%, #fe2181 100%);
    box-shadow: 0 1px 0 0 #f25db6 inset, 0 1px 0 0 #ff7676;
    color: #fff;
}

/* ── Empty state ──────────────────────────────────────────────── */

.pst-empty-message {
    background: #fff;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
}

.pst-empty-message p {
    color: #7e8b98;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE MATCH PAGE
   ═══════════════════════════════════════════════════════════════ */

.pst-match-page {
    background: #f4f4f9;
}

/* ── Hero (dark section) ──────────────────────────────────────── */

.pst-match-hero {
    background: #0d0d1a;
    padding: 20px 0 40px;
}

.pst-match-breadcrumbs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 24px;
    opacity: 0.64;
}

.pst-match-breadcrumbs a,
.pst-match-breadcrumbs span {
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.pst-match-breadcrumbs a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.pst-breadcrumb-current {
    opacity: 0.6;
}

.pst-match-h1-seo {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
}

.pst-tournaments-page [id],
.pst-matches-page [id],
.pst-teams-page [id],
.pst-players-page [id],
.pst-single-tournament [id],
.pst-match-page [id],
.pst-single-team [id],
.pst-sp-page [id] {
    scroll-margin-top: 96px;
}

/* ── Hero grid: [team-l] [center] [team-r] ───────────────────── */

.pst-mhero {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
    gap: 24px;
    min-height: 160px;
}

/* ── Team sides ──────────────────────────────────────────────── */

.pst-mhero-team {
    align-items: center;
    display: flex;
    gap: 20px;
    min-width: 0;
}

.pst-mhero-team--l {
    flex-direction: row;         /* nameblock → logo */
    justify-content: flex-end;
}

.pst-mhero-team--r {
    flex-direction: row-reverse; /* logo → nameblock */
    justify-content: flex-end;
}

.pst-mhero-nameblock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 0;
}

.pst-mhero-nameblock--r {
    align-items: flex-start;
}

.pst-mhero-name {
    color: #fff;
    display: block;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.56px;
    line-height: 1.1;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pst-mhero-name:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.pst-mhero-meta {
    align-items: center;
    display: flex;
    gap: 6px;
}

.pst-mhero-meta--r {
    flex-direction: row-reverse;
}

.pst-mhero-flag {
    border-radius: 2px;
    flex-shrink: 0;
    height: 12px;
    object-fit: cover;
    width: 16px;
}

.pst-mhero-ranking {
    color: rgba(255, 255, 255, 0.5);
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.13px;
    line-height: 1;
    white-space: nowrap;
}

.pst-mhero-logo-wrap {
    flex-shrink: 0;
}

.pst-mhero-logo-wrap a {
    display: block;
}

.pst-mhero-logo {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    height: 72px;
    object-fit: contain;
    padding: 4px;
    width: 72px;
}

.pst-mhero-logo--placeholder {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.44px;
    line-height: 1;
}

/* ── Center: round / score / format / date ───────────────────── */

.pst-mhero-center {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.pst-mhero-round {
    color: rgba(255, 255, 255, 0.5);
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    line-height: 1;
    text-transform: uppercase;
}

.pst-mhero-scorebox {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: center;
}

.pst-mhero-snum {
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
}

.pst-mhero-snum--win {
    color: #1a9e44;
}

.pst-mhero-snum--lose {
    color: #e03030;
}

.pst-mhero-ssep {
    color: rgba(255, 255, 255, 0.3);
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
    margin: 0 4px;
}

.pst-mhero-vs {
    color: rgba(255, 255, 255, 0.4);
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1;
}

.pst-mhero-format {
    color: rgba(255, 255, 255, 0.5);
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1;
    text-transform: uppercase;
}

.pst-mhero-date {
    color: rgba(255, 255, 255, 0.6);
    font-family: "SF Pro Display", "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

.pst-mhero-live {
    align-items: center;
    background: rgba(254, 80, 0, 0.12);
    border: 1px solid rgba(254, 80, 0, 0.4);
    border-radius: 20px;
    color: #fe5000;
    display: inline-flex;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    text-transform: uppercase;
}

.pst-mhero-live-dot {
    animation: pst-live-pulse 1.4s ease-in-out infinite;
    background: #fe5000;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
    height: 7px;
    width: 7px;
}

.pst-mhero-status {
    align-items: center;
    border-radius: 20px;
    display: inline-flex;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1;
    padding: 6px 12px;
    text-transform: uppercase;
}

.pst-mhero-status--canceled {
    background: rgba(144, 150, 160, 0.14);
    border: 1px solid rgba(144, 150, 160, 0.38);
    color: rgba(255, 255, 255, 0.72);
}

@keyframes pst-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.6); }
}

/* ── Match body ──────────────────────────────────────────────── */

.pst-match-body {
    padding: 32px 0 56px;
}

.pst-match-data-notice {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e7e7ef;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
    padding: 18px 20px;
}

.pst-match-data-notice strong {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.18px;
    line-height: 1.15;
}

.pst-match-data-notice span {
    color: #66707a;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

/* ── Games section ───────────────────────────────────────────── */

.pst-match-games-section {
    margin-bottom: 40px;
}

/* Game tabs bar */
.pst-game-tabs {
    display: flex;
    gap: 1px;
    margin-bottom: 24px;
    overflow: hidden;
}

.pst-game-tab {
    align-items: center;
    appearance: none;
    background: #f7f7fb;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #222;
    cursor: pointer;
    display: flex;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 15px;
    font-weight: 600;
    gap: 6px;
    height: 56px;
    letter-spacing: -0.15px;
    line-height: 1;
    padding: 0 24px;
    position: relative;
    white-space: nowrap;
}

.pst-game-tab:hover {
    background: #ececf4;
}

.pst-game-tab-label {
    line-height: 1;
}

.pst-game-tab .pst-game-tab-label {
    color: #222;
}

.pst-game-tab {
    background: #fff;
    box-shadow: none;
}

.pst-game-tab.active {
    background: linear-gradient(180deg, #4e3f84 0%, #fe2181 100%);
    box-shadow: 0 1px 0 0 #f25db6 inset, 0 1px 0 0 #ff7676;
    color: #fff;
}

.pst-game-tab.active .pst-game-tab-label {
    color: #fff;
}

.pst-tab-dot {
    animation: pst-live-pulse 1.4s ease-in-out infinite;
    background: #fe5000;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    height: 6px;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 6px;
}

/* Game panel */
.pst-game-panel {
    background: #fff;
    border-radius: 0 0 8px 8px;
    display: none;
    padding: 24px;
}

.pst-game-panel.active {
    display: block;
}

/* 3-column layout: players-l | game-info | players-r */
.pst-game-layout {
    display: grid;
    grid-template-columns: minmax(0, 360px) 180px minmax(0, 360px);
    gap: 16px;
    align-items: start;
    justify-content: center;
}

/* ── Player columns ──────────────────────────────────────────── */

.pst-game-players {
    min-width: 0;
}

.pst-team-players-header {
    align-items: center;
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.pst-game-players--r .pst-team-players-header {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.pst-game-players--r .pst-player-grid {
    justify-content: end;
}

.pst-tph-name {
    color: #1a1a2e;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.pst-tph-logo {
    display: block;
    flex-shrink: 0;
    height: 24px;
    object-fit: contain;
    width: 24px;
}

.pst-player-grid {
    display: grid;
    grid-template-columns: repeat(2, 160px);
    gap: 8px;
    justify-content: start;
}

.pst-player-card {
    min-width: 0;
}

.pst-player-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.pst-player-card a:hover .pst-player-nick {
    color: #fe2181;
}

.pst-player-photo {
    aspect-ratio: 1 / 1;
    background: #f0f0f4;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.pst-player-rating-badge {
    background: #21d06b;
    border-radius: 3px;
    color: #101015;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 10px;
    font-weight: 700;
    left: 6px;
    line-height: 1;
    padding: 3px 4px;
    position: absolute;
    top: 6px;
    z-index: 2;
}

.pst-player-photo img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    width: 100%;
}

.pst-player-photo--nophoto {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    align-items: center;
    display: flex;
    justify-content: center;
}

.pst-player-initial {
    color: rgba(255, 255, 255, 0.35);
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}

/* Flag overlay — bottom-left corner of photo */
.pst-player-flag-overlay {
    border-radius: 2px;
    bottom: 6px;
    height: 10px !important;
    left: 6px;
    object-fit: cover;
    position: absolute;
    top: auto;
    width: 14px !important;
}

.pst-player-nick {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.12px;
    line-height: 1.2;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* ── Game center info ────────────────────────────────────────── */

.pst-game-info {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.pst-game-num {
    color: #9096a0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    line-height: 1;
    text-transform: uppercase;
}

.pst-game-score {
    align-items: baseline;
    display: flex;
    gap: 4px;
    justify-content: center;
}

.pst-gs-num {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
}

.pst-gs-win {
    color: #1a9e44;
}

.pst-gs-lose {
    color: #e03030;
}

.pst-gs-sep {
    color: #9096a0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    margin: 0 2px;
}

.pst-game-vs {
    color: #9096a0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
}

.pst-game-map-img {
    border-radius: 8px;
    overflow: hidden;
    width: 140px;
}

.pst-game-map-img img {
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.pst-game-map-name {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.14px;
    line-height: 1.2;
}

.pst-game-no-data {
    color: #9096a0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 24px 0;
    text-align: center;
}

/* ── Country name in hero ────────────────────────────────────── */

.pst-mhero-country {
    color: rgba(255, 255, 255, 0.55);
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.13px;
    line-height: 1;
}

/* ── Player cards ────────────────────────────────────────────── */

.pst-player-photo--nophoto {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    align-items: center;
    display: flex;
    justify-content: center;
}

.pst-player-initial {
    color: rgba(255, 255, 255, 0.4);
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}

.pst-player-info {
    align-items: center;
    display: flex;
    gap: 4px;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

.pst-player-flag-sm {
    border-radius: 1px;
    flex-shrink: 0;
    height: 10px;
    object-fit: cover;
    width: 14px;
}

.pst-game-winner-label {
    color: #1a9e44;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.13px;
    line-height: 1.2;
    text-align: center;
}

.pst-game-duration {
    color: #9096a0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

/* ── Half scores in game center ──────────────────────────────── */

.pst-game-halves {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.pst-game-half {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.pst-game-half-label {
    color: #9096a0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1;
    min-width: 64px;
    text-align: right;
    text-transform: uppercase;
}

.pst-game-half-scores {
    display: flex;
    gap: 6px;
}

.pst-game-half-num {
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    min-width: 20px;
    text-align: center;
}

.pst-game-half-num--t1 { color: #2962ff; }
.pst-game-half-num--t2 { color: #e03030; }

/* ── Scoreboard section ──────────────────────────────────────── */

.pst-match-scoreboard-section {
    background: transparent;
    border-radius: 0;
    margin-bottom: 8px;
    padding: 0;
}

.pst-match-scoreboard-section .pst-section-title {
    margin-bottom: 0 !important;
}

/* Scoreboard game tabs */
.pst-sb-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    background: #f4f4f9;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.pst-sb-tab {
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #9096a0;
    cursor: pointer;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 600;
    height: 32px;
    margin-top: 12px;
    padding: 0 16px;
}

.pst-sb-tab.active {
    background: linear-gradient(180deg, #4e3f84 0%, #fe2181 100%);
    box-shadow: 0 1px 0 0 #f25db6 inset, 0 1px 0 0 #ff7676;
    border-radius: 6px;
    color: #fff;
}

.pst-sb-panel { display: none; }
.pst-sb-panel.active { display: block; }

.pst-sb-round-head {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    margin: -26px 0 12px;
    min-height: 28px;
}

.pst-sb-round-title,
.pst-sb-round-score,
.pst-sb-round-time {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.22px;
    line-height: 1;
}

.pst-sb-round-title {
    text-align: center;
}

.pst-sb-round-score {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 0 24px;
}

.pst-sb-round-time {
    align-items: center;
    color: #222;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.pst-sb-score--win  { color: #11c85b; }
.pst-sb-score--lose { color: #ff2f43; }

/* Team block */
.pst-sb-team {
    margin-bottom: 24px;
}

.pst-sb-team:last-child {
    margin-bottom: 0;
}

.pst-sb-row {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 72px 120px 72px 100px 72px 72px 72px 100px;
    min-height: 50px;
}

.pst-sb-team-header {
    border-radius: 8px;
    min-height: 56px;
    padding: 0 16px;
}

.pst-sb-team--primary .pst-sb-team-header {
    background: #ffe100;
    color: #222;
}

.pst-sb-team--secondary .pst-sb-team-header {
    background: #222;
    color: #fff;
    margin-top: 0;
}

.pst-sb-team-title {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.pst-sb-team-logo {
    background: #fff;
    border-radius: 7px;
    flex-shrink: 0;
    height: 32px;
    object-fit: contain;
    padding: 4px;
    width: 32px;
}

.pst-sb-team-name {
    color: inherit;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1;
}

.pst-sb-col {
    align-items: center;
    color: inherit;
    display: flex;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
    line-height: 1;
    min-width: 0;
}

/* Player row */
.pst-sb-player {
    background: #fff;
    border-bottom: 4px solid #f4f4f9;
    border-radius: 6px;
    padding: 0 16px;
}

.pst-sb-player:last-child { border-bottom: 0; }

.pst-sb-player-name {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.16px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pst-sb-player-name a {
    color: inherit;
    text-decoration: none;
}

.pst-sb-player-name a:hover { color: #fe2181; }

.pst-sb-flag {
    border-radius: 1px;
    flex-shrink: 0;
    height: 10px;
    object-fit: cover;
    width: 14px;
}

.pst-sb-player .pst-sb-col {
    color: #222;
    font-weight: 500;
}

.pst-sb-col--weapon,
.pst-sb-col--armor {
    font-size: 20px;
}

.pst-sb-col--health {
    gap: 8px;
}

.pst-sb-health-value {
    min-width: 28px;
    text-align: right;
}

.pst-sb-health-bar {
    background: #bdbdbd;
    border-radius: 99px;
    display: block;
    height: 4px;
    overflow: hidden;
    width: 64px;
}

.pst-sb-health-bar span {
    background: #25bf5b;
    display: block;
    height: 100%;
}

/* Lineup fallback */
.pst-sb-lineups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pst-sb-lineup-header {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.pst-stream-link-btn--main span {
    color: #fff;
}

/* ── Game Log section ────────────────────────────────────────── */

.pst-match-gamelog-section {
    background: transparent;
    border-radius: 0;
    margin-bottom: 8px;
    padding: 0;
}

.pst-match-gamelog-section .pst-section-title {
    margin-bottom: 16px !important;
}

.pst-gamelog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pst-gamelog-item {
    background:
        linear-gradient(90deg, rgba(20, 20, 20, 0.94) 0%, rgba(20, 20, 20, 0.78) 48%, rgba(20, 20, 20, 0.88) 100%),
        var(--pst-map-bg, linear-gradient(135deg, #262626, #111));
    background-position: center;
    background-size: cover;
    border-radius: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    min-height: 320px;
    overflow: hidden;
    padding: 28px 32px;
    position: relative;
}

.pst-gamelog-content {
    align-self: end;
    position: relative;
    z-index: 2;
}

.pst-gamelog-kicker {
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.pst-gamelog-map {
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.28px;
    line-height: 1;
    margin-bottom: 18px;
}

.pst-gamelog-map--empty {
    color: rgba(255, 255, 255, 0.72);
}

.pst-gamelog-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
}

.pst-gamelog-event {
    align-items: center;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    line-height: 1.2;
    padding: 8px 10px;
    width: fit-content;
}

.pst-gamelog-event span {
    color: #ffcf2e;
}

.pst-gamelog-event--round {
    background: #168bf2;
    border-color: rgba(255, 255, 255, 0.28);
}

.pst-gamelog-event--win {
    border-color: #ffcf2e;
    color: #ffcf2e;
}

.pst-gamelog-event--muted {
    color: rgba(255, 255, 255, 0.76);
}

.pst-gamelog-minimap {
    align-self: center;
    height: 250px;
    justify-self: end;
    opacity: 0.92;
    position: relative;
    width: 280px;
    z-index: 2;
}

.pst-gamelog-map-shape {
    background: #777;
    position: absolute;
}

.pst-gamelog-map-shape--a {
    clip-path: polygon(8% 2%, 58% 0, 68% 34%, 53% 54%, 64% 86%, 18% 100%, 0 63%);
    height: 230px;
    left: 28px;
    top: 8px;
    width: 160px;
}

.pst-gamelog-map-shape--b {
    clip-path: polygon(10% 10%, 74% 0, 100% 28%, 88% 86%, 36% 100%, 0 72%);
    height: 190px;
    right: 8px;
    top: 22px;
    width: 170px;
}

.pst-gamelog-map-shape--c {
    background: #5d5d5d;
    clip-path: polygon(0 22%, 100% 0, 88% 82%, 16% 100%);
    height: 70px;
    left: 90px;
    top: 92px;
    width: 115px;
}

.pst-gamelog-map-zone {
    align-items: center;
    display: flex;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 11px;
    font-weight: 700;
    height: 56px;
    justify-content: center;
    position: absolute;
    width: 56px;
    z-index: 3;
}

.pst-gamelog-map-zone--ct {
    background: rgba(0, 196, 204, 0.42);
    border: 2px solid #00c4cc;
    color: #77faff;
    left: 0;
    top: 92px;
}

.pst-gamelog-map-zone--t {
    background: rgba(255, 64, 64, 0.22);
    border: 2px solid #ff4d4d;
    color: #ff8585;
    right: 0;
    top: 110px;
}

/* ── Streaming links ─────────────────────────────────────────── */

.pst-match-streaming-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 20px 24px 24px;
}

.pst-match-streaming-section .pst-section-title {
    margin-bottom: 16px !important;
}

.pst-stream-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pst-stream-link-btn {
    align-items: center;
    background: #f4f4f9;
    border-radius: 8px;
    color: #222;
    display: inline-flex;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    gap: 6px;
    height: 44px;
    letter-spacing: -0.14px;
    padding: 0 20px;
    text-decoration: none;
    transition: background 0.12s;
}

.pst-stream-link-btn--main {
    background: linear-gradient(180deg, #4e3f84 -84.06%, #f13464 100%);
    box-shadow: 0 1px 0 0 #f25db6 inset, 0 1px 0 0 #ff7676;
    color: #fff;
}

.pst-stream-link-btn:not(.pst-stream-link-btn--main):hover {
    background: #e9e9ef;
}

.pst-stream-link-btn--main:hover {
    opacity: 0.9;
}

.pst-stream-link-platform {
    font-weight: 700;
}

.pst-stream-link-lang {
    opacity: 0.7;
    font-size: 12px;
}

.pst-stream-link-official {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 2px 6px;
    text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .pst-container {
        padding: 0 16px;
    }

    .pst-tabs-filters {
        gap: 12px;
    }

    .pst-nav-tabs,
    .pst-filters form {
        width: 100%;
    }

    .pst-nav-tab,
    .pst-filter-select,
    .pst-filter-btn {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 140px;
    }

    .pst-tournament-item {
        display: block;
        padding: 12px 16px;
    }

    .pst-tournament-item > * + * {
        margin-top: 8px;
    }

    .pst-meta-item.pst-tier,
    .pst-meta-item.pst-prize,
    .pst-teams-section {
        width: 100%;
        min-width: 0;
        align-items: flex-start;
        text-align: left;
    }

    .pst-teams-section {
        justify-self: auto;
    }

    .pst-teams-icons {
        justify-content: flex-start;
    }

    .pst-partners-layout {
        grid-template-columns: 1fr;
    }

    .pst-partners-main {
        max-width: none;
        order: 1;
    }

    .pst-skin-block {
        width: 100%;
        order: 2;
        margin-top: 16px;
    }

    .pst-partners-layout--has-title .pst-skin-block {
        margin-top: 16px;
    }

    /* ── Match archive mobile ─────────────────── */

    .pst-matches-page {
        padding: 24px 0 40px;
    }

    .pst-match-item {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 16px;
    }

    /* Tournament row full width */
    .pst-match-tournament {
        width: 100%;
    }

    /* Middle: team1 [score] team2 stays as a row */
    .pst-match-middle {
        width: 100%;
    }

    /* Meta: location + date on one row */
    .pst-match-meta {
        width: 100%;
    }

    .pst-match-date {
        text-align: right;
        font-size: 13px;
        white-space: nowrap;
    }

    .pst-match-location-text {
        font-size: 13px;
    }

    /* Per-page */
    .pst-match-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .pst-stage-tabs {
        flex-wrap: wrap;
    }

    .pst-stage-tab {
        min-width: 140px;
    }

    .pst-format-row {
        grid-template-columns: 1fr;
    }

    .pst-format-icon {
        display: none;
    }

    .pst-format-date {
        margin-left: 0;
    }

    .pst-overview-table {
        overflow-x: auto;
    }

    .pst-overview-row {
        min-width: 1200px;
    }

    /* ── Single match mobile ──────────────────── */

    .pst-match-hero {
        padding: 16px 0 28px;
    }

    .pst-mhero {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* On mobile: center everything, teams appear top/bottom around center */
    .pst-mhero-team--l {
        flex-direction: row;
        justify-content: flex-start;
        order: 1;
    }

    .pst-mhero-center {
        order: 2;
        padding: 20px 0 8px;
    }

    .pst-mhero-team--r {
        flex-direction: row-reverse;
        justify-content: flex-start;
        order: 3;
    }

    .pst-mhero-nameblock,
    .pst-mhero-nameblock--r {
        align-items: flex-start;
    }

    .pst-mhero-meta--r {
        flex-direction: row;
    }

    .pst-mhero-name {
        font-size: 20px;
    }

    .pst-mhero-snum {
        font-size: 48px;
    }

    .pst-mhero-logo {
        height: 56px;
        width: 56px;
    }

    .pst-game-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pst-game-info {
        order: -1;
    }

    /* Player grid stays 2 columns on mobile */

    .pst-match-body {
        padding: 24px 0 40px;
    }

    .pst-game-tabs {
        overflow-x: auto;
    }

    .pst-game-panel {
        padding: 16px;
    }

    .pst-match-scoreboard-section,
    .pst-match-gamelog-section,
    .pst-match-streaming-section {
        padding: 16px;
    }

    .pst-sb-round-head {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 0 0 12px;
        text-align: left;
    }

    .pst-sb-round-title,
    .pst-sb-round-score,
    .pst-sb-round-time {
        font-size: 18px;
        justify-content: flex-start;
        padding: 0;
        text-align: left;
    }

    .pst-sb-lineups {
        grid-template-columns: 1fr;
    }

    .pst-sb-row {
        grid-template-columns: minmax(120px, 1fr) 44px 92px 44px 70px 44px 44px 44px 64px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .pst-sb-team-name,
    .pst-sb-player-name,
    .pst-sb-col {
        font-size: 13px;
    }

    .pst-sb-health-bar {
        width: 42px;
    }

    /* Game log mobile */
    .pst-gamelog-item {
        grid-template-columns: 1fr;
        min-height: 420px;
        padding: 22px;
    }

    .pst-gamelog-content {
        align-self: start;
    }

    .pst-gamelog-events {
        max-width: 100%;
    }

    .pst-gamelog-minimap {
        height: 220px;
        justify-self: center;
        margin-top: 18px;
        width: 250px;
    }

    /* Stream links mobile */
    .pst-stream-link-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   TEAM ARCHIVE – Rankings Table
   ═══════════════════════════════════════════════════════════════════════════ */

/* Page wrapper */
.pst-teams-page {
    background: #f4f4f9;
    padding: 32px 0 56px;
    width: 100%;
}

.pst-teams-page .pst-container {
    padding: 0 24px;
}

/* ── Controls row ─────────────────────────────────────────────────────────── */

.pst-teams-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* Region tabs */
.pst-teams-tabs {
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    display: flex;
    gap: 0;
    height: 48px;
    overflow: hidden;
}

.pst-team-tab {
    align-items: center;
    border-radius: 8px;
    color: #222;
    display: flex;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 0 20px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.pst-team-tab:hover {
    color: #000;
}

.pst-team-tab.active {
    background: linear-gradient(180deg, #4e3f84 0%, #fe2181 100%);
    box-shadow: 0 1px 0 0 #f25db6 inset, 0 1px 0 0 #ff7676;
    color: #fff;
}

/* Right controls */
.pst-teams-ctrl-right {
    align-items: center;
    display: flex;
    gap: 8px;
}

.pst-teams-select-wrap {
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0ea;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 6px;
    padding: 8px 12px;
}

.pst-teams-select-wrap > svg {
    pointer-events: none;
}

.pst-teams-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    color: #1a1a2e;
    cursor: pointer;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 600;
    min-width: 28px;
    outline: none;
}

.pst-teams-search-input {
    background: transparent;
    border: none;
    color: #1a1a2e;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    width: 120px;
}

.pst-teams-search-input::placeholder {
    color: #9096a0;
}

.pst-select-chevron {
    flex-shrink: 0;
    pointer-events: none;
    transition: transform 0.18s ease;
}

.pst-teams-select-wrap.is-open .pst-select-chevron {
    transform: rotate(180deg);
}

/* ── Table ────────────────────────────────────────────────────────────────── */

.pst-teams-table-wrap {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Full width — sits outside .pst-container */
    width: 100%;
    margin-bottom: 16px;
}

html body .pst-teams-table {
    border-collapse: separate;
    border-spacing: 0 4px;
    display: table;
    min-width: 800px;
    table-layout: fixed;
    width: 100%;
}

/* ── Table header ─────────────────────────────────────────────────────────── */

.pst-teams-table thead th {
    background: linear-gradient(to bottom, #fe5000, #fe7a35);
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 14px 10px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.pst-teams-table thead th:first-child { border-radius: 8px 0 0 8px; }
.pst-teams-table thead th:last-child  { border-radius: 0 8px 8px 0; }

/* Column widths — from SVG design (sum = 100%) */
.pst-th-place   { width: 8%; }
.pst-th-points  { width: 9%; }
.pst-th-team    { width: 15%; }
.pst-th-region  { width: 12%; }
.pst-th-maps    { width: 6%; }
.pst-th-kd      { width: 11%; }
.pst-th-kdr     { width: 9%; }
.pst-th-players { width: 26%; }
.pst-th-expand  { width: 4%; text-align: center; }

/* ── Table body rows ──────────────────────────────────────────────────────── */

.pst-teams-table tbody tr.pst-tr-main {
    transition: background 0.1s;
}

.pst-teams-table tbody tr.pst-tr-main:hover td {
    background: #f7f7f7;
}

.pst-teams-table tbody td {
    background: #fff;
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 10px;
    vertical-align: middle;
}

.pst-teams-table tbody td:first-child { border-radius: 8px 0 0 8px; }
.pst-teams-table tbody td:last-child  { border-radius: 0 8px 8px 0; }

/* Place */
.pst-td-place {
    color: #9096a0;
    font-weight: 600;
    white-space: nowrap;
}

/* Points */
.pst-td-points {
    font-weight: 700;
    white-space: nowrap;
}

/* Team cell */
.pst-team-cell-link {
    align-items: center;
    display: flex;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.pst-team-cell-logo {
    border-radius: 3px;
    display: block !important;
    flex-shrink: 0;
    height: 28px !important;
    max-width: none !important;
    object-fit: contain;
    width: 28px !important;
}

.pst-team-logo-placeholder {
    align-items: center;
    background: #e8e8f0;
    border-radius: 3px;
    color: #888;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.pst-team-cell-name {
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pst-team-cell-link:hover .pst-team-cell-name {
    color: #fe2181;
}

/* Region cell */
.pst-td-region {
    white-space: nowrap;
}

.pst-td-region-inner {
    align-items: center;
    display: inline-flex;
    gap: 5px;
    vertical-align: middle;
}

.pst-tr-flag {
    border-radius: 2px;
    display: inline-block !important;
    flex-shrink: 0;
    height: 12px !important;
    max-width: none !important;
    object-fit: cover;
    vertical-align: middle;
    width: 16px !important;
}

/* Maps */
.pst-td-maps {
    color: #555;
    white-space: nowrap;
}

/* K-D diff */
.pst-td-kd,
.pst-td-kdr {
    white-space: nowrap;
}

.pst-kd-pos { color: #1a9e44; font-weight: 700; }
.pst-kd-neg { color: #e03030; font-weight: 700; }

/* Players nicknames */
.pst-td-players {
    color: #555;
    font-size: 12px;
    max-width: 260px;
    white-space: normal;
}

.pst-player-nick-inline {
    display: inline-block;
    margin-right: 5px;
    white-space: nowrap;
}

/* Expand button */
.pst-td-expand {
    text-align: center;
    white-space: nowrap;
}

.pst-expand-btn {
    align-items: center;
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    display: inline-flex;
    height: 26px;
    justify-content: center;
    padding: 0;
    width: 26px;
}

.pst-expand-btn svg {
    transition: transform 0.2s ease;
}

.pst-expand-btn.open svg {
    transform: rotate(180deg);
}

/* Empty state */
.pst-td-empty {
    color: #9096a0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    padding: 48px 20px !important;
    text-align: center;
}

/* ── Expanded player row ──────────────────────────────────────────────────── */

.pst-tr-expanded > td {
    background: #f5f5fa;
    border-bottom: 1px solid #e8e8f0;
    padding: 16px 12px;
}

.pst-exp-players {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.pst-exp-player {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    width: 72px;
}

.pst-exp-photo {
    aspect-ratio: 1 / 1;
    background: #e0e0ea;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    width: 72px;
}

.pst-exp-photo img {
    display: block !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: top center;
    width: 100% !important;
}

.pst-exp-photo--nophoto {
    align-items: center;
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
    display: flex;
    justify-content: center;
}

.pst-exp-initial {
    color: rgba(255,255,255,.4);
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.pst-exp-nick {
    color: #333;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.1px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.pst-exp-player:hover .pst-exp-nick {
    color: #fe2181;
}

.pst-exp-rating {
    background: #21d06b;
    border-radius: 3px;
    color: #101015;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 5px;
}

/* ── Per-page controls ────────────────────────────────────────────────────── */

.pst-teams-perpage-row {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.pst-pp-label {
    color: #9096a0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.pst-pp-btns {
    display: flex;
    gap: 2px;
}

.pst-pp-btn {
    border-radius: 4px;
    color: #555;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
}

.pst-pp-btn:hover {
    background: #f0f0f4;
    color: #1a1a2e;
}

.pst-pp-btn.active {
    background: #1a1a2e;
    color: #fff;
}

/* ── Betting section ──────────────────────────────────────────────────────── */

.pst-betting-section {
    margin-top: 48px;
}

/* ── SEO text block ───────────────────────────────────────────────────────── */

.pst-seo-text {
    color: #191b1c;
    font-family: "SF Pro Display", "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    margin-top: 48px;
}

.pst-seo-text p {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0 0 20px;
}

.pst-seo-text p:last-child {
    margin-bottom: 0;
}

/* ── FAQ accordion ────────────────────────────────────────────────────────── */

.pst-faq-section {
    margin-top: 64px;
    padding: 0;
}

.pst-faq-title {
    color: #191b1c;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.42px;
    line-height: 32px;
    margin: 0 0 16px;
}

.pst-faq-item {
    border-bottom: 1px solid #e8e8f0;
}

.pst-faq-q {
    align-items: center;
    appearance: none;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: #191b1c;
    cursor: pointer;
    display: flex;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 16px;
    font-weight: 600;
    gap: 12px;
    justify-content: space-between;
    letter-spacing: -0.16px;
    line-height: 20px;
    list-style: none;
    padding: 16px 0;
    text-align: left;
    width: 100%;
}

.pst-faq-q::-webkit-details-marker {
    display: none;
}

.pst-faq-q::marker {
    content: "";
}

.pst-faq-q span {
    flex: 1;
}

.pst-faq-q:focus-visible {
    outline: 2px solid rgba(24, 204, 147, 0.35);
    outline-offset: 4px;
}

.pst-faq-icon {
    flex-shrink: 0;
    height: 24px;
    transition: transform 0.2s ease;
    width: 24px;
}

.pst-faq-item[open] .pst-faq-icon,
.pst-faq-q[aria-expanded="true"] .pst-faq-icon {
    transform: rotate(180deg);
}

.pst-faq-a {
    color: #444;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    padding: 0 0 16px;
}

.pst-faq-a[hidden] {
    display: none !important;
}

.pst-faq-a p {
    color: inherit;
    margin: 0 0 12px;
    max-width: none;
    text-align: left;
}

.pst-faq-a p:last-child {
    margin-bottom: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .pst-teams-page .pst-container {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .pst-teams-page {
        padding: 20px 0 48px;
    }

    .pst-teams-page .pst-container {
        padding: 0 12px;
    }

    .pst-teams-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pst-teams-ctrl-right {
        width: 100%;
    }

    .pst-teams-search-input {
        min-width: 0;
        width: 100%;
    }

    .pst-teams-select-wrap {
        flex: 1;
    }

    .pst-pp-label {
        display: none;
    }

    /* Hide low-priority columns on mobile */
    .pst-th-kdr,   .pst-td-kdr,
    .pst-th-maps,  .pst-td-maps {
        display: none;
    }

    /* Also hide region and points on very small screens */
    .pst-th-region, .pst-td-region {
        display: none;
    }

    .pst-betting-section {
        margin-top: 32px;
    }

    .pst-seo-text {
        margin-top: 32px;
    }

    .pst-faq-section {
        margin-top: 32px;
    }

    .pst-faq-title {
        font-size: 22px;
    }

    .pst-faq-q {
        font-size: 14px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PLAYER ARCHIVE PAGE  (prefix: pst-pl-*, pst-players-*)
   ══════════════════════════════════════════════════════════════════════════════ */

.pst-players-page {
    background: #f4f4f9;
    min-height: 60vh;
    padding: 32px 0 60px;
}

.pst-players-page .pst-container {
    padding: 0 24px;
}

/* ── Controls row ──────────────────────────────────────────────────────────── */

.pst-players-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* ── Side tabs ─────────────────────────────────────────────────────────────── */

.pst-players-tabs {
    background: #fff;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
}

.pst-player-tab {
    color: #222;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.pst-player-tab:hover {
    background: #f4f4f9;
    color: #222;
}

.pst-player-tab--active {
    background: linear-gradient(90deg, #fe2181, #fe5000);
    color: #fff;
}

/* ── Filters (selects) ─────────────────────────────────────────────────────── */

.pst-players-filters {
    display: flex;
    gap: 10px;
}

.pst-players-select {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid #e0e0e6;
    border-radius: 8px;
    color: #444;
    cursor: pointer;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    height: 38px;
    padding: 0 32px 0 12px;
    -webkit-appearance: none;
    appearance: none;
}

/* ── Table wrapper ─────────────────────────────────────────────────────────── */

.pst-players-table-wrap {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
}

html body .pst-players-table {
    border-collapse: collapse;
    display: table;
    min-width: 700px;
    width: 100%;
}

.pst-players-table thead tr {
    background: linear-gradient(to bottom, #fe5000, #fe7a35);
}

.pst-players-table thead th {
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 10px 12px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.pst-players-table tbody tr {
    border-bottom: 1px solid #f0f0f6;
    transition: background .1s;
}

.pst-players-table tbody tr:last-child { border-bottom: none; }

.pst-players-table tbody tr:hover { background: #fafafa; }

.pst-players-table tbody td {
    color: #333;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    padding: 8px 12px;
    vertical-align: middle;
}

/* ── Column specifics ──────────────────────────────────────────────────────── */

.pst-pl-th-num,  .pst-pl-td-num  { text-align: center; min-width: 36px; }
.pst-pl-th-stat, .pst-pl-td-stat { text-align: center; }

.pst-pl-td-num  { color: #aaa; font-size: 12px; }
.pst-pl-muted   { color: #aaa !important; }
.pst-pl-pos     { color: #19c167; font-weight: 700; }
.pst-pl-neg     { color: #e03030; font-weight: 700; }
.pst-pl-td-empty { padding: 32px; text-align: center; color: #aaa; }
.pst-pl-td-name { color: #888; font-size: 12px; }

/* ── Player cell ───────────────────────────────────────────────────────────── */

.pst-pl-cell {
    align-items: center;
    display: flex;
    gap: 7px;
}

.pst-pl-photo {
    align-items: center;
    background: #e8e8f0;
    border-radius: 50%;
    display: flex;
    flex-shrink: 0;
    height: 34px;
    justify-content: center;
    overflow: hidden;
    width: 34px;
}

.pst-pl-photo img {
    display: block;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover;
    object-position: top center;
    width: 100% !important;
}

.pst-pl-photo span {
    color: #888;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 700;
}

img.pst-pl-flag {
    display: inline-block !important;
    flex-shrink: 0;
    height: 12px !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover;
    vertical-align: middle;
    width: 16px !important;
}

.pst-pl-nick {
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

a.pst-pl-nick:hover { color: #fe2181; }

/* ── Country cell ──────────────────────────────────────────────────────────── */

.pst-pl-country-cell {
    align-items: center;
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

img.pst-pl-flag-lg {
    display: inline-block !important;
    flex-shrink: 0;
    height: 12px !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover;
    vertical-align: middle;
    width: 16px !important;
}

/* ── Team cell ─────────────────────────────────────────────────────────────── */

.pst-pl-team-cell {
    align-items: center;
    display: flex;
    gap: 6px;
}

img.pst-pl-team-logo {
    display: inline-block !important;
    flex-shrink: 0;
    height: 22px !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: contain;
    vertical-align: middle;
    width: 22px !important;
}

.pst-pl-team-name {
    color: #555;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .pst-players-page .pst-container { padding: 0 16px; }
}

@media (max-width: 768px) {
    .pst-players-page .pst-container { padding: 0 12px; }

    .pst-players-controls { flex-direction: column; align-items: flex-start; }

    /* Hide Name(3), Rounds(7), K-D Diff(8) on mobile */
    .pst-players-table th:nth-child(3),
    .pst-players-table td:nth-child(3),
    .pst-players-table th:nth-child(7),
    .pst-players-table td:nth-child(7),
    .pst-players-table th:nth-child(8),
    .pst-players-table td:nth-child(8) {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   SINGLE TEAM PAGE  (prefix: pst-st-*)
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ─────────────────────────────────────────────────────────── */

.pst-single-team {
    min-height: 100vh;
}

/* Global image reset for single-team — override theme's max-width:100%/height:auto */
.pst-single-team img {
    height: auto;
    max-width: 100%;
}

/* ── Breadcrumbs bar (light bg, above hero) ───────────────────────────────── */

.pst-st-top-bar {
    background: #fff;
    padding: 10px 0;
}

.pst-st-top-bar .pst-container {
    padding: 0 24px;
}

.pst-st-top-bar .pst-breadcrumbs {
    margin: 0;
}

/* ── Hero wrapper (gives padding around the card) ─────────────────────────── */

.pst-st-hero-wrap {
    padding: 16px 0 0;
}

.pst-st-hero-wrap .pst-container {
    padding: 0 24px;
}

/* ── Hero card (dark, rounded, inside container) ─────────────────────────── */

.pst-st-hero {
    background: #0d0d1a;
    border-radius: 8px;
    min-height: 160px;
    overflow: hidden;
    position: relative;
}

/* Player photos — right side */
.pst-st-hero-photos {
    bottom: 0;
    display: flex;
    gap: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 3;
}

.pst-st-hero-photo {
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    width: 122px;
}

.pst-st-hero-photo img,
img.pst-st-hero-photo-img {
    display: block;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover;
    object-position: top center;
    width: 100% !important;
}

.pst-st-hero-rating {
    background: #19c167;
    border-radius: 3px;
    color: #111;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 10px;
    font-weight: 700;
    left: 6px;
    line-height: 1;
    padding: 3px 5px;
    position: absolute;
    top: 8px;
    z-index: 2;
}

.pst-st-hero-player-name {
    align-items: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent);
    bottom: 0;
    color: #fff;
    display: flex;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    left: 0;
    min-height: 42px;
    padding: 18px 6px 7px;
    position: absolute;
    right: 0;
    text-align: center;
    z-index: 2;
}

.pst-st-hero-photo:hover .pst-st-hero-player-name,
.pst-st-hero-photo:focus-visible .pst-st-hero-player-name {
    color: #ffcf2e;
}

/* Gradient: dark left → transparent right */
.pst-st-hero-overlay {
    background: linear-gradient(to right, #0d0d1a 35%, rgba(13,13,26,.85) 60%, rgba(13,13,26,.3) 80%, transparent 100%);
    bottom: 0;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

/* Hero content row */
.pst-st-hero-content {
    align-items: center;
    display: flex;
    gap: 24px;
    min-height: 160px;
    padding: 24px 32px;
    position: relative;
    z-index: 2;
}

.pst-st-hero-logo {
    flex-shrink: 0;
}

.pst-st-hero-logo img {
    display: block;
    height: 96px !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: contain;
    width: 96px !important;
}

.pst-st-hero-logo-ph {
    align-items: center;
    background: rgba(255,255,255,.1);
    border-radius: 12px;
    color: rgba(255,255,255,.7);
    display: flex;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 28px;
    font-weight: 700;
    height: 96px;
    justify-content: center;
    width: 96px;
}

.pst-st-hero-info {
    flex: 1;
    min-width: 0;
}

.pst-st-hero-name {
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 12px;
}

.pst-st-hero-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.14px;
    margin-bottom: 8px;
}

.pst-st-hero-country {
    align-items: center;
    color: rgba(255,255,255,.7);
    display: flex;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.pst-st-hero-country span {
    color: rgba(255,255,255,.7);
}

img.pst-st-hero-flag {
    border-radius: 2px;
    display: inline-block !important;
    flex-shrink: 0;
    height: 14px !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover;
    vertical-align: middle;
    width: 20px !important;
}

/* ── Body ─────────────────────────────────────────────────────────────────── */

.pst-st-body {
    background: #f4f4f9;
    padding: 32px 0 64px;
}

.pst-st-body .pst-container {
    padding: 0 24px;
}

.pst-container h2 {
    line-height: 26px;
}

.pst-st-body section {
    padding: 0;
}

/* ── Section titles ───────────────────────────────────────────────────────── */

.pst-st-section-title {
    color: #1a1a2e;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px !important;
}

.pst-st-section-title--mt {
    margin-top: 40px !important;
}

/* ── Two-column grid (Squad + Statistics) ─────────────────────────────────── */

.pst-st-top-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
}

/* ── Shared table styles ──────────────────────────────────────────────────── */

.pst-st-table-wrap {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.pst-st-table-wrap--scroll {
    overflow-x: auto;
}

html body .pst-st-table {
    border-collapse: collapse;
    display: table;
    width: 100%;
}

.pst-st-table thead tr {
    background: linear-gradient(to bottom, #fe5000, #fe7a35);
}

.pst-st-table thead th {
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 10px 14px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.pst-st-table tbody tr {
    border-bottom: 1px solid #f0f0f6;
    transition: background .1s;
}

.pst-st-table tbody tr:last-child {
    border-bottom: none;
}

.pst-st-table tbody tr:hover {
    background: #fafafa;
}

.pst-st-table tbody td {
    color: #333;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    padding: 10px 14px;
    vertical-align: middle;
}

/* Muted / secondary text */
.pst-st-td-muted {
    color: #aaa !important;
    text-align: center;
}

.pst-st-td-date {
    color: #888 !important;
    font-size: 12px !important;
    white-space: nowrap;
}

/* ── Squad table ──────────────────────────────────────────────────────────── */

.pst-st-player-cell {
    align-items: center;
    display: flex;
    gap: 8px;
}

.pst-st-player-photo {
    align-items: center;
    background: #e8e8f0;
    border-radius: 6px;
    display: flex;
    flex-shrink: 0;
    height: 38px;
    justify-content: center;
    overflow: hidden;
    width: 38px;
}

.pst-st-player-photo img {
    display: block;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover;
    object-position: top center;
    width: 100% !important;
}

.pst-st-player-photo span {
    color: #888;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 15px;
    font-weight: 700;
}

img.pst-st-player-flag {
    border-radius: 2px;
    display: inline-block !important;
    flex-shrink: 0;
    height: 12px !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover;
    vertical-align: middle;
    width: 18px !important;
}

.pst-st-player-name {
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

a.pst-st-player-name:hover {
    color: #fe2181;
}

/* ── Status / tier badges ─────────────────────────────────────────────────── */

.pst-st-badge {
    border-radius: 4px;
    display: inline-block;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    padding: 3px 8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pst-st-badge--active {
    background: rgba(25,193,103,.12);
    color: #19c167;
}

.pst-st-badge--inactive {
    background: rgba(224,48,48,.1);
    color: #e03030;
}

.pst-st-tier-badge {
    background: rgba(254,80,0,.1);
    border-radius: 4px;
    color: #fe5000;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 3px 7px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── Statistics table ─────────────────────────────────────────────────────── */

.pst-st-stats-label {
    color: #666 !important;
    font-size: 12px !important;
    white-space: nowrap;
}

.pst-st-stat-val {
    color: #333;
    font-weight: 700;
}

/* Positive / negative values */
.pst-st-pos {
    color: #19c167;
    font-weight: 700;
}

.pst-st-neg {
    color: #e03030;
    font-weight: 700;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */

.pst-st-empty {
    background: #fff;
    border-radius: 12px;
    color: #9096a0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    padding: 32px;
    text-align: center;
}

/* ── Tournament cards (upcoming) ─────────────────────────────────────────── */

.pst-st-tourn-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pst-st-tourn-card {
    align-items: center;
    background: #fff;
    border-radius: 8px;
    color: inherit;
    display: grid;
    gap: 16px;
    grid-template-columns: 58px minmax(0, 1fr) 72px 130px minmax(130px, auto);
    min-height: 78px;
    padding: 12px 18px;
    text-decoration: none;
    transition: box-shadow .15s, transform .15s;
}

.pst-st-tourn-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.pst-st-tourn-header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    min-width: 0;
}

.pst-st-tourn-logo {
    align-items: center;
    background: #f4f4f9;
    border-radius: 8px;
    display: flex;
    flex-shrink: 0;
    height: 48px;
    justify-content: center;
    overflow: hidden;
    width: 48px;
}

.pst-st-tourn-logo img {
    display: block;
    height: 38px !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: contain;
    width: 38px !important;
}

.pst-st-tourn-tier {
    background: rgba(254,80,0,.1);
    border-radius: 4px;
    color: #fe5000;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 3px 7px;
    text-transform: uppercase;
}

.pst-st-tourn-name {
    color: #1a1a2e;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.pst-st-tourn-meta {
    color: #888;
    display: flex;
    flex-direction: row;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    gap: 2px;
}

.pst-st-tourn-footer {
    align-items: center;
    display: contents;
    gap: 12px;
}

.pst-st-tourn-prize {
    color: #1a1a2e;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 18px;
    font-weight: 700;
    grid-column: 4;
}

.pst-st-tourn-teams {
    color: #888;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    grid-column: 5;
}

.pst-st-tourn-participants {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    grid-column: 5;
    grid-row: 1;
    justify-content: flex-end;
    margin-top: 0;
}

.pst-st-tourn-participants img {
    border-radius: 2px;
    display: inline-block !important;
    flex-shrink: 0;
    height: 20px !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: contain;
    width: 20px !important;
}

/* ── Match cards (upcoming fallback) ─────────────────────────────────────── */

.pst-st-match-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pst-st-match-card {
    align-items: center;
    background: #fff;
    border-radius: 10px;
    color: inherit;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 14px 18px;
    text-decoration: none;
    transition: box-shadow .15s;
}

.pst-st-match-card:hover {
    box-shadow: 0 2px 14px rgba(0,0,0,.08);
}

.pst-st-match-date {
    color: #888;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    white-space: nowrap;
}

.pst-st-match-teams {
    align-items: center;
    color: #1a1a2e;
    display: flex;
    flex: 1;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
    min-width: 0;
}

.pst-st-match-vs {
    color: #bbb;
    font-size: 12px;
    font-weight: 400;
}

.pst-st-match-opp-logo {
    border-radius: 2px;
    display: block !important;
    height: 20px !important;
    max-width: none !important;
    object-fit: contain;
    width: 20px !important;
}

.pst-st-match-serie {
    color: #888;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
}

.pst-st-match-format {
    background: #f0f0f6;
    border-radius: 4px;
    color: #555;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    white-space: nowrap;
}

/* ── Matches history table ────────────────────────────────────────────────── */

.pst-st-trend {
    border-radius: 4px;
    display: inline-block;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    min-width: 22px;
    padding: 2px 5px;
    text-align: center;
    text-transform: uppercase;
}

.pst-st-trend--up      { background: rgba(25,193,103,.12);  color: #19c167; }
.pst-st-trend--down    { background: rgba(224,48,48,.1);    color: #e03030; }
.pst-st-trend--upcoming { background: #f0f0f6; color: #bbb; }

.pst-st-team-cell {
    align-items: center;
    display: flex;
    gap: 6px;
}

img.pst-st-cell-logo {
    border-radius: 3px;
    display: inline-block !important;
    flex-shrink: 0;
    height: 24px !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: contain;
    vertical-align: middle;
    width: 24px !important;
}

img.pst-st-cell-flag {
    border-radius: 2px;
    display: inline-block !important;
    flex-shrink: 0;
    height: 12px !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover;
    vertical-align: middle;
    width: 16px !important;
}

.pst-st-opp-name {
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.pst-st-opp-name:hover {
    color: #fe2181;
}

.pst-st-td-event {
    color: #777;
    font-size: 11px !important;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pst-st-score {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.pst-st-score--win  { color: #19c167; }
.pst-st-score--loss { color: #e03030; }

.pst-st-kd {
    color: #555;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    white-space: nowrap;
}

/* ── Tournaments table extras ─────────────────────────────────────────────── */

.pst-st-link-btn {
    background: #f0f0f6;
    border-radius: 5px;
    color: #444;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    text-decoration: none;
    transition: background .12s, color .12s;
    white-space: nowrap;
}

.pst-st-link-btn:hover {
    background: #1a1a2e;
    color: #fff;
}

/* ── Maps table ───────────────────────────────────────────────────────────── */

.pst-st-map-cell {
    align-items: center;
    display: flex;
    gap: 10px;
}

.pst-st-map-thumb {
    background: #2a2a3e;
    border-radius: 4px;
    flex-shrink: 0;
    height: 30px;
    overflow: hidden;
    width: 46px;
}

.pst-st-map-thumb img {
    display: block;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover;
    width: 100% !important;
}

/* Map colour presets */
.pst-st-map-thumb--inferno   { background: linear-gradient(135deg, #8b4513, #d2691e); }
.pst-st-map-thumb--mirage    { background: linear-gradient(135deg, #c9a84c, #8b6914); }
.pst-st-map-thumb--dust2,
.pst-st-map-thumb--dust-2    { background: linear-gradient(135deg, #c4a45a, #7a6035); }
.pst-st-map-thumb--nuke      { background: linear-gradient(135deg, #4a7a4a, #2a4a2a); }
.pst-st-map-thumb--overpass  { background: linear-gradient(135deg, #5a7a9a, #3a5a7a); }
.pst-st-map-thumb--vertigo   { background: linear-gradient(135deg, #6a8a5a, #3a5a3a); }
.pst-st-map-thumb--ancient   { background: linear-gradient(135deg, #7a5a3a, #4a3a2a); }
.pst-st-map-thumb--anubis    { background: linear-gradient(135deg, #b8960c, #8b7006); }
.pst-st-map-thumb--train     { background: linear-gradient(135deg, #5a5a7a, #3a3a5a); }

.pst-st-map-name {
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.pst-st-wr-wrap {
    align-items: center;
    display: flex;
    gap: 8px;
}

.pst-st-wr-bar {
    background: #e8e8f0;
    border-radius: 3px;
    height: 7px;
    overflow: hidden;
    width: 72px;
}

.pst-st-wr-fill {
    border-radius: 3px;
    height: 100%;
    transition: width .3s ease;
}

.pst-st-wr-fill.pst-st-bar--good { background: linear-gradient(90deg, #19c167, #2dd87a); }
.pst-st-wr-fill.pst-st-bar--bad  { background: linear-gradient(90deg, #e03030, #f05050); }

.pst-st-wr-val {
    color: #333;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 700;
    min-width: 38px;
}

.pst-st-last5 {
    align-items: center;
    display: flex;
    gap: 3px;
}

.pst-st-pill {
    align-items: center;
    border-radius: 3px;
    display: inline-flex;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 10px;
    font-weight: 700;
    height: 20px;
    justify-content: center;
    width: 20px;
}

.pst-st-pill--win   { background: rgba(25,193,103,.14); color: #19c167; }
.pst-st-pill--loss  { background: rgba(224,48,48,.1);   color: #e03030; }
.pst-st-pill--empty { background: #f0f0f6;              color: #bbb;    }

/* ── Responsive: 1024px ───────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .pst-st-top-bar .pst-container,
    .pst-st-hero-wrap .pst-container,
    .pst-st-body .pst-container {
        padding: 0 16px;
    }

    .pst-st-hero-photo {
        width: 90px;
    }

    .pst-st-tourn-grid {
        flex-direction: column;
    }
}

/* ── Responsive: 768px ────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .pst-st-hero {
        min-height: 220px;
    }

    .pst-st-top-bar .pst-container,
    .pst-st-hero-wrap .pst-container,
    .pst-st-body .pst-container {
        padding: 0 12px;
    }

    .pst-st-hero-photos {
        opacity: .25;
    }

    .pst-st-hero-photo {
        width: 72px;
    }

    .pst-st-hero-name {
        font-size: 28px;
    }

    .pst-st-hero-logo img {
        height: 68px !important;
        max-height: none !important;
        max-width: none !important;
        width: 68px !important;
    }

    .pst-st-hero-logo-ph {
        font-size: 20px;
        height: 68px;
        width: 68px;
    }

    .pst-st-top-grid {
        grid-template-columns: 1fr;
    }

    .pst-st-tourn-grid {
        flex-direction: column;
    }

    .pst-st-tourn-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .pst-st-tourn-prize,
    .pst-st-tourn-teams,
    .pst-st-tourn-participants {
        grid-column: 2;
        grid-row: auto;
        justify-content: flex-start;
    }

    .pst-st-section-title--mt {
        margin-top: 28px;
    }

    /* Hide lower-priority columns on mobile */
    /* Matches: hide Format (5) and Event (6) */
    .pst-st-matches-table th:nth-child(5),
    .pst-st-matches-table td:nth-child(5),
    .pst-st-matches-table th:nth-child(6),
    .pst-st-matches-table td:nth-child(6) {
        display: none;
    }

    /* Maps: hide Round WR (7) */
    .pst-st-maps-table th:nth-child(7),
    .pst-st-maps-table td:nth-child(7) {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   SINGLE PLAYER PAGE  (prefix: pst-sp-*)
   ══════════════════════════════════════════════════════════════════════════════ */

.pst-sp-page {
    background: #f4f4f9;
    min-height: 60vh;
    padding-bottom: 60px;
}

/* ── Breadcrumbs bar ──────────────────────────────────────────────────────── */

.pst-sp-top-bar {
    background: #fff;
    padding: 10px 0;
}
.pst-sp-top-bar .pst-container { padding: 0 24px; }
.pst-sp-top-bar .pst-breadcrumbs { margin: 0; }

/* ── Hero wrap ────────────────────────────────────────────────────────────── */

.pst-sp-hero-wrap { padding: 16px 0 0; }
.pst-sp-hero-wrap .pst-container { padding: 0 24px; }

/* ── Hero card ────────────────────────────────────────────────────────────── */

.pst-sp-hero {
    align-items: stretch;
    background:
        linear-gradient(90deg, rgba(12, 12, 18, .96) 0%, rgba(12, 12, 18, .86) 45%, rgba(12, 12, 18, .96) 100%),
        radial-gradient(circle at 42% 20%, rgba(255, 184, 0, .12), transparent 32%),
        #0d0d1a;
    border-radius: 16px;
    display: flex;
    gap: 0;
    min-height: 216px;
    overflow: hidden;
    position: relative;
}

/* ── Photo ────────────────────────────────────────────────────────────────── */

.pst-sp-hero-photo {
    align-self: center;
    flex-shrink: 0;
    padding: 32px 0 32px 32px;
    width: 190px;
}
.pst-sp-hero-photo img {
    display: block !important;
    height: auto !important;
    max-height: 280px;
    object-fit: cover;
    object-position: top center;
    width: 190px !important;
}
.pst-sp-hero-photo-ph {
    align-items: center;
    background: #1a1a2e;
    color: #fff;
    display: flex;
    font-size: 52px;
    font-weight: 700;
    height: 280px;
    justify-content: center;
    width: 190px;
}

/* ── Info ─────────────────────────────────────────────────────────────────── */

.pst-sp-hero-info {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    justify-content: space-between;
    min-width: 170px;
    padding: 34px 28px 34px 48px;
}
.pst-sp-hero-team {
    align-items: center;
    display: flex;
    gap: 8px;
    min-height: 28px;
}
.pst-sp-hero-team-link {
    align-items: center;
    color: #fff;
    display: inline-flex;
    gap: 8px;
    text-decoration: none;
}
.pst-sp-hero-team-link:hover .pst-sp-hero-team-name { color: #fe2181; }
.pst-sp-team-logo {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border-radius: 6px;
    color: #fff;
    display: block !important;
    flex-shrink: 0;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 700;
    height: 28px !important;
    justify-content: center;
    object-fit: contain;
    width: 28px !important;
}
.pst-sp-team-logo-ph {
    display: inline-flex !important;
}
.pst-sp-hero-team-name {
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}
.pst-sp-hero-player {
    display: flex;
    flex-direction: column;
}
.pst-sp-nick {
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.1;
    margin: 0 0 4px;
}
.pst-sp-realname {
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}
.pst-sp-meta {
    align-items: center;
    color: #777;
    display: flex;
    font-size: 12px;
    gap: 5px;
}
.pst-sp-meta span { color: #777; }
.pst-sp-meta-sep {
    color: rgba(255,255,255,.32) !important;
    margin: 0 1px;
}
img.pst-sp-flag {
    display: inline-block !important;
    flex-shrink: 0;
    height: 12px !important;
    max-height: none !important;
    max-width: none !important;
    width: 16px !important;
}

/* ── Gauge ────────────────────────────────────────────────────────────────── */

.pst-sp-gauge-wrap {
    align-items: center;
    display: flex;
    flex: 1 1 330px;
    gap: 20px;
    justify-content: center;
    padding: 20px 22px;
}
.pst-sp-gauge-side {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 58px;
}
.pst-sp-gauge-side-label {
    color: #fe5000;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: -0.1px;
    text-align: center;
    white-space: nowrap;
}
.pst-sp-ct-label { color: #43b8ff; }
.pst-sp-gauge-side-val {
    color: #ffb800;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}
.pst-sp-ct-val { color: #43b8ff; }

.pst-sp-gauge-center { position: relative; }
.pst-sp-gauge-svg-wrap {
    height: 112px;
    position: relative;
    width: 174px;
}
.pst-sp-gauge-svg {
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 184, 0, .25));
    width: 174px;
}
.pst-sp-gauge-center--good .pst-sp-gauge-svg {
    filter: drop-shadow(0 0 12px rgba(18, 198, 91, .24));
}
.pst-sp-gauge-center--low .pst-sp-gauge-svg {
    filter: drop-shadow(0 0 12px rgba(255, 92, 92, .24));
}
.pst-sp-gauge-center--na .pst-sp-gauge-svg {
    filter: none;
}

.pst-sp-gauge-vals {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0;
    left: 50%;
    position: absolute;
    text-align: center;
    top: 90%;
    transform: translate(-50%, -50%);
}
.pst-sp-gauge-quality {
    color: #ffb800;
    font-family: "SF Pro Display", "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.12px;
    line-height: 1;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.pst-sp-gauge-center--good .pst-sp-gauge-quality { color: #12c65b; }
.pst-sp-gauge-center--low .pst-sp-gauge-quality { color: #ff5c5c; }
.pst-sp-gauge-center--na .pst-sp-gauge-quality { color: rgba(255,255,255,.62); }
.pst-sp-gauge-main {
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1.14px;
    line-height: 0.95;
}
.pst-sp-gauge-sub {
    color: rgba(255,255,255,.72);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.14px;
    line-height: 1.2;
    text-transform: uppercase;
}

/* ── Right stats ──────────────────────────────────────────────────────────── */

.pst-sp-hero-stats {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    padding: 28px 28px;
}
.pst-sp-hs-grid {
    display: grid;
    gap: 18px 36px;
    grid-template-columns: 1fr 1fr;
    min-width: 300px;
}
.pst-sp-hs-item {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 78px;
    padding: 6px 0 8px;
    text-align: center;
}
.pst-sp-hs-dash {
    color: #fff;
    font-family: "SF Pro Display", "Bai Jamjuree", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}
.pst-sp-hs-title {
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18px;
    line-height: 1;
    text-transform: uppercase;
}
.pst-sp-hs-rule {
    background: rgba(255,255,255,.36);
    display: block;
    height: 2px;
    margin: 4px 0 6px;
    width: 100%;
}
.pst-sp-hs-na {
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.pst-sp-hs-label {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .15px;
    line-height: 1;
    text-transform: uppercase;
}
.pst-sp-hs-val {
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    margin-top: 1px;
}
.pst-sp-hs-meter {
    background: rgba(255,255,255,.22);
    display: block;
    height: 1px;
    margin-top: 3px;
    position: relative;
    width: 100%;
}
.pst-sp-hs-meter::before {
    background: currentColor;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    top: 0;
    width: var(--pst-sp-meter-fill, 0%);
}
.pst-sp-hs-meter::after {
    background: currentColor;
    content: "";
    height: 16px;
    left: var(--pst-sp-meter-tick, 0%);
    position: absolute;
    top: -6px;
    width: 1px;
}
.pst-sp-hs-meter.pst-sp-hs-quality--good { color: #12c65b; }
.pst-sp-hs-meter.pst-sp-hs-quality--okay { color: #ffb800; }
.pst-sp-hs-meter.pst-sp-hs-quality--low { color: #ff5c5c; }
.pst-sp-hs-item:nth-child(n+3) {
    justify-content: flex-end;
    padding-top: 20px;
}
.pst-sp-hs-quality {
    font-family: "SF Pro Display", "Bai Jamjuree", sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}
.pst-sp-hs-quality--good {
    color: #12c65b;
}
.pst-sp-hs-quality--okay {
    color: #ffb800;
}
.pst-sp-hs-quality--low {
    color: #ff5c5c;
}

/* ── Nav tabs ─────────────────────────────────────────────────────────────── */

.pst-sp-nav-wrap {
    background: #fff;
    border-bottom: 1px solid #e8e8f0;
    margin-bottom: 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.pst-sp-nav-wrap .pst-container { padding: 0 24px; }
.pst-sp-nav {
    display: flex;
    margin-top: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pst-sp-nav::-webkit-scrollbar { display: none; }
.pst-sp-nav-tab {
    border-bottom: 2px solid transparent;
    color: #555;
    display: block;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 18px;
    text-decoration: none;
    transition: color .15s;
    white-space: nowrap;
}
.pst-sp-nav-tab:hover { color: #fe5000; }
.pst-sp-nav-tab--active {
    background: linear-gradient(180deg, #4E3F84 0%, #FE2181 100%);
    box-shadow: 0 1px 0 #FF7676, inset 0 1px 0 #F25DB6;
    color: #fff !important;
}

/* ── Body ─────────────────────────────────────────────────────────────────── */

.pst-sp-body .pst-container { padding: 0 24px; }

/* ── Sections ─────────────────────────────────────────────────────────────── */

.pst-sp-section { margin-bottom: 36px; }
.pst-sp-section-title {
    color: #1a1a2e;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0 0 16px;
}

/* ── Statistics grid ──────────────────────────────────────────────────────── */

.pst-sp-stats-wrap {
    background: #fff;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}
.pst-sp-stats-row {
    align-items: center;
    border-bottom: 1px solid #f0f0f6;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
}
.pst-sp-stats-row:nth-child(4n+3),
.pst-sp-stats-row:nth-child(4n+4) { background: #fafafe; }
.pst-sp-stats-label { color: #555; font-size: 13px; }
.pst-sp-stats-val {
    color: #1a1a2e;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 700;
}

/* ── Data tables ──────────────────────────────────────────────────────────── */

.pst-sp-table-wrap {
    background: #fff;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
html body .pst-sp-table {
    border-collapse: collapse;
    display: table;
    min-width: 640px;
    width: 100%;
}
html body .pst-sp-table thead tr {
    background: linear-gradient(to bottom, #fe5000, #fe7a35);
}
html body .pst-sp-table thead th {
    color: #fff;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 11px 14px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}
html body .pst-sp-table tbody tr {
    border-bottom: 1px solid #f0f0f6;
    transition: background .1s;
}
html body .pst-sp-table tbody tr:last-child { border-bottom: none; }
html body .pst-sp-table tbody tr:hover { background: #fafafa; }
html body .pst-sp-table tbody td {
    color: #333;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    padding: 8px 14px;
    vertical-align: middle;
}

.pst-sp-td-date  { color: #888; font-size: 12px; white-space: nowrap; }
.pst-sp-td-num   { color: #aaa; font-size: 12px; text-align: center; width: 36px; }
.pst-sp-td-muted { color: #aaa; }
.pst-sp-td-center { text-align: center; }
.pst-sp-muted    { color: #aaa !important; }

/* ── Team cell ────────────────────────────────────────────────────────────── */

.pst-sp-team-cell {
    align-items: center;
    display: flex;
    gap: 6px;
    white-space: nowrap;
}
.pst-sp-team-link {
    color: inherit;
    text-decoration: none;
}
.pst-sp-team-link:hover span {
    color: #fe2181;
}
.pst-sp-team-cell img {
    display: block !important;
    flex-shrink: 0;
    width: auto;
}
html body img.pst-sp-logo-sm {
    display: block !important;
    height: 20px !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: contain;
    width: 20px !important;
}

/* ── Event cell ───────────────────────────────────────────────────────────── */

.pst-sp-event-cell {
    align-items: center;
    display: flex;
    gap: 8px;
}
html body img.pst-sp-event-logo {
    display: block !important;
    height: 22px !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: contain;
    width: 22px !important;
}
.pst-sp-event-name {
    color: #1a1a2e;
    font-weight: 600;
    text-decoration: none;
}
.pst-sp-event-name:hover { color: #fe5000; }

/* ── Teammates grid ───────────────────────────────────────────────────────── */

.pst-sp-teammates-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
}
.pst-sp-teammate-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.pst-sp-teammate-link {
    color: inherit;
    display: block;
    text-decoration: none;
}
.pst-sp-teammate-link:hover .pst-sp-teammate-name { color: #fe5000; }
.pst-sp-teammate-photo {
    aspect-ratio: 3/4;
    background: #e8e8f0;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.pst-sp-teammate-photo img {
    bottom: 0 !important;
    display: block !important;
    height: 100% !important;
    left: 0 !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover;
    object-position: top center;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
}
.pst-sp-teammate-photo span {
    align-items: center;
    color: #aaa;
    display: flex;
    font-size: 36px;
    font-weight: 700;
    height: 100%;
    justify-content: center;
    width: 100%;
}
.pst-sp-teammate-info {
    align-items: center;
    display: flex;
    gap: 6px;
    padding: 10px 12px;
}
html body .pst-sp-teammate-info img {
    display: inline-block !important;
    flex-shrink: 0;
    height: 12px !important;
    max-height: none !important;
    max-width: none !important;
    width: 16px !important;
}
.pst-sp-teammate-name {
    color: #1a1a2e;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 13px;
    font-weight: 700;
    transition: color .15s;
}
.pst-sp-empty {
    background: #fff;
    border-radius: 8px;
    color: #7e8b98;
    font-size: 14px;
    font-weight: 600;
    padding: 18px 20px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .pst-sp-hero-wrap .pst-container,
    .pst-sp-nav-wrap .pst-container,
    .pst-sp-body .pst-container { padding: 0 16px; }
    .pst-sp-hs-grid { gap: 10px 16px; }
    .pst-sp-hs-val { font-size: 16px; }
}

@media (max-width: 768px) {
    .pst-sp-hero-wrap .pst-container,
    .pst-sp-nav-wrap .pst-container,
    .pst-sp-body .pst-container { padding: 0 12px; }

    .pst-sp-hero { flex-wrap: wrap; min-height: auto; }
    .pst-sp-hero-photo { width: 120px; }
    .pst-sp-hero-photo img { width: 120px !important; }
    .pst-sp-gauge-wrap { border-right: none; border-top: 1px solid #1e1e30; flex: 0 0 100%; padding: 16px; }
    .pst-sp-hero-stats  { border-top: 1px solid #1e1e30; flex: 0 0 100%; padding: 16px 20px; }
    .pst-sp-hs-grid { grid-template-columns: repeat(4, 1fr); }

    .pst-sp-stats-wrap { grid-template-columns: 1fr; }

    .pst-sp-teammates-grid { grid-template-columns: repeat(2, 1fr); }
}
