/* RankingNext v1.0.8 — Softer Balanced ForumStyle HeroTabs */

.rankingnext-shell{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    border:1px solid rgba(217,129,43,.34);
    border-radius:22px;
    padding:18px;
    background:
        radial-gradient(circle at 18% 18%, rgba(214,120,33,.16), transparent 34%),
        radial-gradient(circle at 84% 70%, rgba(154,82,23,.12), transparent 38%),
        linear-gradient(135deg, rgba(36,22,13,.96) 0%, rgba(16,16,16,.98) 48%, rgba(25,15,10,.96) 100%);
    box-shadow:0 18px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,190,115,.08);
    overflow:hidden;
}

.rankingnext-hero-tabs{
    display:flex;
    align-items:flex-end;
    gap:10px;
    flex-wrap:wrap;
    padding:0 18px;
    margin:0 0 -1px 0;
    position:relative;
    z-index:3;
}

.rankingnext-hero-tab{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    min-width:130px;
    min-height:50px;
    padding:12px 23px 13px;
    border:1px solid rgba(217,129,43,.40);
    border-bottom-color:rgba(217,129,43,.28);
    border-radius:16px 16px 0 0;
    background:linear-gradient(180deg, rgba(32,24,18,.94), rgba(19,17,15,.96));
    color:#d9c1a1;
    font-size:15.6px;
    font-weight:950;
    line-height:1.1;
    letter-spacing:.025em;
    text-decoration:none;
    box-shadow:inset 0 1px 0 rgba(255,190,115,.08);
}

.rankingnext-tab-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:18.7px;
    line-height:1;
}

.rankingnext-hero-tab:hover,
.rankingnext-hero-tab.is-active{
    color:#fff2d8;
    border-color:rgba(255,174,87,.62);
    border-bottom-color:rgba(38,24,15,.96);
    background:linear-gradient(180deg, rgba(87,48,21,.98), rgba(38,24,15,.98));
    box-shadow:0 -8px 22px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,206,132,.17);
}

.rankingnext-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(220px,300px);
    gap:18px;
    align-items:stretch;
    border:1px solid rgba(255,174,87,.34);
    border-radius:0 18px 18px 18px;
    padding:24px;
    background:
        radial-gradient(circle at 18% 22%, rgba(255,139,38,.22), transparent 38%),
        linear-gradient(135deg, rgba(43,27,15,.98) 0%, rgba(18,17,16,.98) 62%, rgba(31,21,15,.98) 100%);
    box-shadow:inset 0 1px 0 rgba(255,206,132,.10), 0 14px 34px rgba(0,0,0,.25);
}

.rankingnext-kicker{
    display:inline-flex;
    align-items:center;
    color:#ffb56d;
    font-size:12px;
    font-weight:950;
    letter-spacing:.08em;
    text-transform:uppercase;
    margin-bottom:8px;
}

.rankingnext-hero h1{
    margin:0;
    color:#ffe0b5;
    font-size:clamp(28px,4vw,44px);
    line-height:1.06;
    letter-spacing:-.04em;
    text-shadow:0 2px 18px rgba(0,0,0,.42);
}

.rankingnext-hero p{
    max-width:760px;
    margin:12px 0 0;
    color:#cab49a;
    line-height:1.58;
}

.rankingnext-hero-focus{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:8px;
    border:1px solid rgba(255,174,87,.22);
    border-radius:16px;
    padding:16px;
    background:linear-gradient(180deg, rgba(13,13,13,.52), rgba(23,17,13,.66));
}

.rankingnext-hero-focus span,
.rankingnext-hero-focus small{
    color:#a99378;
    font-size:13px;
}

.rankingnext-hero-focus strong{
    color:#ffd59b;
    font-size:24px;
    line-height:1.1;
}

.rankingnext-stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    margin-top:16px;
}

.rankingnext-stat-card,
.rankingnext-toolbar,
.rankingnext-empty,
.rankingnext-row{
    border:1px solid rgba(217,129,43,.22);
    border-radius:16px;
    background:linear-gradient(180deg, rgba(19,18,16,.76), rgba(12,12,12,.82));
    box-shadow:inset 0 1px 0 rgba(255,190,115,.04);
}

.rankingnext-stat-card{
    padding:16px;
}

.rankingnext-stat-card span,
.rankingnext-toolbar span{
    display:block;
    color:#a99378;
    font-size:13px;
    margin-bottom:6px;
}

.rankingnext-stat-card strong{
    color:#ffc277;
    font-size:28px;
    line-height:1;
}

.rankingnext-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-top:16px;
    padding:14px 16px;
}

.rankingnext-toolbar strong{
    color:#ffe0b5;
}

.rankingnext-limit-form label{
    display:flex;
    align-items:center;
    gap:8px;
    color:#cdb99e;
    font-weight:800;
}

.rankingnext-limit-form select{
    background:#111;
    border:1px solid rgba(217,129,43,.35);
    border-radius:10px;
    color:#f5e2c8;
    padding:8px 10px;
}

