/* ============================================================
   PLAYER TRACKING — HEADER
   ============================================================ */

.yoz-player-tracking-header {
    position: relative;

    min-height: 326px;

    background-image: url("../images/player-tracking/woz-player-tracking-header-2-7yfAPMp.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-bottom: 1px solid rgba(184, 134, 53, 0.35);

    overflow: visible;
}


/* ============================================================
   HEADER MAIN
   ============================================================ */

.yoz-player-tracking-header-main {
    position: relative;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    min-height: 250px;

    padding: 34px 42px 30px;
}


/* ============================================================
   HEADER CONTENT
   ============================================================ */

.yoz-player-tracking-header-content {
    position: relative;
    z-index: 1;

    max-width: 760px;
}


/* ============================================================
   BREADCRUMB
   ============================================================ */

.yoz-player-tracking-breadcrumb {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 18px;

    font-size: 12px;
    letter-spacing: 0.03em;

    color: rgba(255, 255, 255, 0.48);
}

.yoz-player-tracking-breadcrumb a {
    color: rgba(255, 255, 255, 0.58);

    text-decoration: none;

    transition: color 0.2s ease;
}

.yoz-player-tracking-breadcrumb a:hover {
    color: #b88635;
}

.yoz-player-tracking-breadcrumb span {
    color: rgba(184, 134, 53, 0.65);
}

.yoz-player-tracking-breadcrumb strong {
    color: rgba(255, 255, 255, 0.72);

    font-weight: 500;
}


/* ============================================================
   TITLE
   ============================================================ */

.yoz-player-tracking-title h1 {
    margin: 0;

    font-family: "Cinzel", serif;

    font-size: clamp(25px, 2vw, 34px);

    font-weight: 600;
    line-height: 1.15;

    letter-spacing: 0.075em;

    color: #d6a94a;

    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.45);
}

.yoz-player-tracking-title p {
    margin: 9px 0 0;

    font-size: 14px;
    line-height: 1.5;

    color: rgba(255, 255, 255, 0.68);
}


/* ============================================================
   PROFILE
   ============================================================ */

.yoz-player-tracking-profile {
    position: relative;
    z-index: 3;

    display: flex;
    align-items: center;

    flex: 0 0 auto;

    gap: 11px;

    min-width: 190px;

    margin-top: 0;

    padding: 9px 12px;

    border: 1px solid rgba(184, 134, 53, 0.32);

    background: rgba(5, 13, 24, 0.72);

    border-radius: 8px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.18);
}

.yoz-player-tracking-profile-emblem {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border: 1px solid rgba(184, 134, 53, 0.48);

    border-radius: 50%;

    font-family: "Cinzel", serif;
    font-size: 15px;

    color: #c99a3d;

    background: rgba(184, 134, 53, 0.06);
}

.yoz-player-tracking-profile-info {
    min-width: 0;
}

.yoz-player-tracking-profile strong {
    display: block;

    font-size: 13px;
    font-weight: 600;

    color: rgba(255, 255, 255, 0.90);
}

.yoz-player-tracking-profile small {
    display: block;

    margin-top: 3px;

    font-size: 11px;

    color: rgba(184, 134, 53, 0.82);
}

