/* =====================================================================
   NIHAR: MUSIC, EVENTS & DESIGN  (the Creative Hub)
   Standalone stylesheet. It does NOT load styles.css, so the hub and
   the UX portfolio stay separate brands.

   Palette: indigo (denim + indigo dye), turmeric, chili, peacock, cream.
   Change the whole feel from the :root block below.
   ===================================================================== */

:root {
  --cream: #f3ead8;
  --paper: #fbf7ec;
  --ink: #1f1d33;
  --ink-soft: #5d5a6e;
  --rule: #ddd2ba;
  --indigo: #232b57;
  --indigo-2: #323d75;
  --haldi: #e9a21b;
  --chili: #c4452b;
  --peacock: #1f7a78;
  --blush: #ebbfae;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Avenir Next", system-ui, sans-serif;
  --side: 248px;
  --bar: 84px;
  /* Floating background: tweak these three */
  --bg-base: 0.2;      /* resting opacity of the pattern */
  --bg-glow: 0.5;      /* extra opacity right under the mouse (desktop) */
  --bg-radius: 190px;  /* size of the invisible mouse circle */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--haldi); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell ---------- */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: var(--side) 1fr; }

.side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  height: calc(100vh - var(--bar));
  padding: 1.6rem 1rem 1.2rem;
  overflow-y: auto;
  background: var(--indigo);
  color: var(--cream);
}
.brand { padding: 0 0.6rem; text-decoration: none; }
.brand-row { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo { flex: none; width: 34px; height: 34px; }
.brand b { display: block; font: 400 2rem/1 var(--display); letter-spacing: -0.01em; }
.brand .tag { display: block; margin-top: 0.45rem; color: #b9bfe0; font-size: 0.85rem; }

.nav-toggle { display: none; }
.side-menu { display: contents; }

.nav { display: grid; gap: 2px; }
.nav h2 { margin: 0 0 0.4rem 0.6rem; color: #9aa2cf; font: 600 0.78rem/1 var(--sans); }
.nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { background: rgba(255, 255, 255, 0.07); }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.13); font-weight: 700; }

.nav i {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--c);
  color: var(--ic, var(--indigo));
}
.nav i svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-foot { margin-top: auto; padding: 0 0.6rem; font-size: 0.9rem; }
.side-foot a { display: block; padding: 0.6rem 0.9rem; border: 1px solid #5a649a; border-radius: 999px; text-align: center; text-decoration: none; }
.side-foot a:hover { background: var(--cream); color: var(--indigo); border-color: var(--cream); }

/* ---------- Main ---------- */
.main { min-width: 0; padding: clamp(1.4rem, 3.5vw, 3rem) clamp(1.1rem, 3.5vw, 3rem) calc(var(--bar) + 2rem); }
.js .view { display: none; }
.js .view.is-active { display: block; }
.view { max-width: 1080px; }

.view-head { margin-bottom: 1.8rem; }
.view-head h1 { margin: 0; font: 400 clamp(2.2rem, 5vw, 3.4rem)/1.05 var(--display); letter-spacing: -0.015em; }
.view-head p { max-width: 54ch; margin: 0.6rem 0 0; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Album-art placeholders: flat colour + one simple shape ----------
   Set colours inline with style="--bg:#hex;--fg:#hex". Add a real image by
   putting <img src="..." alt="..."> inside .art and deleting the .ph span. */
.art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg, var(--indigo));
  border-radius: 2px;
}
.art img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.art::before, .art::after { content: ""; position: absolute; }
.art--poster { aspect-ratio: 1 / 1; }
.art--wide { aspect-ratio: 16 / 9; }

