/* =========================================================
   LIVN HERO PRODUCT SPOTLIGHT v1
   HOME + PC / 4 sec auto slider
========================================================= */
.livn-promo-spotlight{
  --promo-accent:#6ce9ff;
  --promo-violet:#9a72ff;
  --promo-pink:#ed42ff;
  --promo-sale:#dffb50;
  position:absolute;
  z-index:34;
  width:286px;
  color:#fff;
  font-family:"Segoe UI","Noto Sans JP",Arial,sans-serif;
  pointer-events:auto;
}
.livn-promo-spotlight[hidden]{display:none!important}
.livn-promo-shell{
  position:relative;
  overflow:hidden;
  min-height:206px;
  border:1px solid rgba(116,222,255,.40);
  border-radius:16px;
  background:
    linear-gradient(145deg,rgba(5,18,42,.90),rgba(4,8,24,.82)),
    radial-gradient(circle at 20% 0,rgba(77,204,255,.14),transparent 45%);
  box-shadow:
    0 0 10px rgba(91,222,255,.20),
    0 18px 44px rgba(0,0,0,.32),
    inset 0 0 30px rgba(64,129,255,.07);
  backdrop-filter:blur(13px);
  -webkit-backdrop-filter:blur(13px);
}
.livn-promo-shell::before{
  content:"";
  position:absolute;inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,transparent,rgba(105,225,255,.07),transparent);
  transform:translateX(-100%);
  animation:livnPromoScan 4.8s ease-in-out infinite;
}
@keyframes livnPromoScan{
  0%,18%{transform:translateX(-115%);opacity:0}
  35%{opacity:1}
  62%,100%{transform:translateX(115%);opacity:0}
}
.livn-promo-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:8px;padding:10px 11px 0;
}
.livn-promo-source{
  display:flex;align-items:center;gap:6px;
  color:rgba(231,247,255,.62);
  font-size:7px;font-weight:900;letter-spacing:.16em;
}
.livn-promo-source i{
  width:5px;height:5px;border-radius:50%;
  background:#6ff4ff;box-shadow:0 0 9px #6ff4ff;
}
.livn-promo-counter{
  color:rgba(231,247,255,.42);
  font-size:7px;font-weight:800;letter-spacing:.1em;
}
.livn-promo-viewport{position:relative;min-height:162px}
.livn-promo-slide{
  position:absolute;inset:0;
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:8px 12px 12px;
  opacity:0;
  transform:translateX(18px) scale(.985);
  pointer-events:none;
  transition:opacity .48s ease,transform .48s ease;
}
.livn-promo-slide.is-active{
  opacity:1;transform:none;pointer-events:auto;
}
.livn-promo-image{
  width:92px;height:112px;
  display:grid;place-items:center;
  overflow:hidden;
  border-radius:11px;
  border:1px solid rgba(106,212,255,.22);
  background:linear-gradient(145deg,rgba(30,50,85,.42),rgba(4,8,18,.68));
}
.livn-promo-image img{
  width:100%;height:100%;
  object-fit:contain;
  filter:drop-shadow(0 12px 16px rgba(0,0,0,.30));
}
.livn-promo-noimage{
  font-size:8px;color:rgba(255,255,255,.35);letter-spacing:.12em;
}
.livn-promo-info{min-width:0}
.livn-promo-badges{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:6px}
.livn-promo-badge{
  display:inline-flex;align-items:center;
  min-height:19px;padding:0 7px;
  border-radius:999px;
  background:rgba(95,218,255,.10);
  border:1px solid rgba(95,218,255,.22);
  color:#9feeff;
  font-size:7px;font-weight:900;letter-spacing:.08em;
}
.livn-promo-badge.sale{
  color:#eefba8;
  background:rgba(223,251,80,.09);
  border-color:rgba(223,251,80,.24);
}
.livn-promo-badge.pick{
  color:#e6ddff;
  background:rgba(154,114,255,.11);
  border-color:rgba(154,114,255,.24);
}
.livn-promo-title{
  display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;
  margin:0;
  color:#fff;
  font-size:12px;line-height:1.42;font-weight:850;
}
.livn-promo-spec{
  margin:4px 0 0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  color:rgba(228,239,249,.50);
  font-size:8px;
}
.livn-promo-price{margin-top:8px;display:flex;align-items:baseline;gap:6px}
.livn-promo-price strong{
  color:#fff;font-size:15px;letter-spacing:-.02em;
}
.livn-promo-price del{color:rgba(255,255,255,.38);font-size:8px}
.livn-promo-link{
  display:flex;align-items:center;justify-content:space-between;
  width:100%;height:30px;margin-top:8px;padding:0 9px;
  border:1px solid rgba(88,218,255,.28);
  border-radius:8px;
  background:linear-gradient(100deg,rgba(26,119,190,.17),rgba(121,68,255,.16));
  color:#ddfaff;
  text-decoration:none;
  font-size:8px;font-weight:900;letter-spacing:.05em;
}
.livn-promo-link b{font-size:11px}
.livn-promo-controls{
  display:flex;align-items:center;justify-content:center;
  gap:7px;
  padding:0 10px 9px;
}
.livn-promo-nav{
  width:23px;height:23px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.10);
  border-radius:50%;
  background:rgba(255,255,255,.045);
  color:rgba(255,255,255,.65);
  font-size:12px;cursor:pointer;
}
.livn-promo-dots{display:flex;gap:5px;align-items:center}
.livn-promo-dot{
  width:4px;height:4px;padding:0;border:0;border-radius:50%;
  background:rgba(255,255,255,.22);cursor:pointer;
  transition:.25s;
}
.livn-promo-dot.is-active{
  width:15px;border-radius:5px;background:#74eaff;
  box-shadow:0 0 8px rgba(116,234,255,.65);
}

