/* ============================================================
   BattleRanker Item Page — Electric Yellow Theme 1
   ============================================================ */

.item-page-name-link{
    color:inherit;
    text-decoration:none;
}
.item-page-name-link:hover{
    color:var(--theme-page-accent);
    text-decoration:none;
}
.item-page-thumb-link{
    text-decoration:none;
}
.item-page-thumb-link img{
    transition:transform .16s ease;
}
.item-page-thumb-link:hover img{
    transform:scale(1.035);
}

.item-page{
    min-height:60vh;
    background:
        radial-gradient(circle at 10% 0,var(--theme-raw-rgba-231-255-0-045-5d766f),transparent 360px),
        var(--theme-bg);
    color:var(--theme-text);
}

.theme-item-electric .breadcrumb-bar{
    background:var(--theme-bg-deep);
    border-bottom:1px solid var(--theme-border);
    color:var(--theme-text-muted);
}
.theme-item-electric .breadcrumb{
    min-height:38px;
    font-size:10px;
    letter-spacing:.055em;
}
.theme-item-electric .breadcrumb strong{
    color:var(--theme-page-accent);
}

/* ------------------------------------------------------------
   Item profile hero
   ------------------------------------------------------------ */
.item-profile{
    position:relative;
    display:grid;
    grid-template-columns:minmax(250px,390px) minmax(0,1fr);
    gap:46px;
    align-items:center;
    padding-top:42px;
    padding-bottom:42px;
}

.item-profile::before{
    content:"";
    position:absolute;
    inset:18px 0;
    z-index:0;
    border:1px solid var(--theme-border);
    border-left:4px solid var(--theme-page-accent);
    border-radius:12px;
    background:
        radial-gradient(circle at 88% 15%,var(--theme-raw-rgba-231-255-0-07-5875df),transparent 28%),
        linear-gradient(135deg,var(--theme-raw-121827),var(--theme-raw-0b101c));
    pointer-events:none;
}

.item-profile-image,
.item-profile-copy{
    position:relative;
    z-index:1;
}

.item-profile-image{
    width:100%;
    aspect-ratio:4/3;
    margin-left:20px;
    overflow:hidden;
    display:grid;
    place-items:center;
    border:2px solid var(--theme-page-accent);
    border-radius:9px;
    background:var(--theme-raw-232a3e);
    color:var(--theme-page-accent);
    font-family:"Arial Narrow","Segoe UI",Arial,Helvetica,sans-serif;
    font-size:72px;
    font-weight:950;
    box-shadow:8px 8px 0 var(--theme-shadow-deep);
}

.item-profile-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.item-profile-copy{
    min-width:0;
    padding-right:34px;
}

.item-profile-kicker,
.item-section-kicker{
    display:inline-block;
    color:var(--theme-ink);
    background:var(--theme-page-accent);
    border-radius:4px;
    padding:5px 8px 4px;
    font-size:9px;
    font-weight:950;
    font-style:italic;
    letter-spacing:.06em;
    box-shadow:3px 3px 0 var(--theme-shadow-deep);
}

.item-profile-copy h1{
    margin:12px 0 0;
    max-width:820px;
    color:var(--theme-raw-fff);
    font-family:"Arial Narrow","Segoe UI",Arial,Helvetica,sans-serif;
    font-size:clamp(48px,6vw,78px);
    line-height:.9;
    letter-spacing:-.045em;
    font-style:italic;
    text-transform:uppercase;
}

.item-profile-copy p{
    max-width:670px;
    margin:16px 0 0;
    color:var(--theme-raw-b7becf);
    font-size:14px;
    line-height:1.5;
    font-weight:650;
}

.item-profile-stat{
    display:inline-flex;
    align-items:baseline;
    gap:9px;
    margin-top:22px;
    border:1px solid var(--theme-page-accent);
    border-radius:6px;
    background:var(--theme-page-accent);
    color:var(--theme-ink);
    padding:8px 13px;
    box-shadow:3px 3px 0 var(--theme-shadow-deep);
    transform:rotate(-1deg);
}

.item-profile-stat strong{
    font-family:"Arial Narrow","Segoe UI",Arial,Helvetica,sans-serif;
    font-size:27px;
    line-height:1;
    font-weight:950;
}
.item-profile-stat span{
    font-size:9px;
    font-weight:950;
    letter-spacing:.05em;
}

/* ------------------------------------------------------------
   Rankings section
   ------------------------------------------------------------ */
.item-rankings-section{
    padding-top:10px;
    padding-bottom:42px;
}

.item-section-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    border-top:1px solid var(--theme-border);
    padding:22px 0 13px;
}

.item-section-heading h2{
    margin:8px 0 0;
    color:var(--theme-raw-fff);
    font-family:"Arial Narrow","Segoe UI",Arial,Helvetica,sans-serif;
    font-size:30px;
    line-height:1;
    font-style:italic;
    text-transform:uppercase;
}

.item-ranking-list{
    overflow:hidden;
    border:1px solid var(--theme-border);
    border-radius:10px;
    background:var(--theme-surface);
    box-shadow:0 12px 28px var(--theme-raw-rgba-0-0-0-18-09884d);
}

