/* ============================================================
   FAMILY MAN V008 — LIVE ROSTER / FORMATION
   ============================================================ */

.roster-password-input {
    position: relative;
    min-width: 0;
}

.roster-password-input > input {
    width: 100%;
    min-height: 42px;
    padding: 0 48px 0 11px !important;
    color: #08182d !important;
    -webkit-text-fill-color: #08182d !important;
    caret-color: #08182d !important;
    background: #fff !important;
}

.roster-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: #fff2d6;
    color: #8c6009;
    cursor: pointer;
}

.roster-password-toggle svg {
    width: 17px;
    height: 17px;
}

.roster-password-toggle .eye-closed {
    display: none;
}

.roster-password-toggle.is-visible .eye-open {
    display: none;
}

.roster-password-toggle.is-visible .eye-closed {
    display: block;
}

.live-formation {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #d8dee6;
    border-radius: 15px;
    background: #fff;
}

.live-formation-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.live-formation-heading h3,
.roster-pool-heading h3 {
    margin: 5px 0 0;
    color: #08182d;
    font-size: 1rem;
    letter-spacing: -.025em;
}

.live-formation-heading p {
    margin: 5px 0 0;
    color: #697485;
    font-size: .67rem;
    line-height: 1.5;
}

.live-formation-heading > small {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #f3f5f7;
    color: #697485;
    font-size: .61rem;
    font-weight: 850;
    white-space: nowrap;
}

.formation-team-tabs {
    display: flex;
    gap: 7px;
    margin-top: 13px;
    padding-bottom: 3px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.formation-team-tabs button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 0 11px;
    border: 1px solid #d8dee6;
    border-radius: 10px;
    background: #f8f9fb;
    color: #08182d;
    font: inherit;
    font-size: .66rem;
    font-weight: 850;
    cursor: pointer;
}

.formation-team-tabs button i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--team-color);
    box-shadow: 0 0 0 2px rgba(8,24,45,.06);
}

.formation-team-tabs button.is-active {
    border-color: #d59816;
    background: #fff7e4;
    color: #8b6009;
}

.formation-team-panel {
    margin-top: 11px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--team-color) 28%, #d8dee6);
    border-radius: 13px;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--team-color) 5%, #ffffff),
            #ffffff 110px
        );
}

.formation-team-panel[hidden] {
    display: none !important;
}

.formation-team-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.formation-team-title h4 {
    margin: 4px 0 0;
    color: #08182d;
    font-size: .9rem;
}

.formation-team-title > small {
    color: #697485;
    font-size: .62rem;
}

.team-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #697485;
    font-size: .61rem;
    font-weight: 800;
}

.team-color-chip i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--team-color);
}

.formation-layout {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(260px, 1.1fr);
    gap: 13px;
    align-items: stretch;
    margin-top: 12px;
}

.mini-pitch {
    min-height: 430px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.82);
    border-radius: 14px;
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 50%,
            transparent 50%
        ),
        #277748;
    background-size: 66px 100%;
    box-shadow:
        inset 0 0 0 1px rgba(8,24,45,.10);
}

.mini-pitch::before {
    content: "";
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 5px;
    pointer-events: none;
}

.pitch-halfway {
    position: absolute;
    top: 50%;
    left: 15px;
    right: 15px;
    border-top: 1px solid rgba(255,255,255,.78);
}

.pitch-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 50%;
}

.pitch-box {
    position: absolute;
    left: 50%;
    width: 45%;
    height: 17%;
    transform: translateX(-50%);
    border: 1px solid rgba(255,255,255,.78);
}

.pitch-box-top {
    top: 15px;
    border-top: 0;
}

.pitch-box-bottom {
    bottom: 15px;
    border-bottom: 0;
}

.formation-player {
    position: absolute;
    z-index: 2;
    width: 62px;
    transform: translate(-50%, -50%);
    text-align: center;
}

.formation-player > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border: 3px solid rgba(255,255,255,.92);
    border-radius: 50%;
    background: var(--team-color);
    color: var(--team-text);
    box-shadow: 0 4px 12px rgba(8,24,45,.24);
    font-size: .59rem;
    font-weight: 950;
}

