
/* /assets/css/site.css
   Shared stylesheet for:
   - /index.html            (body.page-index)
   - /donation/index.html   (body.page-donation)
   - /privacy/index.html    (body.page-privacy)
   - /playlist/_recently.html (body.page-playlist)
*/

/* =========================================
   Misc / small helpers
========================================= */
/*
.flag-ch {
  width: 16px;
  height: 16px;
  display: inline-block;
  align-items: center;
  justify-content: center;
}
.flag-ch svg {
  width: 16px;
  height: 16px;
  display: block;
  -webkit-transform: translateZ(0);
  border-radius: 4px; 
  }
  */


.flag-img {
  width: 16px;
  height: 16px;
  display: block;
}
.currency-toggle button {
  align-items: center;
}

/* =========================================
   Base / Variables
========================================= */
:root{
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --line: rgba(255,255,255,.12);
  --glass: rgba(20,24,34,.62);
  --glass2: rgba(20,24,34,.48);
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 18px;
  --accent: #e53935;
  --daily-bg: none;                 /* JS will set: url("...") */
  --daily-bg-pos: center center;    /* JS may set per-image crop */
}

*{ box-sizing:border-box; }

/* Keep viewport stable and avoid weird seams */
html,body{ height:100%; }
html{ background:#05070d; } /* fallback behind bg */

/* IMPORTANT:
   We do NOT use background-attachment: fixed on body because it can create
   visible "seams" with backdrop-filter. We render the background using
   a fixed pseudo-element instead.
*/
body{
  margin:0;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: none;           /* was the fixed background; removed */
  position: relative;
}

a{ color:inherit; }

/* =========================================
   Shared Layout (Landing-style pages)
========================================= */
.wrap{
  min-height: 100vh;
  display: flex;
  align-items: center;      /* top, not center */
  justify-content: center;      /* keep horizontal centering of the card */
  padding: 26px 14px 26px;
}


.card{
  width: min(880px, 100%);
  background: linear-gradient(180deg, var(--glass), var(--glass2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 28px 22px 20px;
  position: relative;

  /* FIX: prevents blur/overlay bleeding outside rounded corners */
  overflow: hidden;
  isolation: isolate;
}

.logo{
  display:block;
  max-width: 640px;
  width: 92%;
  margin: 0 auto 14px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.45));
}

.headline{
  margin-top: 10px;
  text-align:center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
}

.sub{
  margin: 10px auto 0;
  text-align:center;
  color: var(--muted);
  max-width: 74ch;
  line-height: 1.55;
  font-size: 14px;
}

.divider{
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

/* Donation has slightly smaller headline */
.page-donation .headline{ font-size: 26px; }

/* =========================================
   Shared Buttons
========================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:13px 18px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-weight: 800;
  text-decoration:none;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  cursor:pointer;
}

.btn:hover{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
}

.btn.primary{
  background: rgba(229,57,53,.92);
  border-color: rgba(229,57,53,.92);
}
.btn.primary:hover{ background: rgba(229,57,53,1); }

.btn.secondary{
  background: rgba(99,102,241,.16);
  border-color: rgba(99,102,241,.35);
}

/* index button width */
.page-index .btn{ width: min(420px, 100%); }

/* donation button width */
.page-donation .btn{ width: 100%; }

/* =========================================
   Index: Listen grid + support
========================================= */
.support{
  margin-top: 14px;
  text-align:center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.support-cta{ margin-top:12px; }
.support-note{ margin-top:10px; font-size:13px; }

.listen-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 6px;
}
.listen-box{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:16px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--text);
  text-decoration:none;
  text-align:center;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  transition: transform .08s ease, background .08s ease, border-color .08s ease;
}
.listen-box strong{
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
}
.listen-box span{
  margin-top:4px;
  font-size:12px;
  color: var(--muted);
}
.listen-box:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
}
@media (max-width: 640px){
  .listen-grid{ grid-template-columns: 1fr; }
}