.item-ranking-card{
    min-height:92px;
    display:grid;
    grid-template-columns:122px minmax(0,1fr) auto;
    align-items:center;
    gap:22px;
    padding:13px 18px;
    border-bottom:1px solid var(--theme-border);
    color:var(--theme-text);
    text-decoration:none;
    background:var(--theme-surface-raised);
    transition:background .12s ease,border-color .12s ease,transform .12s ease;
}
.item-ranking-card:last-child{
    border-bottom:0;
}
.item-ranking-card:hover{
    background:var(--theme-raw-1a203a);
}

.item-ranking-position{
    align-self:stretch;
    display:flex;
    flex-direction:column;
    justify-content:center;
    border-right:1px solid var(--theme-border);
}
.item-ranking-position small{
    color:var(--theme-text-muted);
    font-size:8px;
    font-weight:900;
    letter-spacing:.08em;
}
.item-ranking-position strong{
    margin-top:1px;
    color:var(--theme-page-accent);
    font-family:"Arial Narrow","Segoe UI",Arial,Helvetica,sans-serif;
    font-size:37px;
    line-height:1;
    font-style:italic;
    font-weight:950;
}

.item-ranking-copy h3{
    margin:0;
    color:var(--theme-raw-fff);
    font-family:"Arial Narrow","Segoe UI",Arial,Helvetica,sans-serif;
    font-size:22px;
    line-height:1.05;
}
.item-ranking-meta{
    display:flex;
    align-items:center;
    gap:7px;
    margin-top:6px;
    color:var(--theme-raw-8992aa);
    font-size:9px;
    font-weight:700;
}

.item-ranking-open{
    min-width:132px;
    border:1px solid var(--theme-page-accent);
    border-radius:6px;
    background:var(--theme-page-accent);
    color:var(--theme-ink);
    padding:10px 12px;
    font-size:9px;
    font-weight:950;
    text-align:center;
    box-shadow:3px 3px 0 var(--theme-shadow-deep);
}
.item-ranking-open span{
    color:var(--theme-ink);
    padding-left:4px;
}

.item-empty-state{
    border:1px solid var(--theme-border);
    border-left:3px solid var(--theme-page-accent);
    border-radius:9px;
    background:var(--theme-surface);
    padding:24px;
}
.item-empty-state strong{
    color:var(--theme-raw-fff);
    font-size:18px;
}
.item-empty-state p{
    margin:7px 0 14px;
    color:var(--theme-text-muted);
    font-size:12px;
}
.item-empty-state a{
    display:inline-block;
    background:var(--theme-page-accent);
    color:var(--theme-ink);
    border:1px solid var(--theme-page-accent);
    border-radius:6px;
    padding:9px 12px;
    text-decoration:none;
    font-size:10px;
    font-weight:950;
    box-shadow:3px 3px 0 var(--theme-shadow-deep);
}

/* Footer */
.theme-item-electric .site-footer{
    border-top:1px solid var(--theme-border);
    background:var(--theme-bg-deep);
}
.theme-item-electric .footer-brand span{
    color:var(--theme-page-accent);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media(max-width:820px){
    .item-profile{
        grid-template-columns:132px minmax(0,1fr);
        gap:18px;
        align-items:start;
        padding-top:28px;
        padding-bottom:30px;
    }

    .item-profile::before{
        inset:10px 0;
    }

    .item-profile-image{
        margin-left:12px;
        aspect-ratio:1/1;
        font-size:42px;
        box-shadow:5px 5px 0 var(--theme-shadow-deep);
    }

    .item-profile-copy{
        padding:7px 14px 0 0;
    }

    .item-profile-kicker{
        font-size:7px;
        padding:4px 6px 3px;
    }

    .item-profile-copy h1{
        margin-top:8px;
        font-size:clamp(34px,10vw,48px);
        line-height:.94;
        letter-spacing:-.035em;
    }

    .item-profile-copy p{
        margin-top:10px;
        font-size:11px;
    }

    .item-profile-stat{
        margin-top:13px;
        padding:6px 9px;
    }

    .item-profile-stat strong{
        font-size:21px;
    }

    .item-ranking-card{
        grid-template-columns:72px minmax(0,1fr);
        gap:12px;
        min-height:82px;
        padding:11px 10px;
    }

    .item-ranking-position{
        grid-row:1/3;
    }

    .item-ranking-position strong{
        font-size:30px;
    }

    .item-ranking-copy h3{
        font-size:17px;
    }

    .item-ranking-open{
        grid-column:2;
        min-width:0;
        justify-self:start;
        padding:7px 9px;
    }
}

@media(max-width:520px){
    .item-profile{
        grid-template-columns:104px minmax(0,1fr);
        gap:14px;
    }

    .item-profile-image{
        margin-left:8px;
    }

    .item-profile-copy h1{
        font-size:32px;
    }

    .item-profile-copy p{
        display:none;
    }

    .item-profile-stat{
        margin-top:11px;
    }

    .item-section-heading h2{
        font-size:23px;
    }

    .item-ranking-card{
        grid-template-columns:62px minmax(0,1fr);
        gap:10px;
        padding:10px 8px;
    }

    .item-ranking-position strong{
        font-size:27px;
    }
}


/* ================================================================
   Item Page Theme 1 polish — neutral image frame
   ================================================================ */
.theme-item-electric .item-profile-image{
    border-color:var(--theme-image-frame,var(--theme-raw-4a5470))!important;
    box-shadow:8px 8px 0 var(--theme-shadow-deep)!important;
}
@media(max-width:820px){
    .theme-item-electric .item-profile-image{
        box-shadow:5px 5px 0 var(--theme-shadow-deep)!important;
    }
}