.formation-player > small {
    display: block;
    max-width: 78px;
    margin: 3px auto 0;
    padding: 2px 4px;
    overflow: hidden;
    border-radius: 5px;
    background: rgba(3,14,27,.78);
    color: #fff;
    font-size: .54rem;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.formation-player-list {
    overflow: hidden;
    border: 1px solid #d8dee6;
    border-radius: 11px;
    background: #fff;
}

.formation-list-row {
    min-height: 52px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #e3e7ed;
}

.formation-list-row:last-child {
    border-bottom: 0;
}

.formation-list-number {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--team-color);
    color: var(--team-text);
    font-size: .58rem;
    font-weight: 900;
}

.formation-list-row strong,
.formation-list-row small {
    display: block;
}

.formation-list-row strong {
    color: #08182d;
    font-size: .69rem;
}

.formation-list-row small {
    margin-top: 2px;
    color: #697485;
    font-size: .57rem;
}

.formation-empty {
    padding: 24px 16px;
    color: #697485;
    font-size: .66rem;
    text-align: center;
}

.formation-not-published {
    margin-top: 14px;
    padding: 13px 14px;
    border: 1px dashed #cbd2dc;
    border-radius: 12px;
    background: #f8f9fb;
}

.formation-not-published strong,
.formation-not-published small {
    display: block;
}

.formation-not-published strong {
    margin-top: 4px;
    color: #08182d;
    font-size: .76rem;
}

.formation-not-published small {
    margin-top: 4px;
    color: #697485;
    font-size: .63rem;
    line-height: 1.5;
}

.roster-pool-heading {
    margin-top: 16px;
}

@media (max-width: 800px) {
    .formation-layout {
        grid-template-columns: 1fr;
    }

    .mini-pitch {
        min-height: 410px;
    }
}

@media (max-width: 520px) {
    .live-formation {
        padding: 13px;
    }

    .formation-team-panel {
        padding: 10px;
    }

    .mini-pitch {
        min-height: 390px;
    }

    .formation-player {
        width: 54px;
    }

    .formation-player > span {
        width: 34px;
        height: 34px;
    }

    .formation-player > small {
        max-width: 62px;
    }
}


/* ============================================================
   FAMILY MAN V009 — ROSTER ORDER / SPACING
   ============================================================ */

.roster-pool-heading {
    margin-top: 16px;
    margin-bottom: 9px;
}

.roster-role-grid + .live-formation,
.roster-role-grid + .formation-not-published {
    margin-top: 16px;
}

.formation-not-published {
    margin-bottom: 0;
}


/* FAMILY MAN V011 — FORMATION STALE */
.formation-stale-note {
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px solid rgba(213,152,22,.24);
    border-radius: 11px;
    background: #fff7e4;
}

.formation-stale-note strong,
.formation-stale-note span {
    display: block;
}

.formation-stale-note strong {
    color: #8c6009;
    font-size: .7rem;
}

.formation-stale-note span {
    margin-top: 3px;
    color: #756544;
    font-size: .61rem;
    line-height: 1.45;
}

/* ============================================================
   FAMILY MAN V018.6.8 — PUBLIC MATCH CENTER
   ============================================================ */

.match-center {
    margin-top: 18px;
}

.match-center-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-top: 14px;
    padding: 5px;
    border: 1px solid #dde3ea;
    border-radius: 12px;
    background: #f4f6f8;
}

.match-center-tabs button {
    min-height: 39px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #687589;
    font: inherit;
    font-size: .66rem;
    font-weight: 900;
    cursor: pointer;
}

.match-center-tabs button.is-active {
    background: #fff;
    color: #08182d;
    box-shadow: 0 2px 8px rgba(8,24,45,.08);
}

.match-center-panel {
    margin-top: 12px;
}

.match-center-panel[hidden] {
    display: none !important;
}

.formation-pitch-logo {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: min(38%, 170px);
    max-height: 28%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    opacity: .12;
    filter: grayscale(1) brightness(2.3);
    pointer-events: none;
    user-select: none;
}

.match-center-empty {
    min-height: 150px;
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 24px;
    border: 1px dashed #d8dee6;
    border-radius: 12px;
    background: #f8f9fb;
    color: #687589;
    text-align: center;
}

.match-center-empty strong,
.match-center-empty span {
    display: block;
}

.match-center-empty strong {
    color: #08182d;
    font-size: .78rem;
}

.match-center-empty span {
    font-size: .64rem;
    line-height: 1.55;
}

