@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Oswald";
    src: url("../fonts/oswald-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Oswald";
    src: url("../fonts/oswald-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Oswald";
    src: url("../fonts/oswald-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0b0f19;
    --bg-2: #121826;
    --card: rgba(24, 30, 44, 0.92);
    --line: rgba(255, 255, 255, 0.08);
    --text: #f4f6fb;
    --muted: #93a0b8;
    --red: #e50914;
    --red-2: #ff4d57;
    --ok: #3dd68c;
    --warn: #f5c451;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --sidebar: 272px;
    --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 0% -10%, rgba(229, 9, 20, 0.18), transparent 55%),
        radial-gradient(700px 380px at 100% 0%, rgba(229, 9, 20, 0.08), transparent 50%),
        var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, .stat-value, .brand-name { font-family: "Oswald", sans-serif; letter-spacing: 0.03em; }
.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.guest-body { min-height: 100vh; }
.home {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}
.landing {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 28px;
    padding: 22px 32px 18px;
}
.landing-bar, .landing-foot, .landing-stage {
    width: min(1120px, 100%);
    margin: 0 auto;
}
.landing-bar, .landing-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.landing-foot { color: var(--muted); font-size: 13px; }
.landing-stage {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}
.board {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(229, 9, 20, 0.16), transparent 42%),
        rgba(18, 24, 38, 0.92);
}
.board-head, .board-score {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.board-head { margin: 8px 0 16px; }
.board-head span {
    color: var(--red-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.board-score { align-items: stretch; }
.board-score div {
    flex: 1;
    padding: 16px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--line);
}
.board-score span { display: block; color: var(--muted); font-size: 13px; }
.board-score b {
    display: block;
    margin-top: 6px;
    font-family: "Oswald", sans-serif;
    font-size: 56px;
    line-height: 0.9;
}
.board-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.board-list li {
    padding-left: 14px;
    position: relative;
    color: var(--muted);
}
.board-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    position: absolute;
    left: 0;
    top: 0.55em;
}
.home-card, .auth-wrap {
    width: min(1080px, 100%);
}
.home-card {
    display: grid;
    gap: 28px;
    padding: 28px;
}
.brand-lockup, .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 0;
}
.brand-lockup > span, .brand > span { display: grid; min-width: 0; }
.brand img, .brand-lockup img { width: 58px; height: 58px; object-fit: contain; flex: 0 0 auto; }
.brand-name { font-size: 22px; font-weight: 700; line-height: 1; }
.brand-sub { color: var(--red-2); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 {
    margin: 12px 0;
    font-size: clamp(48px, 8vw, 92px);
    line-height: 0.9;
    text-transform: uppercase;
}
.hero h1 span { color: var(--red); display: block; }
.hero p { max-width: 620px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}
.auth-panel {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(160deg, rgba(229, 9, 20, 0.2), transparent 42%),
        rgba(10, 13, 22, 0.55);
    border-right: 1px solid var(--line);
}
.auth-panel h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 0.92;
    text-transform: uppercase;
    margin: 24px 0 12px;
}
.auth-panel p { color: var(--muted); max-width: 460px; }
.auth-points { display: grid; gap: 10px; margin-top: 28px; }
.auth-points div {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}
.auth-main {
    display: grid;
    place-items: center;
    padding: 28px 20px;
}
.stack { padding: 22px; display: grid; gap: 14px; }
.auth-card, .card, .stat, .chart-card, .table-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.auth-card { width: min(440px, 100%); padding: 28px; display: grid; gap: 14px; align-content: start; }
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.auth-card h2 { margin: 0 0 6px; font-size: 34px; text-transform: uppercase; }
.lede { color: var(--muted); margin-top: 0; }

.shell { min-height: 100vh; display: flex; }
.sidebar {
    width: var(--sidebar);
    flex: 0 0 var(--sidebar);
    padding: 22px 16px;
    border-right: 1px solid var(--line);
    background: rgba(8, 11, 18, 0.88);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.nav-links { display: grid; gap: 6px; }
.nav-links a {
    text-decoration: none;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-links a.active, .nav-links a:hover {
    background: rgba(229, 9, 20, 0.14);
    color: white;
}
.nav-links a.active { box-shadow: inset 3px 0 0 var(--red); }
.sidebar-foot { margin-top: auto; display: grid; gap: 10px; }
.who { font-size: 13px; color: var(--muted); }
.who strong { display: block; color: white; font-size: 14px; }
.workspace { margin-left: 0; flex: 1; min-width: 0; }
.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 15, 25, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.menu-btn, .icon-btn, .eye {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg-2);
    display: grid;
    place-items: center;
    cursor: pointer;
}
.menu-btn { display: none; }
.topbar h1 { margin: 0; font-size: 22px; text-transform: uppercase; }
.content { padding: 22px; display: grid; gap: 18px; }
.page-head, .toolbar, .split, .stat-grid, .chart-grid {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
}
.kicker {
    margin: 0;
    color: var(--red-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.page-head h1 { margin: 0; font-size: 40px; text-transform: uppercase; }
.stat-grid, .chart-grid { align-items: stretch; display: grid; }
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat-value.stat-text { font-size: 22px; line-height: 1.2; }
.chart-grid { grid-template-columns: 0.8fr 1.2fr; }
.chart-grid.thirds { grid-template-columns: 1fr 1fr; }
.stat, .chart-card, .table-card { padding: 16px 18px; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 40px; line-height: 1; margin: 8px 0 4px; }
.stat-hint { color: var(--muted); font-size: 12px; }
.chart-card h2, .table-card h2 { margin: 0 0 4px; font-size: 22px; text-transform: uppercase; }
.chart-frame { height: 260px; position: relative; }
.chart-frame canvas { width: 100% !important; height: 100% !important; }
.muted { color: var(--muted); }

.toolbar { align-items: center; flex-wrap: wrap; }
.toolbar .grow { flex: 1; min-width: 180px; }
label.field, .field { display: grid; gap: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-2 { grid-column: span 2; }
.club-name { display: flex; align-items: center; gap: 10px; }
.club-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: #10151f;
    border: 1px solid var(--line);
}
.club-logo-lg { width: 72px; height: 72px; }
.club-logo[hidden] { display: none; }
.logo-field { display: flex; align-items: center; gap: 12px; }
.logo-field input[type="file"] { padding: 10px 12px; }
input, select, textarea {
    width: 100%;
    background: #10151f;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(229, 9, 20, 0.8); }
.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.eye {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    width: 42px;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 11px 11px 0;
    background: transparent;
    color: var(--muted);
    transform: none;
}
.eye svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.eye .icon-hide { display: none; }
.eye[aria-pressed="true"] .icon-show { display: none; }
.eye[aria-pressed="true"] .icon-hide { display: block; }
.eye:hover, .eye:focus-visible { color: white; }
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.check input { width: auto; }
.switch { display: flex; align-items: center; gap: 8px; }
.error { color: #ff8d94; }
.alert { padding: 12px 14px; border-radius: 12px; }
.alert-ok { background: rgba(61, 214, 140, 0.12); color: #b8f5d6; }
.alert-bad { background: rgba(229, 9, 20, 0.16); color: #ffc1c4; }
.form-actions, .page-actions, .modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: #c40812; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: white; }
.btn-danger { background: #8d1020; color: white; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
}
.pill-draft { color: #d5dbe8; }
.pill-published { color: #9ec5ff; }
.pill-ongoing { color: #ffb4b8; background: rgba(229, 9, 20, 0.16); }
.pill-finished { color: #b8f5d6; }
.pill-on { color: #b8f5d6; }
.pill-off { color: #ffb4b8; }
.empty { padding: 28px 8px; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.pager-links { display: flex; gap: 6px; flex-wrap: wrap; }
.page {
    min-width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    padding: 0 10px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--line);
    color: var(--muted);
}
.page.current { background: var(--red); color: white; border-color: transparent; }
.page.disabled { opacity: 0.4; }
.repeat-list { display: grid; gap: 10px; }
.repeat-row {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr auto auto;
    gap: 10px;
    align-items: center;
}
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.check-group { border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.check-group h3 { margin: 0 0 8px; font-size: 16px; text-transform: uppercase; }
.modal[hidden] { display: none; }
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    display: grid;
    place-items: center;
    z-index: 50;
    padding: 20px;
}
.modal-card { width: min(420px, 100%); padding: 22px; }
.nav-backdrop { display: none; }

.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background: #10151f;
    border: 1px solid var(--line);
    border-radius: 12px;
    min-height: 46px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: white;
    line-height: 44px;
    padding-left: 14px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: rgba(229, 9, 20, 0.2);
    border: 0;
    color: white;
    border-radius: 8px;
    padding: 4px 8px;
}
.select2-dropdown, .select2-search--dropdown {
    background: #171d2b;
    border-color: var(--line);
    color: white;
}
.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-container--default .select2-search--inline .select2-search__field {
    background: #0d121c;
    color: white;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.select2-container--default .select2-results__option { color: white; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--red); }
.select2-container--default .select2-results__option[aria-disabled="true"] { display: none; }
.toolbar .select2-container { min-width: 180px; width: auto !important; }
.score-card { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #0e1420; }
.score-meta, .score-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.score-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.score-side { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: #121826; }
.score-side b { font-size: 48px; line-height: 1; }
.score-side:first-child { box-shadow: inset 4px 0 0 #E50914; }
.score-side:last-child { box-shadow: inset 4px 0 0 #3b82f6; }


#format-wrap[hidden] { display: none; }
.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 4px; }
.roster-new { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #10151f; }
.roster-new h3, .roster h3 { margin: 0; font-size: 20px; text-transform: uppercase; }
.roster-existing summary { cursor: pointer; font-weight: 700; }
.class-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.class-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
}
.class-tab span { font-size: 12px; color: var(--muted); }
.class-tab.is-active { background: var(--red); border-color: transparent; color: white; }
.class-tab.is-active span { color: white; }
.roster { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.roster h3 { margin: 0 0 8px; }
.roster-person, .roster-option { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.roster-person small, .roster-option small { display: block; color: var(--muted); }
.roster-person form { margin-left: auto; }
.roster-tools { display: flex; gap: 10px; align-items: end; }
.roster-tools .grow { flex: 1; }
.roster-pick { max-height: 380px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; }
.roster-option input { width: auto; }
.roster-option[hidden] { display: none; }
.bracket { display: grid; gap: 14px; }
.bracket h3, .bracket-board h3 { margin: 0; font-size: 22px; text-transform: uppercase; }
.bracket-round { display: grid; gap: 10px; }
.bracket-board { display: grid; gap: 12px; }
.tree-scroll {
    overflow-x: auto;
    padding: 18px 16px 20px;
    border-radius: 16px;
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.tree {
    --arm: 22px;
    display: flex;
    align-items: stretch;
    gap: calc(var(--arm) * 2);
    width: max-content;
    min-width: 100%;
    padding-top: 28px;
}
.tree-col {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 0 0 230px;
    width: 230px;
}
.tree-col-title {
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #93a0b8;
}
.tree-match {
    position: relative;
    margin: 8px 0;
    border-radius: 12px;
    background: #121826;
    color: #f4f6fb;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    z-index: 1;
}
.tree-match.is-live, .tree-match.is-selected { box-shadow: 0 0 0 2px #e50914; }
.score-desk-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.score-desk-head a { color: #ff8d94; font-weight: 700; }
.score-desk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.score-desk-card { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: #10151f; }
.score-desk-card h3 { margin: 0; font-size: 22px; text-transform: uppercase; }
.score-desk-card small { color: var(--muted); }
.score-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.score-line-actions, .score-line form { display: flex; align-items: center; gap: 8px; }
.score-line button { border: 0; border-radius: 10px; background: #1c2433; color: white; min-width: 36px; padding: 8px 10px; cursor: pointer; }
.score-foul.is-on { background: #8f1d2c; }
.score-foul:disabled { opacity: .35; cursor: not-allowed; }
.score-line strong { min-width: 28px; text-align: center; font-family: "Oswald", sans-serif; font-size: 28px; }
.live-tabs { display: flex; gap: 8px; }
.live-tabs button { border: 0; background: transparent; color: #93a0b8; font-weight: 700; padding: 8px 4px; cursor: pointer; }
.live-tabs button.is-active { color: white; box-shadow: inset 0 -2px 0 #e50914; }
.tree-h, .tree-v, .tree-in::before {
    background: rgba(255, 255, 255, 0.28);
    pointer-events: none;
}
.tree-h {
    position: absolute;
    left: 100%;
    top: 50%;
    width: var(--arm);
    height: 2px;
    margin-top: -1px;
}
.tree-v {
    position: absolute;
    left: calc(100% + var(--arm));
    top: 50%;
    width: 2px;
    height: 0;
    margin-left: -1px;
}
.tree-in::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    width: var(--arm);
    height: 2px;
    margin-top: -1px;
}
.tree-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 650;
}
.tree-row + .tree-row { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.tree-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-row.is-empty { color: #93a0b8; font-weight: 500; font-style: italic; }
.tree-row.is-loser { color: #6e7b92; font-weight: 500; }
.tree-row.is-winner,
.tree-row.is-advanced { color: #f5c518; }
.tree-crown {
    width: 16px;
    height: 16px;
    margin-left: auto;
    flex: 0 0 16px;
    color: #f5c518;
}
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-head h2, .section-head h3 { margin: 0; }
.section-head .btn { white-space: nowrap; }
.tree-flag {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.16);
}
img.tree-flag { padding: 5px; }
.tree-flag-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c5cedd;
    font-size: 9px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0;
}
.tree-foot, .tree-jadwal, .tree-finish {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    padding: 5px 10px 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: #93a0b8;
}
.tree-foot a { color: #ff8d94; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tree-jadwal, .tree-finish { display: block; }
.tree-jadwal summary { cursor: pointer; color: #93a0b8; font-weight: 700; }
.tree-jadwal form, .tree-finish { display: grid; gap: 8px; padding-top: 8px; }
.tree-jadwal .field span, .tree-finish .field span { color: #93a0b8; font-size: 12px; }
.tree-jadwal input, .tree-jadwal select, .tree-finish select {
    background: #10151f;
    color: #f4f6fb;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px 8px;
}
.tree-jadwal .btn, .tree-finish .btn {
    width: auto;
    color: #f4f6fb;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 10px;
}
.tree-finish .btn-danger { background: #e50914; color: #fff; border: 0; }
.bout-card { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #0e1420; }
.bout-athletes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bout-athletes div { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border-radius: 12px; background: #121826; }
.bout-athletes small { color: var(--muted); }
.bout-athletes .is-winner strong,
.bout-athletes .is-advanced strong { color: #f5c518; }
.bout-athletes .is-loser strong { color: #6e7b92; font-weight: 500; }
.bout-athletes .tree-crown { margin-left: 0; }
.bout-schedule { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.bout-schedule .field { min-width: 240px; }

.live-body { margin: 0; min-height: 100vh; background: #070b12; color: #f4f6fb; }
.live { min-height: 100vh; display: grid; align-content: start; gap: 22px; padding: 28px; }
.live-bar { display: flex; align-items: center; gap: 16px; }
.live-bar img { width: 72px; height: 72px; object-fit: contain; }
.live-bar h1 { margin: 0; font-size: clamp(28px, 4vw, 48px); text-transform: uppercase; }
.live-bar p { margin: 0; color: #93a0b8; }
.live-clock {
    margin: 0;
    text-align: center;
    color: #e50914;
    font-family: "Oswald", sans-serif;
    font-size: clamp(72px, 12vw, 140px);
    line-height: 0.9;
}
.live-note { margin: -12px 0 0; text-align: center; color: #c6a15a; }
.win-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: rgba(5, 8, 16, .72); animation: win-fade .35s ease; }
.win-modal[hidden] { display: none; }
.win-modal-card { width: min(520px, 100%); display: grid; justify-items: center; gap: 8px; padding: 36px 28px 28px; border-radius: 24px; background: #121826; border: 1px solid rgba(245, 197, 24, .45); box-shadow: 0 24px 80px rgba(0, 0, 0, .45); text-align: center; animation: win-pop .5s cubic-bezier(.2, .85, .2, 1); }
.win-kicker { margin: 0; color: #f5c518; font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.win-modal-card img { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; background: #0c111b; }
.win-modal-card h2 { margin: 4px 0 0; font-size: clamp(32px, 5vw, 52px); text-transform: uppercase; }
.win-modal-card [data-win-club] { margin: 0; color: #93a0b8; }
.win-next { margin: 8px 0 12px; color: #3dd68c; font-weight: 700; }
.win-modal-card button { border: 0; border-radius: 999px; background: #f5c518; color: #1a1400; font-weight: 700; padding: 10px 22px; cursor: pointer; }
@keyframes win-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes win-pop { from { opacity: 0; transform: translateY(28px) scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .win-modal, .win-modal-card { animation: none; }
}
.live-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.live-card { display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: #121826; border: 1px solid rgba(255,255,255,.08); }
.live-card-green, .live-card-red { box-shadow: inset 4px 0 0 #3dd68c; }
.live-card.is-winner { outline: 2px solid #3dd68c; outline-offset: 3px; }
.live-card-blue { box-shadow: inset 4px 0 0 #3b82f6; }
.live-athlete { display: flex; gap: 14px; align-items: center; }
.live-athlete img, .live-flag-empty {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    object-fit: contain;
    object-position: center;
    padding: 12px;
    border-radius: 50%;
    background: #10151f;
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.live-flag-empty { display: block; padding: 0; }
.live-athlete p, .live-athlete small { margin: 0; color: #93a0b8; }
.live-athlete h2 { margin: 0; font-size: 32px; text-transform: uppercase; }
.live-athlete small { display: block; }
.live-cards { display: flex; gap: 4px; width: 100%; margin-top: 8px; }
.live-cards[hidden] { display: none; }
.live-yellow { display: block; width: 16px; height: 22px; border-radius: 2px; background: #f5c518; box-shadow: 0 0 0 1px rgba(0,0,0,.45); }
.live-mark { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.live-mark form { display: flex; align-items: center; gap: 8px; }
.live-mark strong { min-width: 42px; text-align: center; font-family: "Oswald", sans-serif; font-size: 36px; }
.live-mark button, .live-foot button, .live-foot a {
    border: 0;
    border-radius: 10px;
    background: #1c2433;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    cursor: pointer;
}
.live-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.live-foot button[type="submit"] { background: #e50914; }

@media (max-width: 800px) {
    .live-sides, .bout-athletes, .roster, .score-desk-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .chart-grid, .chart-grid.thirds { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .landing { padding: 16px; gap: 20px; }
    .landing-stage, .landing-bar { grid-template-columns: 1fr; display: grid; }
    .landing-bar { justify-items: start; }
    .landing-foot { flex-direction: column; align-items: flex-start; }
    .board-score b { font-size: 42px; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-panel { display: none; }
    .menu-btn { display: grid; }
    .sidebar {
        position: fixed;
        z-index: 40;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
    }
    body.nav-open .sidebar { transform: none; }
    body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 30; }
    .stat-grid, .form-grid, .checks, .repeat-row, .score-sides { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .page-head { flex-direction: column; align-items: flex-start; }
    .content, .topbar { padding-left: 16px; padding-right: 16px; }
}
