/* Music Coast Links — premium Linktree-style page
   Designed to match www.musiccoast.com theme (glass, gold accents, dark mode).
*/

:root {
  --mc-glass: rgba(255, 255, 255, 0.06);
  --mc-glass-2: rgba(255, 255, 255, 0.04);
  --mc-glass-3: rgba(255, 255, 255, 0.03);
  --mc-border: rgba(255, 255, 255, 0.12);
  --mc-border-strong: rgba(255, 255, 255, 0.18);
  --mc-shadow: 0 18px 50px rgba(0,0,0,.45);
  --mc-shadow-soft: 0 14px 34px rgba(0,0,0,.32);
  --mc-radius-xl: 26px;
  --mc-radius-lg: 20px;
  --mc-radius-md: 16px;
  --mc-radius-sm: 12px;
  --mc-gold: #d7b44b;
  --mc-gold-2: #e9d37a;

  /* Fallbacks if main site variables are absent */
  --bg: #0a0a0a;
  --card: rgba(255,255,255,.04);
  --text-primary: rgba(255,255,255,.95);
  --text-secondary: rgba(255,255,255,.70);
  --text-muted: rgba(255,255,255,.55);

  /* Default background gradient stops (dark baseline)
     so dark mode isn't accidentally rendered as white.
     Light mode overrides these below. */
  --bg-grad-0: #050505;
  --bg-grad-1: #070707;
  --bg-grad-2: #0a0a0a;
}

/*
  Ensure the native HTML `hidden` attribute always hides elements.
  (Prevents component CSS from unintentionally overriding it.)
*/
[hidden]{
  display:none !important;
}


/* =========================================================
   Theme system (mode + accent)
   - JS sets html[data-theme] and html[data-accent]
   - Colors are derived from the Music Coast logo palette
========================================================= */

html[data-accent="gold"]{
  --mc-gold: #d7b44b;
  --mc-gold-2: #e9d37a;
  --accent-rgb: 215,180,75;
  --accent-2-rgb: 233,211,122;
}
html[data-accent="sunset"]{
  --mc-gold: #ff7a18;
  --mc-gold-2: #ff3d7f;
  --accent-rgb: 255,122,24;
  --accent-2-rgb: 255,61,127;
}
html[data-accent="citrus"]{
  --mc-gold: #ffcc00;
  --mc-gold-2: #ff7a18;
  --accent-rgb: 255,204,0;
  --accent-2-rgb: 255,122,24;
}
html[data-accent="lime"]{
  --mc-gold: #a3ff12;
  --mc-gold-2: #00e58f;
  --accent-rgb: 163,255,18;
  --accent-2-rgb: 0,229,143;
}
html[data-accent="ocean"]{
  --mc-gold: #00c2ff;
  --mc-gold-2: #0077ff;
  --accent-rgb: 0,194,255;
  --accent-2-rgb: 0,119,255;
}
html[data-accent="violet"]{
  --mc-gold: #b04cff;
  --mc-gold-2: #ff3dc8;
  --accent-rgb: 176,76,255;
  --accent-2-rgb: 255,61,200;
}

/* Keep these derived variables in sync with accent-rgb values */
html{
  --accent: rgb(var(--accent-rgb));
  --accent-2: rgb(var(--accent-2-rgb));
}

/* Light mode (links site should be readable in both modes) */
html[data-theme="light"]{
  --bg: #f7f7f7;
  --card: rgba(0,0,0,.04);
  --text-primary: rgba(15,15,15,.95);
  --text-secondary: rgba(15,15,15,.72);
  --text-muted: rgba(15,15,15,.55);

  --mc-glass: rgba(255,255,255,0.72);
  --mc-glass-2: rgba(255,255,255,0.60);
  --mc-glass-3: rgba(255,255,255,0.48);
  --mc-border: rgba(0,0,0,0.10);
  --mc-border-strong: rgba(0,0,0,0.16);
  --mc-shadow: 0 18px 50px rgba(0,0,0,.18);
  --mc-shadow-soft: 0 14px 34px rgba(0,0,0,.12);

  --bg-grad-0: #ffffff;
  --bg-grad-1: #f6f6f6;
  --bg-grad-2: #f0f0f0;
}

html, body {
  height: 100%;
}

