:root {
  --pink: #E50078;
  --pink-2: #C90068;
  --purple: #650080;
  --deep: #3B0754;
  --bg: #100914;
  --card: #1B111F;
  --elev: #241528;
  --text: #FFFFFF;
  --muted: #B7AEBB;
  --line: rgba(255,255,255,.08);
  --hero: linear-gradient(115deg, #e50078 0%, #710078 42%, #310039 70%, #8c3d43 100%);
  --radius: 6px;
  --shadow: 0 10px 40px rgba(0,0,0,.45);
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --logo: "Italiana", "Cormorant Garamond", serif;
  --font: "Outfit", Inter, system-ui, sans-serif;
  --header-top: 42px;
  --header-nav: 58px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.55;
  overflow-x: hidden;
  letter-spacing: .01em;
  font-weight: 400;
}
h1, h2, h3, .page-title, .hero h1, .promo h2, .logo {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .01em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
.container { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 80; }
.util-bar {
  height: var(--header-top);
  background: #0c070f;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.util-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
}
.util-left, .util-right { display: flex; align-items: center; gap: 6px; }
.util-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  background: #1a101e;
  border: 1px solid var(--line);
  color: #efe8f2;
  white-space: nowrap;
}
.util-btn:hover { border-color: var(--pink); color: #fff; }
.util-btn.accent { background: var(--pink); border-color: var(--pink); }
.util-btn.ghost { background: transparent; }
.search-mini {
  display: flex;
  align-items: center;
  height: 28px;
  background: #1a101e;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.search-mini input {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 12px;
  padding: 0 10px;
  width: 168px;
  outline: none;
}
.search-mini button {
  width: 30px;
  height: 28px;
  background: var(--pink);
  color: #fff;
}

.nav-bar {
  height: var(--header-nav);
  background: rgba(16,9,20,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
}
.logo {
  display: inline-block;
  font-family: var(--logo);
  font-size: 46px;
  font-weight: 400;
  letter-spacing: .1em;
  color: #fff;
  white-space: nowrap;
}
.logo span { color: var(--pink); font-style: italic; }
.main-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.main-nav a {
  font-size: 13px;
  font-weight: 600;
  color: #ddd4e2;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: #fff; border-bottom-color: var(--pink); }
.nav-extras { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--elev); color: #fff; position: relative;
  border: 1px solid var(--line);
}
.icon-btn .dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--pink);
}
.member-chip {
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
.hamburger { display: none; width: 36px; height: 36px; }

.hero {
  background: var(--hero);
  min-height: 420px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  min-height: 460px;
  position: relative;
  z-index: 2;
}
.hero-copy { padding: 56px 0 64px; max-width: 620px; }
.hero-kicker {
  font-family: var(--font);
  font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.78); margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 92px);
  line-height: .88;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  text-transform: none;
  text-shadow: 0 10px 40px rgba(0,0,0,.28);
}
.hero p {
  margin-top: 18px; color: rgba(255,255,255,.88); max-width: 460px;
  font-size: 16px; font-weight: 300; letter-spacing: .02em;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 13px; color: #f3e9f6; }
.hero-actions { display: flex; gap: 12px; align-items: center; margin-top: 26px; }
.play-orb {
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #fff, #f7c2e0 40%, #e50078 72%);
  box-shadow: 0 0 0 8px rgba(255,255,255,.18), 0 12px 40px rgba(229,0,120,.45);
  color: #3B0754; font-size: 26px;
  animation: glow 2.4s ease-in-out infinite;
}
@keyframes glow {
  0%,100% { box-shadow: 0 0 0 8px rgba(255,255,255,.16), 0 12px 40px rgba(229,0,120,.4); }
  50% { box-shadow: 0 0 0 12px rgba(255,255,255,.24), 0 16px 48px rgba(229,0,120,.55); }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 4px; font-weight: 700; font-size: 13px;
  border: 1px solid transparent;
}
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--pink-2); }
.btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.btn-outline { border-color: var(--line); background: transparent; }
.btn-block { width: 100%; }
.hero-media {
  position: relative; height: 460px;
  display: flex; align-items: flex-end; justify-content: flex-end;
}
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}
.hero-badge {
  position: absolute; top: 28px; right: 18px;
  background: var(--pink); padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
}