/* =========================================
   Footer styles (shared nav components)
========================================= */
.navlink{
  flex: 1 1 auto;
  min-width: 120px;
  text-align:center;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  font-weight: 800;
  font-size: 13px;
  text-decoration:none;
  transition: transform .08s ease, background .08s ease, border-color .08s ease;
}
.navlink:hover{
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.09);
  transform: translateY(-1px);
}
.navlink.active{
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
}





.footer-note{
  margin-top: 14px;
  text-align:center;
  color: rgba(255,255,255,.70);
  font-size: 12px;
}

/* =========================================
   Donation Panels
========================================= */
.donation-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 18px 0 6px;
}

.panel{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  overflow: hidden;
}

.panel .phd{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  background: rgba(255,255,255,.04);
}

.phd .title{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}

.phd .title strong{
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.phd .title .hd-icon{
  width: 26px;
  height: 26px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.10);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.phd .title .hd-icon svg{
  width: 18px;
  height: 18px;
  opacity: .95;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.85);
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(0,0,0,.10);
  white-space: nowrap;
  font-weight: 800;
}

.panel .pbd{ padding: 12px; }

.hint{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px;
}

.stack{ display:grid; gap: 10px; }

.mt8{ margin-top: 8px; }
.mt0{ margin-top: 0; }

/* Copy blocks */
.copy-row{
  display:flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 8px;
  flex-wrap: wrap;
}
.copybox{
  flex: 1 1 280px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
  line-height: 1.35;
  word-break: break-word;
}
.copybtn{
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}
.copybtn:hover{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
}

.toast{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(76,217,123,.95);
  display:none;
  font-weight: 800;
}
.toast.show{ display:block; }

/* Stripe center box */
.stripe-center{
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 22px 12px;
}
.stripe-box{
  background: rgba(255,255,255,.04);
  border-style: dashed;
}

/* Nested panel used inside crypto */
.panel.inner-panel{
  background: rgba(0,0,0,.06);
  box-shadow: none;
}

/* Crypto accordion */
details.coin{ border-top: 1px solid rgba(255,255,255,.14); }
details.coin:first-child{ border-top: 0; }
details.coin > summary{ list-style:none; cursor:pointer; }
details.coin > summary::-webkit-details-marker{ display:none; }

.coin-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  user-select: none;
}
.coin-top:hover{ background: rgba(255,255,255,.04); }

.coin-left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.10);
  flex: 0 0 auto;
}
.icon svg{
  width: 22px;
  height: 22px;
  opacity: .95;
}
.coin-title{ min-width: 0; }
.coin-title strong{
  display:block;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
}
.coin-title span{
  display:block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  max-width: 46ch;
}

.chev{
  width: 18px;
  height: 18px;
  opacity: .8;
  transition: transform .18s ease;
  flex: 0 0 auto;
}
details.coin[open] .chev{ transform: rotate(180deg); }

.coin-body{
  padding: 0 12px 12px;
  border-top: 1px solid rgba(255,255,255,.14);
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: start;
}
@media (max-width: 520px){
  .coin-body{ grid-template-columns: 1fr; }
}
.qr{
  width: 140px;
  height: 140px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.12);
  overflow:hidden;
}
.qr img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* =========================================
   Privacy page (article typography only)
   No layout overrides here
========================================= */

.page-privacy h1{
  margin: 0 0 12px;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .02em;
}

