:root {
    color-scheme: dark;
    --bg: #10100e;
    --surface: #191917;
    --surface-2: #24231f;
    --text: #f5f1e8;
    --muted: #b7afa1;
    --line: #37342d;
    --accent: #e6c45a;
    --accent-2: #d9563f;
    --green: #68bf7b;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 18px clamp(18px, 4vw, 56px);
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(16, 16, 14, 0.94);
}

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

.brand {
    font-size: 18px;
    font-weight: 800;
}

.brand-mark {
    align-items: center;
    background: var(--accent);
    color: #111;
    display: grid;
    height: 34px;
    place-items: center;
    width: 34px;
}

.site-nav {
    color: var(--muted);
    font-size: 14px;
}

.site-nav a:hover {
    color: var(--text);
}

.hero {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    min-height: 520px;
    padding: clamp(40px, 7vw, 92px) clamp(18px, 4vw, 56px);
}

.hero-copy {
    align-self: center;
    max-width: 720px;
}

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

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

h1 {
    font-size: clamp(44px, 8vw, 92px);
    line-height: 0.95;
    margin-bottom: 18px;
}

h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.lead {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.6;
    max-width: 620px;
}

.hero-actions,
.admin-title {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    border: 1px solid var(--line);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
}

.button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #111;
}

.button.secondary {
    background: transparent;
    color: var(--text);
}

.hero-poster,
.match-thumb,
.player-placeholder {
    background:
        linear-gradient(135deg, rgba(230, 196, 90, 0.88), rgba(217, 86, 63, 0.9)),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.14) 0 10px, transparent 10px 20px);
}

.hero-poster {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
    overflow: hidden;
    padding: 28px;
}

.poster-label,
.match-access {
    color: #111;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.poster-title {
    color: #111;
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 900;
    line-height: 1;
}

.poster-meta {
    color: rgba(17, 17, 17, 0.78);
    font-weight: 800;
    margin-top: 10px;
}

.section,
.page-heading,
.admin-shell,
.watch-page,
.auth-shell,
.newsletter-band {
    padding: clamp(32px, 5vw, 64px) clamp(18px, 4vw, 56px);
}

.section-heading {
    margin-bottom: 18px;
}

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

.fighter-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.match-card,
.fighter-card,
.panel,
.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
}

.match-card {
    display: grid;
    overflow: hidden;
}

.fighter-card {
    display: grid;
    gap: 8px;
    min-height: 150px;
    padding: 18px;
}

.fighter-card strong {
    font-size: 22px;
}

.fighter-card small,
.fighter-card span {
    color: var(--muted);
}

.match-thumb {
    aspect-ratio: 16 / 9;
    color: #111;
    display: grid;
    font-weight: 900;
    place-items: center;
}

.match-body {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.match-body small,
.page-heading p,
.panel p,
.match-panel p {
    color: var(--muted);
}

.status-band {
    background: var(--surface-2);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.newsletter-band {
    align-items: start;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
}

.newsletter-band p {
    color: var(--muted);
    max-width: 620px;
}

.newsletter-form {
    background: var(--surface);
    border: 1px solid var(--line);
    display: grid;
    gap: 14px;
    padding: 22px;
}

.checkbox-label {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: 20px minmax(0, 1fr);
}

.checkbox-label input {
    min-height: 20px;
    width: 20px;
}

.roadmap,
.clean-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.roadmap li,
.clean-list li {
    border-top: 1px solid var(--line);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding-top: 10px;
}

.watch-page {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.fighter-profile {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(240px, 0.35fr) minmax(0, 0.65fr);
    padding: clamp(32px, 5vw, 64px) clamp(18px, 4vw, 56px);
}

.fighter-portrait {
    aspect-ratio: 4 / 5;
    background:
        linear-gradient(135deg, var(--accent), var(--accent-2)),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.14) 0 10px, transparent 10px 20px);
    color: #111;
    display: grid;
    font-size: 96px;
    font-weight: 900;
    overflow: hidden;
    place-items: center;
}

.fighter-portrait img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.prose {
    color: var(--muted);
    line-height: 1.7;
    margin-top: 24px;
    white-space: pre-line;
}

.player-shell {
    aspect-ratio: 16 / 9;
    background: #050505;
    border: 1px solid var(--line);
    min-height: 320px;
}

.player-placeholder {
    align-items: center;
    color: #111;
    display: flex;
    flex-direction: column;
    font-weight: 900;
    height: 100%;
    justify-content: center;
}

.play-mark {
    align-items: center;
    background: rgba(17,17,17,0.92);
    color: var(--accent);
    display: grid;
    font-size: 34px;
    height: 86px;
    place-items: center;
    width: 86px;
}

.match-panel dl {
    display: grid;
    gap: 12px;
}

.match-panel dt {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.match-panel dd {
    margin: 2px 0 0;
}

.auth-shell {
    display: grid;
    min-height: 70vh;
    place-items: center;
}

.auth-card {
    display: grid;
    gap: 16px;
    max-width: 420px;
    padding: 28px;
    width: 100%;
}

label {
    color: var(--muted);
    display: grid;
    gap: 8px;
}

input {
    background: #0b0b0a;
    border: 1px solid var(--line);
    color: var(--text);
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
}

textarea,
select {
    background: #0b0b0a;
    border: 1px solid var(--line);
    color: var(--text);
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
}

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

.error-box {
    background: rgba(217, 86, 63, 0.14);
    border: 1px solid var(--accent-2);
    color: #ffd7cf;
    padding: 12px;
}

.success-box {
    background: rgba(104, 191, 123, 0.14);
    border: 1px solid var(--green);
    color: #d8ffdf;
    padding: 12px;
}

.admin-title {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

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

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 24px;
}

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

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

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

.table-wrap {
    border: 1px solid var(--line);
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 780px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.actions {
    display: flex;
    gap: 8px;
}

.panel {
    padding: 22px;
}

.panel.wide {
    grid-column: 1 / -1;
}

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

.maintenance-body {
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.maintenance-body::before {
    background: rgba(0, 0, 0, 0.62);
    content: "";
    inset: 0;
    position: absolute;
    z-index: 1;
}

.maintenance-media {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: fixed;
    width: 100%;
}

.maintenance-content {
    display: grid;
    gap: 22px;
    max-width: 720px;
    min-height: 100vh;
    padding: clamp(32px, 7vw, 92px);
    place-content: center;
    position: relative;
    z-index: 2;
}

.maintenance-logo {
    color: var(--accent);
    font-weight: 900;
    text-transform: uppercase;
}

.maintenance-content h1 {
    font-size: clamp(44px, 8vw, 88px);
}

.maintenance-content p {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.6;
}

@media (max-width: 820px) {
    .site-header,
    .site-nav,
    .hero-actions,
    .admin-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .status-band,
    .newsletter-band,
    .watch-page,
    .fighter-profile,
    .admin-grid,
    .columns,
    .match-grid,
    .fighter-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }
}