.section { padding: 36px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px; gap: 12px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: .02em;
}
.section-head a {
  font-family: var(--font);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
/* Related-videos rail on /watch. A class, not an inline style, so the
   breakpoints below can reshape it instead of being overridden. */
.video-grid.video-rail { grid-template-columns: 1fr; }
.vcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.vcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(229,0,120,.35); }
.thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #120a16; }
.thumb img, .thumb .hover-reel {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  transition: transform .45s ease, opacity .25s ease;
}
.thumb .hover-reel {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; background: #000;
}
.vcard:hover .thumb img { transform: scale(1.08); }
.vcard.is-playing .thumb img { opacity: 0; }
.vcard.is-playing .hover-reel { opacity: 1; }
.thumb .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.72));
  opacity: .55; transition: opacity .25s;
}
.vcard:hover .thumb .shade { opacity: 1; }
.thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transition: opacity .25s; color: #fff; font-size: 34px;
}
.vcard:hover .thumb .play { opacity: 1; }
.duration {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,.72); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 3px;
}
.badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.badge {
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 3px; background: var(--pink);
}
.badge.hd { background: #241528; border: 1px solid rgba(255,255,255,.2); }
.badge.live { background: #e11d48; }
.vinfo { padding: 10px 11px 12px; }
.vinfo h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.creator-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.creator-row img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.creator-row span { font-size: 12px; color: var(--muted); }
.verified { color: var(--pink); font-size: 10px; }
.vmeta { display: flex; gap: 10px; color: var(--muted); font-size: 11px; margin-top: 6px; }
.fav-btn { margin-left: auto; color: var(--muted); }
.fav-btn.on { color: var(--pink); }

.creator-grid, .cat-grid, .live-grid, .channel-grid {
  display: grid; gap: 14px;
}
.creator-grid { grid-template-columns: repeat(6, 1fr); }
.cat-grid { grid-template-columns: repeat(4, 1fr); }
.live-grid { grid-template-columns: repeat(3, 1fr); }
.channel-grid { grid-template-columns: repeat(4, 1fr); }
.ccard, .cat-card, .live-card, .ch-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.ccard { text-align: center; padding: 16px 10px; }
.ccard img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 2px solid var(--pink); }
.ccard h3 { font-size: 13px; }
.cat-card { position: relative; min-height: 120px; }
.cat-card img { width: 100%; height: 120px; object-fit: cover; filter: brightness(.7); }
.cat-card .label { position: absolute; inset: auto 12px 10px 12px; }
.cat-card h3 { font-size: 15px; }
.cat-card p { font-size: 12px; color: var(--muted); }
.live-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.live-card .pad { padding: 10px 12px 14px; }
.promo {
  background: var(--hero);
  border-radius: 8px;
  padding: 28px 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.promo h2 { font-size: 28px; font-weight: 800; }
.promo-img { width: 180px; height: 100px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.newsletter {
  background: var(--elev); border: 1px solid var(--line); border-radius: 8px;
  padding: 22px; display: flex; gap: 16px; align-items: center; justify-content: space-between;
}
.newsletter form { display: flex; gap: 8px; }
.newsletter input {
  background: #100914; border: 1px solid var(--line); color: #fff; height: 40px; padding: 0 12px; border-radius: 4px; min-width: 240px;
}

.site-footer {
  margin-top: 20px; border-top: 1px solid var(--line); background: #0c070f; padding: 36px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { font-size: 13px; margin-bottom: 10px; color: #fff; }
.site-footer a, .site-footer p { color: var(--muted); font-size: 13px; display: block; margin: 6px 0; }
.copy { margin-top: 24px; color: #7d7484; font-size: 12px; }

.page { padding: 28px 0 60px; }
.page-title {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 18px;
}
.player-wrap video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters input, .filters select {
  background: var(--card); border: 1px solid var(--line); color: #fff;
  height: 36px; padding: 0 10px; border-radius: 4px; font-size: 13px;
}
.player-wrap { background: #000; border-radius: 8px; overflow: hidden; }
.player-wrap video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.video-layout { display: grid; grid-template-columns: 1.7fr .9fr; gap: 22px; }
.video-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.wall {
  aspect-ratio: 16/9; display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, #3B0754, #100914);
  border-radius: 8px; padding: 24px;
}
.wall h2 { font-size: 28px; margin-bottom: 8px; }
.comment { background: var(--card); border: 1px solid var(--line); padding: 12px; border-radius: 6px; margin-bottom: 8px; }
.auth-card, .form-card {
  max-width: 460px; margin: 40px auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 28px;
}
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: #140c18; border: 1px solid var(--line); color: #fff;
  border-radius: 4px; padding: 10px 12px; font-size: 14px;
}
/* ---- 18+ age gate ---- */
/* Flex + margin:auto rather than grid centring: when the box is taller than
   the viewport (landscape phones) margin:auto still allows it to be scrolled
   to, whereas align/justify center pushes the top out of reach. */
.age-screen {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 5vw, 24px);
  padding-left: max(clamp(16px, 5vw, 24px), env(safe-area-inset-left));
  padding-right: max(clamp(16px, 5vw, 24px), env(safe-area-inset-right));
  padding-bottom: max(clamp(16px, 5vw, 24px), env(safe-area-inset-bottom));
  background: var(--hero);
}
.age-box {
  margin: auto;
  width: 100%; max-width: 480px;
  background: rgba(16, 9, 20, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: clamp(20px, 6vw, 36px);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.age-badge {
  display: inline-grid; place-items: center;
  min-width: 46px; height: 46px; padding: 0 10px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .02em;
}
.age-box .logo {
  font-size: clamp(26px, 8vw, 42px);
  margin: 0 0 10px;
}
.age-box h1 {
  font-size: clamp(17px, 5vw, 25px);
  line-height: 1.2;
  margin: 0 0 10px;
}
.age-copy {
  color: rgba(255, 255, 255, .86);
  font-size: clamp(13px, 3.6vw, 15px);
  line-height: 1.6;
}
.age-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: clamp(16px, 5vw, 22px) 0 0;
}
.age-actions .btn {
  flex: 1 1 120px;
  min-height: 46px; height: auto; padding: 12px 18px;
}
.age-note {
  margin: 16px 0 0;
  font-size: 12px; line-height: 1.6;
  color: var(--muted);
}
.age-note a {
  color: #fff; font-weight: 700; text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-block; padding: 4px 0; min-height: 28px;
}

@media (max-width: 400px) {
  .age-box { border-radius: 10px; }
  .age-actions { flex-direction: column; }
  .age-actions .btn { flex: 1 1 auto; width: 100%; }
}
/* Landscape phones: keep the badge and logo on one line to save height. */
@media (max-height: 480px) and (orientation: landscape) {
  .age-box { padding: 18px 22px; }
  .age-badge { display: none; }
  .age-box .logo { font-size: 24px; margin-bottom: 6px; }
  .age-box h1 { font-size: 17px; margin-bottom: 6px; }
  .age-copy { font-size: 12px; }
  .age-actions { margin-top: 12px; }
  .age-note { margin-top: 10px; }
}
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px;
}
.plan.featured { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink) inset; }
.plan .price { font-size: 32px; font-weight: 800; margin: 8px 0; }
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 100px); }
.admin-side { background: #0c070f; border-right: 1px solid var(--line); padding: 18px 12px; }
.admin-side a { display: block; padding: 9px 12px; border-radius: 4px; font-size: 13px; color: var(--muted); }
.admin-side a.active, .admin-side a:hover { background: var(--elev); color: #fff; }
.admin-main { padding: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); padding: 14px; border-radius: 6px; display: block; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.stat:hover { border-color: var(--pink); transform: translateY(-1px); }
.stat .n { font-size: 22px; font-weight: 800; }
.stat .l { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-head h1, .admin-main h1 { margin-bottom: 4px; }
.dash-welcome { font-size: 13px; color: var(--muted); }
.dash-h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 20px 0 10px; }
.dash-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.dash-btn { background: var(--card); border: 1px solid var(--line); padding: 12px 14px; border-radius: 6px; font-size: 13px; color: #fff; text-decoration: none; }
.dash-btn:hover { border-color: var(--pink); }
.dash-btn b { color: var(--pink); font-weight: 800; }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dash-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash-card-head h3 { font-size: 15px; }
.dash-card-head a { font-size: 12px; color: var(--pink); text-decoration: none; }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; display: flex; justify-content: space-between; gap: 10px; }
.dash-list li:last-child { border-bottom: 0; }
.dash-list a { color: #fff; text-decoration: none; }
.dash-list a b { color: var(--pink); }
.dash-meta { color: var(--muted); font-size: 12px; }
.dash-empty { color: var(--muted); font-size: 13px; margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--elev); border: 1px solid var(--line); padding: 10px 14px; border-radius: 6px; font-size: 13px; min-width: 220px; }
.toast.success { border-color: #16a34a; }
.toast.error { border-color: #e11d48; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.pagination a, .pagination span {
  min-width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 4px; font-size: 13px;
}
.pagination .on { background: var(--pink); border-color: var(--pink); }
.suggest {
  position: absolute; top: 100%; right: 0; background: var(--card); border: 1px solid var(--line);
  width: 260px; z-index: 20; display: none;
}
.suggest a { display: block; padding: 8px 12px; font-size: 13px; }
.suggest a:hover { background: var(--elev); }
.empty { text-align: center; padding: 40px 12px; color: var(--muted); }
.sk { background: linear-gradient(90deg, #1b111f, #241528, #1b111f); background-size: 200% 100%; animation: sk 1.2s infinite; height: 12px; border-radius: 4px; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; right: 0; top: 40px; min-width: 180px;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 8px 0; z-index: 30;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 14px; font-size: 13px; color: var(--muted); }
.dropdown-menu a:hover { background: var(--elev); color: #fff; }
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 12px; }
.legal p, .legal li { color: var(--muted); margin: 8px 0; }
/* Off-canvas drawer. Closed state uses visibility (not display) so the
   transform can animate and so links stay out of the tab order. */
.mobile-nav {
  position: fixed; top: 0; right: 0;
  width: min(340px, 86vw);
  height: 100vh; height: 100dvh;
  background: #0c070f;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .55);
  z-index: 130;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  /* visibility flips instantly on open (so focus() lands in a visible subtree)
     and only after the slide-out finishes on close. */
  transition: transform .28s ease, visibility 0s linear .28s;
}
.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .28s ease, visibility 0s linear 0s;
}
.nav-backdrop {
  position: fixed; inset: 0; z-index: 125;
  background: rgba(6, 3, 8, .62);
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility 0s linear .28s;
}
.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .28s ease, visibility 0s linear 0s;
}
body.nav-locked { touch-action: none; }

.mnav-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.mnav-logo { font-size: 26px; }
.mnav-search {
  display: flex; align-items: center; flex: 0 0 auto;
  height: 40px; margin: 14px 16px 4px;
  background: #1a101e; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.mnav-search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: #fff; font-size: 14px; padding: 0 12px; height: 100%;
}
.mnav-search button { width: 40px; height: 100%; background: var(--pink); color: #fff; }
.mnav-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px calc(20px + env(safe-area-inset-bottom));
}
.mnav-label {
  font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 6px;
}
.mnav-list { list-style: none; margin: 0; padding: 0; }
.mnav-link {
  display: flex; align-items: center; gap: 14px;
  min-height: 46px; padding: 10px 12px; margin: 2px 0;
  border-radius: 5px;
  font-size: 15px; font-weight: 600; color: #ddd4e2;
}
.mnav-link i { width: 20px; text-align: center; font-size: 15px; color: var(--muted); flex: 0 0 auto; }
.mnav-link:hover, .mnav-link:focus-visible { background: var(--elev); color: #fff; }
.mnav-link.active { background: rgba(229, 0, 120, .14); color: #fff; }
.mnav-link.active i { color: var(--pink); }
.mnav-user {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px;
  padding: 10px 12px; border-radius: 5px; background: #1a101e;
  font-size: 14px; font-weight: 600; color: #fff;
}
.mnav-user em {
  margin-left: auto; font-style: normal; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
.mnav-auth { display: grid; gap: 10px; margin-top: 20px; }
.mnav-auth .btn { height: 46px; }
.alert { padding: 10px 12px; border-radius: 6px; margin-bottom: 12px; font-size: 13px; }
.alert.error { background: rgba(225,29,72,.15); border: 1px solid #e11d48; }
.alert.success { background: rgba(22,163,74,.15); border: 1px solid #16a34a; }

@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .creator-grid { grid-template-columns: repeat(4, 1fr); }
  .stats, .plans { grid-template-columns: repeat(2, 1fr); }
  .dash-actions { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .video-layout, .admin, .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { height: 280px; }
  .hero-copy { padding: 32px 0 12px; }
}

@media (max-width: 720px) {
  /* ---- util bar: its actions now live in the drawer, so drop the whole
         strip and give the nav bar the full width ---- */
  .util-bar { display: none; }

  /* ---- nav bar ---- */
  .main-nav { display: none; }
  .hamburger { display: grid; place-items: center; }
  .nav-extras .member-chip { display: none; }
  .nav-extras .icon-btn:not(.hamburger) { display: none; }
  .nav-inner { gap: 12px; }
  .logo { font-size: 28px; }
  .nav-bar { height: auto; }
  .nav-inner { height: 56px; }

  /* ---- grids ---- */
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .live-grid { grid-template-columns: repeat(2, 1fr); }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .creator-grid { grid-template-columns: repeat(3, 1fr); }

  /* ---- hero ---- */
  .hero h1 { font-size: 36px; }
  .hero-actions { flex-wrap: wrap; }

  /* ---- misc layout ---- */
  .newsletter, .promo { flex-direction: column; align-items: flex-start; }
  .newsletter form { flex-direction: column; width: 100%; }
  .newsletter input { min-width: unset; width: 100%; }

  /* ---- auth forms full-width on mobile ---- */
  .auth-card, .form-card {
    margin: 16px auto;
    padding: 20px 16px;
    max-width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .page { padding: 16px 0 40px; }

  /* ---- video layout ---- */
  .video-layout { gap: 14px; }
  .video-grid.video-rail { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* ---- tables scroll instead of forcing the page wider ---- */
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  th, td { padding: 9px 10px; }

  /* ---- headings scale with the viewport ---- */
  .page-title { font-size: clamp(24px, 6vw, 36px); }
  .section-head h2 { font-size: 22px; }
  .section-head { flex-wrap: wrap; }
  .wall h2 { font-size: 21px; }
  .plan .price { font-size: 26px; }
  .promo { padding: 20px 18px; }
  .promo h2 { font-size: 21px; }
  .promo-img { width: 100%; height: 150px; }

  /* ---- pagination wraps instead of overflowing ---- */
  .pagination { flex-wrap: wrap; gap: 5px; }
  .pagination a, .pagination span { min-width: 32px; height: 32px; }

  /* ---- toasts stay on screen ---- */
  .toast-wrap { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .toast { min-width: 0; width: 100%; }

  /* ---- search suggestions ---- */
  .suggest { width: min(280px, calc(100vw - 32px)); }

  /* ---- comfortable tap targets ---- */
  .fav-btn { min-width: 32px; min-height: 32px; display: inline-grid; place-items: center; }
  .video-actions .btn { flex: 1 1 auto; }
  .form-group select, .filters select { max-width: 100%; }
}

@media (max-width: 420px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-grid.video-rail { grid-template-columns: 1fr; }
  .creator-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .live-grid, .channel-grid { grid-template-columns: 1fr; }
  .logo { font-size: 24px; }
  .mnav-link { font-size: 14px; }
  .hero h1 { font-size: 30px; }
}


/* ------------------------------------------------- access + ad playback --- */
.access-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line);
}
.access-chip.free { color: #7ee0a8; border-color: rgba(126, 224, 168, .35); background: rgba(126, 224, 168, .08); }
.access-chip.premium { color: #ffc95e; border-color: rgba(255, 201, 94, .35); background: rgba(255, 201, 94, .08); }

.wall-ic {
  display: inline-grid; place-items: center; width: 54px; height: 54px;
  border-radius: 50%; margin-bottom: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 20px;
}
.wall-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

.ad-note {
  margin: 10px 0 0; font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}

.player-wrap { position: relative; }
.player-wrap.ad-playing .hover-reel { display: none; }

.ad-overlay {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center; background: #000;
}
.ad-overlay[hidden] { display: none; }
.ad-overlay video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }

.ad-flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .2);
  padding: 3px 8px; border-radius: 3px;
}
.ad-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .18);
}
.ad-bar i { display: block; height: 100%; width: 0; background: var(--pink); transition: width .2s linear; }
.ad-meta {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px;
}
.ad-title {
  font-size: 12px; color: #fff; background: rgba(0, 0, 0, .6);
  padding: 4px 8px; border-radius: 3px; max-width: 70%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ad-skip {
  background: rgba(255, 255, 255, .92); color: #111; border: 0; cursor: pointer;
  font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 4px;
}
.ad-skip[hidden] { display: none; }
.ad-skip:disabled { opacity: .6; cursor: default; }
.ad-skip:disabled:hover { opacity: .6; }

/* free / premium picker on upload forms */
.access-choice { border: 1px solid var(--line); border-radius: 6px; padding: 14px; margin: 0 0 16px; }
.access-choice legend { font-size: 12px; color: var(--muted); font-weight: 700; padding: 0 6px; }
.access-opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px; border-radius: 5px; cursor: pointer; }
.access-opt:hover { background: rgba(255, 255, 255, .04); }
.access-opt input { margin-top: 3px; flex: 0 0 auto; }
.access-body { display: block; }
.access-body strong { display: block; font-size: 14px; }
.access-body small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.5; }

/* ------------------------------------------------- shared responsive kit --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Long unbroken strings (URLs, tokens) must not widen the page. */
p, h1, h2, h3, h4, h5, td, th, .dash-list li, .vmeta, .foo-links a, .foo-billing a {
  overflow-wrap: break-word;
}

