:root {
    color-scheme: light;
    --ink: #171717;
    --muted: #66615c;
    --line: #d8d3cc;
    --paper: #fbfaf8;
    --panel: #ffffff;
    --accent: #b52732;
    --accent-ink: #ffffff;
    --ok: #177245;
    --warning: #b46b00;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

main {
    min-height: calc(100vh - 68px);
}

a {
    color: var(--accent);
    text-decoration: none;
}

.site-header {
    align-items: center;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 32px;
}

.site-footer {
    align-items: center;
    background: var(--panel);
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    padding: 24px;
}

.brand,
.site-nav {
    align-items: center;
    display: flex;
    gap: 12px;
}

.brand {
    color: var(--ink);
    font-weight: 800;
}

.brand-mark {
    background: linear-gradient(135deg, var(--accent), #272727);
    display: inline-block;
    height: 28px;
    width: 28px;
}

.page-band {
    padding: 44px 24px;
}

.intro-band {
    background:
        linear-gradient(90deg, rgba(12, 12, 12, .86), rgba(12, 12, 12, .46), rgba(12, 12, 12, .12)),
        url("/assets/hero-wrestling-warriors.png") center right / cover no-repeat;
    border-bottom: 1px solid var(--line);
    color: #ffffff;
    min-height: calc(82vh - 68px);
}

.page-inner {
    margin: 0 auto;
    max-width: 1120px;
}

.launch-screen {
    align-items: center;
    display: grid;
    min-height: calc(100vh - 68px);
    padding: 44px 24px;
}

.launch-inner {
    margin: 0 auto;
    max-width: 720px;
    text-align: center;
}

.launch-inner h1,
.launch-inner .lead {
    margin-left: auto;
    margin-right: auto;
}

.intro-grid {
    align-items: center;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    min-height: calc(82vh - 156px);
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: 48px;
    line-height: 1.05;
    margin-bottom: 16px;
}

.lead {
    color: var(--muted);
    font-size: 18px;
    max-width: 620px;
}

.intro-band .lead {
    color: rgba(255, 255, 255, .86);
}

.button,
button {
    background: var(--accent);
    border: 0;
    color: var(--accent-ink);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    min-height: 44px;
    padding: 10px 16px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button-secondary {
    background: var(--ink);
}

.status-panel,
.setup-notice,
.empty-state {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 18px;
}

.status-panel {
    align-items: center;
    display: flex;
    gap: 12px;
}

.intro-band .status-panel {
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
}

.status-dot {
    border-radius: 999px;
    display: inline-block;
    height: 12px;
    width: 12px;
}

.is-ok {
    background: var(--ok);
}

.is-warning {
    background: var(--warning);
}

.section-heading {
    align-items: end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.alt-band {
    background: #efebe5;
    border-top: 1px solid var(--line);
}

.split-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tile,
.link-list a {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--ink);
    display: grid;
    gap: 6px;
    padding: 16px;
}

.tile span {
    font-weight: 800;
}

.tile small {
    color: var(--muted);
}

.link-list {
    display: grid;
    gap: 10px;
}

.match-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.match-card {
    background: var(--panel);
    border: 1px solid var(--line);
    display: grid;
    grid-template-rows: 160px 1fr;
    min-height: 320px;
}

.match-thumb {
    background: linear-gradient(135deg, #2b2b2b, #7e1e28);
    overflow: hidden;
}

.match-thumb:empty::after,
.detail-media:empty::after {
    align-items: center;
    color: #ffffff;
    content: "Wrestling Warriors";
    display: flex;
    font-weight: 800;
    height: 100%;
    justify-content: center;
}

.match-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.match-body {
    padding: 18px;
}

.detail-layout {
    align-items: start;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
}

.detail-media {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #2b2b2b, #7e1e28);
    overflow: hidden;
}

.detail-media img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.narrow {
    max-width: 760px;
}

.match-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.match-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.access-badge {
    background: #efebe5;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
}

.filters {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
    margin-bottom: 24px;
}

.admin-band {
    min-height: calc(100vh - 68px);
}

.admin-auth {
    background: var(--panel);
    border: 1px solid var(--line);
    margin: 0 auto;
    max-width: 440px;
    padding: 24px;
}

.admin-form {
    display: grid;
    gap: 16px;
}

label span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

input,
select,
textarea {
    border: 1px solid var(--line);
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

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

.toggle-row input {
    min-height: auto;
    width: auto;
}

.toggle-row span {
    margin-bottom: 0;
}

.admin-form-wide {
    background: var(--panel);
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    margin-bottom: 28px;
    padding: 18px;
}

.form-span {
    grid-column: 1 / -1;
}

.admin-list {
    margin-top: 24px;
}

.dashboard-status {
    margin-bottom: 18px;
}

.stat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 24px;
}

.stat-tile {
    background: var(--panel);
    border: 1px solid var(--line);
    display: grid;
    gap: 4px;
    padding: 16px;
}

.stat-tile strong {
    font-size: 28px;
}

.stat-tile span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 720px) {
    .site-header,
    .section-heading,
    .intro-grid,
    .filters,
    .admin-form-wide,
    .split-grid,
    .detail-layout {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 36px;
    }

    .intro-band,
    .intro-grid {
        min-height: auto;
    }
}
