:root {
    /* Backgrounds */
    --bg: #0B0B0B;
    --bg2: #0B1215;
    --bg3: #001621;
    --bg4: #161616;

    /* Main reds */
    --red-1: #FF4103;
    --red-2: #FB1616;
    --red-3: #B80F0A;
    --red-opaque: #8E0320;

    /* Secondary greens */
    --green-1: #2BEE34;
    --green-2: #B6FF00;
    --green-3: #21F1A8;

    /* Text */
    --text: #F0F0F0;
    --text-muted: #9CA3AF;
    --border: #2A2A2A;

    --accent: var(--red-1);
    --accent-2: var(--green-1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

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

a:hover {
    color: var(--red-2);
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
}

/* Cards */
.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--red-1);
    margin-bottom: 12px;
}

/* Forms */
.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg4);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--red-1);
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--red-1);
    color: #fff;
}

.btn-primary:hover {
    background: var(--red-2);
}

.btn-secondary {
    background: var(--bg4);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-green {
    background: var(--green-1);
    color: #000;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-red {
    background: var(--red-opaque);
    color: #fff;
}

.badge-green {
    background: rgba(43, 238, 52, 0.15);
    color: var(--green-1);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

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

th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
}

/* Utilities */
.text-muted { color: var(--text-muted); }
.text-red { color: var(--red-1); }
.text-green { color: var(--green-1); }
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }
.flex { display: flex; gap: 12px; flex-wrap: wrap; }
.flex-1 { flex: 1; }

/* Mobile */
@media (max-width: 640px) {
    .container {
        padding: 12px;
    }
    table {
        font-size: 0.85rem;
    }
}

.tax-chip {
    display: inline-block;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg4);
    color: var(--text);
}
.tax-genres {
    margin: 4px 0 10px;
}
.tax-genres-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.tax-chip.tax-genre {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-color: rgba(255,65,3,.35);
    background: rgba(255,65,3,.08);
    color: #ffb08a;
}
.tax-chip.tax-genre.is-main {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 7px 14px;
    background: linear-gradient(180deg, #FF4103, #B80F0A);
    border-color: #FF4103;
    color: #fff;
    text-transform: uppercase;
}
.tax-mind { border-color: #3a4a6a; }
.tax-body { border-color: #6a2a2a; }
.tax-soul { border-color: #3a5a3a; }

.ms { position: relative; min-width: 160px; max-width: 220px; flex: 1; }
.ms-box {
    min-height: 38px;
    border: 1px solid #333;
    background: #0b0b0b;
    border-radius: 8px;
    padding: 6px 28px 6px 6px;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.ms.open .ms-box { border-color: #FF4103; }
.ms-ph { color: #6a7a82; font-size: 0.75rem; }
.ms-arrow { position: absolute; right: 8px; top: 10px; color: #889; font-size: 0.7rem; }
.ms.open .ms-arrow { transform: rotate(180deg); }
.ms-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2a2a2a;
    color: #fff;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 0.7rem;
}
.ms-chip button {
    border: 0;
    background: transparent;
    color: #bbb;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
}
.ms-drop {
    display: none;
    position: fixed;
    z-index: 4000;
    background: #111;
    border: 1px solid #444;
    border-radius: 8px;
    max-height: 240px;
    overflow: auto;
    box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.ms.open .ms-drop { display: block; }
.ms-search {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #333;
    background: #0b0b0b;
    color: #eee;
    padding: 8px;
    font-size: 0.8rem;
}
.ms-opt { padding: 7px 10px; font-size: 0.8rem; cursor: pointer; }
.ms-opt:hover { background: #1a1a1a; }
.ms-opt.on { background: #2a1208; color: #FF4103; }
.ms-select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0.01;
    pointer-events: none;
}
.cat-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.cat-tags .btn { height: 38px; }
.cat-table-wrap { overflow: visible; }
.cat-logo-form { display:flex; align-items:center; gap:6px; margin-top:4px; }
.cat-logo-form input[type=file] { font-size:0.68rem; max-width:140px; color:#889; }
.cat-logo-thumb { width:28px; height:28px; object-fit:contain; background:#111; border-radius:4px; }
.cat-table-wrap table { min-width: 920px; }
.cat-table-wrap table { min-width: 920px; }

.tax-featured {
    margin: 8px 0 18px;
    padding: 14px 12px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #10181c 0%, #0b1215 100%);
    border: 1px solid #1c2a30;
}
.tax-featured-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8aa0a8;
    margin-bottom: 10px;
}
.tax-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
.tax-feat {
    text-align: center;
    padding: 10px 6px 12px;
    border-radius: 12px;
    background: #0b0b0b;
    border: 1px solid #222;
}
.tax-feat.tax-body { border-color: #8E0320; }
.tax-feat.tax-mind { border-color: #2a4a6a; }
.tax-feat.tax-soul { border-color: #1a5a38; }
.tax-feat-axis {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9aa8b0;
    margin-bottom: 6px;
}
.tax-feat-emoji { font-size: 1.15rem; line-height: 1.2; }
.tax-feat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
    text-align: left;
}
.tax-feat-tag {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
}
.tax-feat-empty {
    font-size: 0.72rem;
    color: #667780;
    margin-top: 10px;
}
.tax-featured-hook {
    margin: 12px 4px 2px;
    font-size: 0.88rem;
    color: #d8e2e6;
    line-height: 1.45;
}
.tax-featured-hook p { margin: 0 0 6px; }

@font-face {
    font-family: "Geometos Rounded";
    src: url("../Geometos-Rounded.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.event-flyer {
    position: absolute;
    inset: 0;
    container-type: size;
    background: var(--flyer-bg, #0B1215);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8% 7%;
    text-align: center;
    color: #fff;
    font-family: "Geometos Rounded", Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}
.event-flyer-tex { position:absolute; inset:0; background-repeat:repeat; background-size:42% 42%; opacity:.28; pointer-events:none; }
.event-flyer-logo { position:relative; z-index:1; max-width:30%; max-height:16%; object-fit:contain; margin-bottom:5%; }
.event-flyer-copy { position:relative; z-index:1; width:100%; max-height:78%; overflow:hidden; }
.fl-venue { font-size:5.2cqh; letter-spacing:.14em; opacity:.82; line-height:1.05; }
.fl-title { font-size:9.2cqh; letter-spacing:.04em; line-height:1.02; margin:6% 0 8%; }
.fl-lineup { font-size:3.6cqh; letter-spacing:.08em; line-height:1.15; opacity:.78; display:-webkit-box; -webkit-line-clamp:6; -webkit-box-orient:vertical; overflow:hidden; }
}
@media (max-width: 420px) {
    .tax-featured-grid { gap: 6px; }
    .tax-feat-tag { font-size: 0.7rem; }
}
