:root{
  --bg: #070A12;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.09);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --line: rgba(255,255,255,0.12);
  --shadow: 0 18px 50px rgba(0,0,0,0.35);
  --radius: 18px;
  --radius2: 24px;
  /* Updated at runtime (fixed footer + optional music playerbar) */
  --footer-h: 0px;
  --player-h: 0px;
}

/* Ensure hidden attribute actually hides elements even if later CSS sets display */
[hidden]{ display:none !important; }

*{ box-sizing:border-box; }
/*
  Allow the document to grow with content.
  Using `height:100%` on both html+body can cause the bottom padding (used to
  keep content above the fixed footer + player bar) to not contribute reliably
  to scroll height on some browsers.
*/
html{ height:100%; }
body{
  min-height:100%;
  height:auto;
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(900px 600px at 20% -10%, rgba(120,70,255,0.28), transparent 65%),
    radial-gradient(900px 600px at 90% 10%, rgba(0,190,255,0.18), transparent 55%),
    radial-gradient(900px 600px at 60% 110%, rgba(255,120,120,0.16), transparent 60%),
    var(--bg);
  line-height:1.55;
  background-attachment: fixed;
  background-repeat: no-repeat;
  /* extra breathing room so the last accordion row can be scrolled above the fixed bars */
  padding-bottom: calc(var(--footer-h) + var(--player-h) + 1.25rem);
}

html{ scroll-padding-bottom: calc(var(--footer-h) + var(--player-h) + 1.25rem); }

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }
code{ color: rgba(255,255,255,0.86); background: rgba(255,255,255,0.08); padding: .12rem .35rem; border-radius: 8px; border: 1px solid var(--line); }

.container{ width:min(1120px, calc(100% - 2rem)); margin:0 auto; }

.skip{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:1rem; top:1rem; width:auto; height:auto;
  padding:.6rem .8rem; z-index:999;
  background: rgba(0,0,0,0.7);
  border:1px solid var(--line);
  border-radius: 12px;
}

.site-header{
  position: sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(7,10,18,0.55);
  border-bottom: 1px solid var(--line);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: .9rem 0;
  gap:1rem;
}

.brand{ display:flex; align-items:center; gap:.75rem; min-width: 260px; }
.brand__text{ display:flex; flex-direction:column; gap:.05rem; }
.brand__name{ font-weight: 750; letter-spacing: .2px; }
.brand__tag{ font-size:.85rem; color:var(--muted); }

.nav{ display:flex; gap:.6rem; align-items:center; }
.nav__link{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.5rem .75rem;
  border-radius: 999px;
  border:1px solid transparent;
  color: var(--muted);
}
.nav__link:hover{ border-color: var(--line); color: var(--text); text-decoration:none; }
.nav__link.is-active{
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border-color: var(--line);
}

.nav__toggle{
  display:none;
  border:1px solid var(--line);
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor:pointer;
}
.burger{
  width: 18px; height: 12px; display:block; margin:0 auto;
  background:
    linear-gradient(var(--text),var(--text)) 0 0/100% 2px,
    linear-gradient(var(--text),var(--text)) 0 50%/100% 2px,
    linear-gradient(var(--text),var(--text)) 0 100%/100% 2px;
  background-repeat:no-repeat;
  opacity:.9;
}

.site-main{ padding-bottom: 2.5rem; }

.section{ padding: 2.2rem 0; }
h1{ font-size: clamp(2rem, 3.4vw, 3rem); margin: 0 0 .6rem; letter-spacing: -0.02em; }
h2{ font-size: 1.4rem; margin: 0 0 .5rem; letter-spacing: -0.01em; }
h3{ margin: 0 0 .35rem; font-size: 1.05rem; }
p{ margin: 0 0 1rem; color: var(--muted); }
.lead{ font-size: 1.05rem; color: rgba(255,255,255,0.78); }

.hero{ padding: 2.2rem 0 1.3rem; }
.hero__inner{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1.4rem;
  align-items:center;
}
.hero__copy .lead{ max-width: 52ch; }

