body {
    background-color: #111;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: white;
    overflow: hidden; 
}

.list-name {
    background-color: #ff5757;
    color: white;
    font-size: 2em;
    font-family: monospace;
    padding: 15px 30px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    background-color: white;
    color: #ff5757;
    border: none;
    padding: 8px 18px;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.5em;
    text-transform: uppercase;
}

.main-layout {
    display: flex;
    margin-top: 80px; 
    height: calc(100vh - 80px);
}

.levels-list {
    width: 320px;
    background: #181818;
    overflow-y: auto;
    border-right: 1px solid #333;
    padding: 10px;
    transition: margin-left 0.3s ease, opacity 0.2s ease;
}

.levels-list.hidden { margin-left: -320px; opacity: 0; pointer-events: none; }

.level-item-compact {
    background: #222;
    margin-bottom: 5px;
    padding: 15px;
    cursor: pointer;
    border-left: 4px solid #444;
    font-family: monospace;
}

.level-item-compact.active { background: #ff5757; border-left: 4px solid white; }

.details-panel { flex-grow: 1; padding: 40px 60px; background: #111; overflow-y: auto; }

.details-title { font-size: 3.5em; font-weight: 900; color: #ff5757; text-transform: uppercase; margin: 0; }

.video-container {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: 25px 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.video-container iframe { width: 100%; height: 100%; border: none; }

.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

.stat-box { background: #1a1a1a; padding: 20px; border-bottom: 3px solid #ff5757; border-radius: 8px; }
.stat-label { font-size: 0.8em; color: #ff5757; text-transform: uppercase; display: block; }
.stat-value { font-size: 1.2em; font-weight: bold; }

/* Victor List Styling */
.victors-section { margin-top: 40px; background: #1a1a1a; padding: 25px; border-radius: 8px; }
.victors-header { color: #ff5757; font-size: 0.9em; text-transform: uppercase; margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 10px; }
/* ... Keep your existing CSS ... */

.victors-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.victor-entry {
    background: #222;
    border-radius: 4px;
    transition: 0.2s;
    border-left: 3px solid #444;
}

.victor-entry:hover {
    background: #2a2a2a;
    border-left: 3px solid #ff5757;
}

.victor-name-link {
    display: block;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    font-family: monospace;
    font-weight: bold;
    font-size: 1em;
}

.victor-name-no-link {
    display: block;
    padding: 12px 15px;
    color: #888;
    font-family: monospace;
}

/* Ensure the leaderboard still disappears when opening levels */
/* (This was handled in the init function in the previous step) */
.victor-name:hover { color: #ff5757; }
.victor-video-link { color: #ff5757; text-decoration: none; font-size: 0.8em; border: 1px solid #ff5757; padding: 4px 8px; border-radius: 3px; }
.victor-video-link:hover { background: #ff5757; color: white; }

.leaderboard-table { width: 100%; border-collapse: collapse
  /* ... Keep existing CSS ... */

.leaderboard-table {
    width: 100%;
    border-collapse: separate; 
    border-spacing: 0 10px; /* Adds space between the "boxed" rows */
    margin-top: 20px;
}

.leaderboard-table th {
    text-align: left;
    color: #ff5757;
    padding: 10px;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 1px;
}

.leaderboard-row {
    background: #1a1a1a; /* The box color */
    transition: 0.2s;
    cursor: pointer;
}

.leaderboard-row td {
    padding: 15px 10px;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

/* Rounded corners for the boxes */
.leaderboard-row td:first-child {
    border-left: 4px solid #444;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.leaderboard-row td:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Hover effect for the boxes */
.leaderboard-row:hover {
    background: #222;
}

.leaderboard-row:hover
  /* ... Keep your existing CSS ... */