/* Lumen Lab: compact Watchlist-style grid, search, topic filters */
.lm-toolbar{position:sticky;top:var(--lm-hdr,3.5rem);z-index:900;background:rgba(36,41,67,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.12)}
.lm-toolbar-inner{max-width:76rem;margin:0 auto;padding:.85rem 1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem 1.5rem;flex-wrap:wrap}
.lm-chips{display:flex;flex-wrap:wrap;gap:.5rem}
.lm-chip{height:2.4rem!important;line-height:2.4rem!important;padding:0 1.05rem!important;border-radius:999px!important;font-size:.72rem!important;font-weight:600!important;letter-spacing:.12em!important;text-transform:uppercase;border:1px solid rgba(255,255,255,.25)!important;background:rgba(255,255,255,.05)!important;color:#fff!important;box-shadow:none!important;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.lm-chip:hover{border-color:#e3a857!important}
.lm-chip.active{background:#e3a857!important;border-color:#e3a857!important;color:#1b1e33!important}
.lm-tools{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.lm-search input{width:17rem;max-width:100%;height:2.4rem;margin:0;padding:0 1rem;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.07);color:#fff;font-size:.9rem}
.lm-search input:focus{outline:none;border-color:#e3a857;box-shadow:0 0 0 2px rgba(227,168,87,.3)}
.lm-search input::placeholder{color:rgba(255,255,255,.55)}
.lm-count{color:rgba(255,255,255,.65);font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap}
.lm-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.lm-empty{grid-column:1/-1;text-align:center;color:rgba(255,255,255,.7);padding:3rem 1rem;font-size:1rem}
.lm-hide{display:none!important}

#facts.lm-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(19rem,1fr));gap:1.5rem;max-width:76rem;margin:0 auto;padding:2rem 1.5rem 4rem;grid-auto-flow:row dense;align-items:start}
#facts.lm-grid .lumen-card{display:flex;flex-direction:column;margin:0!important;max-width:none!important;width:auto;height:100%;transition:transform .25s ease,box-shadow .25s ease;scroll-margin-top:calc(var(--lm-hdr,3.5rem) + 5rem)}
#facts.lm-grid .lumen-card:not(.active):hover{transform:translateY(-5px);box-shadow:0 14px 30px rgba(0,0,0,.35)}
#facts.lm-grid .lumen-card-image{width:100%!important;min-width:0!important;height:auto!important;aspect-ratio:16/10;flex:none;overflow:hidden}
#facts.lm-grid .lumen-card-image img{width:100%;height:100%;object-fit:cover}
#facts.lm-grid .lumen-card-content{width:100%!important;padding:1.1rem 1.3rem 1.2rem!important;display:flex;flex-direction:column;flex:1}
#facts.lm-grid .lumen-card-title{font-size:1.15rem!important;line-height:1.35;margin:0 0 .6rem!important}
#facts.lm-grid .lumen-card-text{max-height:5.4rem;font-size:.9rem}
#facts.lm-grid .lumen-card-toggle{margin-top:auto;align-self:flex-start}
#facts.lm-grid .lumen-card-text + .lumen-card-toggle{margin-top:.9rem}

/* opened card spans the full row */
#facts.lm-grid .lumen-card.active,#facts.lm-grid .lumen-card.lm-playing{grid-column:1/-1;height:auto}
#facts.lm-grid .lumen-card.active .lumen-card-text{max-height:none;font-size:1rem}
#facts.lm-grid .lumen-card.active .lumen-card-text::after{display:none}
#facts.lm-grid .lumen-card.active .lumen-card-title{font-size:1.6rem!important}
@media (min-width:769px){
  #facts.lm-grid .lumen-card.active:not(.lm-playing){flex-direction:row;align-items:flex-start}
  #facts.lm-grid .lumen-card.active:not(.lm-playing) .lumen-card-image{width:40%!important;aspect-ratio:auto}
  #facts.lm-grid .lumen-card.active:not(.lm-playing) .lumen-card-image:not(.lm-duo){height:min(30rem,85vh)!important}
  #facts.lm-grid .lumen-card.active:not(.lm-playing) .lumen-card-content{width:60%!important;padding:1.6rem 2rem!important}
}
@media (max-width:768px){
  .lm-toolbar{position:static}
  .lm-toolbar-inner{flex-direction:column;align-items:stretch;padding:.85rem 1rem}
  .lm-tools{justify-content:space-between}
  .lm-search{flex:1}.lm-search input{width:100%}
  #facts.lm-grid{grid-template-columns:1fr;padding:1.5rem 1rem 3rem;gap:1.2rem}
}