.hero__art{
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow:hidden;
  aspect-ratio: 11 / 7;
}
.hero__img{ width:100%; height:100%; object-fit: cover; display:block; }

.cta-row{ display:flex; gap:.8rem; flex-wrap:wrap; margin: 1rem 0 1rem; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: .7rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.12);
  color: var(--text);
  text-decoration:none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.btn:hover{ text-decoration:none; background: rgba(255,255,255,0.16); }
.btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,0.18);
}

.btn--sm{
  padding: .45rem .7rem;
  border-radius: 12px;
  font-size: .9rem;
  box-shadow: none;
}

.btn--xs{
  padding: .35rem .55rem;
  border-radius: 11px;
  font-size: .82rem;
  box-shadow: none;
}

.chips{ display:flex; flex-wrap:wrap; gap:.5rem; margin-top: .8rem; }
.chip{
  font-size: .86rem;
  color: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  padding: .35rem .6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  text-decoration: none;
  cursor: pointer;
}
.chip:hover{ text-decoration:none; background: rgba(255,255,255,0.08); }
.chip:focus-visible{ outline: 2px solid rgba(255,255,255,0.28); outline-offset: 2px; }


.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.card p{ margin-bottom: .75rem; }
.card__link{ color: rgba(255,255,255,0.9); }

.split{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
  align-items:start;
}
.note{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  padding: 1rem;
}

.bullets{ padding-left: 1.1rem; margin: .6rem 0 0; }
.bullets li{ margin: .35rem 0; color: rgba(255,255,255,0.78); }

.about-split{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
  align-items: stretch;
}
.about-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.about-portrait{
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  background: var(--panel);
  overflow:hidden;
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content:center;
}
.about-portrait img{
  width:100%;
  height:auto;
  display:block;
  object-fit: contain;
}
.about-portrait__hint{
  padding: .8rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
  margin-top: 1rem;
}
.thumb{
  margin:0;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.thumb__btn{
  display:block; width:100%;
  padding:0; margin:0;
  border:0; background:transparent;
  cursor:pointer;
  text-align:left;
}
.thumb img{ width:100%; height:auto; display:block; }
.thumb__btn img{ width:100%; aspect-ratio: 7 / 5; height:auto; object-fit: cover; }
.thumb__cap{
  display:block;
  padding: .75rem .85rem;
  border-top: 1px solid var(--line);
  color: rgba(255,255,255,0.82);
  font-size:.95rem;
}

.downloads{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
.download-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.site-footer{
  border-top: 1px solid var(--line);
  background: rgba(7,10,18,0.55);
  backdrop-filter: blur(12px);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: 1.4rem 0;
}
.footer__brand{ display:flex; gap:.7rem; align-items:center; }
.footer__name{ font-weight: 750; }
.footer__small{ color: var(--muted); font-size: .9rem; }

.footer__right{ display:flex; gap:.6rem; flex-wrap:wrap; justify-content:flex-end; }
.pill{
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  padding: .45rem .7rem;
  color: rgba(255,255,255,0.82);
}
.pill:hover{ text-decoration:none; background: rgba(255,255,255,0.09); }


/* Music player bar (Suno-style: fixed to bottom above the footer) */
.playerbar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--footer-h);
  z-index: 901;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: rgba(7,10,18,0.72);
  backdrop-filter: blur(12px);
}

.playerbar__inner{
  display:grid;
  grid-template-columns: minmax(240px, 1fr) minmax(420px, 2fr) minmax(220px, 1fr);
  gap: .75rem 1rem;
  padding: .8rem 0;
  align-items:center;
}

