/* ===== Theme ===== */
:root{
  --bg:#0e0f12;
  --panel:#121318;
  --muted:#9aa1aa;
  --text:#e9ecf1;
  --gold:#d9b561;        /* accent */
  --gold-strong:#caa33b;
  --border:#23252c;
}

*{box-sizing:border-box}
html,body{height:100%}
body.site{
  margin:0;
  font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:radial-gradient(80% 120% at 50% 0%,#0b0c10 0%, var(--bg) 70%);
}

/* ===== Layout ===== */
.container{width:min(1120px, 92%); margin:0 auto}
.section{padding:48px 0; background:transparent}
.section--last{padding-bottom:72px}
.section__header{display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px}
.section__title{
  font-family:"Playfair Display",serif;
  font-weight:700;
  letter-spacing:.4px;
  color:var(--gold);
  font-size:clamp(20px, 2.2vw, 28px);
  margin:0 0 8px;
}
.muted{color:var(--muted)}

/* ===== Topbar ===== */
.topbar{position:sticky; top:0; z-index:50; background:#0b0c10; border-bottom:1px solid var(--border)}
.topbar__wrap{display:flex; align-items:center; justify-content:space-between; height:56px}
.brand{
  color:var(--gold);
  text-decoration:none;
  letter-spacing:.18em;
  font-weight:600;
  font-size:18px;
}
.nav{display:flex; gap:22px}
.nav__link{color:#cfd4db; text-decoration:none; font-size:14px; opacity:.85}
.nav__link:hover,.nav__link--active{color:#fff; opacity:1}

/* ===== Hero ===== */
.hero {
  position: relative;
  isolation: isolate;
  height: clamp(360px, 56vh, 640px);
  display: flex;              /* flex instead of grid */
  align-items: flex-end;      /* push content to bottom */
  justify-content: center;    /* keep it centered horizontally */
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding-bottom: 48px;       /* add breathing space above bottom */
}

/* Ambient blurred background for ultra-wide */
.hero::before {
  content: "";
  position: absolute;
  inset: -8vh -10vw;
  background-image: var(--hero-image);
  background-repeat: no-repeat;
  background-position: center 30%;
  background-size: cover;
  filter: blur(38px) saturate(1.2) brightness(0.5);
  transform: scale(1.08);
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}

.hero__media{
  position:absolute; inset:0;
  background-image:var(--hero-image);
  background-repeat:no-repeat;
  background-position:center 30%;
  background-size:cover;
  transform:translateZ(0);
  filter:brightness(.75);
  z-index:1; /* (will be overridden at the end) */
}

.hero::after{
  content:""; position:absolute; inset:0;
  background:#000;
  opacity:var(--hero-overlay, .45);
  z-index:2;
}

@media (min-width:900px){
  .hero__media{ background-size: cover; }
}

@media (min-width:1200px){
  .hero::after {
    background:
      radial-gradient(1200px 60% at 50% 40%, rgba(0,0,0,0) 0%, rgba(0,0,0,.4) 65%, rgba(0,0,0,.65) 100%),
      #000;
    opacity: 0.25;
  }
  .hero { height: clamp(420px, 62vh, 760px); }
}

.hero__content {
  position: relative;
  z-index: 3; /* (will be overridden at the end) */
  max-width: 720px;
  text-align: center;
}
.hero__title{
  font-family: 'Dancing Script', cursive;
  font-weight:700;
  font-size:clamp(32px, 6vw, 56px);
  color: #fff;
  text-shadow:
    2px 2px 4px rgba(0,0,0,0.8),
   -2px -2px 4px rgba(0,0,0,0.8);
  line-height:1.05;
  margin:0 0 8px;
}
.hero__subtitle{
  margin:0 0 20px;
  font-size:clamp(20px, 3vw, 24px);
  color: #fff;
  text-shadow:
    2px 2px 4px rgba(0,0,0,0.8),
   -2px -2px 4px rgba(0,0,0,0.8);
}

/* ===== Buttons & Links ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;                       /* space between icon and text */
  line-height: 1;                 /* kill default line-height differences */
  height: 38px;                   /* explicit, consistent height */
  padding: 0 18px;                /* vertical padding comes from height */
  border-radius:999px;
  background:var(--gold);
  color:#111;
  text-decoration:none;
  font-weight:600;
  border:1px solid transparent;
}
.btn:hover{background:var(--gold-strong)}
.btn--ghost{
  background:transparent;
  color:var(--gold);
  border:1px solid var(--gold);
}
.btn--ghost:hover{background:rgba(217,181,97,.08)}
.btn--primary {
  border: 1px solid var(--gold);
  background-color: var(--gold);
  color: #111;
}
.btn--primary:hover {
  background-color: var(--gold-strong);
  border-color: var(--gold-strong);
}

/* Small pill link */
.pill-link,
.btn--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .2px;
  text-decoration: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pill-link:hover,
.btn--link:hover {
  background-color: rgba(217, 181, 97, 0.12);
  color: var(--gold-strong);
  border-color: var(--gold-strong);
}

/* ===== Cards ===== */
.card{
  display:grid; grid-template-columns: 120px 1fr; gap:16px;
  background:var(--panel); border:1px solid var(--border); border-radius:16px;
  padding:14px; align-items:center;
}
.card__img{width:120px; height:180px; object-fit:cover; border-radius:12px}
.card__title{margin:0 0 4px; font-weight:600}
.card__meta{margin:0 0 8px; color:var(--muted); font-size:14px}
.card__text{margin:0 0 12px; color:#e5e8ee; opacity:.9}

/* ===== Stream row ===== */
.stream{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:14px;
}
.stream__title{margin:0 0 4px; font-weight:600}
.stream__meta{margin:0; color:var(--muted)}

/* ===== Footer ===== */
.footer{border-top:1px solid var(--border); padding:28px 0; color:var(--muted)}
.mb-2 { margin-bottom: .5rem; }
.ml-2 { margin-left: .5rem; }

/* ===== Media queries ===== */
.card.is-playing {
  outline: 2px solid var(--accent, #4f46e5);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #4f46e5) 20%, transparent);
}

/* Floating MP3 bar */
.mp3bar{
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px;
  background: var(--panel); border:1px solid var(--border); border-radius:16px;
  padding: 10px 12px; box-shadow: 0 12px 30px rgba(0,0,0,.35); z-index: 60;
  transform: translateY(120%); opacity: 0; pointer-events: none;
  transition: transform .28s ease, opacity .28s ease;
}
.mp3bar.is-open{ transform: translateY(0); opacity: 1; pointer-events: auto; }

.mp3bar__cover{ width:56px; height:56px; border-radius:12px; object-fit:cover; background:#000 }
.mp3bar__meta{ min-width:0; display:grid; align-content:center; gap:6px }
.mp3bar__title{ font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.mp3bar__artist{ font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
/* Controls span the full width of the grid, under both cover+meta */
.mp3bar__controls {
  grid-column: 1 / -1;  /* span both columns */
  display: flex;
  justify-content: center; /* or flex-end if you prefer right aligned */
  gap: 6px;
}
.icon-btn{ appearance:none; border:1px solid var(--border); background:#181a20; color:#fff; border-radius:10px; padding:8px 10px; cursor:pointer }
.icon-btn:hover{ border-color: var(--gold); color: var(--gold) }
.mp3bar__seek{ width:100%; accent-color: var(--gold) }
@media (min-width: 920px){
  .mp3bar{ left: 24px; right: 24px; bottom: 24px; grid-template-columns: 64px 1fr auto; }
  .mp3bar__cover{ width:64px; height:64px; border-radius:14px; }
}

/* Helpers so cards never overflow */
.card { overflow:hidden }
.card > * { min-width:0 }

/* Optional: 2-up grid on desktop */
.cards{ display:grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap:20px }
.cards .card{ grid-column: span 12; }
@media (min-width:1100px){ .cards .card{ grid-column: span 6; } }

/* Make the card a 2-col grid; let the right side be a flex column */
.card{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:16px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  align-items:stretch;   /* right column should stretch full height */
  overflow:hidden;
  text-align: right;
}

/* Image fills the left column vertically */
.card__img{
  width:100%;
  aspect-ratio: 12 / 18;
  object-fit:cover;
  border-radius:12px;
}

/* Right column stacks body + footer and pushes footer to the bottom */
.card__stack{
  min-width:0;                 /* allow text to shrink without overflow */
  display:flex;
  flex-direction:column;
}

.card__body{ min-width:0; }    /* safe text wrapping */

/* Footer is always bottom-right, regardless of text length */
.card__footer{
  margin-top:auto;             /* pushes footer to the bottom */
  display:flex;
  justify-content:flex-end;    /* right align the button */
  align-items:flex-end;
}

/* Mobile tweaks (keep from earlier) */
@media (max-width: 600px) {
  .card { grid-template-columns: 88px 1fr; gap: 12px; }
}
@media (max-width: 380px) {
  .card { grid-template-columns: 1fr; }
  .card__img { height: 180px; }
  .card__footer { justify-content:flex-end; }
}

/* ===== Contacts / Socials ===== */
.socials{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap:16px;
}
.socials .social{ grid-column: span 12; }
@media (min-width: 680px){ .socials .social{ grid-column: span 6; } }
@media (min-width: 1024px){ .socials .social{ grid-column: span 4; } }

.social__link{
  display:flex; align-items:center; gap:12px;
  background: var(--panel);
  border:1px solid var(--border);
  border-radius:14px; padding:12px 14px;
  text-decoration:none; color:var(--text);
}
.social__link:hover{ border-color: var(--gold); }

.social__icon{
  width:32px; height:32px; border-radius:8px; object-fit:cover; background:#000;
}
.social__fallback{
  width:32px; height:32px; border-radius:8px;
  display:grid; place-items:center;
  background:#181a20; color:#fff; font-weight:700;
}
.social__label{ font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Basics */
.site-header { background:#0b0b0c; color:#fff; position:sticky; top:0; z-index:100; }
.navbar { display:flex; align-items:center; gap:12px; padding:10px 16px; position:relative; }
.brand { margin-right:auto; color:var(--gold); text-decoration:none; font-weight:600; }
.site-menu { margin-left:auto; }
.menu { display:flex; gap:16px; list-style:none; margin:0; padding:0; }
.menu a { color:#fff; text-decoration:none; padding:8px 10px; border-radius:8px; }
.menu a:hover { background:rgba(255,255,255,.08); }

/* Hide toggle on desktop */
.nav-toggle { display:none; }

/* ===== Mobile / narrow screens: fixed button + right drawer ===== */
@media (max-width: 900px) {
  .nav-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    width:44px; height:44px; border-radius:10px;
    border:1px solid rgba(255,255,255,.15);
    background:rgba(0,0,0,.2); color:#fff; cursor:pointer;
    position:fixed; top:12px; right:12px; z-index:110;
    backdrop-filter: blur(6px);
  }

  .site-menu{
    position:fixed; inset:0 0 0 auto;
    width:min(320px, 88vw);
    height:100vh;
    background:#0e0f13;
    border-left:1px solid rgba(255,255,255,.08);
    padding:16px;
    transform:translateX(100%);
    transition:transform .25s ease;
    z-index:109;
    overflow:auto;
  }
  .site-menu.open{ transform:translateX(0); }

  .site-menu .menu{
    flex-direction:column; gap:8px;
  }
  .site-menu .menu a{
    display:block; padding:12px; border-radius:10px;
  }

  .menu-overlay[hidden]{ display:none; }
  .menu-overlay{
    position:fixed; inset:0;
    background:rgba(0,0,0,.45);
    z-index:108;
  }

  .navbar .site-menu:not(.open) .menu{ display:none; }
}

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

.icon-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #111;
  font-size: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.icon-round:hover {
  background: var(--gold-strong);
  border-color: var(--gold-strong);
}

/* ===== Contact page ===== */
.flash-stack { margin: 12px 0 18px; display: grid; gap: 8px; }
.alert { padding: .75rem 1rem; border-radius: 10px; border:1px solid var(--border); background:#1a1d23; color: var(--text); }
.alert-success { background:#0f2a1a; border-color:#153a22; }
.alert-error, .alert-danger { background:#2a1414; border-color:#3d1c1c; }
.alert-info { background:#141a23; border-color:#1f2732; }

/* Card with two-column layout on desktop, tight and centered */
.contact-card {
  max-width: 820px;
  margin: 18px auto 40px;
  grid-template-columns: 260px 1fr; /* extends your .card grid */
  gap: 20px;
  align-items: start;
}

/* Left column: title + short note */
.contact-card__left { display: grid; align-content: start; gap: 8px; }
.contact-card__title { font-family: "Playfair Display", serif; font-size: 22px; margin: 0; }
.contact-card__note { margin: 0; }

/* Form layout */
.contact-form { display: grid; gap: 12px; text-align: left; }
.contact-form label { display: block; text-align: left; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea { text-align: left; }
.form-row { display: grid; gap: 6px; }
.form-actions { margin-top: 6px; }

.input, .textarea {
  width: 100%;
  padding: .7rem .8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f1217;
  color: var(--text);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217,181,97,.15);
}

/* Hide honeypot field */
.hp-wrap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Responsive: stack on small screens */
@media (max-width: 880px) {
  .contact-card { grid-template-columns: 1fr; }
}

/* iOS notch / Dynamic Island safe area */
:root { --safe-top: env(safe-area-inset-top, 0px); }
.topbar { background: #0b0c10; padding-top: calc(var(--safe-top)); }
body.site { background-color: #0e0f12; }

.btn--icon svg { display:block; }

/* Shuffle active state — works for both old .icon-btn and new .btn styles */
#btn-shuffle.is-active {
  background-color: var(--gold);
  color: #111;
  border-color: var(--gold);
}
.btn--icon svg { display: block; } /* crisp centering */

/* Space for the floating player so it doesn't cover UI */
:root { --mp3bar-space: 120px; }
@media (min-width: 920px){
  :root { --mp3bar-space: 150px; }
}
body.site.player-open { padding-bottom: var(--mp3bar-space); }
@supports selector(body:has(.mp3bar.is-open)) {
  body.site:has(.mp3bar.is-open) main { padding-bottom: var(--mp3bar-space, 160px); }
}
.mp3bar { bottom: max(16px, env(safe-area-inset-bottom)); }
body.site.player-open main { padding-bottom: var(--mp3bar-space, 160px); }

/* Active state for round icon buttons */
.icon-btn {
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.icon-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0e0f12;
  box-shadow: 0 0 0 2px rgba(217,181,97,.25);
}
.icon-btn.is-active:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0e0f12;
}

/* About page */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
.about__media { width: 100%; }
.about__img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}
.about__placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: rgba(0,0,0,0.06);
  border: 2px dashed rgba(0,0,0,0.12);
  border-radius: 16px;
  font-size: 0.95rem;
  opacity: 0.7;
}
.about__title {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  line-height: 1.2;
  margin: 0 0 0.25rem;
}
.about__subtitle { margin: 0 0 1rem; opacity: 0.8; }
.about__body p { margin: 0 0 1rem; }

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(280px, 520px) 1fr;
    gap: 2rem;
  }
}

/* ================================
   TikTok Live Banner
   ================================ */
.live-strip {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: .5rem 0;
}
.live-strip__link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.975rem;
  line-height: 1;
  pointer-events: auto;
  transition: transform .15s ease, opacity .15s ease;
}
.live-strip__link:hover { transform: translateY(-1px); opacity: .9; }
.live-strip__logo { width: 32px; height: 32px; object-fit: contain; display: block; }
.live-strip__text::before {
  content: "";
  width: .55rem; height: .55rem; border-radius: 50%;
  background: #ff2d55;
  display: inline-block; margin-right: .35rem;
  box-shadow: 0 0 0 0 rgba(255,45,85,.65);
  animation: livepulse 1.2s infinite;
  vertical-align: middle;
}
@keyframes livepulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,45,85,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(255,45,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,45,85,0); }
}

/* ensure base positioning exists once */
.hero__media { position: absolute; inset: 0; overflow: hidden; }

/* ====== HERO STACKING FIX (place at end so it wins) ====== */
.hero__media { z-index: 3 !important; }   /* video layer above overlay */
.hero::after { z-index: 2 !important; }   /* overlay below video */
.hero__content { z-index: 4 !important; } /* text above all */
/* Keep your existing .hero, .hero::before, etc. */

/* Put media stack just above ::before */
.hero__media { position:absolute; inset:0; z-index:1; overflow:hidden; }

/* Actual video */
.hero__video {
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  pointer-events:none;
}

/* Dark overlay above video (optional) */
.hero::after { z-index:2; }

/* Text above both */
.hero__content { position:relative; z-index:3; }

/* If a video is present, don’t paint the fallback background image */
.hero[data-has-video="1"] .hero__media {
  background:none;
}

/* video fills and allows clicks through */
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.hero__video.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* When we switch to the still image */
.hero--still::before {
  opacity: 0;                 /* hide the blurred bg */
  transition: opacity .6s ease;
}

.hero--still .hero__media {
  filter: none;               /* remove brightness(.75) dim */
}

.hero--still::after {
  opacity: 0.20;              /* optional: lighten overlay after intro */
  transition: opacity .6s ease;
}

/* Nice fade of the video itself */
.hero__video.fade-out {
  opacity: 0;
  transition: opacity .6s ease;
}


/* === HERO VIDEO → IMAGE CROSSFADE === */

/* Ensure single base positioning */
/* Keep the background image under the video so the crossfade reveals it */
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 3;              /* above ::after */
  background-image: var(--hero-image);      /* make sure this stays */
  background-repeat: no-repeat;
  background-position: center 30%;
  background-size: cover;
}

/* Center the video and fit by height (no stretching across the full width) */
.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100%;
    min-width: 70%;/* fill hero height */
  transform: translate(-50%, -50%);
  object-fit: contain;     /* safety; not strictly needed with width:auto */
  object-position: center 30%;
  pointer-events: none;
  opacity: 1;
  transition: opacity .6s ease;
     filter: brightness(1.2) contrast(0.88) saturate(0.8);
}

/* Start the crossfade ~ end of video */
.hero__video.is-fading { opacity: 0; }

/* After intro, tweak the overlay (optional) and remove blur */
.hero--still::before { opacity: 0; transition: opacity .6s ease; }
.hero--still::after  { opacity: 0.20; transition: opacity .6s ease; }

/* IMPORTANT: remove any rule that said:
   .hero[data-has-video="1"] .hero__media { background: none; } */


/* If a video is present, don't paint the fallback bg inside media */
.hero[data-has-video="1"] .hero__media { background: none; }

.hero__video.fit-contain {
  object-fit: contain;
}

.hero__video.fit-cover {
  object-fit: cover;
}


/* Show video only on mobile */
@media (min-width: 900px) {
  .hero__video { display: none !important; }
}