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

body {
    background: #0a0507;
    background-image: radial-gradient(circle at 20% 30%, rgb(0, 0, 0) 0%, #050303 100%);
    font-family: 'Roboto Condensed', sans-serif;
    color: #ececec;
    padding: 1.5rem;
    min-height: 100vh;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

/* ========== HEADER - LOGO CENTRADO PERFECTO ========== */
.hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.hero-badge {
    display: inline-block;
    background: #000000;
    color: #ff0000;
    font-family: 'Courier New', Courier, monospace font-size: 0.8rem;
    letter-spacing: 10px;
    padding: 0.25rem 1rem;
    border-radius: 40px;
    margin-bottom: 1rem;
    border: 1px solid #FFD966;
}

.logo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -9rem 0;
}

.main-logo {
    max-width: 100%;
    width: 800px;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(196, 30, 30, 0.5));
    transition: transform 0.2s ease;
}

.main-logo:hover {
    transform: scale(1.02);
}

.logo-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 520px;
    border-radius: 60px;
    background: radial-gradient(ellipse at center, rgba(196, 30, 30, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-tagline {
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: #FFD966;
    font-weight: bold;
    border-top: 2px solid #c41e1e;
    border-bottom: 2px solid #c41e1e;
    display: inline-block;
    padding: 0.2rem 1.2rem;
    margin-top: 0.5rem;
}

.hero-date {
    font-size: 0.75rem;
    color: #ffffff;
    margin-top: 0.8rem;
    letter-spacing: 1px;
}

/* ========== PANEL DE CONTROL ========== */
.control-panel {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    padding: 0.8rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(196, 30, 30, 0.6);
}

.add-section,
.actions-section {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.control-panel input,
.control-panel select {
    background: #141010;
    border: 1px solid #c41e1e;
    padding: 0.6rem 1rem;
    border-radius: 40px;
    color: #FFD966;
    font-weight: bold;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
}

.control-panel input:focus,
.control-panel select:focus {
    border-color: #FFD966;
    box-shadow: 0 0 6px #FFD966;
}

.btn {
    border: none;
    padding: 0.6rem 1.3rem;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

.btn-red {
    background: #770f0f;
    color: #FFD966;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-gold {
    background: #FFD966;
    color: #1a0a0a;
}

.btn-dark {
    background: #000000;
    color: #c41e1e;
    border: 1px solid #c41e1e;
}

/* ========== LAYOUT PRINCIPAL ========== */
.main-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
}

.bracket-section {
    flex: 2.2;
    min-width: 280px;
}

.fighters-section {
    flex: 1.2;
    min-width: 270px;
    background: rgb(0, 0, 0);
    backdrop-filter: blur(6px);
    border-radius: 28px;
    padding: 1.2rem;
    border: 1px solid rgba(196, 30, 30, 0.9);
    height: fit-content;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.section-header h2 {
    font-family: 'Bangers', cursive;
    font-size: 1.6rem;
    color: #FFD966;
    text-shadow: 1px 1px 0 #c41e1e;
    letter-spacing: 1px;
}

.section-header span {
    font-size: 1.4rem;
}

/* ========== TABS CATEGORÍAS ========== */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.tab {
    background: rgba(30, 20, 22, 0.9);
    border: 1px solid #c41e1e;
    padding: 0.3rem 0.7rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    color: #e0c87c;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.tab.active {
    background: #c41e1e;
    color: #FFD966;
    border-color: #FFD966;
}

.tab span {
    background: #3a1e1e;
    border-radius: 30px;
    padding: 0 0.4rem;
    font-size: 0.65rem;
}

.tab.active span {
    background: #FFD966;
    color: #1a0a0a;
}

/* ========== LISTA DE PELEADORES ========== */
.fighters-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
    margin: 0.5rem 0;
}

.fighters-list li {
    background: #130c0e;
    margin: 0.5rem 0;
    padding: 0.6rem 0.8rem;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-right: 3px solid #c41e1e;
    font-weight: bold;
    font-size: 0.85rem;
}

.fighter-cat-badge {
    font-size: 0.7rem;
    background: #2a1818;
    padding: 0.2rem 0.5rem;
    border-radius: 30px;
    margin-left: 0.5rem;
}

.delete-fighter {
    background: #331c1c;
    border: none;
    color: #ffa2a2;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.delete-fighter:hover {
    background: #c41e1e;
    color: white;
}

.empty-placeholder {
    text-align: center !important;
    justify-content: center !important;
    color: #7a6a5a;
    font-style: italic;
}

.stats-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #c41e1e;
    font-size: 0.8rem;
    font-weight: bold;
    color: #FFD966;
}

/* ========== BRACKET ESTILO ========== */
.bracket-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.round-card {
    background: rgba(16, 10, 12, 0.85);
    border-radius: 20px;
    overflow: hidden;
    border-left: 5px solid #c41e1e;
}

.round-header {
    background: #1a1113;
    padding: 0.6rem 1rem;
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    color: #FFD966;
    border-bottom: 1px solid #c41e1e;
    display: flex;
    justify-content: space-between;
}

.category-tag {
    background: #c41e1e;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-family: sans-serif;
}

.match-card {
    background: #0f090b;
    margin: 0.7rem;
    padding: 0.7rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    border: 1px solid #3a2a2a;
}

.fighters-names {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.fighter-pill {
    background: #1f1518;
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.85rem;
    border-left: 2px solid #FFD966;
}

.vs {
    font-family: 'Bangers', cursive;
    color: #c41e1e;
}

.winner-badge {
    background: #2a683a;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: bold;
}

.select-area {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.select-area select {
    background: #1e1416;
    border: 1px solid #c41e1e;
    border-radius: 30px;
    padding: 0.2rem 0.5rem;
    color: #FFD966;
    font-size: 0.7rem;
}

.btn-tiny {
    background: #c41e1e;
    padding: 0.2rem 0.7rem;
    font-size: 0.65rem;
    border-radius: 30px;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    border: 1px dashed #c41e1e;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.champion-banner {
    margin-top: 1rem;
    background: linear-gradient(90deg, #FFD966, #c41e1e);
    color: #0a0202;
    text-align: center;
    padding: 0.6rem;
    border-radius: 40px;
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    font-weight: bold;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 750px) {
    body {
        padding: 0.8rem;
    }

    .control-panel {
        flex-direction: column;
        align-items: stretch;
        border-radius: 28px;
    }

    .add-section,
    .actions-section {
        justify-content: center;
    }

    .main-layout {
        flex-direction: column;
    }

    .match-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .select-area {
        align-self: flex-end;
    }
}