/* HOME red-box target */
.livn-promo-spotlight--home{
  left:7.1%;
  top:43.5%;
}
.hero-world.livn-has-product-spotlight .panel-left{
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
}

/* PC red-box target */
.livn-promo-spotlight--pc{
  right:5.8%;
  bottom:8.5%;
  width:310px;
}
.livn-promo-spotlight--pc .livn-promo-shell{
  background:
    linear-gradient(145deg,rgba(5,9,25,.88),rgba(7,10,24,.78)),
    radial-gradient(circle at 20% 0,rgba(188,54,255,.11),transparent 45%);
  border-color:rgba(149,116,255,.38);
}

@media(max-width:1180px){
  .livn-promo-spotlight--home{left:3.5%;width:250px}
  .livn-promo-spotlight--pc{right:3%;width:280px}
}
@media(max-width:900px){
  .livn-promo-spotlight--home{
    left:18px;top:auto;bottom:74px;width:250px;
  }
  .livn-promo-spotlight--pc{
    right:18px;bottom:60px;width:270px;
  }
}
@media(max-width:700px){
  .livn-promo-spotlight{
    position:absolute;
    left:12px!important;right:12px!important;
    top:auto!important;bottom:58px!important;
    width:auto!important;
  }
  .livn-promo-shell{min-height:128px;border-radius:13px}
  .livn-promo-head{padding:7px 9px 0}
  .livn-promo-viewport{min-height:92px}
  .livn-promo-slide{
    grid-template-columns:62px minmax(0,1fr);
    gap:8px;padding:5px 9px 8px;
  }
  .livn-promo-image{width:62px;height:73px;border-radius:8px}
  .livn-promo-title{font-size:10px;-webkit-line-clamp:1}
  .livn-promo-spec{font-size:7px}
  .livn-promo-price{margin-top:4px}
  .livn-promo-price strong{font-size:12px}
  .livn-promo-link{height:24px;margin-top:4px;font-size:7px}
  .livn-promo-controls{position:absolute;right:7px;top:5px;padding:0}
  .livn-promo-nav{display:none}
  .livn-promo-source{font-size:6px}
  .livn-promo-counter{display:none}
}
@media(max-width:420px){
  .livn-promo-spotlight{bottom:44px!important}
  .livn-promo-spec{display:none}
  .livn-promo-badges{margin-bottom:3px}
  .livn-promo-badge{min-height:16px;padding:0 5px;font-size:6px}
}
@media(prefers-reduced-motion:reduce){
  .livn-promo-shell::before{animation:none}
  .livn-promo-slide{transition:none}
}
/* LIVN MDL lower feed restore */
.mdl-feed-empty{
  width:100%;
  min-height:220px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px dashed rgba(255,255,255,.15);
  border-radius:18px;
  color:rgba(255,255,255,.62);
}
.mdl-feed-empty strong{color:#fff;font-size:14px}
.mdl-feed-empty span{font-size:11px;color:rgba(255,255,255,.42)}


/* =========================================================
   V3.2.3 SCROLL STRUCTURE FIX
   Hero stays in normal document flow so all lower sections
   remain scrollable. Product card positioning only.
========================================================= */

/* Critical: never remove the hero from document flow */
#heroScreen{
  position:relative !important;
  z-index:1;
  overflow:hidden;
}