.art--arch::before { left: 22%; right: 22%; bottom: 0; height: 68%; border-radius: 999px 999px 0 0; background: var(--fg, var(--haldi)); }
.art--arch::after { left: 34%; right: 34%; bottom: 0; height: 46%; border-radius: 999px 999px 0 0; background: var(--bg, var(--indigo)); }
.art--sun::before { left: 50%; bottom: -30%; width: 80%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--fg, var(--haldi)); }
.art--dots::before { inset: 0; background: radial-gradient(var(--fg, var(--haldi)) 2.2px, transparent 2.8px) 0 0 / 16px 16px; }
.art--stripes::before { inset: 0; background: repeating-linear-gradient(90deg, var(--fg, var(--haldi)) 0 8%, transparent 8% 16%); }
.art--star::before {
  left: 50%; top: 50%; width: 52%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: var(--fg, var(--haldi));
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.ph {
  position: absolute;
  z-index: 1;
  left: 0.55rem;
  bottom: 0.5rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(251, 247, 236, 0.9);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
}
.play-glyph {
  position: absolute;
  z-index: 1;
  left: 50%; top: 50%;
  width: 3.4rem; height: 3.4rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--paper);
}
.play-glyph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  clip-path: polygon(38% 28%, 38% 72%, 72% 50%);
}

