*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}

body.linkhub-page{background:#0d0d0d!important;min-height:100vh;}

/* Hide theme elements */
body.linkhub-page .site-header,
body.linkhub-page .site-footer,
body.linkhub-page #sidebar,
body.linkhub-page .widget-area,
body.linkhub-page nav,
body.linkhub-page .breadcrumbs,
body.linkhub-page .page-title,
body.linkhub-page .entry-title{display:none!important;}

body.linkhub-page #page,
body.linkhub-page #content,
body.linkhub-page .site-content,
body.linkhub-page main,
body.linkhub-page article,
body.linkhub-page .entry-content{
    padding:0!important;margin:0!important;
    max-width:100%!important;background:transparent!important;
    box-shadow:none!important;border:none!important;
}

/* ── WRAP ── */
.lh-wrap{
    min-height:100vh;width:100%;
    max-width:600px;margin:0 auto;
    padding:0 0 80px;
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    --lh-accent:#f5c518;
    --lh-card-bg:#1c1c1e;
    --lh-title-color:#ffffff;
    --lh-views-color:#f5c518;
}

/* ── PROFILE ── */
.lh-profile{
    text-align:center;
    padding:52px 20px 32px;
    background:linear-gradient(180deg,rgba(255,255,255,.03) 0%,transparent 100%);
    border-bottom:1px solid rgba(255,255,255,.06);
    margin-bottom:24px;
}
.lh-avatar{
    width:100px;height:100px;margin:0 auto 18px;
    border-radius:50%;overflow:hidden;
    border:3px solid var(--lh-accent);
    box-shadow:0 0 0 6px rgba(245,197,24,.12),0 12px 40px rgba(0,0,0,.6);
}
.lh-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.lh-name{font-size:1.5rem;font-weight:800;color:#fff;margin-bottom:8px;}
.lh-desc{font-size:.9rem;color:rgba(255,255,255,.5);}

/* ── SEARCH ── */
.lh-search-wrap{
    padding:0 14px 18px;position:sticky;top:0;z-index:100;
    padding-top:14px;
    background:inherit;
}
.lh-search-box{
    display:flex;align-items:center;
    background:rgba(255,255,255,.07);
    border:2px solid rgba(245,197,24,.45);
    border-radius:16px;padding:0 16px;gap:10px;
    transition:border-color .2s,box-shadow .2s;
    box-shadow:0 0 20px rgba(245,197,24,.07);
}
.lh-search-box:focus-within{
    border-color:var(--lh-accent);
    box-shadow:0 0 0 4px rgba(245,197,24,.15),0 0 30px rgba(245,197,24,.1);
}
.lh-search-icon{width:18px;height:18px;color:var(--lh-accent);flex-shrink:0;}
#lh-search{
    flex:1;background:transparent;border:none;outline:none;
    color:#fff;font-size:.95rem;padding:14px 0;
    caret-color:var(--lh-accent);
}
#lh-search::placeholder{color:rgba(255,255,255,.3);}
#lh-search-clear{
    background:none;border:none;color:rgba(255,255,255,.35);
    font-size:14px;cursor:pointer;padding:4px;display:none;
}
#lh-search-clear:hover{color:#fff;}
#lh-no-results{
    text-align:center;color:rgba(255,255,255,.35);
    font-size:.85rem;padding:14px 0 0;display:none;
}

/* ── CARDS ── */
.lh-list{display:flex;flex-direction:column;gap:10px;padding:0 14px;}

.lh-card{
    display:flex;align-items:center;gap:14px;
    background:var(--lh-card-bg);
    border:1.5px solid rgba(255,255,255,.08);
    border-radius:16px;
    padding:10px 14px 10px 10px;
    text-decoration:none;color:#fff;
    transition:background .2s,transform .15s,border-color .2s,box-shadow .2s;
    cursor:pointer;overflow:hidden;
}
.lh-card:hover{
    background:rgba(255,255,255,.1);
    border-color:rgba(245,197,24,.5);
    transform:translateY(-2px);
    box-shadow:0 8px 24px rgba(0,0,0,.35);
    color:#fff;text-decoration:none;
}
.lh-card:active{transform:scale(.97);}

/* Rainbow search highlight */
@keyframes lh-rainbow{
    0%  {border-color:#f5c518;box-shadow:0 0 16px rgba(245,197,24,.55);}
    25% {border-color:#ff6b35;box-shadow:0 0 16px rgba(255,107,53,.55);}
    50% {border-color:#e040fb;box-shadow:0 0 16px rgba(224,64,251,.55);}
    75% {border-color:#00e5ff;box-shadow:0 0 16px rgba(0,229,255,.55);}
    100%{border-color:#f5c518;box-shadow:0 0 16px rgba(245,197,24,.55);}
}
.lh-card.lh-highlight{
    animation:lh-rainbow 1.4s linear infinite;
    background:rgba(245,197,24,.07)!important;
}
.lh-card.lh-hidden{display:none!important;}

/* ── THUMBNAIL — fixed small size ── */
.lh-thumb{
    width:72px;height:72px;
    min-width:72px;min-height:72px;
    max-width:72px;max-height:72px;
    border-radius:12px;overflow:hidden;
    flex-shrink:0;background:rgba(255,255,255,.06);
    position:relative;
}
.lh-thumb img{width:100%;height:100%;object-fit:cover;display:block;}

.lh-play-icon{
    position:absolute;bottom:5px;right:5px;
    width:22px;height:22px;border-radius:50%;
    background:rgba(0,0,0,.75);
    display:flex;align-items:center;justify-content:center;
}
.lh-play-icon svg{width:10px;height:10px;color:#fff;margin-left:2px;}

.lh-thumb-placeholder{
    width:100%;height:100%;
    display:flex;align-items:center;justify-content:center;
}
.lh-thumb-placeholder svg{width:28px;height:28px;color:rgba(255,255,255,.2);}

/* ── CARD BODY ── */
.lh-card-body{flex:1;min-width:0;}
.lh-title{
    font-size:.93rem;font-weight:600;
    color:var(--lh-title-color);
    display:block;overflow:hidden;
    text-overflow:ellipsis;white-space:nowrap;
    line-height:1.4;margin-bottom:4px;
}
.lh-title mark{
    background:var(--lh-accent);color:#000;
    border-radius:3px;padding:0 2px;
}
.lh-views{
    display:inline-flex;align-items:center;gap:4px;
    font-size:.75rem;color:var(--lh-views-color);font-weight:500;
}

/* ── ARROW ── */
.lh-arrow{flex-shrink:0;color:rgba(255,255,255,.25);}
.lh-arrow svg{width:18px;height:18px;}
.lh-card:hover .lh-arrow{color:var(--lh-accent);}

/* ── EMPTY ── */
.lh-empty{text-align:center;padding:60px 20px;}
.lh-empty-icon{font-size:52px;margin-bottom:16px;}
.lh-empty p{color:rgba(255,255,255,.35);font-size:1rem;margin-bottom:14px;}
.lh-empty a{color:var(--lh-accent);text-decoration:none;}

/* Desktop centering */
@media(min-width:641px){
    .lh-wrap{background:#1a1a1a!important;}
    body.linkhub-page{background:#0d0d0d!important;}
}

/* Mobile */
@media(max-width:480px){
    .lh-name{font-size:1.25rem;}
    .lh-thumb{width:64px;height:64px;min-width:64px;min-height:64px;}
    .lh-title{font-size:.88rem;}
    .lh-list{padding:0 10px;gap:8px;}
    .lh-card{padding:8px 12px 8px 8px;gap:10px;}
}