body.links-page {
  margin: 0;
  background: radial-gradient(1200px 600px at 12% 18%, rgba(var(--accent-rgb),.18), transparent 55%),
              radial-gradient(1000px 600px at 88% 22%, rgba(var(--accent-2-rgb),.10), transparent 55%),
              radial-gradient(900px 500px at 55% 92%, rgba(var(--accent-rgb),.10), transparent 55%),
              linear-gradient(180deg, var(--bg-grad-0) 0%, var(--bg-grad-1) 60%, var(--bg-grad-2) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

.links-wrap {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 0 calc(48px + env(safe-area-inset-bottom));
  position: relative;
}

.links-wrap::before{
  content:"";
  position:absolute;
  inset:-100px -24px auto -24px;
  height: 260px;
  background: radial-gradient(520px 220px at 30% 40%, rgba(var(--accent-rgb),.26), transparent 65%),
              radial-gradient(540px 240px at 80% 60%, rgba(var(--accent-2-rgb),.16), transparent 65%);
  filter: blur(10px);
  pointer-events:none;
  opacity: .9;
}

/* Topbar */
.links-topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10,10,10,.92), rgba(10,10,10,.70));
  border-bottom: 1px solid rgba(255,255,255,.06);
}


html[data-theme="light"] .links-topbar{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.links-brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: inherit;
  min-width: 0;
}

.links-brand img{
  height: 46px;
  width: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  background: rgba(0,0,0,.25);
}

.links-name{
  display:flex;
  flex-direction:column;
  line-height: 1.1;
  min-width: 0;
}

.links-name strong{
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.links-name span{
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action pill buttons */
.links-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

/* Theme picker (re-uses theme styles from the main site; these are small layout overrides) */
.links-actions .theme-picker{ position: relative; }
.links-actions .theme-menu{ right: 0; left: auto; z-index: 60; }
.links-actions .theme-toggle{ padding: 10px 12px; }
.links-actions .theme-toggle .theme-dot{ width: 10px; height: 10px; }

.pill-btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--mc-border);
  background: var(--mc-glass-2);
  color: var(--text-primary);
  cursor:pointer;
  user-select:none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.pill-btn:hover{
  transform: translateY(-1px);
  border-color: var(--mc-border-strong);
  background: rgba(255,255,255,.06);
}

.pill-btn:active{
  transform: translateY(0);
}

.pill-btn svg{
  width: 18px;
  height: 18px;
}

.pill-btn span{
  font-size: 13px;
  font-weight: 700;
}

/* Hero */
.links-hero{
  margin-top: 18px;
}

.hero-card{
  position: relative;
  border-radius: var(--mc-radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--mc-shadow);
  overflow:hidden;
  padding: 22px 18px;
}

.hero-card::before{
  content:"";
  position:absolute;
  inset:-120px -120px auto -120px;
  height: 260px;
  background: radial-gradient(480px 240px at 20% 50%, rgba(var(--accent-rgb),.22), transparent 65%),
              radial-gradient(520px 240px at 75% 60%, rgba(var(--accent-2-rgb),.14), transparent 65%);
  filter: blur(8px);
  opacity: .85;
  pointer-events:none;
}

.hero-inner{
  position:relative;
  display:flex;
  gap: 16px;
  align-items:center;
}

.hero-logo{
  height: 72px;
  width: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  box-shadow: 0 18px 42px rgba(0,0,0,.35);
  flex: 0 0 auto;
}

.hero-copy{
  min-width: 0;
}

.hero-copy h1{
  margin: 0 0 6px;
  font-size: 34px;
  letter-spacing: .2px;
}

.hero-copy p{
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
}

.hero-chips{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content: center;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.86);
  font-size: 13px;
}

.chip svg{
  width: 16px;
  height: 16px;
  opacity: .9;
}

/* Sections */
.links-section{
  margin-top: 18px;
}

.section-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  text-align:center;
  gap: 6px;
  margin: 18px 0 12px;
}


.section-head h2{
  margin: 0;
  font-size: 16px;
  letter-spacing: .3px;
}

.section-head p{
  margin: 8px 0 8px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  max-width: 56ch;
}


/* Featured grid */
.featured-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  justify-content: center;
}

