:root {
    --bg: #0b1220;
    --card: #121b2e;
    --muted: #8fa3c7;
    --text: #e9f0ff;
    --accent: #4aa3ff;
    --ok: #24d18a;
    --warn: #ffbf3f;
    --bad: #ff5d6c;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #071022, #0b1220 40%);
    color: var(--text);
}

header {
    padding: 18px 18px 10px;
    position: sticky;
    top: 0;
    background: rgba(7, 16, 34, 0.88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 5;
}

header h1 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.2px;
}

header .sub {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.pill {
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--muted);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
}

main {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
}

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

    header {
        position: relative;
    }
}

.card {
    background: rgba(18, 27, 46, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.card h2 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #dbe7ff;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.muted {
    color: var(--muted);
    font-size: 12px;
}

.row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

input,
select,
button,
textarea {
    background: #0d1528;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}

input::placeholder {
    color: rgba(233, 240, 255, 0.35);
}

button {
    cursor: pointer;
}

button.primary {
    background: linear-gradient(180deg, #4aa3ff, #2f7dff);
    border: none;
}

button.ghost {
    background: transparent;
}

button.danger {
    background: rgba(255, 93, 108, 0.12);
    border: 1px solid rgba(255, 93, 108, 0.35);
}

button.ok {
    background: rgba(36, 209, 138, 0.12);
    border: 1px solid rgba(36, 209, 138, 0.35);
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th,
td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

th {
    color: #cfe0ff;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.right {
    text-align: right;
}

.tag {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    color: var(--muted);
}

.tag.pre {
    border-color: rgba(74, 163, 255, 0.35);
    color: #a8d2ff;
}

.tag.reg {
    border-color: rgba(255, 191, 63, 0.35);
    color: #ffd89c;
}

.tag.po {
    border-color: rgba(36, 209, 138, 0.35);
    color: #a8f1d3;
}

.match {
    display: grid;
    grid-template-columns: 1fr 140px 1fr 170px;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
    .match {
        grid-template-columns: 1fr 1fr;
    }

    .match .meta {
        grid-column: 1 / -1;
    }
}

.match:last-child {
    border-bottom: none;
}

.meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}

.small {
    font-size: 12px;
    color: var(--muted);
}

.hr {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 12px 0;
}

.notice {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 12px;
}

.playoff-round-section {
    margin: 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.playoff-round-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #dbe7ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.playoff-round-title .count {
    color: var(--muted);
    font-size: 11px;
}

.playoff-round-body {
    padding: 2px 10px 4px;
}

.playoff-round-section .match {
    padding: 12px 4px;
}

.playoff-round-section.round-r16 {
    border-left: 4px solid rgba(74, 163, 255, 0.7);
}

.playoff-round-section.round-qf {
    border-left: 4px solid rgba(255, 191, 63, 0.7);
}

.playoff-round-section.round-sf {
    border-left: 4px solid rgba(36, 209, 138, 0.7);
}

.playoff-round-section.round-final {
    border-left: 4px solid rgba(255, 93, 108, 0.75);
}

.site-footer {
    max-width: 1200px;
    margin: 18px auto 20px;
    padding: 0 16px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.site-footer p {
    margin: 0;
}
