:root {
    --bg1: #120000;
    --bg2: #1a0600;
    --card: #161616;
    --red: #ff3c00;
    --orange: #ff8c00;
    --text: #f2f2f2;
    --muted: #a1a1a1;
}

* {
    box-sizing: border-box;
    font-family: Inter, Arial, sans-serif;
}

body {
    margin: 0;
    color: var(--text);
    min-height: 100vh;
    background: linear-gradient(-45deg, var(--bg1), var(--bg2), #200800);
    background-size: 400% 400%;
    animation: bg 15s ease infinite;
}

@keyframes bg {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

header {
    text-align: center;
    padding: 40px;
}

header h1 {
    font-size: 2.8rem;
    background: linear-gradient(90deg, var(--red), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    max-width: 1150px;
    margin: auto;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(22,22,22,0.9);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    overflow: hidden;
}

th, td {
    padding: 16px;
}

th {
    background: #0f0f0f;
    color: var(--muted);
}

tr:not(:last-child) {
    border-bottom: 1px solid #2a2a2a;
}

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

.skin {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    image-rendering: pixelated;
    box-shadow: 0 0 10px #ff3c0044;
}

.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .85rem;
}

.ban {
    color: var(--red);
    background: #ff3c0022;
}

.mute {
    color: var(--orange);
    background: #ff8c0022;
}

.countdown {
    font-weight: 600;
}

.expired {
    color: #6cff6c;
}

footer {
    text-align: center;
    padding: 25px;
    color: var(--muted);
}

/* ===== History Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-box {
    background: #161616;
    width: 90%;
    max-width: 800px;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 0 40px #000;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
}

.close {
    cursor: pointer;
    font-size: 1.5rem;
    color: #aaa;
}

.history-entry {
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}

.history-entry:last-child {
    border-bottom: none;
}

.history-entry strong {
    display: inline-block;
    width: 70px;
}