@media (max-width: 920px){
  .featured-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner{ align-items:flex-start; }
  .hero-copy h1{ font-size: 30px; }
  .hero-logo{ height: 64px; }
  .links-actions .pill-btn span{ display:none; }
}

@media (max-width: 620px){
  .featured-grid{ grid-template-columns: 1fr; }
}

.feature-card{
  position: relative;
  border-radius: var(--mc-radius-lg);
  border: 1px solid rgba(255,255,255,.10);
  background: var(--mc-glass-3);
  overflow:hidden;
  box-shadow: var(--mc-shadow-soft);
  transition: transform .18s ease, border-color .18s ease;
}

.feature-card::before{
  content:"";
  position:absolute;
  inset:-40px;
  background-image: var(--thumb);
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.15);
  opacity: .22;
  transform: scale(1.12);
  pointer-events:none;
}

.feature-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
}

.feature-media{
  position:relative;
  aspect-ratio: 16 / 9;
  overflow:hidden;
}

.feature-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.02);
  transition: transform .22s ease, opacity .18s ease;
  display:block;
}

.feature-card:hover .feature-media img{
  transform: scale(1.06);
}

.feature-media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%);
  pointer-events:none;
}

.feature-badge{
  position:absolute;
  top: 12px;
  left: 12px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.45);
  font-size: 12px;
  color: rgba(255,255,255,.92);
  z-index: 2;
}

.feature-badge .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mc-gold);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.18);
}


.feature-count{
  position:absolute;
  left: 12px;
  bottom: 12px;
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.45);
  font-size: 12px;
  color: rgba(255,255,255,.92);
  z-index: 2;
}

.feature-count svg{
  width: 14px;
  height: 14px;
  opacity: .95;
}

.feature-meta{
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-muted);
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  align-items:center;
}

.feature-meta .tag{
  display:inline-flex;
  align-items:center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  font-weight: 800;
  font-size: 11px;
  color: rgba(255,255,255,.82);
}
.icon-btn{
  appearance:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 8px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.icon-btn:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.5);
  border-color: rgba(255,255,255,.22);
}

.icon-btn svg{
  width: 18px; height: 18px;
}

.feature-share{
  position:absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.feature-content{
  position:relative;
  padding: 14px 14px 16px;
}

.feature-content h3{
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: .2px;
}

.feature-content p{
  margin: 0;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.45;
}

.feature-actions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text-primary);
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}

.btn.primary{
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.95), rgba(var(--accent-2-rgb),.92));
  border: 1px solid rgba(0,0,0,.18);
  color: #111;
}

.btn.primary:hover{
  background: linear-gradient(135deg, rgba(var(--accent-2-rgb),.95), rgba(var(--accent-rgb),.92));
}

.btn svg{ width: 16px; height: 16px; }

/* Link buttons (classic tree) */
.links-stack{
  display:flex;
  flex-direction:column;
  gap: 12px;
  width: min(720px, 100%);
  margin: 0 auto;
}


.link-button{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 56px;
  border-radius: var(--mc-radius-md);
  border: 1px solid rgba(255,255,255,.10);
  background: var(--mc-glass-3);
  color: var(--text-primary);
  text-decoration:none;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.link-button:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.16);
}

.link-left{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  min-width:0;
  width: 100%;
}


.link-left .icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;

  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

/* Ensure any icon content (SVG, emoji span, img) is centered */
.link-left .icon > *{
  display:block;
}


.link-left .icon svg{ width: 20px; height: 20px; }

.link-left .label{
  min-width:0;
  width: 100%;
  text-align: center;
}

.link-left .label strong{
  display:block;
  font-size: 14px;
  letter-spacing: .2px;
}
.link-left .label span{
  display:block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  text-align: center;
}


.link-right{
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,.85);
}


.link-right svg{ width: 18px; height: 18px; opacity: .9; }

/* Social row */
.social-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content: center;
}


.social-pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: var(--mc-glass-3);
  color: var(--text-primary);
  text-decoration:none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.social-pill:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
}

.social-pill svg{ width: 18px; height: 18px; }

