/* ============================================================
 * Colors — the accent colors can also be changed in admin.php
 * ============================================================ */
:root {
  --bg-top:    #fb4d94;   /* hot pink at the top, fading to white below */
  --bg-bottom: #ffffff;   /* white at the bottom */
  --surface:   #ffffff;   /* panels */
  --surface-2: #fff0f6;   /* pale pink: soft buttons, code */
  --line:      #f5c6da;
  --text:      #2d1824;   /* dark plum */
  --muted:     #7d5a6c;
  --accent:    #fb4d94;   /* hot pink */
  --accent-2:  #e8337e;   /* deeper pink */
  --accent-ink:#d11f6a;   /* pink dark enough to read as small text on white */
  --btn-text:  #ffffff;
  --glow-a:    rgba(251, 77, 148, .26);
  --glow-b:    rgba(251, 77, 148, .16);
  --edge:      rgba(251, 77, 148, .30);
  --online:    #22c55e;
  --cyan:      #e8337e;
  --radius:    22px;
  --width:     640px;      /* width of the banner, window and gallery */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: linear-gradient(180deg, var(--bg-top) 0%, #fd7fb2 40%, #ffb9d5 75%, #ffe6f0 100%) fixed;
  background-color: var(--bg-bottom);
  position: relative;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
[hidden] { display: none !important; }

/* ---------- White shining dots on the pink background ---------- */
body::before, body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
/* many small dots */
body::before {
  background-image:
    radial-gradient(2.4px 2.4px at 12% 18%, rgba(255,255,255,.95), transparent 70%),
    radial-gradient(1.9px 1.9px at 47% 9%,  rgba(255,255,255,.85), transparent 70%),
    radial-gradient(2.4px 2.4px at 81% 27%, rgba(255,255,255,.9),  transparent 70%),
    radial-gradient(1.9px 1.9px at 29% 63%, rgba(255,255,255,.8),  transparent 70%),
    radial-gradient(2.4px 2.4px at 66% 74%, rgba(255,255,255,.9),  transparent 70%),
    radial-gradient(1.9px 1.9px at 91% 88%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(1.9px 1.9px at 5% 92%,  rgba(255,255,255,.85), transparent 70%),
    radial-gradient(1.9px 1.9px at 58% 41%, rgba(255,255,255,.75), transparent 70%),
    radial-gradient(1.9px 1.9px at 37% 31%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(1.9px 1.9px at 73% 52%, rgba(255,255,255,.8),  transparent 70%),
    radial-gradient(1.9px 1.9px at 18% 47%, rgba(255,255,255,.75), transparent 70%),
    radial-gradient(1.9px 1.9px at 52% 83%, rgba(255,255,255,.85), transparent 70%);
  background-size: 120px 130px;
}
/* fewer, bigger dots that slowly shine on and off */
body::after {
  background-image:
    radial-gradient(4px 4px at 22% 34%, #fff, transparent 60%),
    radial-gradient(3.4px 3.4px at 74% 12%,     #fff, transparent 60%),
    radial-gradient(4.4px 4.4px at 63% 58%, #fff, transparent 60%),
    radial-gradient(3.4px 3.4px at 9% 76%,      #fff, transparent 60%),
    radial-gradient(3.6px 3.6px at 88% 69%, #fff, transparent 60%),
    radial-gradient(3.4px 3.4px at 41% 89%,     #fff, transparent 60%);
  background-size: 260px 300px;
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }
body > * { position: relative; z-index: 1; }

/* ---------- Glow on panel edges ---------- */
.glow {
  border: 1px solid var(--edge);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .6) inset,
    0 10px 30px -12px var(--glow-a),
    0 0 44px -14px var(--glow-b);
}

/* ---------- Logo ---------- */
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -.02em;
}
.logo .dot {
  display: inline-block; width: 8px; height: 8px; margin-left: 3px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* ---------- Header ---------- */
.top {
  display: flex; justify-content: center; align-items: center;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}
/* On the pink header the logo is white */
.top .logo { color: #fff; text-shadow: 0 1px 10px rgba(150, 20, 80, .28); }
.top .logo .dot { background: #fff; box-shadow: 0 0 10px #fff; }

/* ---------- Main column ---------- */
.stack {
  width: 100%; max-width: calc(var(--width) + 32px);
  margin: 0 auto; padding: 22px 16px 34px;
  display: flex; flex-direction: column; gap: 18px;
}
.panel { background: var(--surface); border-radius: var(--radius); }
.empty { padding: 48px 24px; text-align: center; }
.empty p { color: var(--muted); margin-top: 6px; }

/* ---------- Profile banner ---------- */
.banner { padding: 20px 18px 16px; background: linear-gradient(160deg, #24233a, var(--surface) 60%); }
.banner-top { display: flex; align-items: center; gap: 16px; }
.avatar { position: relative; flex: 0 0 auto; }
.avatar-ring {
  width: 84px; height: 84px; border-radius: 50%;
  padding: 4px; background: var(--accent);
  box-shadow: 0 0 22px -2px var(--accent);
}
.avatar-ring img, .avatar-initial {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--surface);
}
.avatar-initial {
  display: grid; place-items: center; background: #2c2a44;
  font-family: 'Space Grotesk', sans-serif; font-size: 2rem; color: var(--muted);
}
.online {
  position: absolute; right: 2px; bottom: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--online); border: 3px solid var(--surface);
  box-shadow: 0 0 10px var(--online);
}
.banner-info { min-width: 0; }
.eyebrow {
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2);
}
.banner-name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(1.6rem, 7vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 4px;
  overflow-wrap: anywhere;
}
.country { font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.banner-text { color: var(--muted); font-size: .92rem; }
.banner-bottom {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.signup-note { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.lock { color: var(--cyan); flex: 0 0 auto; margin-top: 1px; }
.lock svg { display: block; }

/* ---------- Buttons ---------- */
.btn-cta, .btn-next {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 52px; padding: 14px 22px; border-radius: 16px;
  font-weight: 700; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; transition: transform .15s, filter .15s; text-align: center;
  font-family: inherit;
}
.btn-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--btn-text); border: 0;
  box-shadow: 0 8px 26px -8px var(--accent-2), 0 0 0 1px rgba(255,255,255,.18) inset;
}
.btn-next {
  background: rgba(255, 181, 71, .08); color: var(--accent);
  border: 1.5px solid var(--accent) !important;
}
.btn-cta:hover, .btn-next:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-cta:active, .btn-next:active { transform: translateY(1px); }

/* ---------- Live window ---------- */
.window {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; background: #15142a;
}
.window.has-player { aspect-ratio: 16 / 9; }
.window.has-player { background: #000; }
/* Player is drawn slightly larger than the window and the extra is cut off,
   so the player's own page margins, white edges and scrollbars never show. */
.window iframe {
  position: absolute; z-index: 1; border: 0; display: block;
  top: -12px; left: -12px;
  width: calc(100% + 24px); height: calc(100% + 24px);
  overflow: hidden; background: #000;
  pointer-events: none;   /* the player never catches taps; they go to the link */
}
.window .window-name { z-index: 2; pointer-events: none; }
/* Whole window is a link to the current model's room */
.window-link {
  position: absolute; inset: 0; z-index: 5; display: block;
  cursor: pointer; border-radius: inherit;
  background: rgba(0, 0, 0, .001);   /* iPhone needs a background to register taps */
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}
.window { cursor: pointer; }
.window-name { z-index: 4; pointer-events: none; }
.window img { width: 100%; height: 100%; object-fit: cover; }
.window-initial {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 5rem; color: #4a4870;
  background: radial-gradient(circle at 50% 40%, #2c2a50, #15142a 70%);
}
.window-name {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10, 10, 25, .62); backdrop-filter: blur(6px);
  padding: 7px 13px; border-radius: 999px; font-weight: 600; font-size: .95rem;
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--online);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(43, 217, 74, .6); }
  70%  { box-shadow: 0 0 0 8px rgba(43, 217, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 217, 74, 0); }
}

.actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: -4px; justify-items: center; }
/* The Register button sits in the middle, full width on phones and never wider than 520px */
.actions .btn-cta { width: 100%; max-width: 520px; margin: 0 auto; }

/* ---------- Gallery ---------- */
.gallery { padding: 20px 16px 16px; }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.gallery-head h2 { font-size: 1.2rem; }
.gallery-head p { color: var(--muted); font-size: .85rem; }
.gallery-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%;
  gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 2px;
}
.gallery-grid::-webkit-scrollbar { display: none; }
.gallery-item {
  position: relative; display: block; overflow: hidden; scroll-snap-align: start;
  aspect-ratio: 1 / 1.1; border-radius: 16px; background: #22213a;
  border: 1px solid var(--edge);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(14px) saturate(1.05); transform: scale(1.15);
}
.gallery-empty {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, #4a3a6e, #1f1e36 70%);
  filter: blur(6px);
}
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 25, .7), transparent 45%);
}
.gallery-label { position: absolute; left: 12px; bottom: 12px; z-index: 1; font-weight: 700; font-size: .82rem; }
.gallery-lock {
  position: absolute; right: 10px; bottom: 8px; z-index: 1;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20, 18, 50, .75); border: 1px solid var(--accent); color: var(--accent);
}
.cat-viewport { overflow: hidden; margin-top: 4px; }
.cat-grid {
  display: flex; gap: 10px;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.cat-grid > .cat-card { flex: 0 0 calc((100% - 20px) / 3); min-width: 0; }
@media (prefers-reduced-motion: reduce) { .cat-grid { transition: none; } }
.cat-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px; background: #fff; border: 1px solid var(--edge);
  transition: transform .15s, box-shadow .15s;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 0 18px -4px var(--glow-a); }
.cat-thumb { display: block; aspect-ratio: 4 / 3; background: #ffe3ee; position: relative; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-initial {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 2rem; color: #fb4d94;
  background: radial-gradient(circle at 50% 40%, #ffd1e4, #ffe8f1 75%);
}
.cat-name {
  display: flex; align-items: center; gap: 7px; padding: 8px 8px 0;
  font-weight: 600; font-size: .78rem; min-width: 0;
}
.cat-name .live-dot { flex: 0 0 auto; }
.cat-name-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-label {
  padding: 2px 8px 9px 24px; font-size: .66rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink);
}

.gallery-notes {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
  gap: 6px 16px; margin-top: 14px; font-size: .78rem; color: var(--muted);
}
.gallery-notes li::before { content: '✓'; color: var(--cyan); margin-right: 6px; }

/* ---------- Footer (compact) ---------- */
.foot {
  margin-top: auto; padding: 12px 16px 16px;
  border-top: 1px solid rgba(251, 77, 148, .18);
  text-align: center; color: var(--muted); font-size: .74rem;
}
.foot-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.foot-links a { text-decoration: underline; text-underline-offset: 2px; }
.foot .dmca {
  display: inline-block; font-size: .78rem;
  text-decoration: none; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--edge); color: var(--accent-ink); font-weight: 600;
  background: rgba(255, 255, 255, .7);
}

/* ---------- Age gate ---------- */
.gate { flex: 1; display: grid; place-items: center; padding: 32px 16px; }
.gate-card {
  max-width: 460px; width: 100%; text-align: center;
  background: var(--surface); border-radius: var(--radius); padding: 36px 24px;
}
.gate-card h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; margin: 18px 0 10px; }
.gate-card p  { color: var(--muted); margin-bottom: 24px; }
.gate-card form { display: inline; }
.gate-card .small { font-size: .8rem; margin: 24px 0 0; }
.gate-card .small a { text-decoration: underline; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; margin: 4px;
  font-weight: 600; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--btn-text); }
.btn-ghost   { background: var(--surface-2); color: var(--text); }

/* ---------- Legal pages ---------- */
.legal { width: 100%; max-width: 760px; margin: 0 auto; padding: 40px 16px 60px; }
.legal h1 { font-family: 'Space Grotesk', sans-serif; margin-bottom: 18px; }
.legal h2 { margin: 26px 0 8px; font-size: 1.15rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ---------- Bigger screens ---------- */
@media (min-width: 560px) {
  .banner { padding: 24px 26px 18px; }
  .avatar-ring { width: 104px; height: 104px; }
  .banner-top { gap: 22px; }
  .banner-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  .banner-bottom .btn-cta { flex: 0 0 auto; }
  .gallery { padding: 24px 22px 18px; }
  .gallery-grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .cat-grid { gap: 14px; }
  .cat-name { font-size: .88rem; padding: 9px 10px 0; }
  .cat-label { font-size: .72rem; padding: 2px 10px 10px 26px; }
  .cat-grid > .cat-card { flex-basis: calc((100% - 28px) / 3); }
}

/* ============================================================
 * Register section (replaces the live window)
 * ============================================================ */
.join-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 28px;
  min-height: 300px; padding: 22px 16px 22px;
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background:
    radial-gradient(ellipse 45% 60% at 50% 55%, rgba(255, 190, 220, .85), rgba(255, 190, 220, 0) 70%),
    linear-gradient(120deg, #fffafc 0%, #ffeef6 45%, #ffe1ee 100%);
  box-shadow: 0 0 34px -6px rgba(255, 110, 170, .45), 0 0 0 1px rgba(255, 255, 255, .5) inset;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
}
.join-card:hover { transform: translateY(-2px); box-shadow: 0 0 44px -4px rgba(255, 110, 170, .6); }
.join-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; background: #fff;
  box-shadow: 0 2px 10px rgba(180, 120, 200, .18);
  font-size: 12px; font-weight: 600; color: #6b5a78; letter-spacing: .02em;
}
.join-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3d7f; box-shadow: 0 0 8px #ff3d7f;
  animation: joinPulse 1.6s ease-in-out infinite; }