.playerbar__meta{ display:flex; gap:.75rem; align-items:center; min-width: 0; }
.playerbar__cover{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}
.playerbar__text{ min-width:0; }
.playerbar__title{
  font-weight: 850;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playerbar__sub{ color: var(--muted); font-size: .9rem; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }

.playerbar__center{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap: .45rem;
  min-width: 0;
}

.playerbar__controls{
  display:flex;
  flex-wrap:wrap;
  gap: .45rem;
  align-items:center;
  justify-content:center;
}

.playerbar__seek{
  display:flex;
  align-items:center;
  gap: .7rem;
  min-width: 0;
}
.playerbar__range{ width: 100%; min-width: 120px; }
.playerbar__time{
  color: rgba(255,255,255,0.75);
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
  min-width: 42px;
  text-align:center;
}

.playerbar__actions{
  display:flex;
  gap: .45rem;
  justify-content:flex-end;
  align-items:center;
}

.playerbar__vol{
  position: relative;
  display:inline-flex;
  align-items:center;
}

.playerbar__volpanel{
  position:absolute;
  right: 0;
  bottom: calc(100% + .55rem);
  z-index: 999;
  padding: .55rem .6rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(12,14,24,0.92);
  box-shadow: 0 18px 45px rgba(0,0,0,0.45);
  display:none;
  align-items:center;
  justify-content:center;
  min-height: 120px;
}

/* Show volume panel when toggled open (JS sets `.is-open` on the wrapper) */
.playerbar__vol.is-open .playerbar__volpanel{
  display:flex !important;
}

.playerbar__volrange{
  writing-mode: bt-lr;            /* vertical */
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  width: 18px;
  height: 110px;
}

.playerbar__audio{ display:none; }

.playerbar__controls .btn.is-active,
.playerbar__actions .btn.is-active{
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.22);
}

@media (max-width: 980px){
  .playerbar__inner{ grid-template-columns: 1fr; }
  .playerbar__actions{ justify-content:flex-start; flex-wrap:wrap; }
  .playerbar__controls{ justify-content:flex-start; }
  .playerbar__seek{ gap: .6rem; }
}