/* Subscribe card */
.subscribe-card{
  border-radius: var(--mc-radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  box-shadow: var(--mc-shadow-soft);
  padding: 18px 16px;
  display:flex;
  flex-direction: column;
  gap: 14px;
  align-items:center;
  justify-content:space-between;
  text-align: center;
}


.subscribe-left{
  width: 100%;
  max-width: 720px;
}


.subscribe-left h3{
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: .2px;
}

.subscribe-left p{
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}


.notify-opts{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content: center;
}

.opt{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  color: rgba(255,255,255,.88);
  font-size: 13px;
}

.opt input{
  width: 16px; height: 16px;
  accent-color: var(--mc-gold);
}

.subscribe-right{
  width: 100%;
  display:flex;
  flex-direction:column;
  gap: 10px;
  align-items:center;
  justify-content:space-between;
}



.small-muted{
  font-size: 12px;
  color: var(--text-muted);
  text-align:center;
}


/* Bottom share bar */
.bottom-share{
  margin-top: 18px;
  border-radius: var(--mc-radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background: var(--mc-glass-3);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 10px;
  justify-content: center;
}

.bottom-share .left{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
}

.bottom-share .right{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

/* Footnote */

/* Modal */
.mc-modal{
  position: fixed;
  inset: 0;
  display:none;
  align-items:center;
  /* Center the modal card on desktop + mobile.
     Our backdrop is absolutely positioned and does not participate in
     flex layout, so `space-between` would pin the only flex item (card)
     to the left edge. */
  justify-content:center;
  z-index: 100;
  padding: 18px;
}

.mc-modal[aria-hidden="false"]{ display:flex; }

.mc-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(10px);
}

.mc-modal-card{
  position:relative;
  width: min(720px, 100%);
  border-radius: var(--mc-radius-xl);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(20,20,20,.92), rgba(12,12,12,.92));
  box-shadow: var(--mc-shadow);
  overflow:hidden;
}

.mc-modal-header{
  padding: 16px 16px 12px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.mc-modal-header h3{
  margin: 0;
  font-size: 16px;
}

.mc-modal-header p{
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.mc-close{
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
  border-radius: 999px;
  padding: 8px 10px;
  cursor:pointer;
}

.mc-modal-body{
  padding: 0 16px 16px;
}

.share-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 520px){
  .share-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .subscribe-right{ align-items:stretch; width: 100%; }
}

.share-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: var(--mc-glass-3);
  color: var(--text-primary);
  text-decoration:none;
  cursor:pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  text-align:center;
}

.share-item:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
}

.share-item svg{ width: 22px; height: 22px; }
.share-item span{ font-size: 12px; font-weight: 700; }

.share-mini{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

.toast{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.70);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events:none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 200;
}

.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}


@media (max-width: 520px){
  .links-topbar{ padding: 12px 0; }
  .links-brand img{ height: 42px; border-radius: 12px; }
  .hero-card{ padding: 18px 14px; }
  .hero-copy h1{ font-size: 30px; }
  .hero-logo{ height: 60px; border-radius: 16px; }
  .link-button{ padding: 13px 12px; }
}

@media (max-width: 420px){
  .link-button{ padding: 13px 50px; }

  .links-wrap{ width: calc(100% - 22px); }
  .hero-copy h1{ font-size: 28px; }
  .hero-copy p{ font-size: 13px; }
  .chip{ font-size: 12.5px; }
  .link-left .icon{ width: 36px; height: 36px; border-radius: 12px; }
  .link-left .label strong{ font-size: 13.5px; }
  .link-left .label span{ font-size: 11.5px; }
}
/* --- v9 Share button fixes ---
   Some global styles (or cached variants) can inject pseudo-elements or positioning.
   Force pill buttons + share buttons to render cleanly and avoid "double text" overlap.
*/
.pill-btn, .btn{
  position: relative;
}
.pill-btn::before, .pill-btn::after,
.btn::before, .btn::after{
  content: none !important;
  display: none !important;
}
.pill-btn svg, .pill-btn span,
.btn svg, .btn span{
  flex: 0 0 auto;
}
.pill-btn span, .btn span{
  white-space: nowrap;
}


/* Strong overrides in case any global CSS sets svg/span positioning */
.pill-btn svg, .pill-btn span,
.btn svg, .btn span{
  position: static !important;
}
/* Footer legal */
.links-footnote{
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

.links-footnote-disclaimer{
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 8px;
}

.links-footnote-copyright{
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.links-footnote-site{
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 10px;
}

.links-footnote-site a{
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), .35);
}

