/* ============================================================
 * 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; }

/* ---------- Dark blue page with a glowing light (soft blue light that slowly breathes) ---------- */
body::before, body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
body::before {
  background:
    radial-gradient(ellipse 65% 48% at 50% 0%,  rgba(70, 150, 255, .65), rgba(70, 150, 255, 0) 70%),
    radial-gradient(ellipse 55% 42% at 10% 82%, rgba(0, 190, 255, .38),  rgba(0, 190, 255, 0) 70%),
    radial-gradient(ellipse 50% 42% at 94% 55%, rgba(110, 130, 255, .35), rgba(110, 130, 255, 0) 70%);
  animation: glowA 9s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(ellipse 55% 40% at 82% 10%,  rgba(120, 200, 255, .35), rgba(120, 200, 255, 0) 70%),
    radial-gradient(ellipse 60% 45% at 28% 100%, rgba(40, 140, 255, .55),  rgba(40, 140, 255, 0) 70%);
  animation: glowB 11s ease-in-out infinite alternate;
}
@keyframes glowA { from { opacity: .55; } to { opacity: 1; } }
@keyframes glowB { from { opacity: 1; } to { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { body::before, 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; }

/* ============================================================
 * DARK BLUE THEME: dark blue page with a glowing light, pink buttons, glowing windows.
 * (Background and button colors can be changed in admin.php -> Colors.)
 * ============================================================ */
:root {
  --page-bg: #0b2565;
  --btn-bg:  #ff76a7;
  --glow-a:  rgba(60, 150, 255, .55);
  --glow-b:  rgba(120, 200, 255, .5);
  --edge:    rgba(160, 225, 255, .9);
}
body { background: var(--page-bg, #0b2565); }

/* header, titles and footer sit on the dark blue, so they are white */
.top { border-bottom-color: rgba(255, 255, 255, .18); }
.top .logo { color: #fff; text-shadow: 0 0 14px rgba(110, 190, 255, .85); }
.top .logo .dot { background: var(--btn-bg); box-shadow: 0 0 12px var(--btn-bg); }
.panel.gallery .gallery-head h2,
.panel.gallery .gallery-head p { text-transform: uppercase; letter-spacing: .08em; }
.panel.gallery .gallery-head h2 { font-size: 1.15rem; color: #fff; text-shadow: 0 0 16px rgba(110, 190, 255, .75); }
.panel.gallery .gallery-head p  { font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .88); }
.panel.gallery .gallery-notes   { color: rgba(255, 255, 255, .85); }
.panel.gallery .gallery-notes li::before { color: #7fe3ff; }
.foot { color: rgba(255, 255, 255, .8); border-top-color: rgba(255, 255, 255, .18); }
.foot .foot-links a, .foot .foot-copy { color: rgba(255, 255, 255, .85); }

/* buttons: #ff76a7 (dark text, because white on this pink is hard to read) */
.btn-cta, .btn-primary, .popup-btn.btn-cta {
  background: var(--btn-bg); color: #3a0b24; border: 0;
  box-shadow: 0 8px 24px -8px var(--btn-bg), 0 0 20px rgba(255, 118, 167, .6), inset 0 0 0 1px rgba(255, 255, 255, .55);
}
.btn-cta:hover, .btn-primary:hover { filter: brightness(1.05); }

/* glowing windows: a bright rim and a blue glow around every window */
.glow { box-shadow: 0 0 22px 2px rgba(120, 200, 255, .55), 0 0 52px 10px rgba(50, 130, 255, .5); }
.cat-card {
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 18px 3px rgba(150, 220, 255, .75), 0 0 42px 9px rgba(50, 140, 255, .55);
}
.cat-card:hover { box-shadow: 0 0 26px 6px rgba(170, 230, 255, .9), 0 0 56px 14px rgba(60, 150, 255, .7); }
.feat-card {
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 26px 5px rgba(150, 220, 255, .8), 0 0 60px 12px rgba(50, 140, 255, .55);
}
.cat-thumb::after {
  background:
    radial-gradient(circle at 0 0,       rgba(255, 255, 255, .9), transparent 46%),
    radial-gradient(circle at 100% 0,    rgba(255, 255, 255, .9), transparent 46%),
    radial-gradient(circle at 0 100%,    rgba(255, 255, 255, .5), transparent 46%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .5), transparent 46%);
}
.feat-card::before {
  background:
    radial-gradient(circle at 0 0,       rgba(255, 255, 255, .8), transparent 40%),
    radial-gradient(circle at 100% 0,    rgba(255, 255, 255, .8), transparent 40%),
    radial-gradient(circle at 0 100%,    rgba(255, 255, 255, .6), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .6), transparent 40%);
}

/* Terms / Privacy / DMCA pages: the text sits on a white window */
main.wrap.legal {
  width: min(760px, calc(100% - 32px)); max-width: 760px; margin: 28px auto; padding: 40px 22px 60px;
  background: #fff; color: var(--text); border-radius: var(--radius);
  box-shadow: 0 0 26px 3px rgba(150, 220, 255, .7), 0 0 56px 12px rgba(50, 140, 255, .45);
}

/* the popup: dark blue with a glow, white text, pink timer */
.popup-wrap { background: rgba(2, 10, 40, .6); }
.popup-wrap .popup-card,
.popup-wrap.in-window .popup-card {
  background: radial-gradient(ellipse at 50% 0%, rgba(80, 160, 255, .6), rgba(80, 160, 255, 0) 72%), var(--page-bg, #0b2565);
  border: 1px solid rgba(160, 225, 255, .9);
}
.popup-title { color: #fff; text-shadow: 0 0 14px rgba(110, 190, 255, .7); }
.popup-text  { color: rgba(255, 255, 255, .9); text-shadow: none; }
.popup-x { color: #fff; }
.popup-x:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.ring-segs .seg { background: var(--btn-bg); box-shadow: 0 0 8px rgba(255, 118, 167, .9); }
.ring-segs .seg.off { opacity: .2; box-shadow: none; }
.ring-face { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 2px rgba(160, 225, 255, .45); }
.ring-face b { color: #fff; text-shadow: 0 0 10px rgba(110, 190, 255, .8); }
.ring-face small { color: #9fe3ff; }
/* the sliding gallery row clips sideways only, so the glow above and below the cards is not cut into a box */
.cat-viewport { overflow-x: clip; overflow-y: visible; overflow-clip-margin: 8px; }

/* country flag picture after the streamer's name */
.country img { display: block; height: 1.15em; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.country:empty { display: none; }
.feat-name .country { display: inline-flex; align-items: center; }

/* ============================================================
 * SPLIT LOOK: the page is split diagonally into cyan and pink. White windows, navy buttons and titles.
 * The colors come from admin.php -> Colors:  --bg1 = background 1 (cyan), --bg2 = background 2 (pink), --nv = buttons and titles (navy).
 * ============================================================ */
:root {
  --bg1: #8EE7FF; --bg2: #FF769E; --nv: #161659;
  --split: linear-gradient(105deg, var(--bg1) 0, var(--bg1) 49.8%, var(--bg2) 50.2%, var(--bg2) 100%);
  --soft: 0 12px 26px -12px rgba(22, 22, 89, .38);
}
body { background: var(--split) fixed; background-color: var(--bg2); }
body::before, body::after { display: none; }

/* titles, header and footer sit on the colors, so they are navy */
.top { border-bottom-color: rgba(22, 22, 89, .18); }
.top .logo { color: var(--nv); text-shadow: none; }
.top .logo .dot { background: var(--nv); box-shadow: none; }
.panel.gallery .gallery-head h2 { color: var(--nv); text-shadow: none; }
.panel.gallery .gallery-head p, .panel.gallery .gallery-notes { color: var(--nv); text-shadow: none; }
.panel.gallery .gallery-notes li::before { color: var(--nv); }
.foot { color: var(--nv); border-top-color: rgba(255, 255, 255, .55); }
.foot .foot-links a, .foot .foot-copy { color: var(--nv); }
.foot .dmca { background: #FFD3E0; color: var(--accent-ink); border-color: transparent; }

/* buttons: navy with white text */
.btn-cta, .btn-primary, .popup-btn.btn-cta {
  background: var(--nv); color: #fff; border: 0; font-weight: 800;
  box-shadow: 0 10px 22px -10px rgba(22, 22, 89, .7);
}
.btn-cta:hover, .btn-primary:hover { filter: brightness(1.2); }
.btn-primary { color: var(--bg2); }                  /* the 18+ button: pink letters on navy */
.btn-ghost { background: #fff; color: var(--nv); border: 2px solid var(--nv); box-shadow: none; }

/* white windows with a soft shadow */
.glow, .panel.gallery.glow { border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--soft); }
.panel.gallery.glow { box-shadow: none; border: 0; }
.cat-card { border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--soft); }
.cat-card:hover { box-shadow: 0 16px 30px -12px rgba(22, 22, 89, .5); }
.feat-card { border: 3px solid #fff; box-shadow: var(--soft); }
.cat-thumb::after, .feat-card::before { background: none; }
.cat-label { color: var(--nv); }
.cat-card:nth-child(odd)  .cat-initial { background: linear-gradient(180deg, var(--bg1), #fff); color: var(--nv); }
.cat-card:nth-child(even) .cat-initial { background: linear-gradient(180deg, var(--bg2), #fff); color: var(--nv); }
.feat-initial { background: linear-gradient(180deg, var(--bg1), #fff); color: var(--nv); }
.join-dot { background: var(--bg2); }
main.wrap.legal { box-shadow: var(--soft); }

/* the popup: the same split, white frame, navy text and timer */
.popup-wrap { background: rgba(22, 22, 89, .4); }
.popup-wrap.in-window { background: transparent; }
.popup-wrap .popup-card, .popup-wrap.in-window .popup-card {
  background: var(--split); background-color: var(--bg2); border: 3px solid #fff; box-shadow: var(--soft);
}
.popup-title, .popup-text, .popup-x, .ring-face b { color: var(--nv); text-shadow: none; }
.popup-x:hover { background: rgba(255, 255, 255, .5); color: var(--nv); }
.ring-segs .seg { background: var(--nv); box-shadow: none; }
.ring-segs .seg.off { opacity: .18; }
.ring-face { background: transparent; box-shadow: none; }
.ring-face small { color: var(--nv); }

/* ---------- Smoothness ---------- */
/* the live video fades in once it has loaded (the photo stays until then) */
.feat-media .feat-frame { opacity: 0; transition: opacity .4s ease; }
.feat-media .feat-frame.ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .feat-media .feat-frame { transition: none; } }