.sr-only{
  position:absolute !important;
  width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Lightbox */
.lightbox{
  position:fixed; inset:0;
  display:grid;
  place-items:center;
  z-index:1000;
}
.lightbox__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,0.72);
}
.lightbox__panel{
  position:relative;
  width: min(1100px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  border-radius: var(--radius2);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(12,14,24,0.9);
  box-shadow: 0 25px 70px rgba(0,0,0,0.6);
  display:flex;
  flex-direction:column;
}
.lightbox__img{
  max-width: 100%;
  max-height: calc(100vh - 1.5rem - 4.2rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  display:block;
  object-fit: contain;
}
.lightbox__cap{
  padding: .85rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.82);
  max-height: 30vh;
  overflow:auto;
}
.lightbox__close{
  position:absolute; top:.7rem; right:.7rem;
  width:42px; height:42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  cursor:pointer;
  z-index: 5;
}
.lightbox__close:hover{ background: rgba(255,255,255,0.12); }

/* Responsive */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .about-split{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .downloads{ grid-template-columns: 1fr; }
  .brand__tag{ display:none; }

  .nav__toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .nav{
    position:absolute;
    right: 1rem;
    top: 70px;
    flex-direction:column;
    align-items:stretch;
    padding: .6rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(10,12,20,0.92);
    box-shadow: var(--shadow);
    min-width: 200px;
    display:none;
  }
  .nav.is-open{ display:flex; }
}


/* Small helpers */
.mt{ margin-top: 1.6rem; }
.meta{ color: rgba(255,255,255,0.68); font-size: .92rem; }


/* Videos */
.videobox__video{
  max-width: 100%;
  max-height: calc(100vh - 1.5rem - 4.2rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  display:block;
  background: #000;
}

/* Music */
.thumb--music .thumb__cap{ display:flex; align-items:center; gap:.45rem; }

.thumb--music{ position: relative; }
.thumb__info{
  position:absolute;
  right: .55rem;
  bottom: .55rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(10,12,20,0.6);
  color: rgba(255,255,255,0.92);
  display:grid;
  place-items:center;
  cursor:pointer;
  backdrop-filter: blur(10px);
}
.thumb__info:hover{ background: rgba(255,255,255,0.10); }

.musicbox__panel{
  width: min(1200px, calc(100vw - 1.5rem));
  height: min(820px, calc(100vh - 1.5rem));
}

.musicbox__body{
  display:grid;
  grid-template-columns: 360px 1fr;
  height: 100%;
  min-height: 0;
}

.musicbox__left{
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,0.12);
  overflow:auto;
  min-height: 0;
}

.musicbox__cover{
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  display:block;
  background: rgba(0,0,0,0.25);
}

.musicbox__titleline{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin: .85rem 0 .35rem;
}

.musicbox__title{
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.musicbox__duration{
  font-size: .95rem;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
}

.musicbox__info{
  color: rgba(255,255,255,0.86);
  font-size: .95rem;
  line-height: 1.5;
}

.musicbox__video-block{ margin-top: .75rem; }
.musicbox__video-label{ margin-bottom: .35rem; }
.musicbox__video-wrap{ margin-top: 0; }
.musicbox__video{
  width: 100%;
  max-height: 240px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: #000;
}

.musicbox__video-link{ display:inline-flex; margin-top: .55rem; }

.musicbox__right{
  display:flex;
  flex-direction:column;
  min-height: 0;
}

.musicbox__top{
  display:flex;
  align-items:center;
  gap: .5rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}

.musicbox__lyrics-wrap{
  padding: 1rem;
  overflow:auto;
  min-height: 0;
  height: 100%;
}

.musicbox__lyrics{
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .95rem;
  line-height: 1.45;
  margin: 0;
  color: rgba(255,255,255,0.92);
}

@media (max-width: 980px){
  .musicbox__body{ grid-template-columns: 1fr; }
  .musicbox__left{ border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .musicbox__panel{ height: calc(100vh - 1.5rem); }
}

/* ------------------------------------------------------------
   Discord-ish / Markdown-ish content blocks
   ------------------------------------------------------------ */
.md{ color: rgba(255,255,255,0.92); }
.md :is(h1,h2,h3,h4,h5,h6){
  margin: .9rem 0 .45rem;
  line-height: 1.15;
}
.md h1{ font-size: 1.8rem; }
.md h2{ font-size: 1.55rem; }
.md h3{ font-size: 1.35rem; }
.md h4{ font-size: 1.15rem; }
.md h5{ font-size: 1.05rem; }
.md h6{ font-size: .95rem; opacity: .92; }

.md p{ margin: .45rem 0; }
.md a{ color: rgba(130,190,255,0.95); text-decoration: underline; text-underline-offset: 2px; }
.md a:hover{ color: rgba(170,220,255,1); }

.md hr{
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: .9rem 0;
}

.md blockquote{
  margin: .65rem 0;
  padding: .6rem .75rem;
  border-left: 3px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
}

.md :is(ul,ol){
  margin: .5rem 0 .5rem 1.25rem;
  padding: 0;
}
.md li{ margin: .2rem 0; }

.md code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  padding: .05rem .35rem;
  border-radius: 10px;
}
.md pre.codeblock{
  margin: .65rem 0;
  padding: .75rem .9rem;
  overflow: auto;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
}
.md pre.codeblock code{
  background: transparent;
  border: 0;
  padding: 0;
}

.thumb__play{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  pointer-events:none;
}
.thumb__play span{
  width:56px;
  height:56px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(0,0,0,0.35);
  display:grid;
  place-items:center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.9);
  font-size: 20px;
}

/* Make video thumbs consistent */
.thumb--video{ position:relative; }
.thumb--video video{
  width:100%;
  aspect-ratio: 7 / 5;
  height:auto;
  object-fit: cover;
  display:block;
}


/* Downloads: scroll panel + folder accordion */
.downloads-page .dl-scroll{
  max-height: calc(100vh - 230px);
  overflow: auto;
  padding-right: .25rem;
  margin-top: 1rem;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.downloads-page .dl-scroll:focus{
  outline: 2px solid rgba(255,255,255,0.22);
  outline-offset: 4px;
  border-radius: 14px;
}

.folder{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  padding: .6rem .8rem;
  margin-top: .9rem;
}
.folder > summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: .8rem;
  color: rgba(255,255,255,0.88);
  font-weight: 650;
}

.folder__right{ display:flex; align-items:center; gap: .6rem; flex: 0 0 auto; }
.folder__title{ flex: 1 1 auto; min-width: 0; }
.folder__playall{ white-space: nowrap; }
.folder > summary::-webkit-details-marker{ display:none; }

.folder__meta{
  color: rgba(255,255,255,0.62);
  font-weight: 520;
  font-size: .92rem;
}

.folder__chev{
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  display:grid;
  place-items:center;
  flex: 0 0 auto;
  color: rgba(255,255,255,0.82);
}
.folder[open] .folder__chev{ transform: rotate(90deg); }

.folder__inner{
  margin-top: .9rem;
}
.folder__inner .downloads{
  margin: .7rem 0 0;
}

/* Stack for folder sections (used on Videos page) */
.folder-stack{display:flex;flex-direction:column;gap:14px;}

.music-actions{ display:flex; gap:.6rem; flex-wrap:wrap; margin: .6rem 0 1rem; }

/* On smaller screens, let the page scroll normally */
@media (max-width: 980px){
  .downloads-page .dl-scroll{
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}


/* Brand logos */
.brand img, .footer__brand img{
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.18);
}



@media (max-width: 980px){
  .gallery-carousel{
    --gthumb-w: 132px;
    --gthumb-h: 92px;
  }
}
@media (max-width: 520px){
  .gallery-carousel{
    --gthumb-w: 120px;
    --gthumb-h: 84px;
  }
}


/* Gallery/Videos: 1-row carousel per folder (arrow buttons at the edges of the image rail) */
.carousel{
  position: relative;
}

/* The scrolling rail */
.gallery-carousel{
  position: relative;
  --gthumb-w: 190px;
  --gthumb-h: 120px;

  display: flex;
  gap: 12px;

  /* space for arrows, so they don't overlap thumbnails */
  padding: 10px 64px 14px;

  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);

  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;

  scrollbar-width: none; /* Firefox */
}
.gallery-carousel::-webkit-scrollbar{ height: 0; } /* Chromium/WebKit */