.links-footnote-site a:hover{
  border-bottom-color: rgba(var(--accent-rgb), .65);
}

/* ===============================
   v17 — Legal + Consent additions
   =============================== */

/* Footer links row */
.links-footnote-links{
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.links-footnote-links a{
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), .35);
  margin: 0 6px;
}

.links-footnote-links a:hover{
  border-bottom-color: rgba(var(--accent-rgb), .65);
}

/* Consent banner (GDPR countries only) */
.mc-consent-banner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: none;
  justify-content: center;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.mc-consent-banner.show{ display: flex; }

.mc-consent-card{
  pointer-events: all;
  width: min(980px, calc(100% - 24px));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(10,10,10,.92), rgba(10,10,10,.78));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--mc-shadow);
  padding: 14px 14px;
  display:flex;
  flex-direction:column;
  gap: 12px;
  align-items:center;
}

.mc-consent-copy{
  text-align:center;
  max-width: 68ch;
}

.mc-consent-copy strong{
  display:block;
  font-size: 13px;
  letter-spacing: .2px;
}

.mc-consent-copy span{
  display:block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.45;
}

.mc-consent-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:space-between;
}

.mc-consent-actions .btn{
  border-radius: 999px;
  padding: 9px 12px;
}

.mc-consent-actions .btn.secondary{
  background: rgba(255,255,255,.05);
}

.mc-consent-actions a{
  color: rgba(255,255,255,.90);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
  align-self: center;
  font-size: 12.5px;
}

.mc-consent-actions a:hover{
  border-bottom-color: rgba(255,255,255,.55);
}