@keyframes joinPulse { 50% { opacity: .35; } }
.join-ring {
  width: clamp(90px, 24%, 132px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: #ff3d7f;
  background: radial-gradient(circle at 50% 40%, #fff3f8, #ffd3e5);
  border: 2px solid #fb4d94; box-shadow: 0 0 0 4px #fff, 0 10px 30px -6px rgba(251, 77, 148, .5);
}
.join-cta {
  padding: 11px 20px; font-size: clamp(12px, 3.2vw, 16px); font-weight: 800;
  color: #1d1430; text-transform: uppercase; text-align: center;
  max-width: 100%; line-height: 1.3;
}
@media (min-width: 560px) { .join-card { aspect-ratio: 16 / 9; min-height: 0; } }

/* Featured streamer: one big card, same width and rounded corners as the sections around it */
.feat-card {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 10; background: #ffd1e4; cursor: pointer;
  transition: transform .2s ease;
}
.feat-card:hover { transform: translateY(-2px); }
.feat-media, .feat-media img, .feat-initial { position: absolute; inset: 0; width: 100%; height: 100%; }
.feat-media img { object-fit: cover; }
/* Live player: drawn a little larger than the card and cropped, so its own white edges never show.
   pointer-events none = taps go to the card's link (your tracked room link). */
.feat-media { z-index: 0; }
.feat-media .feat-frame {
  position: absolute; border: 0; display: block; overflow: hidden; background: transparent;
  top: -12px; left: -12px; width: calc(100% + 24px); height: calc(100% + 24px);
  pointer-events: none;
}
.feat-initial {
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 6rem; color: #fb4d94;
  background: radial-gradient(circle at 50% 40%, #ffd1e4, #ffe8f1 75%);
}
.feat-card::after {   /* soft dark fade at the bottom so the name stays readable */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to top, rgba(70, 12, 40, .62), transparent 48%);
}
.feat-pill {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; background: #fff;
  box-shadow: 0 2px 10px rgba(120, 20, 70, .2);
  font-size: 12px; font-weight: 600; color: #6b5a78; letter-spacing: .02em;
}
.feat-name {
  position: absolute; z-index: 2; left: 16px; bottom: 14px; right: 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(1.2rem, 5vw, 1.8rem); line-height: 1.15;
  text-shadow: 0 1px 8px rgba(70, 12, 40, .45); overflow-wrap: anywhere;
}
.feat-name .country { font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 600; color: #fff; opacity: .9; text-shadow: none; }
@media (min-width: 560px) { .feat-card { aspect-ratio: 16 / 9; } }


/* Recommended for you: 3 cards in a row, same look as the gallery */
.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rec-grid .cat-card { width: auto; }

/* ---------- Legal: terms pop-up, footer links ---------- */
.gate-terms { font-size: .85rem; color: var(--muted); margin: 16px 0 0 !important; }
.gate-terms a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.terms-box {
  width: min(640px, calc(100% - 32px)); max-height: 84vh; margin: auto; padding: 0;
  border: 1px solid var(--edge); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  box-shadow: 0 0 40px -6px var(--glow-a); overflow: hidden;
  display: none; flex-direction: column;
}
.terms-box[open] { display: flex; }
.terms-box::backdrop { background: rgba(70, 12, 40, .55); backdrop-filter: blur(3px); }
.terms-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.terms-head h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; }
.terms-x { background: none; border: 0; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }
.terms-body { overflow-y: auto; padding: 4px 20px 16px; max-width: none; }
.terms-body h2 { font-size: 1rem; margin: 18px 0 6px; }
.terms-body p { font-size: .9rem; }
.terms-foot { display: grid; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
.terms-foot form { display: block; }
.terms-foot .btn { width: 100%; }
.legal-date { font-size: .85rem; }
.legal a { color: var(--accent-ink); }
.foot-copy { margin-top: 10px; font-size: .78rem; color: var(--muted); }
.foot .foot-links { margin: 0 0 12px; font-size: .85rem; }
.foot .foot-links a { color: var(--muted); }
.legal p + p { margin-top: 12px; }

/* ============================================================
 * Recommended + Gallery: no card background, just the text on the pink page,
 * and a soft light around every streamer window (brightest in the corners)
 * ============================================================ */
.panel.gallery.glow {
  background: transparent; border: 0; box-shadow: none; padding: 4px 0 0;
}
.panel.gallery .gallery-head h2 { color: #3a0b24; }
.panel.gallery .gallery-head p,
.panel.gallery .gallery-notes   { color: #5c1c3c; }
.panel.gallery .gallery-notes li::before { color: #3a0b24; }

.cat-card {
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 14px 1px rgba(255, 255, 255, .55), 0 0 30px 4px rgba(251, 77, 148, .35);
}
.cat-card:hover {
  box-shadow: 0 0 20px 3px rgba(255, 255, 255, .8), 0 0 40px 8px rgba(251, 77, 148, .5);
}
/* corner light on the picture of each small window */
.cat-thumb::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 0 0,       rgba(255, 255, 255, .65), transparent 40%),
    radial-gradient(circle at 100% 0,    rgba(255, 255, 255, .65), transparent 40%),
    radial-gradient(circle at 0 100%,    rgba(255, 255, 255, .3),  transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .3),  transparent 40%);
}
/* the big window: same light, all four corners */
.feat-card {
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 18px 2px rgba(255, 255, 255, .6), 0 0 40px 6px rgba(251, 77, 148, .4);
}
.feat-card::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at 0 0,       rgba(255, 255, 255, .55), transparent 34%),
    radial-gradient(circle at 100% 0,    rgba(255, 255, 255, .55), transparent 34%),
    radial-gradient(circle at 0 100%,    rgba(255, 255, 255, .4),  transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .4),  transparent 34%);
}

