.header{position:fixed;inset:0 0 auto;width:100%;z-index:1000;padding:10px 32px;background:rgba(7,8,10,.84);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-bottom:1px solid rgba(226,184,87,.12);box-shadow:0 12px 35px rgba(0,0,0,.32)}
.header-inner{max-width:1440px;margin:auto;display:grid;grid-template-columns:minmax(280px,1fr) auto minmax(280px,1fr);align-items:center;gap:42px;direction:ltr}
.logo-brand-wrap{justify-self:end;display:inline-flex;align-items:center;gap:3px;text-decoration:none;direction:ltr;white-space:nowrap}
.brand-text-main,.brand-text-gold{font-family:"Midorima Personal Use","Midorima - Personal Use","Cinzel Decorative",serif;font-size:29px;font-weight:900;line-height:1}.brand-s-mark{font-family:"Tenkai DEMO","Tenkai Demo","Cinzel Decorative",serif;font-size:34px;font-weight:900;line-height:.85;color:#fff;display:inline-block;transform:translateY(1px)}
.brand-text-main{color:#fff}.brand-text-gold{color:var(--gold);text-shadow:0 0 18px rgba(226,184,87,.3)}
.main-nav{display:flex;align-items:center;justify-content:center;gap:30px;direction:rtl;white-space:nowrap}
.main-nav>a,.explore-trigger{position:relative;display:inline-flex;align-items:center;gap:8px;height:44px;color:rgba(255,255,255,.82);text-decoration:none;font-size:15px;font-weight:800;transition:.25s ease}
.main-nav>a i,.explore-trigger i{color:var(--gold);font-size:14px;transition:.25s ease}.main-nav>a:hover,.explore-trigger:hover{color:#fff}.main-nav>a:hover i,.explore-trigger:hover i{transform:translateY(-2px)}
.main-nav>a.active,.explore-trigger.active{color:var(--gold)}
.main-nav>a::after,.explore-trigger::after{content:"";position:absolute;right:50%;bottom:1px;transform:translateX(50%);width:0;height:2px;border-radius:999px;background:linear-gradient(90deg,transparent,var(--gold),transparent);transition:.25s ease}.main-nav>a:hover::after,.main-nav>a.active::after,.explore-trigger:hover::after{width:80%}
.explore{position:relative}.explore-trigger{appearance:none;border:0;outline:0;background:transparent;padding:0;cursor:pointer}.explore-trigger:focus-visible{outline:none;box-shadow:none}
.header-actions{justify-self:start;display:flex;align-items:center;gap:12px;direction:rtl}
.search-toggle,.login-btn{height:44px;border:1px solid rgba(226,184,87,.2);background:rgba(255,255,255,.035);color:#fff;cursor:pointer;transition:.25s ease}.search-toggle{width:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:15px}.search-toggle:hover{border-color:var(--gold);background:rgba(226,184,87,.08);box-shadow:0 0 20px rgba(226,184,87,.12)}
.login-btn{padding:0 17px;display:flex;align-items:center;gap:8px;border-radius:999px;font:inherit;font-size:13px;font-weight:800}.login-btn:hover{color:var(--gold);border-color:var(--gold);box-shadow:0 0 20px rgba(226,184,87,.12);transform:translateY(-1px)}
.search-overlay{position:fixed;inset:0;z-index:1400;display:none;align-items:flex-start;justify-content:center;padding:100px 20px 30px;background:rgba(0,0,0,.72);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.search-overlay.open{display:flex}.search-overlay-inner{width:min(820px,100%);position:relative}.search-overlay-bar{height:58px;display:flex;align-items:center;gap:12px;padding:0 18px;border:1px solid rgba(226,184,87,.28);border-radius:18px;background:#101114;box-shadow:0 25px 70px rgba(0,0,0,.55)}.search-overlay-bar i{color:var(--gold)}.search-overlay-bar input{flex:1;border:0;outline:0;background:transparent;color:#fff;font:inherit;font-size:15px}.search-overlay-close{width:38px;height:38px;border:0;border-radius:50%;background:transparent;color:#aaa;font-size:22px;cursor:pointer}.search-overlay-close:hover{color:var(--gold)}
.search-results{display:none;margin-top:10px;overflow:hidden;border:1px solid rgba(226,184,87,.16);border-radius:16px;background:rgba(10,11,14,.98);box-shadow:0 25px 60px rgba(0,0,0,.5)}.search-results.open{display:block}.search-result-item{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:13px;align-items:center;padding:11px;color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.055);transition:.2s}.search-result-item:last-child{border-bottom:0}.search-result-item:hover{background:rgba(226,184,87,.07)}.search-result-item img{width:58px;height:78px;object-fit:cover;border-radius:8px;border:1px solid rgba(226,184,87,.16);background:#111}.search-result-item img.is-broken{opacity:.25}.search-result-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.search-result-copy strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-result-copy small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-result-rating{display:flex;align-items:center;gap:4px;padding:6px 8px;border-radius:8px;background:#1d66d8;color:#fff;font-size:10px;font-weight:900;white-space:nowrap}.search-result-rating b{font-size:9px}.search-empty{padding:20px;color:var(--muted);text-align:center;font-size:12px}
@media(max-width:980px){.header{padding:10px 22px}.header-inner{grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr);gap:24px}.main-nav{gap:20px}.main-nav>a,.explore-trigger{font-size:13px}.brand-text-main,.brand-text-gold{font-size:24px}.login-btn span{display:none}.login-btn{width:44px;padding:0;justify-content:center}.search-toggle{width:42px;height:42px}.header-actions{gap:8px}}
@media(max-width:700px){.header{padding:10px 12px}.header-inner{grid-template-columns:1fr auto 1fr}.logo-brand-wrap{justify-self:center;grid-column:2;grid-row:1}.brand-text-main,.brand-text-gold{font-size:20px}.main-nav{display:none}.header-actions{grid-column:1/4;grid-row:1;justify-self:stretch;justify-content:space-between;pointer-events:none}.header-actions>*{pointer-events:auto}.login-btn{order:0}.search-toggle{order:2}.search-overlay{padding:82px 12px 20px}.search-result-item{grid-template-columns:50px minmax(0,1fr) auto}.search-result-item img{width:50px;height:68px}}
.mobile-menu-toggle{display:none;width:42px;height:42px;border:1px solid rgba(226,184,87,.2);border-radius:50%;background:rgba(255,255,255,.035);color:var(--gold);cursor:pointer}.mobile-menu{display:none;position:fixed;top:64px;right:12px;left:12px;z-index:1300;padding:8px;border:1px solid rgba(226,184,87,.18);border-radius:16px;background:rgba(10,11,14,.98);box-shadow:0 25px 55px rgba(0,0,0,.55);backdrop-filter:blur(18px)}.mobile-menu.open{display:block}.mobile-menu-inner{display:grid;grid-template-columns:1fr 1fr;gap:4px}.mobile-menu a{padding:13px 10px;border-radius:10px;color:#ddd;text-decoration:none;text-align:center;font-size:12px;font-weight:800}.mobile-menu a:hover{color:var(--gold);background:rgba(226,184,87,.06)}
@media(max-width:700px){.mobile-menu-toggle{display:flex;align-items:center;justify-content:center}.header-actions{gap:7px}.mobile-menu{top:62px}}
.explore-trigger{background:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;padding:0!important}
.explore-trigger:focus-visible{outline:none!important;box-shadow:none!important}


/* Explore menu — compact, consistent data rows */
.explore{position:relative}
.explore-trigger{background:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;padding:0!important}
.explore-trigger:focus-visible{outline:none!important;box-shadow:none!important}
.explore-panel{position:absolute;top:calc(100% + 14px);right:50%;transform:translate(50%,-8px);width:min(1280px,calc(100vw - 48px));display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.35fr);gap:14px;padding:18px;border:1px solid rgba(226,184,87,.18);border-radius:20px;background:rgba(9,10,12,.985);box-shadow:0 30px 90px rgba(0,0,0,.68),0 0 34px rgba(226,184,87,.05);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility .18s ease;max-height:calc(100vh - 100px);overflow:auto}
.explore-panel::before{content:"";position:absolute;top:-7px;right:50%;width:13px;height:13px;transform:translateX(50%) rotate(45deg);background:#090a0c;border-left:1px solid rgba(226,184,87,.18);border-top:1px solid rgba(226,184,87,.18)}
.explore.open .explore-panel{opacity:1;visibility:visible;pointer-events:auto;transform:translate(50%,0)}
.explore-column{min-width:0;padding:12px 12px 14px;border:1px solid rgba(255,255,255,.055);border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.006))}
.explore-column h3{margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid rgba(226,184,87,.18);color:var(--gold);font-size:14px;font-weight:900;display:flex;align-items:center;gap:8px}
.explore-list{display:flex;flex-direction:column;gap:8px}
.explore-item{display:grid;grid-template-columns:30px 58px minmax(0,1fr);gap:9px;align-items:center;min-height:82px;padding:7px;border-radius:10px;color:#fff;text-decoration:none;transition:transform .18s ease,background .18s ease,border-color .18s ease;border:1px solid transparent}
.explore-item:hover{background:rgba(226,184,87,.055);border-color:rgba(226,184,87,.12);transform:translateY(-1px)}
.explore-rank{width:26px;height:26px;border:1px solid rgba(226,184,87,.28);border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:11px;font-weight:900;background:rgba(226,184,87,.045)}
.explore-item img{width:58px;height:74px;object-fit:cover;border-radius:7px;border:1px solid rgba(226,184,87,.12);background:#111;display:block}
.explore-item-copy{min-width:0;display:flex;flex-direction:column;gap:4px;overflow:hidden}
.explore-item-copy strong{font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.explore-item-copy strong{white-space:normal;overflow:hidden;text-overflow:clip;display:grid;place-items:center;text-align:center;line-height:1.4;height:calc(1.4em * 3);min-height:calc(1.4em * 3);max-height:calc(1.4em * 3);padding:0 2px;box-sizing:border-box;word-break:normal;overflow-wrap:anywhere;align-content:center;}
.explore-meta-line{display:block;color:#cfd1d5;font-size:10px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.explore-meta-line.strong{color:#f0cf78;font-weight:900}
.explore-item-rating .explore-meta-line:nth-child(3){display:inline-flex;width:max-content;max-width:100%;padding:5px 7px;border-radius:8px;background:#1d66d8;color:#fff;font-weight:900}
.explore-empty{padding:20px 8px;color:var(--muted);font-size:10px;text-align:center;line-height:1.8}
.explore-loading{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--muted);padding:40px 12px;font-size:12px}
.explore-panel-heading{grid-column:1/-1;display:flex;align-items:flex-end;justify-content:space-between;padding:2px 2px 2px;direction:rtl}
.explore-panel-heading span{color:var(--gold);font-size:15px;font-weight:900}.explore-panel-heading small{color:var(--muted);font-size:10px}
@media(max-width:1180px){.explore-panel{width:min(1080px,calc(100vw - 30px));grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.explore{position:static}.explore-panel{position:fixed;top:70px;right:10px;left:10px;width:auto;transform:translateY(-8px);grid-template-columns:1fr;max-height:calc(100vh - 86px);padding:14px;gap:10px}.explore.open .explore-panel{transform:translateY(0)}.explore-panel::before{display:none}.explore-panel-heading{flex-direction:column;align-items:flex-start;gap:2px}.explore-column{padding:10px}.explore-item{grid-template-columns:28px 54px minmax(0,1fr);min-height:78px}.explore-item img{width:54px;height:70px}}

/* Final explore layout pass */
.explore-panel{width:min(1440px,calc(100vw - 36px));grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:20px;}
.explore-column{min-width:0;}
.explore-item{grid-template-columns:34px 82px minmax(0,1fr);gap:12px;min-height:98px;padding:8px;}
.explore-item img{width:82px;height:92px;object-fit:contain;background:#0a0b0f;object-position:center;}
.explore-item-copy{min-width:0;justify-content:center;align-items:stretch;}
.explore-item-copy strong{display:flex;align-items:center;justify-content:center;text-align:center;width:100%;height:4.2em;min-height:4.2em;max-height:4.2em;line-height:1.4;overflow:hidden;white-space:normal;overflow-wrap:anywhere;word-break:normal;}
.explore-meta-line{line-height:1.65;}
@media(max-width:1180px){.explore-panel{width:min(1120px,calc(100vw - 28px));grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:700px){.explore-panel{width:auto;grid-template-columns:1fr;padding:14px}.explore-item{grid-template-columns:30px 64px minmax(0,1fr);min-height:88px}.explore-item img{width:64px;height:78px;}}

.search-result-item img{object-fit:contain;background:#0a0b0f;}


/* Explore — final clean layout */
.explore-panel{
  width:min(1520px,calc(100vw - 40px));
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  padding:22px;
  max-height:min(82vh,760px);
}
.explore-column{
  padding:14px;
  border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,.006));
}
.explore-column h3{
  margin-bottom:14px;
  padding-bottom:12px;
  font-size:15px;
}
.explore-list{gap:10px}
.explore-item{
  grid-template-columns:34px 88px minmax(0,1fr);
  gap:12px;
  min-height:118px;
  padding:10px;
  align-items:center;
}
.explore-item img{
  width:88px;
  height:108px;
  object-fit:cover;
  object-position:center;
  border-radius:9px;
  image-rendering:auto;
}
.explore-item-copy{
  justify-content:center;
  align-self:stretch;
}
.explore-item-copy strong{
  height:4.2em;
  min-height:4.2em;
  max-height:4.2em;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:13px;
  line-height:1.4;
}
.explore-meta-line{font-size:11px;line-height:1.65}
.explore-rank{width:30px;height:30px;font-size:12px}
@media(max-width:1180px){
  .explore-panel{width:min(1120px,calc(100vw - 28px));grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .explore-panel{width:auto;grid-template-columns:1fr;padding:14px;gap:10px}
  .explore-item{grid-template-columns:30px 72px minmax(0,1fr);min-height:96px}
  .explore-item img{width:72px;height:90px}
}

/* FINAL PATCH — explore window */
.explore-panel{
  width:min(1540px,calc(100vw - 36px)) !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:18px !important;
  padding:22px !important;
}
.explore-column{min-width:0;display:flex;flex-direction:column;}
.explore-list{flex:1;gap:10px;}
.explore-item{
  grid-template-columns:34px 88px minmax(0,1fr) !important;
  gap:12px !important;
  min-height:118px !important;
  align-items:center !important;
}
.explore-item img{
  width:88px !important;
  height:108px !important;
  aspect-ratio:2 / 3 !important;
  object-fit:cover !important;
  object-position:center !important;
  display:block !important;
  image-rendering:auto !important;
  background:#08090c !important;
}
.explore-item-copy{min-width:0;min-height:108px;justify-content:center;}
.explore-item-copy strong{
  width:100%;height:4.2em;min-height:4.2em;max-height:4.2em;
  display:flex;align-items:center;justify-content:center;text-align:center;
  overflow:hidden;overflow-wrap:anywhere;line-height:1.4;
}
@media(max-width:1180px){.explore-panel{width:min(1120px,calc(100vw - 28px)) !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;}}
@media(max-width:700px){
  .explore-panel{width:auto !important;grid-template-columns:1fr !important;padding:14px !important;}
  .explore-item{grid-template-columns:30px 72px minmax(0,1fr) !important;min-height:96px !important;}
  .explore-item img{width:72px !important;height:90px !important;}
  .explore-item-copy{min-height:90px;}
}


/* FINAL LAYOUT TUNE — centered wide explore window */
.explore-panel{
  position:fixed !important;
  top:50% !important;
  right:50% !important;
  left:auto !important;
  transform:translate(50%,-48%) !important;
  width:min(1680px,calc(100vw - 56px)) !important;
  max-height:min(88vh,820px) !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:20px !important;
  padding:24px !important;
  margin:0 !important;
}
.explore.open .explore-panel{transform:translate(50%,-50%) !important;}
.explore-panel::before{display:none !important;}
.explore-panel-heading{padding:0 2px 4px !important;}
.explore-panel-heading small{display:none !important;}
.explore-column{min-width:0 !important;min-height:0 !important;}
@media(max-width:1180px){
  .explore-panel{
    width:min(1160px,calc(100vw - 36px)) !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:700px){
  .explore-panel{
    top:50% !important;
    right:10px !important;
    left:10px !important;
    width:auto !important;
    max-height:88vh !important;
    grid-template-columns:1fr !important;
    padding:14px !important;
    transform:translateY(-48%) !important;
  }
  .explore.open .explore-panel{transform:translateY(-50%) !important;}
}

/* DEFINITIVE CENTERED EXPLORE MODAL */
.explore-panel{
  position:fixed !important;
  top:50% !important;
  left:50% !important;
  right:auto !important;
  bottom:auto !important;
  transform:translate(-50%,-50%) scale(.985) !important;
  transform-origin:center center !important;
  width:min(1500px,calc(100vw - 64px)) !important;
  max-width:none !important;
  max-height:min(84vh,820px) !important;
  overflow:auto !important;
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:18px !important;
  padding:22px !important;
  margin:0 !important;
  z-index:2200 !important;
}
.explore.open .explore-panel{
  transform:translate(-50%,-50%) scale(1) !important;
}
.explore-panel::before{display:none !important;}
.explore-panel-heading{grid-column:1/-1 !important;}
.explore-column{min-width:0 !important;width:auto !important;}
@media(max-width:1180px){
  .explore-panel{
    width:min(1100px,calc(100vw - 40px)) !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:700px){
  .explore-panel{
    top:50% !important;
    left:50% !important;
    right:auto !important;
    width:calc(100vw - 24px) !important;
    max-height:86vh !important;
    grid-template-columns:1fr !important;
    padding:14px !important;
    gap:10px !important;
    transform:translate(-50%,-50%) scale(.985) !important;
  }
  .explore.open .explore-panel{transform:translate(-50%,-50%) scale(1) !important;}
}

/* FINAL EXPLORE WINDOW POSITION
   Always opens centered directly below the fixed header. */
.explore-panel {
  position: fixed !important;
  top: 72px !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  width: min(1520px, calc(100vw - 36px)) !important;
  max-height: calc(100vh - 92px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 1250 !important;
  box-sizing: border-box !important;
}
.explore.open .explore-panel {
  transform: translateX(-50%) !important;
}
.explore-panel::before { display: none !important; }
.explore-panel-heading { display: none !important; }
.explore-column { min-width: 0 !important; width: 100% !important; }
.explore-item img { object-fit: fill !important; }

@media (max-width: 1180px){
  .explore-panel {
    width: min(1080px, calc(100vw - 28px)) !important;
  }
}
@media (max-width: 700px){
  .explore-panel {
    top: 64px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-height: calc(100vh - 76px) !important;
    transform: translateY(-8px) !important;
  }
  .explore.open .explore-panel { transform: translateY(0) !important; }
}

/* Final header interaction cleanup */
.explore-trigger::after,.explore-trigger.active::after,.explore-trigger:hover::after{display:none!important;width:0!important}
.explore-trigger:focus,.explore-trigger:focus-visible,.explore-trigger:active{outline:none!important;box-shadow:none!important;border:0!important}
.header-inner{grid-template-columns:minmax(260px,1fr) auto minmax(260px,1fr);}
.logo-brand-wrap{justify-self:end}
.header-actions{justify-self:start}
@media(max-width:980px){.header-inner{grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr);}.brand-s-mark{font-size:29px}}
@media(max-width:700px){.logo-brand-wrap{justify-self:center;grid-column:2;grid-row:1}.header-actions{grid-column:1/4;grid-row:1;justify-self:stretch;justify-content:space-between}}


/* Embedded Steel Ball wordmark fonts */
@font-face{font-family:"Tenkai DEMO";src:url("../assets/fonts/Tenkai-DEMO.otf") format("opentype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Midorima Personal Use";src:url("../assets/fonts/Midorima-PersonalUse-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}

/* Final wordmark typography */
.logo-brand-wrap{gap:2px}
.brand-s-mark{font-family:"Tenkai DEMO","Tenkai Demo","Cinzel Decorative",serif;font-size:35px;font-weight:400;line-height:.84;color:#fff;display:inline-block;transform:translateY(1px)}
.brand-text-main,.brand-text-gold{font-family:"Midorima Personal Use","Midorima - Personal Use","Cinzel Decorative",serif;font-size:30px;font-weight:400;line-height:1}
.brand-text-main{color:#fff}
.brand-text-gold{color:var(--gold);text-shadow:0 0 18px rgba(226,184,87,.3)}
@media(max-width:980px){.brand-s-mark{font-size:30px}.brand-text-main,.brand-text-gold{font-size:25px}}
@media(max-width:700px){.brand-s-mark{font-size:24px}.brand-text-main,.brand-text-gold{font-size:20px}}

/* ===== FINAL HEADER / SPACING PASS ===== */
.header{
  min-height:72px;
  padding:11px 30px;
}
.header-inner{
  width:min(1500px,100%);
  max-width:1500px;
  grid-template-columns:minmax(240px,1fr) auto minmax(240px,1fr);
  gap:34px;
}
.logo-brand-wrap{
  justify-self:end;
  margin-right:2px;
}
.main-nav{
  gap:34px;
}
.header-actions{
  justify-self:start;
  gap:10px;
}
.search-toggle,.login-btn{
  height:46px;
}
.search-toggle{width:46px}
.login-btn{padding-inline:18px}

@media(max-width:980px){
  .header{padding:10px 22px}
  .header-inner{grid-template-columns:minmax(210px,1fr) auto minmax(210px,1fr);gap:22px}
  .main-nav{gap:20px}
}

@media(max-width:700px){
  .header{min-height:62px;padding:9px 12px}
  .header-inner{grid-template-columns:1fr auto 1fr;gap:10px}
  .logo-brand-wrap{justify-self:center;grid-column:2;grid-row:1;margin:0}
  .header-actions{grid-column:1/4;grid-row:1;gap:7px}
}

/* ===== HEADER FINAL LAYOUT — right brand / centered navigation / left actions ===== */
.header{
  min-height:72px;
  padding:10px 28px;
}
.header-inner{
  width:min(1500px,100%);
  max-width:1500px;
  margin:0 auto;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:24px;
  direction:ltr;
}
.logo-brand-wrap{
  grid-column:3;
  grid-row:1;
  justify-self:end;
  align-items:center;
  gap:2px;
  margin:0;
  direction:ltr;
  padding:7px 2px;
  border-radius:10px;
  transition:transform .22s ease,filter .22s ease;
}
.logo-brand-wrap:hover{
  transform:translateY(-1px);
  filter:drop-shadow(0 0 12px rgba(226,184,87,.12));
}
.main-nav{
  grid-column:2;
  grid-row:1;
  justify-self:center;
  align-items:center;
  justify-content:center;
  gap:10px;
  direction:rtl;
  white-space:nowrap;
}
.main-nav>a,.explore-trigger{
  height:42px;
  padding:0 14px;
  border:1px solid transparent;
  border-radius:10px;
  color:rgba(255,255,255,.78);
  transition:color .22s ease,background .22s ease,border-color .22s ease,transform .22s ease,box-shadow .22s ease;
}
.main-nav>a i,.explore-trigger i{color:var(--gold);transition:transform .22s ease,color .22s ease}
.main-nav>a::after,.explore-trigger::after{display:none!important}
.main-nav>a:hover,.explore-trigger:hover,
.main-nav>a.active,.explore-trigger.active{
  color:#fff;
  background:rgba(226,184,87,.07);
  border-color:rgba(226,184,87,.16);
  box-shadow:0 8px 24px rgba(0,0,0,.18),inset 0 0 0 1px rgba(255,255,255,.02);
  transform:translateY(-1px);
}
.main-nav>a:hover i,.explore-trigger:hover i{transform:translateY(-2px) scale(1.04);color:var(--gold-2)}
.main-nav>a.active{color:var(--gold-2)}
.header-actions{
  grid-column:1;
  grid-row:1;
  justify-self:start;
  display:flex;
  align-items:center;
  gap:9px;
  direction:rtl;
}
.search-toggle,.login-btn{
  border-color:rgba(226,184,87,.18);
  background:rgba(255,255,255,.035);
  transition:transform .22s ease,color .22s ease,background .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.search-toggle:hover,.login-btn:hover{
  transform:translateY(-2px);
  border-color:rgba(226,184,87,.52);
  background:rgba(226,184,87,.075);
  box-shadow:0 10px 24px rgba(0,0,0,.2),0 0 18px rgba(226,184,87,.08);
}
.search-toggle:active,.login-btn:active,.main-nav>a:active,.explore-trigger:active{transform:translateY(0) scale(.98)}

@media(max-width:980px){
  .header{padding:9px 20px}
  .header-inner{grid-template-columns:auto minmax(0,1fr) auto;gap:14px}
  .main-nav{gap:4px}
  .main-nav>a,.explore-trigger{padding-inline:10px;font-size:12px}
  .logo-brand-wrap{justify-self:end}
  .header-actions{justify-self:start;gap:7px}
}

@media(max-width:700px){
  .header{min-height:62px;padding:9px 12px}
  .header-inner{grid-template-columns:auto 1fr auto;gap:8px}
  .logo-brand-wrap{grid-column:3;grid-row:1;justify-self:end}
  .main-nav{display:none}
  .header-actions{grid-column:1;grid-row:1;justify-self:start;gap:7px}
  .brand-s-mark{font-size:24px}.brand-text-main,.brand-text-gold{font-size:20px}
}

/* ===== POLISHED WORDMARK + HEADER INTERACTIONS ===== */
.header-inner{grid-template-columns:minmax(260px,1fr) minmax(0,1fr) minmax(260px,1fr) !important;gap:28px !important;}
.logo-brand-wrap{grid-column:3 !important;justify-self:end !important;gap:3px !important;padding:8px 3px !important;}
.brand-text-main,.brand-text-gold{font-size:40px !important;line-height:.94 !important;letter-spacing:.2px;}
.brand-s-mark{font-size:52px !important;line-height:.78 !important;transform:translateY(2px) !important;}
.logo-brand-wrap:hover .brand-s-mark{filter:drop-shadow(0 0 10px rgba(240,207,120,.22));}
.main-nav{grid-column:2 !important;justify-self:center !important;gap:12px !important;}
.main-nav>a,.explore-trigger{min-width:112px;justify-content:center;font-family:inherit;font-weight:900;}
.explore-trigger{appearance:none !important;-webkit-appearance:none !important;}
.header-actions{grid-column:1 !important;justify-self:start !important;gap:10px !important;}
.search-toggle,.login-btn{position:relative;overflow:hidden;}
.search-toggle::before,.login-btn::before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 28%,rgba(255,255,255,.08) 48%,transparent 68%);transform:translateX(-120%);transition:transform .5s ease;pointer-events:none;}
.search-toggle:hover::before,.login-btn:hover::before{transform:translateX(120%);}
.main-nav>a:hover,.explore-trigger:hover{transform:translateY(-2px) scale(1.015) !important;}
.main-nav>a:focus-visible,.explore-trigger:focus-visible,.search-toggle:focus-visible,.login-btn:focus-visible{outline:2px solid rgba(226,184,87,.72) !important;outline-offset:3px !important;box-shadow:none !important;}

/* Mobile menu buttons must behave like links visually */
.mobile-menu button[data-open-explore]{width:100%;border:0;background:transparent;font:inherit;color:#ddd;padding:13px 10px;border-radius:10px;text-align:center;font-size:12px;font-weight:800;cursor:pointer;transition:color .22s ease,background .22s ease,transform .22s ease;}
.mobile-menu button[data-open-explore]:hover{color:var(--gold);background:rgba(226,184,87,.06);transform:translateY(-1px);}

@media(max-width:980px){
  .header-inner{grid-template-columns:minmax(210px,1fr) minmax(0,1fr) minmax(210px,1fr) !important;gap:18px !important;}
  .brand-s-mark{font-size:42px !important;}
  .brand-text-main,.brand-text-gold{font-size:31px !important;}
  .main-nav>a,.explore-trigger{min-width:92px;padding-inline:10px !important;}
}
@media(max-width:700px){
  .header-inner{grid-template-columns:auto 1fr auto !important;gap:8px !important;}
  .logo-brand-wrap{grid-column:3 !important;grid-row:1 !important;}
  .brand-s-mark{font-size:31px !important;}
  .brand-text-main,.brand-text-gold{font-size:23px !important;}
}

@media(prefers-reduced-motion:reduce){
  .logo-brand-wrap,.main-nav>a,.explore-trigger,.search-toggle,.login-btn,.search-toggle::before,.login-btn::before{transition:none !important;}
}

.mobile-explore-panel{position:fixed;inset:0;z-index:1800;display:none;align-items:flex-start;justify-content:center;padding:72px 10px 18px;background:rgba(0,0,0,.74);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}
.mobile-explore-panel.open{display:flex;}
.mobile-explore-inner{position:relative;width:100%;max-width:760px;max-height:calc(100vh - 90px);overflow:auto;padding:16px;border:1px solid rgba(226,184,87,.2);border-radius:18px;background:#090a0c;box-shadow:0 30px 80px rgba(0,0,0,.65);}
.mobile-explore-close{position:absolute;top:8px;left:8px;width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.05);color:#bbb;font-size:22px;cursor:pointer;z-index:2;transition:transform .2s ease,color .2s ease,background .2s ease;}
.mobile-explore-close:hover{transform:rotate(8deg) scale(1.04);color:var(--gold);background:rgba(226,184,87,.08);}
.mobile-explore-content{padding-top:18px;}
.mobile-explore-content .explore-panel-heading{display:flex !important;margin-bottom:10px !important;}
.mobile-explore-content .explore-column{margin-bottom:10px;}

/* FINAL — Explore uses exactly the same interaction treatment as the main links */
.main-nav>a,
.main-nav>.explore>.explore-trigger{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  min-width:112px !important;
  height:42px !important;
  padding:0 14px !important;
  border:1px solid transparent !important;
  border-radius:10px !important;
  background:transparent !important;
  color:rgba(255,255,255,.78) !important;
  box-shadow:none !important;
  text-decoration:none !important;
  transition:color .22s ease,background .22s ease,border-color .22s ease,transform .22s ease,box-shadow .22s ease !important;
}
.main-nav>a:hover,
.main-nav>.explore>.explore-trigger:hover,
.main-nav>a.active{
  color:#fff !important;
  background:rgba(226,184,87,.07) !important;
  border-color:rgba(226,184,87,.16) !important;
  box-shadow:0 8px 24px rgba(0,0,0,.18),inset 0 0 0 1px rgba(255,255,255,.02) !important;
  transform:translateY(-1px) !important;
}
.main-nav>a:active,
.main-nav>.explore>.explore-trigger:active{
  transform:translateY(0) scale(.98) !important;
}
.main-nav>.explore>.explore-trigger:focus-visible{
  outline:2px solid rgba(226,184,87,.72) !important;
  outline-offset:3px !important;
  box-shadow:none !important;
}
.main-nav>a::after,
.main-nav>.explore>.explore-trigger::after,
.main-nav>.explore>.explore-trigger:hover::after,
.main-nav>.explore>.explore-trigger.active::after{
  display:none !important;
}
.main-nav>a i,
.main-nav>.explore>.explore-trigger i{
  color:var(--gold) !important;
  transition:transform .22s ease,color .22s ease !important;
}
.main-nav>a:hover i,
.main-nav>.explore>.explore-trigger:hover i{
  transform:translateY(-2px) scale(1.04) !important;
  color:var(--gold-2) !important;
}

/* Keep the Steel Ball wordmark prominent with a clearly larger S */
.logo-brand-wrap{gap:2px !important;}
.brand-s-mark{
  font-size:58px !important;
  line-height:.78 !important;
  transform:translateY(2px) !important;
  filter:none !important;
}
.brand-text-main,.brand-text-gold{
  font-size:43px !important;
  line-height:.94 !important;
  filter:none !important;
}
.logo-brand-wrap:hover .brand-s-mark{filter:none !important;}
@media(max-width:980px){
  .brand-s-mark{font-size:46px !important;}
  .brand-text-main,.brand-text-gold{font-size:34px !important;}
}
@media(max-width:700px){
  .brand-s-mark{font-size:32px !important;}
  .brand-text-main,.brand-text-gold{font-size:24px !important;}
}

/* ===== FINAL INTERACTION PASS ===== */
.header-inner{grid-template-columns:minmax(260px,1fr) auto minmax(260px,1fr);gap:34px}
.logo-brand-wrap{transition:transform .24s ease,filter .24s ease}
.logo-brand-wrap:hover{transform:translateY(-1px);filter:brightness(1.06)}
.brand-s-mark{font-size:39px;transition:color .24s ease,text-shadow .24s ease,transform .24s ease}
.logo-brand-wrap:hover .brand-s-mark{color:var(--gold);text-shadow:0 0 18px rgba(226,184,87,.22);transform:translateY(-1px) scale(1.02)}
.main-nav{gap:28px}
.main-nav>a,.explore-trigger{min-width:112px;justify-content:center;border-radius:10px;transition:color .22s ease,background .22s ease,border-color .22s ease,transform .22s ease,box-shadow .22s ease}
.main-nav>a:hover,.explore-trigger:hover,.main-nav>a.active,.explore-trigger.active{background:rgba(226,184,87,.055);border-color:rgba(226,184,87,.14);transform:translateY(-1px)}
.main-nav>a:hover::after,.main-nav>a.active::after,.explore-trigger:hover::after,.explore-trigger.active::after{width:62%}
.explore-trigger[aria-expanded="true"]{color:var(--gold);background:rgba(226,184,87,.075);border-color:rgba(226,184,87,.22);box-shadow:0 8px 20px rgba(0,0,0,.12)}
.header-actions{gap:10px}
.search-toggle,.login-btn,.mobile-menu-toggle{transition:transform .22s ease,background .22s ease,border-color .22s ease,box-shadow .22s ease,color .22s ease}
.search-toggle:hover,.login-btn:hover,.mobile-menu-toggle:hover{transform:translateY(-2px);background:rgba(226,184,87,.075);border-color:rgba(226,184,87,.44);box-shadow:0 10px 22px rgba(0,0,0,.16)}
.search-toggle:active,.login-btn:active,.mobile-menu-toggle:active{transform:translateY(0) scale(.97)}

/* Keep the Explore dropdown visually in the same family as the header controls. */
.explore-panel{border-color:rgba(226,184,87,.2)!important;box-shadow:0 26px 70px rgba(0,0,0,.56),0 0 26px rgba(226,184,87,.04)!important}
.explore-item{transition:background .22s ease,border-color .22s ease,transform .22s ease,box-shadow .22s ease!important}
.explore-item:hover{transform:translateY(-2px)!important;background:rgba(226,184,87,.065)!important;border-color:rgba(226,184,87,.2)!important;box-shadow:0 8px 20px rgba(0,0,0,.14)}
.explore-item-copy strong{transition:color .22s ease!important}
.explore-item:hover .explore-item-copy strong{color:var(--gold-2)!important}
.explore-rank{transition:background .22s ease,border-color .22s ease,transform .22s ease}
.explore-item:hover .explore-rank{background:rgba(226,184,87,.1);border-color:rgba(226,184,87,.45);transform:scale(1.04)}

@media(max-width:980px){
  .header-inner{grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr);gap:22px}
  .main-nav{gap:16px}.main-nav>a,.explore-trigger{min-width:98px}
  .brand-s-mark{font-size:33px}
}
@media(max-width:700px){
  .brand-s-mark{font-size:28px}
  .main-nav>a,.explore-trigger{min-width:0;background:transparent;border-color:transparent}
  .main-nav>a:hover,.explore-trigger:hover,.main-nav>a.active,.explore-trigger.active{background:rgba(226,184,87,.045);border-color:rgba(226,184,87,.12)}
}

/* ==========================================================
   FINAL HEADER INTERACTION PASS
   The Home / All Manga / Explore controls share one visual language.
   ========================================================== */
.main-nav > a,
.explore-trigger{
  height:42px !important;
  padding:0 13px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid transparent !important;
  border-radius:10px !important;
  background:transparent !important;
  box-sizing:border-box !important;
  transition:background .22s ease,border-color .22s ease,color .22s ease,transform .22s ease,box-shadow .22s ease !important;
}

.main-nav > a::after,
.explore-trigger::after{display:none !important;}

.main-nav > a:hover,
.main-nav > a.active,
.explore-trigger:hover,
.explore-trigger.active,
.explore.open .explore-trigger{
  color:var(--gold-2) !important;
  background:rgba(226,184,87,.065) !important;
  border-color:rgba(226,184,87,.20) !important;
  box-shadow:0 8px 22px rgba(0,0,0,.16),0 0 16px rgba(226,184,87,.035) !important;
  transform:translateY(-1px) !important;
}

.main-nav > a:active,
.explore-trigger:active{
  transform:translateY(0) scale(.985) !important;
}

.main-nav > a i,
.explore-trigger i{
  transition:transform .22s ease,color .22s ease !important;
}

.main-nav > a:hover i,
.explore-trigger:hover i,
.explore.open .explore-trigger i{
  transform:translateY(-1px) !important;
  color:var(--gold-2) !important;
}

/* Explore dropdown uses the same card treatment as the rest of the site. */
.explore-panel{
  border-color:rgba(226,184,87,.20) !important;
  box-shadow:0 24px 70px rgba(0,0,0,.55),0 0 24px rgba(226,184,87,.04) !important;
}

.explore-item{
  transition:background .22s ease,border-color .22s ease,transform .22s ease,box-shadow .22s ease !important;
}

.explore-item:hover{
  transform:translateY(-2px) !important;
  background:rgba(226,184,87,.065) !important;
  border-color:rgba(226,184,87,.20) !important;
  box-shadow:0 8px 18px rgba(0,0,0,.14) !important;
}

.explore-item img,
.explore-item:hover img{
  transform:none !important;
  filter:none !important;
  transition:none !important;
  object-fit:cover !important;
}

@media(max-width:980px){
  .main-nav > a,
  .explore-trigger{padding-inline:10px !important;}
}

@media (min-width: 769px){
  /* Explicit desktop placement: brand right, navigation center, actions left. */
  .header-inner{
    grid-template-columns:minmax(280px,1fr) auto minmax(280px,1fr) !important;
    direction:ltr !important;
  }
  .logo-brand-wrap{
    grid-column:3 !important;
    justify-self:end !important;
  }
  .main-nav{
    grid-column:2 !important;
    justify-self:center !important;
  }
  .header-actions{
    grid-column:1 !important;
    justify-self:start !important;
  }
}