/* Desktop keeps the requested PC-case placement */
#heroScreen > .livn-promo-spotlight--pc{
  z-index:45;
}
@media (min-width:1101px){
  #heroScreen > .livn-promo-spotlight--pc{
    left:auto !important;
    right:4.8% !important;
    top:auto !important;
    bottom:7.2% !important;
    transform:none !important;
    width:300px !important;
  }
}

/* Tablet landscape: keep the product over the visual side */
@media (min-width:701px) and (max-width:1100px) and (orientation:landscape){
  #heroScreen > .livn-promo-spotlight--pc{
    left:auto !important;
    right:22px !important;
    top:auto !important;
    bottom:24px !important;
    transform:none !important;
    width:270px !important;
  }
}

/* Tablet portrait: create real space BELOW the hero copy/CTA */
@media (min-width:701px) and (max-width:1100px) and (orientation:portrait){
  #heroScreen{
    min-height:calc(100svh + 170px) !important;
    padding-bottom:190px !important;
  }
  #heroScreen > .livn-promo-spotlight--pc{
    left:50% !important;
    right:auto !important;
    top:auto !important;
    bottom:24px !important;
    transform:translateX(-50%) !important;
    width:min(540px, calc(100vw - 56px)) !important;
  }
}

/* Phone portrait: add a dedicated product area at bottom of hero */
@media (max-width:700px) and (orientation:portrait){
  #heroScreen{
    min-height:calc(100svh + 220px) !important;
    padding-bottom:230px !important;
  }
  #heroScreen > .livn-promo-spotlight--pc{
    left:12px !important;
    right:12px !important;
    top:auto !important;
    bottom:16px !important;
    transform:none !important;
    width:auto !important;
  }
}

/* Very small phones */
@media (max-width:420px) and (orientation:portrait){
  #heroScreen{
    min-height:calc(100svh + 230px) !important;
    padding-bottom:238px !important;
  }
  #heroScreen > .livn-promo-spotlight--pc{
    bottom:12px !important;
  }
}


/* =========================================================
   HIDE LOWER MDL SECTION ONLY
   Keep hero product slider visible.
========================================================= */
#mdlHomeSection{
  display:none !important;
}


/* =========================================================
   V4 MOBILE/TABLET TOP STACK
   Announcement first, recommended product second.
========================================================= */
.pc-mobile-promo-stack{display:none;}

@media (max-width:1100px){
  #heroScreen{
    position:relative !important;
    overflow:hidden !important;
  }
  .pc-mobile-promo-stack{
    position:absolute;
    z-index:70;
    left:22px;
    right:22px;
    top:98px;
    display:grid;
    gap:10px;
    pointer-events:none;
  }
  .pc-mobile-promo-stack > *{pointer-events:auto;}

  #heroScreen > .livn-promo-spotlight--pc,
  .pc-mobile-promo-stack .livn-promo-spotlight--pc,
  .livn-promo-spotlight--stacked{
    position:relative !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    transform:none !important;
    width:100% !important;
  }
}

@media (min-width:701px) and (max-width:1100px){
  #heroScreen{
    min-height:calc(100svh + 180px) !important;
    padding-top:390px !important;
    padding-bottom:80px !important;
  }
  #heroScreen .hero-content{
    margin-top:0 !important;
  }
  .pc-mobile-promo-stack{
    left:30px;
    right:30px;
    top:100px;
    gap:12px;
  }
  .pc-mobile-promo-stack .livn-promo-shell{
    min-height:154px;
  }
  .pc-mobile-promo-stack .livn-promo-viewport{
    min-height:112px;
  }
}

@media (max-width:700px){
  #heroScreen{
    min-height:calc(100svh + 250px) !important;
    padding-top:350px !important;
    padding-bottom:90px !important;
  }
  #heroScreen .hero-content{
    margin-top:0 !important;
  }
  .pc-mobile-promo-stack{
    left:12px;
    right:12px;
    top:86px;
    gap:9px;
  }
  .pc-mobile-promo-stack .livn-promo-shell{
    min-height:128px;
  }
  .pc-mobile-promo-stack .livn-promo-viewport{
    min-height:92px;
  }
}

@media (max-width:420px){
  #heroScreen{
    min-height:calc(100svh + 270px) !important;
    padding-top:352px !important;
  }
  .pc-mobile-promo-stack{top:82px;}
}

/* TOP DISPLAY V1: mobile/tablet stack order is deterministic even if RPC responses return out of order. */
@media (max-width:1100px){
  .pc-mobile-promo-stack .livn-site-announcement{order:1}
  .pc-mobile-promo-stack .livn-promo-spotlight{order:2}
}