/* Titles of Recommended and Gallery sit in the middle */
.panel.gallery .gallery-head { justify-content: center; text-align: center; }

/* ============================================================
 * Popup (edit its text and timing in admin.php -> Popup)
 * ============================================================ */
.popup-wrap {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(70, 12, 40, .5); backdrop-filter: blur(3px);
  animation: popupFade .25s ease;
}
.popup-card {
  position: relative; width: min(420px, 100%); overflow: hidden;
  background: #fff; border-radius: var(--radius); padding: 30px 24px 26px; text-align: center;
  animation: popupPop .3s cubic-bezier(.2, .9, .3, 1.2);
}
.popup-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.55rem; line-height: 1.2; margin: 6px 24px 10px; color: var(--text); }
.popup-text  { color: var(--muted); font-size: 1rem; line-height: 1.55; margin: 0 4px 20px; }
.popup-btn   { width: 100%; }
.popup-x {
  position: absolute; top: 8px; right: 10px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  font-size: 28px; line-height: 1; cursor: pointer;
}
.popup-x:hover { background: var(--surface-2); color: var(--text); }
.popup-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(251, 77, 148, .15); }
.popup-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left center; }
@keyframes popupFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popupPop  { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .popup-wrap, .popup-card { animation: none; } }

/* ============================================================
 * Popup INSIDE the big live window: same size, same corners, with a countdown.
 * When it ends, the window starts the next live streamer.
 * ============================================================ */