/* ---------- Home ---------- */
.now {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: end;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--indigo);
  color: var(--cream);
  border-radius: 4px;
}
.now h1 { margin: 0.2rem 0 0; font: 400 clamp(2.6rem, 7vw, 4.6rem)/1 var(--display); letter-spacing: -0.02em; }
.now .kind { margin: 0; color: var(--haldi); font-weight: 600; }
.now .by { margin: 0.5rem 0 1.2rem; color: #cdd2ee; font-size: 1.05rem; max-width: 40ch; }

.platforms { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.platforms a {
  display: inline-block;
  white-space: nowrap;
  padding: 0.38rem 0.85rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.platforms a:hover { background: var(--haldi); border-color: var(--haldi); color: var(--ink); }
.now .platforms a { border-color: #7a84bd; }
.now .platforms a:hover { border-color: var(--haldi); }

.intro { max-width: 58ch; margin: 2rem 0 2.2rem; font: 400 1.3rem/1.45 var(--display); }
.shelf-title { margin: 0 0 1rem; font: 400 1.5rem/1.1 var(--display); }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.3rem; }
.tile { text-decoration: none; }
.tile b { display: block; margin-top: 0.6rem; font-weight: 700; }
.tile span { color: var(--ink-soft); font-size: 0.92rem; }
.tile:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 2rem 1.5rem; }
.grid--square { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.grid--poster { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card h3 { margin: 0.8rem 0 0; font: 400 1.3rem/1.15 var(--display); }
.card .sub { margin: 0.15rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.facts { display: grid; gap: .5rem; margin: 0.8rem 0 0; padding-top: 0.7rem; border-top: 1px solid var(--rule); font-size: 0.9rem; }
.facts div { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; }
.facts dt { color: var(--ink-soft); text-align: right; font-style: italic;}
.facts dd { margin: 0; }
.todo { color: var(--ink-soft); font-style: italic; border-bottom: 1px dashed var(--rule); }
.card .platforms { margin-top: 0.9rem; }
.card .platforms a { padding: 0.2rem 0.6rem; font-size: 0.8rem; color: var(--indigo); border-color: #b7b2c9; }
.card .links { display: flex; gap: 1rem; margin: 0.8rem 0 0; font-size: 0.92rem; font-weight: 600; }
.card .links a { color: var(--indigo); text-underline-offset: 3px; }
.card .links a:hover { color: var(--chili); }
.desc {color:darkslategrey; padding-top: 0.7rem; border-top: 1px solid var(--rule);}

/* ---------- Design filter ---------- */
.chips { display: flex; gap: 0.5rem; margin-bottom: 1.6rem; }
.chip {
  padding: 0.38rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { border-color: var(--indigo); }
.chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--cream); }
.card[hidden] { display: none; }

/* ---------- Crew list ---------- */
.crew { display: grid; }
.person {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1rem;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  background-color: rgb(254 254 254 / 40%);
}
.person:last-child { border-bottom: 1px solid var(--rule); }
.person:hover { background: var(--paper); }
.person-logo { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: var(--indigo); color: var(--haldi); font: 400 1.3rem var(--display); }
.person-logo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin: 0; font: 400 1.25rem/1.15 var(--display); }
.person p { margin: 0.1rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }
.person .go { font-weight: 600; color: var(--indigo); }

.foot { max-width: 1080px; margin-top: 4rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Now-playing bar ---------- */
.bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  height: var(--bar);
  padding: 0 clamp(1rem, 2.5vw, 1.8rem);
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.bar-track { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.bar-track .art { flex: none; width: 52px; }
.bar-track b { display: block; line-height: 1.2; }
.bar-track span { color: var(--ink-soft); font-size: 0.88rem; }
.bar-play {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--haldi);
  color: var(--ink);
  text-decoration: none;
}
.bar-play::before { content: ""; width: 1rem; height: 1rem; background: currentColor; clip-path: polygon(20% 0, 20% 100%, 100% 50%); margin-left: 3px; }
.bar-play:hover { background: var(--chili); color: #fff; }
.bar-links { justify-content: flex-end; }
.bar-links a { padding: 0.25rem 0.7rem; font-size: 0.82rem; color: var(--indigo); border-color: #b7b2c9; }
.bar-label { margin: 0; text-align: right; color: var(--ink-soft); font-size: 0.8rem; }

/* ---------- Mobile + tablet: top bar with hamburger ---------- */
@media (max-width: 860px) {
  :root { --bar: 118px; }
  .shell { display: block; }
  .side {
    position: sticky; top: 0; z-index: 15;
    height: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 0.8rem;
    padding: 0.6rem 0.9rem; overflow: visible;
  }
  .brand { padding: 0; }
  .brand b { font-size: 1.4rem; }
  .brand-logo { width: 30px; height: 30px; }
  .brand .tag { display: none; }

  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    flex: none; width: 44px; height: 44px; padding: 0;
    border: 1px solid #5a649a; border-radius: 999px; background: none; cursor: pointer;
  }
  .nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
  .nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--cream); transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .side-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--bar) - 4rem); overflow-y: auto;
    padding: 0.6rem 0.9rem 1.1rem;
    background: var(--indigo);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 28px rgba(15, 17, 40, 0.35);
  }
  .side-menu.is-open { display: block; }
  .nav a { padding: 0.75rem 0.6rem; font-size: 1.05rem; }
  .side-foot { margin: 0.9rem 0 0; padding: 0; }
  .side-foot a { padding: 0.7rem 0.9rem; }

  .now { grid-template-columns: 1fr; }
  .now .art { max-width: 200px; }
  .bar { grid-template-columns: 1fr auto; grid-template-rows: auto auto; row-gap: 0.4rem; padding-top: 0.55rem; }
  .bar-links { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .bar-links a { flex: none; }
  .bar-label { display: none; }
}
@media (max-width: 480px) {
  .person { grid-template-columns: 44px 1fr auto; gap: 0.8rem; }
  .person-logo { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Credits (producers, engineers, features) ---------- */
.credits {
  display: grid;
  gap: 0.35rem;
  margin: 0.9rem 0 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  font-size: 0.9rem;
}
.credits li { display: flex; align-items: baseline; gap: 0.5rem; }
.credits .role { flex: none; width: 5.2rem; color: var(--ink-soft); }
.credits a { color: var(--indigo); text-underline-offset: 3px; }
.credits a:hover { color: var(--chili); }
.credits .soc { margin-left: 0.4rem; font-size: 0.8rem; font-weight: 600; color:white;}

/* Credits inside the facts list */
.facts dd a { color: var(--indigo); text-underline-offset: 3px; }
.facts dd a:hover { color: var(--chili); }
.facts .credit { display: block; }
.facts .credit + .credit { margin-top: 0.5rem; }
.facts .soc-links { display: flex; flex-wrap: wrap; gap: 0 0.7rem; font-size: 0.8rem; font-weight: 600; }

/* ---------- YouTube click-to-play ---------- */
.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--indigo);
  border-radius: 2px;
}
.yt-btn { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.yt-btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-btn:hover .play-glyph { background: var(--haldi); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-link { position: absolute; inset: 0; display: grid; place-items: center; color: var(--cream); font-weight: 600; }

/* ---------- Carousels: any .grid with .rail scrolls sideways ----------
   Add as many cards as you like. Swipe/trackpad on touch, arrow buttons with a mouse.
   Card width per type is set by --rail-w below. */
.rail-wrap, .grid.rail { --rail-w: min(240px, 78vw); }
.rail-wrap[data-type="poster"], .grid--poster.rail { --rail-w: min(250px, 78vw); }
.rail-wrap[data-type="wide"], .grid--wide.rail { --rail-w: min(340px, 86vw); }
.rail-wrap { position: relative; }
.grid.rail {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: var(--rail-w);
  align-items: start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #b7b2c9 transparent;
  padding: 0.2rem 0.2rem 1.1rem;
  margin: -0.2rem -0.2rem 0;
}
.rail > .card { scroll-snap-align: start; }
.rail:focus-visible { outline-offset: 0; }

.rail-btn {
  position: absolute;
  top: calc(var(--rail-w) / 2);
  z-index: 3;
  display: none;
  place-items: center;
  width: 42px; height: 42px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  color: var(--indigo);
  box-shadow: 0 2px 8px rgba(31, 29, 51, 0.18);
  cursor: pointer;
}
.rail-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rail-btn:hover { background: var(--haldi); border-color: var(--haldi); color: var(--ink); }
.rail-btn--prev { left: 0.4rem; }
.rail-btn--next { right: 0.4rem; }
.rail-wrap[data-type="wide"] .rail-btn { top: calc(var(--rail-w) * 9 / 32); }
/* Arrows only where a mouse can use them; touch screens just swipe. */
@media (hover: hover) and (pointer: fine) {
  .rail-btn:not([hidden]) { display: grid; }
}

/* ---------- Floating background ----------
   Two stacked copies of the same drifting pattern: .bg-base (always on, faint) and
   .bg-glow (only visible inside a soft circle around the mouse). Only transforms animate. */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-layer, .bg-scene { position: absolute; inset: 0; }
.bg-base { opacity: var(--bg-base); transition: opacity 0.35s ease; }
.bg-glow {
  opacity: 0;
  transition: opacity 0.35s ease;
  -webkit-mask-image: radial-gradient(circle var(--bg-radius) at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
          mask-image: radial-gradient(circle var(--bg-radius) at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
}
.bg-glow.is-on { opacity: var(--bg-glow); }

/* Pages crossfade; hidden pages stop animating. */
.bg-scene { --tw: 320px; --th: 160px; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0s linear 0.7s; }
.bg-scene.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.bg-scene:not(.is-active) * { animation-play-state: paused; }

/* The drifting sheet is a little bigger than the screen so no edge ever shows. */
.bg-drift {
  position: absolute;
  left: calc(-1 * var(--tw) - 24px);
  top: calc(-1 * var(--th) - 24px);
  width: calc(100% + 2 * var(--tw) + 48px);
  height: calc(100% + 2 * var(--th) + 48px);
  will-change: transform;
  animation: bg-drift 80s linear infinite;
}
.bg-icons, .bg-stars {
  position: absolute;
  inset: 0;
  background-size: var(--tw) var(--th);
  background-repeat: repeat;
  will-change: transform;
}
.bg-icons { animation: bg-bob 7s ease-in-out infinite alternate; }
.bg-stars { animation: bg-bob 9s ease-in-out -4s infinite alternate-reverse; }

/* Drifts exactly one tile, so the loop is seamless. */
@keyframes bg-drift { to { transform: translate3d(var(--tw), var(--th), 0); } }
@keyframes bg-bob { from { transform: translate3d(0, -10px, 0); } to { transform: translate3d(0, 10px, 0); } }

@media (prefers-reduced-motion: reduce) {
  .bg-drift, .bg-icons, .bg-stars { animation: none !important; }
}

/* ---------- Gravity easter egg ---------- */
.bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.35s ease; }
.bg.is-physics .bg-layer { opacity: 0 !important; transition: none !important; }   /* canvas takes over */

.hub-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar) + 14px);
  z-index: 30;
  max-width: calc(100vw - 2rem);
  padding: 0.55rem 1rem;
  transform: translate(-50%, 8px);
  border-radius: 18px;
  text-align: center;
  background: var(--indigo);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hub-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* iOS only: shaking needs a one-time permission tap */
.shake-cta {
  position: fixed;
  right: 0.8rem;
  bottom: calc(var(--bar) + 0.8rem);
  z-index: 25;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--indigo);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(31, 29, 51, 0.18);
  cursor: pointer;
}

/* ---------- Label credit (Lini Records) ---------- */
.now .label { margin: -0.9rem 0 1.2rem; color: #9aa2cf; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