.match-score-list {
    display: grid;
    gap: 8px;
}

.match-score-row {
    display: grid;
    grid-template-columns: 105px minmax(140px, 1fr) 104px minmax(140px, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 74px;
    padding: 10px 13px;
    border: 1px solid #dfe4ea;
    border-radius: 12px;
    background: #fff;
}

.match-score-row.is-live {
    border-color: rgba(213,152,22,.7);
    background: #fffaf0;
    box-shadow: 0 0 0 2px rgba(213,152,22,.10);
}

.match-score-meta strong,
.match-score-meta span,
.match-score-meta small {
    display: block;
}

.match-score-meta strong {
    color: #08182d;
    font-size: .7rem;
}

.match-score-meta span {
    margin-top: 3px;
    color: #687589;
    font-size: .61rem;
    font-weight: 800;
}

.match-score-meta small {
    width: fit-content;
    margin-top: 5px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #d59816;
    color: #fff;
    font-size: .5rem;
    font-weight: 950;
}

.match-score-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #08182d;
    font-size: .72rem;
}

.match-score-team.is-away {
    justify-content: flex-end;
    text-align: right;
}

.match-score-team i,
.match-standing-team i,
.goalscorer-list article > i {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--team-color);
    box-shadow: 0 0 0 2px rgba(8,24,45,.06);
}

.match-score-value {
    display: grid;
    grid-template-columns: 1fr 12px 1fr;
    align-items: center;
    gap: 4px;
    color: #08182d;
    text-align: center;
}

.match-score-value strong {
    font-size: 1.35rem;
    font-weight: 950;
}

.match-score-value span {
    color: #9aa4b2;
    font-size: .9rem;
    font-weight: 900;
}

.match-standings-wrap {
    overflow-x: auto;
    border: 1px solid #dfe4ea;
    border-radius: 12px;
    background: #fff;
}

.match-standings-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.match-standings-table th,
.match-standings-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #e5e9ee;
    color: #536174;
    font-size: .64rem;
    text-align: center;
}