.page-privacy h2{
  margin: 22px 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.page-privacy h3{
  margin: 16px 0 6px;
  font-size: 15px;
  font-weight: 800;
}

.page-privacy p,
.page-privacy li{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.page-privacy ul{
  margin: 8px 0 8px 18px;
}

.page-privacy a{
  color:#fff;
}


/* =========================================
   Playlist / Recently (_recently.html)
========================================= */

/* Playlist page uses a donation-style OUTER frame */

.page-playlist .page-card{
  width: min(980px, 100%);
  background: linear-gradient(180deg, var(--glass), var(--glass2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 28px 22px 20px;
  margin-left: auto;
  margin-right: auto;

  /* same clipping fix for playlist outer card */
  overflow: hidden;
  isolation: isolate;
}

/* Playlist topbar + headings */
.page-playlist .topbar{
  display:flex;
  gap:12px;
  align-items:flex-end;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom: 14px;
}

.page-playlist h1{
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
  text-align: left;
}

.page-playlist .subnote{
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.page-playlist .section{ margin-top: 16px; }

.page-playlist .section-title{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 2px 10px;
}

.page-playlist .section-title h2{
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.78);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .10em;
}

/* Playlist inner list cards (track lists) */
.page-playlist .card{
  width: auto;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  padding: 0;
  position: relative;

  /* clip blur to radius */
  isolation: isolate;
}

/* Track rows */
.page-playlist .track{
  display:flex;
  gap: 12px;
  padding: 12px 14px;
  align-items:center;
  border-top: 1px solid var(--line);
}
.page-playlist .track:first-child{ border-top: 0; }

/* Coming next slightly bigger */
.page-playlist .next .track{ padding: 14px; }

/* Covers + hover preview */
.page-playlist .cover-wrap{
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}
.page-playlist .next .cover-wrap{
  width: 64px;
  height: 64px;
}

.page-playlist .cover{
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  display: block;
}
.page-playlist .next .cover{ border-radius: 14px; }

.page-playlist .cover-large{
  display: none;
  position: absolute;
  left: 72px;
  top: -10px;
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  z-index: 999;
  pointer-events: none;
}
.page-playlist .cover-wrap:hover .cover-large{ display: block; }

@media (max-width: 520px){
  .page-playlist .cover-large{ left: 0; top: 72px; }
}

/* Meta text */
.page-playlist .meta{
  min-width: 0;
  flex: 1 1 auto;
}

.page-playlist .row1{
  display:flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.page-playlist .artist{
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.page-playlist .time-badge{
  font-size: 12px;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.page-playlist .title{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-playlist .album{
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Subtle hover on recent list */
.page-playlist .recent .track{
  transition: background .12s ease;
  cursor: default;
}
.page-playlist .recent .track:hover{
  background: rgba(255,255,255,.06);
}

@media (max-width: 520px){
  .page-playlist h1{ font-size: 18px; }
  .page-playlist .time-badge{ font-size: 11px; }
}


/* =========================================================
   DAILY BACKGROUND (dynamic via CSS variables)
   - JS sets: --daily-bg and optional --daily-bg-pos
   - Fallback when JS fails: html.bg-fallback
========================================================= */



/* Background image layer */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--daily-bg);
  background-position: var(--daily-bg-pos);
  background-size: cover;
  background-repeat: no-repeat;
  transform: translateZ(0);
}

/* Fallback background if JS didn’t set --daily-bg */
html.bg-fallback body::before{
  background-image: url("https://lounge-radio.com/images/background.jpg");
  background-position: center center;
}

/* Overlay layer (the “dark vignette” / glass readability) */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center,
              rgba(0,0,0,.20) 0%,
              rgba(0,0,0,.55) 70%,
              rgba(0,0,0,.70) 100%);
  pointer-events: none;
}

/* Background credit pill (desktop only) */
#bg-credit{
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 9999;

  font-size: 12px;
  line-height: 1.2;
  padding: 8px 10px;
  border-radius: 12px;

  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  max-width: min(520px, calc(100vw - 28px));

  /* show/hide behavior (keep if your JS toggles visibility) */
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

/* Visible state (JS adds/removes this class) */
#bg-credit.is-visible{
  opacity: 1;
  pointer-events: auto;
}

/* Links */
#bg-credit a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.35);
}
#bg-credit a:hover{
  border-bottom-color: rgba(255,255,255,.75);
}

/* Hide on touch devices (phones/tablets) */
@media (hover: none), (pointer: coarse){
  #bg-credit{ display:none !important; }
}