.rankingnext-empty{
    margin-top:16px;
    padding:22px;
    color:#cdb99e;
}

.rankingnext-empty h3{
    margin:0 0 8px;
    color:#ffd59b;
}

.rankingnext-board{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:16px;
}

.rankingnext-row{
    display:grid;
    grid-template-columns:74px minmax(240px,1.4fr) minmax(140px,.55fr) minmax(190px,.8fr) minmax(120px,.45fr);
    align-items:center;
    gap:10px;
    padding:14px;
}

.rankingnext-row.is-top{
    border-color:rgba(255,183,93,.48);
    background:
        radial-gradient(circle at 7% 50%, rgba(255,154,45,.12), transparent 28%),
        linear-gradient(180deg, rgba(34,24,16,.88), rgba(14,13,12,.88));
}

.rankingnext-position{
    display:flex;
    align-items:center;
    justify-content:center;
    width:52px;
    height:52px;
    border-radius:16px;
    border:1px solid rgba(255,174,87,.30);
    background:rgba(0,0,0,.24);
    color:#ffe0b5;
    font-weight:950;
}

.rankingnext-user{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
    color:inherit;
    text-decoration:none;
}

.rankingnext-avatar{
    width:52px;
    height:52px;
    border-radius:15px;
    overflow:hidden;
    border:1px solid rgba(255,174,87,.28);
    background:linear-gradient(135deg,#3b2414,#111);
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#ffd59b;
    font-weight:950;
    font-size:18.7px;
}

.rankingnext-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.rankingnext-user-text{
    min-width:0;
}

.rankingnext-user-text strong{
    display:block;
    color:#fff0d3;
    font-size:17px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.rankingnext-user-text span,
.rankingnext-user-text small{
    display:block;
    color:#a99378;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.rankingnext-user-text small{
    margin-top:2px;
    color:#806f5f;
}

.rankingnext-level span,
.rankingnext-score-grid span,
.rankingnext-active-score span{
    display:block;
    color:#a99378;
    font-size:12px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.rankingnext-level strong,
.rankingnext-score-grid strong,
.rankingnext-active-score strong{
    display:block;
    color:#ffd59b;
    font-size:18.7px;
    margin-top:3px;
}

.rankingnext-progress{
    height:7px;
    margin-top:8px;
    border-radius:999px;
    overflow:hidden;
    background:rgba(255,255,255,.07);
}

.rankingnext-progress i{
    display:block;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(90deg,#ba681e,#ffb05e);
}

.rankingnext-score-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.rankingnext-score-grid > div,
.rankingnext-active-score{
    border:1px solid rgba(255,174,87,.16);
    border-radius:13px;
    background:rgba(0,0,0,.16);
    padding:10px;
}

.rankingnext-active-score{
    text-align:right;
}


/* v1.0.8: noch etwas kompakterer ForumNext-ähnlicher Größen-Override für RankingNext.
   Ziel: minimal kleiner als v1.0.7, ohne wieder in Mini-Button-Optik zurückzufallen. */
.rankingnext-shell .rankingnext-hero-tab{
    min-width:132px;
    min-height:52px;
    padding:13px 24px 14px;
    font-size:15.3px;
}
.rankingnext-shell .rankingnext-tab-icon{
    font-size:18.2px;
}

@media(max-width:1100px){
    .rankingnext-row{
        grid-template-columns:64px minmax(220px,1fr) minmax(130px,.5fr);
    }
    .rankingnext-score-grid,
    .rankingnext-active-score{
        grid-column:2 / -1;
    }
    .rankingnext-active-score{
        text-align:left;
    }
}

@media(max-width:760px){
    .rankingnext-shell{
        padding:12px;
        border-radius:18px;
    }
    .rankingnext-hero-tabs{
        padding:0 12px;
        gap:9px;
    }
    .rankingnext-hero-tab{
        flex:1 1 112px;
        min-width:112px;
        min-height:48px;
        padding:12px 16px 13px;
        font-size:14.5px;
    }
    .rankingnext-tab-icon{
        font-size:15.6px;
    }
    .rankingnext-hero{
        grid-template-columns:1fr;
        padding:18px;
    }
    .rankingnext-stats{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .rankingnext-toolbar{
        align-items:flex-start;
        flex-direction:column;
    }
    .rankingnext-row{
        grid-template-columns:54px minmax(0,1fr);
    }
    .rankingnext-level,
    .rankingnext-score-grid,
    .rankingnext-active-score{
        grid-column:1 / -1;
    }
}

@media(max-width:520px){
    .rankingnext-stats{
        grid-template-columns:1fr;
    }
    .rankingnext-score-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:760px){
    .rankingnext-shell .rankingnext-hero-tab{
        flex:1 1 112px;
        min-width:112px;
        min-height:48px;
        padding:12px 16px 13px;
        font-size:14.5px;
    }
    .rankingnext-shell .rankingnext-tab-icon{
        font-size:15.6px;
    }
}