.match-standings-table th {
    background: #f6f8fa;
    color: #7a8798;
    font-size: .55rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.match-standings-table th:nth-child(2),
.match-standings-table td:nth-child(2) {
    text-align: left;
}

.match-standings-table tr:last-child td {
    border-bottom: 0;
}

.match-standings-table td:last-child strong {
    color: #08182d;
    font-size: .82rem;
}

.match-standing-team {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #08182d;
}

.match-center-note {
    display: block;
    margin-top: 8px;
    color: #7b8797;
    font-size: .57rem;
}

.goalscorer-list {
    overflow: hidden;
    border: 1px solid #dfe4ea;
    border-radius: 12px;
    background: #fff;
}

.goalscorer-list article {
    min-height: 58px;
    display: grid;
    grid-template-columns: 30px 12px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    border-bottom: 1px solid #e5e9ee;
}

.goalscorer-list article:last-child {
    border-bottom: 0;
}

.goalscorer-rank {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f0f3f6;
    color: #526074;
    font-size: .58rem;
    font-weight: 950;
}

.goalscorer-list article strong,
.goalscorer-list article small {
    display: block;
}

.goalscorer-list article strong {
    color: #08182d;
    font-size: .7rem;
}

.goalscorer-list article small {
    margin-top: 2px;
    color: #7b8797;
    font-size: .56rem;
}

.goalscorer-list article b {
    min-width: 58px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #fff7e4;
    color: #8c6009;
    font-size: .62rem;
    text-align: center;
}

@media (max-width: 720px) {
    .match-center-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .match-score-row {
        grid-template-columns: 72px minmax(0, 1fr) 72px;
        gap: 8px;
    }

    .match-score-meta {
        grid-row: 1 / span 2;
    }

    .match-score-team {
        grid-column: 2;
    }

    .match-score-team.is-away {
        grid-column: 2;
        justify-content: flex-start;
        text-align: left;
    }

    .match-score-value {
        grid-column: 3;
        grid-row: 1 / span 2;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .match-score-value span {
        display: none;
    }

    .match-score-value strong {
        font-size: 1rem;
        line-height: 1.45;
    }
}

/* V018.6.9 — registration lifecycle on /jadwal/{slug}. */
@media (min-width: 981px) {
    .schedule-detail-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

.schedule-registration-card {
    overflow: hidden;
}

.schedule-registration-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.schedule-registration-head h3 {
    margin-top: 5px;
}

.schedule-registration-phase {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid #e1e6ec;
    border-radius: 999px;
    background: #f4f6f8;
    color: #607085;
    font-size: .52rem;
    font-weight: 950;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.schedule-registration-phase.is-wave_one,
.schedule-registration-phase.is-wave_two {
    border-color: #f0d184;
    background: #fff7df;
    color: #8f6508;
}

.schedule-registration-phase.is-closed {
    border-color: #cfe3d8;
    background: #edf7f1;
    color: #276848;
}

.schedule-registration-timeline {
    display: grid;
    gap: 0;
    margin-top: 18px;
}

.schedule-registration-step {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    min-height: 88px;
    padding-bottom: 14px;
}

.schedule-registration-step:last-child {
    min-height: 0;
    padding-bottom: 0;
}

.schedule-registration-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 26px;
    bottom: 0;
    left: 13px;
    width: 2px;
    background: #e3e8ed;
}

.schedule-registration-step.is-completed:not(:last-child)::before {
    background: #b8dcc8;
}

.schedule-registration-marker {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 2px solid #d9dfe6;
    border-radius: 50%;
    background: #fff;
    color: #8b98a7;
    font-size: .62rem;
    font-weight: 950;
}

.schedule-registration-marker span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.schedule-registration-step.is-current .schedule-registration-marker {
    border-color: #d9a11d;
    background: #fff7df;
    color: #a16f05;
    box-shadow: 0 0 0 4px rgba(217, 161, 29, .10);
}

.schedule-registration-step.is-completed .schedule-registration-marker {
    border-color: #2f7d5a;
    background: #2f7d5a;
    color: #fff;
}

.schedule-registration-step.is-unavailable .schedule-registration-marker {
    border-style: dashed;
}

.schedule-registration-step strong,
.schedule-registration-step time,
.schedule-registration-step small {
    display: block;
}

.schedule-registration-step strong {
    padding-top: 2px;
    color: #111f33;
    font-size: .7rem;
    line-height: 1.3;
}

.schedule-registration-step time {
    margin-top: 4px;
    color: #394b61;
    font-size: .62rem;
    font-weight: 850;
    line-height: 1.35;
}

.schedule-registration-step small {
    margin-top: 5px;
    color: #7a8796;
    font-size: .56rem;
    line-height: 1.45;
}

.schedule-registration-step.is-current strong,
.schedule-registration-step.is-current time {
    color: #805b08;
}

.schedule-registration-step.is-completed strong {
    color: #245d43;
}

.schedule-registration-cta {
    margin-top: 17px !important;
}

.schedule-registration-note {
    margin-top: 15px !important;
    padding: 10px 11px;
    border: 1px solid #e3e8ed;
    border-radius: 10px;
    background: #f7f9fb;
    color: #617085 !important;
    font-size: .59rem !important;
}

.schedule-registration-note.is-final {
    border-color: #cfe3d8;
    background: #f1f8f4;
    color: #33694f !important;
}

@media (max-width: 980px) {
    .schedule-registration-step {
        min-height: 80px;
    }
}

/* ============================================================
   V018.6.11 — ROSTER LOGIN UX
   ============================================================ */
.roster-login-card .roster-password-toggle {
    min-height: 34px;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    display: grid;
    place-items: center;
    line-height: 0;
}

.roster-login-card .roster-password-toggle svg {
    display: block;
    width: 18px;
    height: 18px;
    margin: 0;
}

.roster-login-card .roster-password-toggle .eye-closed {
    display: none;
}

.roster-login-card .roster-password-toggle.is-visible .eye-open {
    display: none;
}

.roster-login-card .roster-password-toggle.is-visible .eye-closed {
    display: block;
}

.roster-login-identifier {
    min-width: 0;
    width: 100%;
}

.roster-account-help {
    margin-top: 9px;
    text-align: right;
}

.roster-account-help a {
    color: #8c6009;
    font-size: .64rem;
    font-weight: 850;
    text-decoration: underline;
    text-decoration-color: rgba(213, 152, 22, .55);
    text-underline-offset: 3px;
}

@media (max-width: 720px) {
    .roster-account-help {
        text-align: left;
    }
}