.yoz-player-tracking-profile-chevron {
    margin-left: auto;

    font-size: 18px;
    line-height: 1;

    color: rgba(184, 134, 53, 0.82);
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.yoz-player-tracking-navigation {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 0 42px;
}


/* ============================================================
   TABS
   ============================================================ */

.yoz-player-tracking-tabs {
    display: flex;
    align-items: stretch;

    width: 100%;
    height: 76px;

    background: rgba(5, 18, 31, 0.96);

    border: 1px solid rgba(103, 135, 169, 0.32);

    border-radius: 8px;

    overflow: hidden;
}


/* ============================================================
   TAB
   ============================================================ */

.yoz-player-tracking-tab {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1 1 0;

    min-width: 0;

    padding: 0 20px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    white-space: nowrap;

    border-right: 1px solid rgba(255, 255, 255, 0.07);

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.yoz-player-tracking-tab:last-child {
    border-right: none;
}

.yoz-player-tracking-tab:hover {
    color: rgba(255, 255, 255, 0.90);

    background: rgba(255, 255, 255, 0.025);
}


/* ============================================================
   ACTIVE TAB
   ============================================================ */

.yoz-player-tracking-tab.active {
    color: #ffffff;

    background: rgba(112, 55, 190, 0.30);

    border-left: 1px solid rgba(151, 79, 255, 0.55);
    border-right: 1px solid rgba(151, 79, 255, 0.55);

    box-shadow:
        inset 0 0 28px rgba(128, 57, 220, 0.24),
        0 0 18px rgba(128, 57, 220, 0.12);
}

.yoz-player-tracking-tab.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 3px;

    background: #9b4dff;

    box-shadow:
        0 0 8px rgba(155, 77, 255, 0.90),
        0 0 18px rgba(155, 77, 255, 0.50);
}

.yoz-player-tracking-tab.active::before {
    content: "";

    position: absolute;

    width: 8px;
    height: 8px;

    left: 50%;
    bottom: -4px;

    transform: translateX(-50%) rotate(45deg);

    background: #c77dff;

    box-shadow:
        0 0 8px rgba(199, 125, 255, 0.90),
        0 0 14px rgba(155, 77, 255, 0.60);

    z-index: 2;
}


/* ============================================================
   DISABLED TABS
   ============================================================ */

.yoz-player-tracking-tab.disabled {
    cursor: default;

    color: rgba(255, 255, 255, 0.28);
}

.yoz-player-tracking-tab.disabled:hover {
    color: rgba(255, 255, 255, 0.28);

    background: transparent;
}


/* ============================================================
   PLAYER DETAIL
   ============================================================ */

.yoz-player-tracking-content {
    min-width: 0;

    margin: 26px 24px 38px;
}

.yoz-player-tracking-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 0.8fr)) minmax(230px, 1.45fr) auto;
    align-items: end;
    gap: 14px;

    min-width: 0;

    margin-bottom: 16px;
}

.yoz-player-tracking-filter {
    align-self: start;

    min-width: 0;
}

.yoz-player-tracking-filter label,
.yoz-player-tracking-filter-label {
    display: block;

    margin-bottom: 6px;

    color: var(--yoz-text-soft);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.yoz-player-tracking-filter select,
.yoz-player-tracking-filter input,
.yoz-player-tracking-filter-fixed-value {
    width: 100%;
    height: 38px;
    box-sizing: border-box;

    padding: 8px 11px;

    border: 1px solid rgba(103, 135, 169, 0.32);
    border-radius: 6px;

    color: var(--yoz-text);

    font: inherit;
    font-size: 13px;

    background: rgba(7, 19, 33, 0.84);
}

.yoz-player-tracking-filter-fixed-value {
    display: flex;
    align-items: center;

    margin: 0;

    color: rgba(241, 243, 247, 0.78);
}

.yoz-player-tracking-filter select {
    cursor: pointer;
}

.yoz-player-tracking-filter select:focus,
.yoz-player-tracking-filter input:focus {
    outline: none;

    border-color: rgba(200, 155, 60, 0.70);

    box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.12);
}

.yoz-player-tracking-filter input::placeholder {
    color: rgba(154, 168, 186, 0.72);
}

.yoz-player-tracking-filters-reset {
    min-height: 38px;

    padding: 8px 11px;

    border: 1px solid rgba(200, 155, 60, 0.38);
    border-radius: 6px;

    color: var(--yoz-gold-light);

    font: inherit;
    font-size: 12px;
    font-weight: 600;

    background: rgba(200, 155, 60, 0.08);
    cursor: pointer;
}

.yoz-player-tracking-filters-reset:hover,
.yoz-player-tracking-filters-reset:focus-visible {
    border-color: rgba(200, 155, 60, 0.70);

    background: rgba(200, 155, 60, 0.15);
}

.yoz-player-detail-card {
    min-width: 0;

    overflow: hidden;

    border: 1px solid rgba(103, 135, 169, 0.28);
    border-radius: 9px;

    background:
        linear-gradient(145deg, rgba(14, 34, 54, 0.90), rgba(7, 19, 33, 0.96));

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 14px 30px rgba(0, 0, 0, 0.16);
}

.yoz-player-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 17px 20px 15px;

    border-bottom: 1px solid rgba(103, 135, 169, 0.22);
}

.yoz-player-detail-header h2 {
    margin: 0;

    color: var(--yoz-gold-light);

    font-family: "Cinzel", serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.035em;
}

.yoz-player-detail-header p {
    margin: 5px 0 0;

    color: var(--yoz-text-soft);

    font-size: 12px;
}

.yoz-player-detail-header p strong {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
}

.yoz-player-detail-count {
    flex: 0 0 auto;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;

    padding: 6px 10px;

    border: 1px solid rgba(200, 155, 60, 0.28);
    border-radius: 5px;

    color: rgba(227, 189, 99, 0.90);

    font-size: 11px;
    font-weight: 600;
}