/* Optional subtle "edge rails" so the padding areas read as part of the rail */
.gallery-carousel::before,
.gallery-carousel::after{
  content:"";
  position: absolute;
  top: 10px;
  bottom: 14px;
  width: 0;
  pointer-events: none;
}
.gallery-carousel::before{ left: 64px; border-left: 1px solid rgba(255,255,255,0.10); }
.gallery-carousel::after{ right: 64px; border-right: 1px solid rgba(255,255,255,0.10); }

/* Thumbs */
.gallery-carousel .thumb{
  flex: 0 0 var(--gthumb-w);
  margin: 0;
  scroll-snap-align: start;
}
.gallery-carousel .thumb__btn{
  width: 100%;
  display: grid;
  gap: 8px;
}
.gallery-carousel .thumb__btn img{
  width: 100%;
  height: var(--gthumb-h);
  object-fit: cover;
  border-radius: 14px;
}
.thumb--small .thumb__cap{
  font-size: .82rem;
  line-height: 1.15;
  padding: .35rem .45rem;
}

/* Arrow buttons (inside the folder box, at the rail edges) */
.car-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);
  display: grid;
  place-items: center;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  z-index: 5;
}
.car-btn:hover{ background: rgba(255,255,255,0.08); }
.car-btn:active{ transform: translateY(-50%) scale(0.98); }
.car-btn.is-disabled{ opacity: .35; pointer-events: none; }

.car-btn--prev{ left: 14px; }
.car-btn--next{ right: 14px; }

/* Videos: larger tiles */
.carousel--video .gallery-carousel{
  position: relative;
  --gthumb-w: 340px;
  --gthumb-h: 220px;
}
.carousel--video .video-tile{
  height: var(--gthumb-h);
  font-size: 46px;
}