@media (min-width: 860px){
  .mc-consent-card{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .mc-consent-copy{ text-align:left; }
}

/* Legal pages */
body.legal-page .links-wrap{
  padding-bottom: 64px;
}

.legal-card{
  margin-top: 18px;
}

.legal-card .hero-inner{
  align-items:flex-start;
}

.legal-card h1{
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: .2px;
}

.legal-card h2{
  margin: 18px 0 8px;
  font-size: 18px;
  letter-spacing: .2px;
}

.legal-card p{
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.legal-card ul{
  margin: 0 0 12px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.legal-card li{ margin: 6px 0; }

.legal-card a{
  color: rgba(255,255,255,.90);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.legal-card a:hover{
  border-bottom-color: rgba(255,255,255,.55);
}

.pref-list{
  margin-top: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.pref-item{
  border-radius: var(--mc-radius-md);
  border: 1px solid rgba(255,255,255,.10);
  background: var(--mc-glass-3);
  padding: 12px 12px;
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items:flex-start;
}

.pref-item strong{ font-size: 14px; }

.pref-item .meta{
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.pref-item input{
  transform: scale(1.15);
  margin-top: 2px;
}

.pref-tag{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: var(--mc-glass-2);
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 800;
}

.pref-actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

.pref-actions form{ margin: 0; }

.small-muted{
  color: rgba(255,255,255,.55);
  font-size: 12px;
  line-height: 1.45;
}


/* --- v19: topbar layout cleanup (prevents theme button overlapping the brand) --- */
.links-topbar{
  justify-content: space-between;
}

.links-brand{
  flex: 1 1 auto;
}

.links-actions{
  flex: 0 0 auto;
  margin-left: auto;
}

/* Reduce crowding on small screens */
@media (max-width: 560px){
  .links-name span{ display: none; }
}

/* Ultra-small screens: stack cleanly */
@media (max-width: 420px){
  .links-topbar{
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }
  .links-brand{
    justify-content: center;
  }
  .links-name{
    align-items: center;
    text-align: center;
  }
  .links-actions{
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* --- v20: Fix theme toggle pill sizing + prevent overlap (override main site .theme-toggle circle rules) --- */
.links-actions .theme-toggle{
  position: relative !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 10px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border-radius: 999px !important;
  border: 1px solid var(--mc-border) !important;
  background: rgba(255,255,255,.04) !important;
  color: var(--text-primary) !important;
  transform: none !important;
}

.links-actions .theme-toggle:hover{
  transform: translateY(-1px) !important;
}

.links-actions .theme-toggle:active{
  transform: translateY(0) !important;
}

.links-actions .theme-toggle svg{
  width: 18px !important;
  height: 18px !important;
}

.links-actions .theme-toggle span{
  white-space: nowrap;
}

/* Make the accent dot behave like the main site (bottom-right inside the pill) */
.links-actions .theme-toggle .theme-dot{
  position: absolute !important;
  bottom: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent, var(--mc-gold)) 0%, var(--accent-2, var(--mc-gold-2)) 100%);
  border: 1px solid var(--mc-border-strong);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.20);
}

/* Ensure the dropdown actually shows on open (even if external CSS fails to load) */
.links-actions .theme-menu{
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--mc-border-strong);
  background: rgba(10,10,10,.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  z-index: 2000;
}

.links-actions .theme-picker.open .theme-menu{
  display: block;
}


/* Theme menu internal layout (ensures Mode + Color options are visible and tappable) */
.theme-menu-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.theme-menu-title{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .78;
}
.theme-menu-close{
  width: 36px;
  height: 36px;
  padding: 0 !important;
  border-radius: 999px;
  border: 1px solid var(--mc-border);
  background: var(--mc-glass-2);
  color: var(--text-primary);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: none !important;
  line-height: 1;
  font-size: 22px;
}
.theme-menu-close:active{
  transform: translateY(1px);
}

.theme-menu-section{
  margin-top: 12px;
}
.theme-menu-label{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .74;
  margin-bottom: 8px;
}

.theme-menu-row{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.theme-mode-btn{
  flex: 1 1 78px;
  min-width: 78px;
  padding: 8px 10px !important;
  border-radius: 999px;
  border: 1px solid var(--mc-border);
  background: rgba(255,255,255,.04);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 6px;
  box-shadow: none !important;
}
html[data-theme="light"] .theme-mode-btn{
  background: rgba(0,0,0,.04);
}
.theme-mode-btn:hover{
  border-color: var(--mc-border-strong);
}
.theme-mode-btn.is-active{
  border-color: rgba(var(--accent-rgb), .85);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .18), rgba(var(--accent-2-rgb), .18));
}

.theme-menu-help{
  margin-top: 8px;
  font-size: 12px;
  opacity: .72;
}

.theme-swatches{
  gap: 10px;
}
.theme-swatch{
  width: 32px;
  height: 32px;
  padding: 0 !important;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.12);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.08);
  box-shadow: none !important;
}
html[data-theme="light"] .theme-swatch{
  border-color: rgba(0,0,0,.14);
}
.theme-swatch.is-active{
  border-color: rgba(var(--accent-rgb), .90);
}
.theme-swatch::after{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 0;
  background: rgba(255,255,255,.90);
}
html[data-theme="light"] .theme-swatch::after{
  background: rgba(0,0,0,.75);
}
.theme-swatch.is-active::after{
  opacity: .95;
}

.theme-swatch[data-accent="gold"]{ background: radial-gradient(circle at 30% 30%, #e9d37a, #d7b44b); }
.theme-swatch[data-accent="sunset"]{ background: radial-gradient(circle at 30% 30%, #ff7a18, #ff3d7f); }
.theme-swatch[data-accent="citrus"]{ background: radial-gradient(circle at 30% 30%, #ffcc00, #ff7a18); }
.theme-swatch[data-accent="lime"]{ background: radial-gradient(circle at 30% 30%, #a3ff12, #00e58f); }
.theme-swatch[data-accent="ocean"]{ background: radial-gradient(circle at 30% 30%, #00c2ff, #1166ff); }
.theme-swatch[data-accent="violet"]{ background: radial-gradient(circle at 30% 30%, #a855f7, #ec4899); }

/* Prevent long-press callout on the featured interview thumbnail (we use press-and-hold preview) */
.feature-card[data-type="interview"] .feature-media{
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

/* Light theme dropdown background */
html[data-theme="light"] .links-actions .theme-menu{
  background: rgba(255,255,255,.92);
}

/* Backdrop when the theme palette is open (helps mobile usability) */
html.theme-menu-open::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1500;
}
html[data-theme="light"].theme-menu-open::before{
  background: rgba(0,0,0,.18);
}

/*
  Desktop fix:
  The sticky topbar uses z-index and creates a stacking context. The fullscreen
  backdrop (html::before) previously sat above the topbar, preventing clicks
  on the theme palette.

  When the palette is open, elevate the topbar above the backdrop so the menu
  remains interactive.
*/
html.theme-menu-open .links-topbar{
  z-index: 2500;
}

/* While preview is playing, keep the thumbnail from covering the iframe */
.feature-card.is-playing .feature-media img{ opacity: 0; }
.feature-card.is-playing .feature-media::after{ opacity: 0.18; }
.feature-card.is-playing .feature-media::after{ opacity: .22; }


@media (max-width: 600px){
  .links-name span{ display:none; }
}

@media (max-width: 560px){
  .links-actions .theme-menu{
    /*
      Mobile UX:
      Show the full theme palette in-view without requiring an inner scroll.
      (Earlier versions used a full-height, scrollable sheet.)
    */
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    bottom: auto;
    width: auto;
    min-width: 0;
    max-height: none;
    padding-bottom: 12px;
    overflow: visible;
  }
}

/* Touch devices (even if wider than 560px): use the same full-width modal palette */
@media (hover: none) and (pointer: coarse){
  .links-actions .theme-menu{
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    bottom: auto;
    width: auto;
    min-width: 0;
    max-height: none;
    padding-bottom: 12px;
    overflow: visible;
  }
}

/* ------------------------------------------------------------
   Newsletter (FeedBlitz SmartForm)
------------------------------------------------------------- */

.mc-nl-form{
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  background: rgba(0,0,0,0.25);
}

.mc-nl-fields{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mc-nl-field label{
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}

.mc-nl-input{
  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  outline: none;
}

.mc-nl-input:focus{
  border-color: rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.08);
}

.mc-nl-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

#mc-nl-captcha{
  margin-top: 12px;
  text-align: center;
}

#mc-nl-captcha .cf-turnstile{
  display: inline-block;
}

.mc-nl-sms{
  margin-top: 14px;
  text-align: center;
}


/* Hide FeedBlitz inline error boxes until needed */
.mc-newsletter-embed [id$="_sb_fbz_err"],
.mc-newsletter-embed [id$="_sb_fbz_invalid"]{
  display: none;
  text-align: center;
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,90,90,0.40);
  background: rgba(255,90,90,0.12);
  color: rgba(255,255,255,0.92);
}

.mc-newsletter-embed [id$="_sb_fbz_invalid"]{
  border-color: rgba(255, 200, 80, 0.45);
  background: rgba(255, 200, 80, 0.12);
}

.mc-newsletter-embed [id$="_sb_fbz_status"]{
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.90);
  text-align: center;
}

.mc-newsletter-embed [id$="_sb_fbz_status"]:empty{ display: none; }

.nl-flash{
  position: relative;
  border-radius: 14px;
  padding: 12px 40px 12px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  margin-bottom: 10px;
  color: rgba(255,255,255,0.92);
}

.nl-flash.success{
  border-color: rgba(120,255,180,0.30);
  background: rgba(120,255,180,0.10);
}

.nl-flash.error{
  border-color: rgba(255,90,90,0.38);
  background: rgba(255,90,90,0.12);
}

.nl-flash .nl-close{
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
  cursor: pointer;
}

.nl-flash .nl-close:hover{ background: rgba(255,255,255,0.10); }

/* Light theme overrides */
body.theme-light .mc-nl-form{
  background: rgba(255,255,255,0.75);
  border-color: rgba(0,0,0,0.10);
}
body.theme-light .mc-nl-field label{ color: rgba(0,0,0,0.62); }
body.theme-light .mc-nl-input{
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.16);
  color: rgba(0,0,0,0.88);
}
body.theme-light .mc-newsletter-embed [id$="_sb_fbz_err"],
body.theme-light .mc-newsletter-embed [id$="_sb_fbz_invalid"],
body.theme-light .mc-newsletter-embed [id$="_sb_fbz_status"]{
  color: rgba(0,0,0,0.88);
}
body.theme-light .mc-newsletter-embed [id$="_sb_fbz_status"]{
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.14);
}
body.theme-light .nl-flash{ color: rgba(0,0,0,0.88); }
body.theme-light .nl-flash .nl-close{
  border-color: rgba(0,0,0,0.14);
  background: rgba(0,0,0,0.04);
  color: rgba(0,0,0,0.82);
}