.yoz-player-detail-count > span {
    white-space: nowrap;
}

.yoz-player-detail-count small {
    color: rgba(230, 238, 249, 0.64);

    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.yoz-player-detail-table-wrapper {
    max-width: 100%;
    max-height: 620px;

    overflow: auto;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
}

.yoz-player-detail-table {
    width: 100%;
    min-width: 520px;

    border-collapse: collapse;

    color: var(--yoz-text);
    font-size: 13px;
}

.yoz-player-detail-table--cycles-1 {
    min-width: 830px;
}

.yoz-player-detail-table--cycles-2 {
    min-width: 990px;
}

.yoz-player-detail-table--cycles-3 {
    min-width: 1150px;
}

.yoz-player-detail-table th,
.yoz-player-detail-table td {
    padding: 13px 16px;

    border-right: 1px solid rgba(103, 135, 169, 0.15);
    border-bottom: 1px solid rgba(103, 135, 169, 0.17);

    text-align: left;
    white-space: nowrap;
}

.yoz-player-detail-table th:last-child,
.yoz-player-detail-table td:last-child {
    border-right: none;
}

.yoz-player-detail-table thead th {
    padding-top: 12px;
    padding-bottom: 12px;

    background: rgba(28, 55, 82, 0.54);

    color: rgba(230, 238, 249, 0.80);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.yoz-player-detail-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.yoz-player-detail-table .yoz-player-detail-cycle-heading {
    border-bottom-color: rgba(200, 155, 60, 0.28);

    color: var(--yoz-gold-light);
    text-align: center;
}

.yoz-player-detail-table .yoz-player-detail-metric-heading {
    color: rgba(230, 238, 249, 0.66);
    text-align: center;
}

.yoz-player-detail-table .yoz-player-detail-evolution-heading {
    color: rgba(230, 238, 249, 0.80);
    text-align: center;
}

.yoz-player-detail-table .yoz-player-detail-status-heading {
    text-align: center;
}

.yoz-player-detail-evolution-heading > span,
.yoz-player-detail-evolution-heading > small {
    display: block;
}

.yoz-player-detail-evolution-heading > small {
    margin-top: 3px;

    color: var(--yoz-text-soft);

    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0;
}

.yoz-player-detail-table .yoz-player-detail-cycle-value {
    min-width: 82px;

    text-align: center;
}

.yoz-player-detail-table .yoz-player-detail-evolution-value {
    min-width: 100px;

    text-align: center;
}

.yoz-player-detail-table .yoz-player-detail-status-value {
    min-width: 150px;

    text-align: center;
}

.yoz-player-detail-evolution {
    font-weight: 700;
}

.yoz-player-detail-evolution--positive {
    color: var(--yoz-green);
}

.yoz-player-detail-evolution--negative {
    color: var(--yoz-red);
}

.yoz-player-detail-evolution--neutral {
    color: var(--yoz-text-soft);
}

.yoz-player-detail-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 4px 9px;

    border: 1px solid transparent;
    border-radius: 5px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.yoz-player-detail-status--positive {
    border-color: rgba(50, 201, 139, 0.38);

    color: var(--yoz-green);

    background: rgba(50, 201, 139, 0.14);
}

.yoz-player-detail-status--negative {
    border-color: rgba(230, 91, 104, 0.40);

    color: var(--yoz-red);

    background: rgba(230, 91, 104, 0.14);
}

.yoz-player-detail-status--neutral {
    border-color: rgba(154, 168, 186, 0.32);

    color: var(--yoz-text-soft);

    background: rgba(154, 168, 186, 0.10);
}

.yoz-player-detail-status--insufficient {
    border-color: rgba(154, 168, 186, 0.20);

    color: rgba(154, 168, 186, 0.76);

    background: rgba(154, 168, 186, 0.06);
}

.yoz-player-detail-table tbody tr:last-child th,
.yoz-player-detail-table tbody tr:last-child td {
    border-bottom: none;
}

.yoz-player-detail-table tbody tr {
    transition: background-color 0.2s ease;
}

.yoz-player-detail-table tbody tr:hover {
    background: rgba(105, 145, 188, 0.06);
}

.yoz-player-detail-table .yoz-player-detail-number {
    width: 52px;
    box-sizing: border-box;

    color: var(--yoz-text-soft);
    text-align: center;
}

.yoz-player-detail-name {
    min-width: 230px;

    color: rgba(255, 255, 255, 0.93);
    font-weight: 600;
}

.yoz-player-detail-player-name {
    vertical-align: middle;
}

.yoz-player-detail-membership-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-left: 7px;
    padding: 3px 7px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    vertical-align: middle;
    white-space: nowrap;
}

.yoz-player-detail-membership-badge--left {
    border-color: rgba(230, 91, 104, 0.40);

    color: var(--yoz-red);

    background: rgba(230, 91, 104, 0.14);
}

.yoz-player-detail-membership-badge--new {
    border-color: rgba(50, 201, 139, 0.38);

    color: var(--yoz-green);

    background: rgba(50, 201, 139, 0.14);
}

.yoz-player-detail-membership-badge--inactive {
    border-color: rgba(154, 168, 186, 0.32);

    color: var(--yoz-text-soft);

    background: rgba(154, 168, 186, 0.10);
}

.yoz-player-detail-emblem {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    margin-right: 10px;

    border: 1px solid rgba(200, 155, 60, 0.52);
    border-radius: 50%;

    color: var(--yoz-gold-light);

    font-family: "Cinzel", serif;
    font-size: 12px;
    font-weight: 700;

    background: rgba(200, 155, 60, 0.08);
    box-shadow: inset 0 0 8px rgba(200, 155, 60, 0.10);
}

.yoz-player-detail-guard {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;

    padding: 4px 9px;

    border: 1px solid rgba(151, 79, 255, 0.34);
    border-radius: 999px;

    color: #d1aaff;

    font-size: 12px;
    font-weight: 700;

    background: rgba(112, 55, 190, 0.20);
}

.yoz-player-detail-guard--g6 {
    border-color: rgba(50, 201, 139, 0.38);

    color: var(--yoz-green);

    background: rgba(50, 201, 139, 0.14);
}

.yoz-player-detail-guard--g7 {
    border-color: rgba(74, 168, 255, 0.40);

    color: #4aa8ff;

    background: rgba(38, 105, 170, 0.18);
}

.yoz-player-detail-guard--g8 {
    border-color: rgba(230, 91, 104, 0.40);

    color: var(--yoz-red);

    background: rgba(230, 91, 104, 0.14);
}

.yoz-player-detail-guard--g9 {
    border-color: rgba(166, 108, 255, 0.42);

    color: var(--yoz-violet);

    background: rgba(166, 108, 255, 0.15);
}

.yoz-player-detail-empty {
    color: rgba(154, 168, 186, 0.74);
}

.yoz-player-detail-table .yoz-player-detail-no-results {
    padding: 28px;

    color: var(--yoz-text-soft);
    text-align: center;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {

    .yoz-player-tracking-header {
        min-height: 300px;
    }

    .yoz-player-tracking-header-main {
        min-height: 224px;

        padding: 28px 26px 30px;
    }

    .yoz-player-tracking-navigation {
        padding: 0 26px;
    }

    .yoz-player-tracking-profile {
        min-width: 165px;
    }

    .yoz-player-tracking-content {
        margin-right: 26px;
        margin-left: 26px;
    }

    .yoz-player-tracking-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yoz-player-tracking-filters-reset {
        justify-self: start;
    }
}


@media (max-width: 680px) {

    .yoz-player-tracking-header {
        min-height: 390px;
    }

    .yoz-player-tracking-header-main {
        display: block;

        min-height: 314px;

        padding: 24px 20px 30px;
    }

    .yoz-player-tracking-profile {
        width: auto;

        margin-top: 24px;
    }

    .yoz-player-tracking-title h1 {
        font-size: 24px;
    }

    .yoz-player-tracking-navigation {
        padding: 0 12px;
    }

    .yoz-player-tracking-tabs {
        height: 70px;

        overflow-x: auto;
    }

    .yoz-player-tracking-tab {
        flex: 0 0 auto;

        min-width: 150px;

        padding: 0 14px;
    }

    .yoz-player-tracking-content {
        margin: 20px 12px 30px;
    }

    .yoz-player-tracking-filters {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;

        margin-bottom: 14px;
    }

    .yoz-player-detail-header {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;

        padding: 15px;
    }

    .yoz-player-detail-count {
        margin-top: 2px;
    }

    .yoz-player-detail-table-wrapper {
        max-height: none;

        overflow-x: auto;
        overflow-y: visible;

        overscroll-behavior-x: contain;
        touch-action: pan-x;
    }

    .yoz-player-detail-table thead {
        position: static;
    }
}
