.level-hero {
    text-align: center;
    padding: 20px 0 30px;
    position: relative;
}

.level-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid var(--border-primary);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.level-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: -0.03em;
}

.level-meta-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.level-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.level-meta-row strong {
    color: #fff;
    font-weight: 600;
}

.level-stats-ribbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 16px 36px;
    background: rgba(20, 17, 15, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin: 24px auto 36px;
    box-shadow: var(--shadow-sm);
}

.level-stat-item {
    text-align: center;
}

.level-stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.level-stat-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Inter', monospace;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.level-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-subtle);
}

.video-section {
    max-width: 900px;
    margin: 0 auto 48px;
}

.video-frame-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: #000;
    box-shadow: var(--shadow-md);
}

.video-frame-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: none;
}

.custom-table {
    border-collapse: collapse;
    width: 100%;
    background: transparent !important;
}

.custom-table thead th {
    border: none;
    border-bottom: 1px solid var(--border-strong);
    color: var(--text-dim);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 12px 16px;
}

.custom-table tbody tr {
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.custom-table tbody tr:last-child {
    border-bottom: none;
}

.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035) !important;
}

.custom-table td {
    border: none !important;
    padding: 14px 16px !important;
    vertical-align: middle;
}

.player-link {
    color: var(--text-main);
    text-decoration: none !important;
    font-weight: 600;
    transition: var(--transition);
}

.player-link:hover {
    color: var(--primary) !important;
}

.btn-yt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    transition: var(--transition);
}

.btn-yt:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

@media (max-width: 768px) {
    .level-hero-title {
        font-size: 2rem;
    }

    .level-stats-ribbon {
        width: 100%;
        gap: 16px;
        padding: 14px 20px;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(18, 16, 14, 0.95);
    }

    .level-stat-val {
        font-size: 1.4rem;
    }

    .level-meta-row {
        gap: 12px;
        font-size: 0.85rem;
    }

    .custom-table td,
    .custom-table thead th {
        padding: 10px 8px !important;
    }
}