:root {
  --wine-dark: #590D22;
  --burgundy: #800F2F;
  --deep-rose: #A4133C;
  --rose: #C9184A;
  --hot-pink: #FF4D6D;
  --pink: #FF758F;
  --soft-pink: #FF8FA3;
  --blush: #FFB3C1;
  --light-pink: #FFCCD5;
  --almost-white: #FFF0F3;
}

* { box-sizing: border-box; }

/* Elements toggled via the `hidden` attribute (el.hidden = true/false in
   app.js) must actually disappear — without !important here, the equal-
   specificity `.age-gate`/`.app`/`.sheet`/`.empty-state` display rules below
   win the cascade over the browser's default [hidden] rule and the element
   stays visible/laid out (and interactive/observable) despite being "hidden". */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0d0509;
  color: var(--almost-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

button { font-family: inherit; }

.btn {
  border: none;
  border-radius: 14px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.btn--primary {
  background: var(--hot-pink);
  color: #fff;
}
.btn--primary:active { transform: scale(0.98); }

/* Age gate */
.age-gate {
  position: fixed;
  inset: 0;
  background: var(--wine-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.age-gate__card {
  text-align: center;
  max-width: 360px;
}
.age-gate__logo {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 12px;
  color: var(--almost-white);
}
.age-gate__tagline { color: var(--blush); margin-bottom: 24px; }
.age-gate__notice {
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--hot-pink);
  margin-bottom: 24px;
}
.age-gate__exit {
  display: block;
  margin-top: 16px;
  color: var(--light-pink);
  opacity: 0.7;
  text-decoration: none;
  font-size: 13px;
}
.age-gate__legal {
  margin-top: 28px;
  font-size: 11px;
}
.age-gate__legal a {
  color: var(--light-pink);
  opacity: 0.6;
  text-decoration: none;
}
.age-gate__legal a:hover { opacity: 1; }

/* App shell */
.app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #0d0509;
  max-width: 560px;
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(to bottom, rgba(88,13,34,0.85), transparent);
}
.topbar__logo { font-weight: 800; letter-spacing: 2px; }
.topbar__actions { display: flex; gap: 10px; align-items: center; }
.icon-btn {
  background: rgba(128,15,47,0.6);
  color: var(--almost-white);
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}
.lang-select {
  background: rgba(128,15,47,0.6);
  color: var(--almost-white);
  border: none;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
}

/* Feed */
.feed {
  flex: 1;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
}
.performer {
  position: relative;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: flex-end;
  background: #1a0a10 center/cover no-repeat;
  overflow: hidden;
}
.performer__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.performer__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}
.performer__overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px 16px 28px;
  background: linear-gradient(to top, rgba(13,5,9,0.92) 10%, rgba(13,5,9,0.15) 70%, transparent);
}
.performer__live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hot-pink);
  margin-bottom: 8px;
}
.performer__live-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hot-pink);
}
.performer__name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}
.performer__meta {
  font-size: 13px;
  color: var(--light-pink);
  margin: 0 0 16px;
}
.performer__cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.performer__watch {
  flex: 1;
  text-align: center;
  text-decoration: none;
  display: block;
}
.performer__heart {
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--almost-white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: var(--light-pink);
  text-align: center;
  padding: 24px;
}

/* Filters bottom sheet */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
}
.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.sheet__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: var(--wine-dark);
  border-radius: 20px 20px 0 0;
  padding: 20px 20px 28px;
}
.sheet__panel h2 { margin: 0 0 16px; }
.sheet__panel h3 { font-size: 13px; color: var(--light-pink); margin: 16px 0 8px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--almost-white);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
.chip.is-active {
  background: var(--hot-pink);
  border-color: var(--hot-pink);
}
#filters-apply { width: 100%; margin-top: 20px; }

@media (min-width: 560px) {
  .app { border-left: 1px solid rgba(255,255,255,0.06); border-right: 1px solid rgba(255,255,255,0.06); }
}