.feat-wrap { position: relative; }
.popup-wrap.in-window {
  position: absolute; inset: 0; z-index: 5; padding: 0;
  border-radius: var(--radius); background: transparent; backdrop-filter: none;
}
.popup-wrap.in-window .popup-card {
  width: 100%; height: 100%; max-width: none; border-radius: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 18px 18px; overflow-x: hidden; overflow-y: auto;
  background: rgba(255, 255, 255, .95); box-shadow: none; border: 0;
}
.popup-wrap.in-window .popup-title { font-size: clamp(1.05rem, 4.4vw, 1.5rem); margin: 0 26px 6px; }
.popup-wrap.in-window .popup-text  { font-size: clamp(.85rem, 3.2vw, 1rem); margin: 0 6px 10px; line-height: 1.4; }
.popup-wrap.in-window .popup-btn   { width: auto; min-width: 60%; min-height: 42px; padding: 10px 22px; font-size: .85rem; }
.popup-timer { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.popup-timer strong { color: var(--accent-ink); font-size: 1rem; }

/* ---------- The round countdown (30 segments around a big number) ---------- */
.popup-ring {
  --d: clamp(84px, 17vw, 124px);
  position: relative; flex: none; width: var(--d); height: var(--d);
  margin: 4px auto 12px;
}
.ring-segs { position: absolute; inset: 0; }
.ring-segs .seg {
  position: absolute; left: 50%; top: 0; width: 7%; height: 14%; margin-left: -3.5%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform-origin: 50% 357%;   /* the middle of the ring */
  transform: rotate(calc(var(--i) * 12deg));
  transition: opacity .25s ease;
}
.ring-segs .seg.off { opacity: .14; }
.ring-face {
  position: absolute; inset: 19%; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff4f9; box-shadow: inset 0 0 0 2px rgba(251, 77, 148, .12);
  line-height: 1;
}
.ring-face b { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: calc(var(--d) * .27); color: #3a0b24; font-variant-numeric: tabular-nums; }
.ring-face small { margin-top: 3px; font-size: calc(var(--d) * .095); font-weight: 700; letter-spacing: .12em; color: var(--accent-ink); }
.popup-body { min-width: 0; text-align: center; }

/* inside the live window: ring on the left, text and button on the right, all inside the window's corners */
.popup-wrap.in-window .popup-card { flex-direction: row; gap: clamp(12px, 3vw, 24px); padding: 14px 18px; }
.popup-wrap.in-window .popup-ring { margin: 0; }
.popup-wrap.in-window .popup-body { flex: 1; }
.popup-wrap.in-window .popup-title { margin: 0 0 6px; }
.popup-wrap.in-window .popup-text  { margin: 0 0 10px; }
.popup-wrap.in-window .popup-btn   { min-width: 0; width: 100%; max-width: 260px; }

/* ---------- Popup colors follow the page: the same pink fading to soft pink, white text, white dots ---------- */
.popup-wrap .popup-card,
.popup-wrap.in-window .popup-card {
  background:
    radial-gradient(1.8px 1.8px at 12% 20%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(2.6px 2.6px at 84% 16%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(1.8px 1.8px at 68% 80%, rgba(255, 255, 255, .9),  transparent 70%),
    radial-gradient(2.4px 2.4px at 26% 86%, rgba(255, 255, 255, .9),  transparent 70%),
    radial-gradient(1.6px 1.6px at 50% 10%, rgba(255, 255, 255, .8),  transparent 70%),
    linear-gradient(180deg, #fb4d94 0%, #fd7fb2 55%, #ffb3d1 100%);
  border: 1px solid rgba(255, 255, 255, .75);
}
.popup-title { color: #fff; text-shadow: 0 1px 8px rgba(120, 20, 70, .35); }
.popup-text  { color: rgba(255, 255, 255, .96); text-shadow: 0 1px 6px rgba(120, 20, 70, .3); }
.popup-x { color: #fff; }
.popup-x:hover { background: rgba(255, 255, 255, .25); color: #fff; }
.popup-btn.btn-cta { background: #fff; color: #d11f6a; box-shadow: 0 8px 22px -8px rgba(120, 20, 70, .55); }
.ring-segs .seg { background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .75); }
.ring-segs .seg.off { opacity: .22; box-shadow: none; }
.ring-face { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); }
.ring-face b { color: #fff; text-shadow: 0 1px 6px rgba(120, 20, 70, .35); }
.ring-face small { color: rgba(255, 255, 255, .95); }
.popup-wrap.in-window .popup-btn { margin-left: auto; margin-right: auto; }