/* Responsive adjustments */
@media (max-width: 980px){
  .gallery-carousel{
  position: relative;
    --gthumb-w: 168px;
    --gthumb-h: 110px;
    padding: 10px 58px 14px;
  }
  .car-btn{ width: 40px; height: 40px; font-size: 20px; }
  .car-btn--prev{ left: 12px; }
  .car-btn--next{ right: 12px; }
  .gallery-carousel::before{ left: 58px; }
  .gallery-carousel::after{ right: 58px; }

  .carousel--video .gallery-carousel{
  position: relative;
    --gthumb-w: 250px;
    --gthumb-h: 155px;
  }
}
@media (max-width: 520px){
  .gallery-carousel{
  position: relative;
    --gthumb-w: 152px;
    --gthumb-h: 100px;
    padding: 10px 52px 14px;
  }
  .car-btn{ width: 38px; height: 38px; font-size: 19px; }
  .car-btn--prev{ left: 10px; }
  .car-btn--next{ right: 10px; }
  .gallery-carousel::before{ left: 52px; }
  .gallery-carousel::after{ right: 52px; }

  .carousel--video .gallery-carousel{
  position: relative;
    --gthumb-w: 230px;
    --gthumb-h: 145px;
  }
}

/* === Carousel gutter layout override (v25) ===
   Ensure arrows sit in dedicated side gutters so media never scrolls under them. */
.carousel{
  --car-gutter: 56px;
  display: grid;
  grid-template-columns: var(--car-gutter) 1fr var(--car-gutter);
  align-items: stretch;
  gap: 0;
  padding: 10px;
}
.carousel > .car-btn{
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  transform: none;
  align-self: center;
  justify-self: center;
  margin: 0;
}
.carousel > .car-btn--prev{ grid-column: 1; }
.carousel > .gallery-carousel{ grid-column: 2; }
.carousel > .car-btn--next{ grid-column: 3; }

.carousel > .gallery-carousel{
  padding: 10px 12px 14px;
  scroll-padding-left: 12px;
  scroll-padding-right: 12px;
  border-left: 1px solid rgba(255,255,255,.12);
  border-right: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
}
.carousel > .gallery-carousel::before,
.carousel > .gallery-carousel::after{
  content: none !important;
}

/* Make video tiles feel closer to gallery size */
.carousel--video .video-tile{
  font-size: 54px;
}


/* --- Video thumbnails (use <video> previews inside carousel tiles) --- */
.video-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.video-preview{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
  pointer-events: none;
}
.video-play{
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}


/* Folder description (from info.txt) */
.folder__desc{
  margin: 10px 12px 0 12px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  line-height: 1.45;
}

/* Music */
.musicbox__panel{
  width: min(1200px, calc(100vw - 1.5rem));
  height: min(780px, calc(100vh - 1.5rem));
}

.musicbox__body{
  display:grid;
  grid-template-columns: 360px 1fr;
  height: 100%;
  min-height: 0;
}

.musicbox__left{
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,0.12);
  display:flex;
  flex-direction:column;
  gap: .75rem;
  min-height: 0;
  overflow:auto;
}

.musicbox__cover{
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.35);
}

.musicbox__titleline{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}

.musicbox__title{
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: .2px;
  line-height: 1.2;
}

.musicbox__duration{
  font-size: .92rem;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
}

.musicbox__info{
  color: rgba(255,255,255,0.86);
  font-size: .95rem;
  line-height: 1.5;
}

.musicbox__video-block{ margin-top: .25rem; }
.musicbox__video-label{ margin-bottom: .35rem; }
.musicbox__video-wrap{ margin-top: 0; }
.musicbox__video{
  width: 100%;
  max-height: 260px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.14);
  background: #000;
}

.musicbox__video-link{ display:inline-flex; margin-top: .55rem; }

.musicbox__right{
  display:flex;
  flex-direction:column;
  min-height: 0;
}

.musicbox__top{
  display:flex;
  align-items:center;
  gap: .5rem;
  padding: .8rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}

.musicbox__lyrics-wrap{
  min-height: 0;
  height: 100%;
  overflow:auto;
  padding: 1rem 1.1rem;
}

.musicbox__lyrics,
[data-mb-lyrics]{
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
  margin: 0;
}

@media (max-width: 980px){
  .musicbox__body{ grid-template-columns: 1fr; }
  .musicbox__left{ border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .musicbox__panel{ height: calc(100vh - 1.5rem); }
}
