

:root {
  --bg: #111116;
  --s1: #16161d;
  --s2: #1c1c25;
  --s3: #22222d;
  --border: #2b2b38;
  --border2: #363648;
  --text: #e4e4f0;
  --muted: #696e84;
  --dim: #454560;
  --accent: #2c1dffba;
  --accent2: #353bf7f1;
  --accent3: #353cf7;
  --accent4: #5358fcf1;
  --red: #e04060;
  --green: #2fb880;
  --blue: #4a90d9;
  --orange: #e08030;
  --r: 6px;
  --r2: 10px;
  --r3: 14px;
  --t: 0.14s ease;
  --f: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
* {
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 2px;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
textarea,
select {
  font-family: var(--f);
}
button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}
.main {
  flex: 1;
  padding: 6px 0 16px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  
  border-bottom: 1px solid var(--border);
}
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 22, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
}
.navbar .container {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 1px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text);
}
.nav-logo span {
  color: var(--accent2);
}
.nav-search {
  flex: 1;
  max-width: 320px;
  position: relative;
}
.nav-search input {
  width: 100%;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 7px 12px 7px 32px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color var(--t);
}
.nav-search input::placeholder {
  color: var(--dim);
}
.nav-search input:focus {
  border-color: var(--border2);
}
.nav-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  pointer-events: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: auto;
  position: relative;
}
.nav-link-label { display: none; }
.nav-mobile-icons { display: none; }
.nav-mobile-quick { display: none; }
.nav-ham-only { display: none; }
.nav-site-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.nav-auth-row { display: flex; align-items: center; gap: 4px; }
.nav-mobile-quick-user { display:flex;align-items:center;gap:5px;text-decoration:none;color:inherit; }
.nav-mobile-quick-name { font-size:12px;font-weight:600;max-width:68px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.nav-mobile-signout { background:none;border:none;color:var(--muted);cursor:pointer;padding:5px;display:flex;align-items:center; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  padding: 4px 5px;
  margin-left: 0;
  flex-shrink: 0;
  overflow: visible;
  transition: background 0.14s ease, border-color 0.14s ease;

}
.nav-hamburger:hover {
  background: var(--s3);
  border-color: var(--border2);
}
.nav-hamburger span {
  display: block;
  width: 10px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease, width 0.18s ease;
  transform-origin: center;
}
.nav-hamburger.open { background: var(--s3); border-color: var(--accent2); }

.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-link {
  padding: 5px 9px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.14s ease, background-color 0.14s ease;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--s1);
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.14s ease, border-color 0.14s ease,
    color 0.14s ease;
  white-space: nowrap;
}
.nav-btn-ghost {
  color: var(--muted);
  border: 1px solid var(--border);
}
.nav-btn-ghost:hover {
  color: var(--text);
  border-color: var(--border2);
}
.nav-btn-primary {
  border: 1px solid var(--accent2);
  background: var(--bg);
  color: #ffffffd7;
}
.nav-btn-primary:hover {
  background: var(--bg);
  color: #fffffff1;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 20px;
  transition: background-color 0.14s ease;
  cursor: pointer;
}
.nav-user:hover {
  background: var(--s1);
}
.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10px;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-username {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.hero {
  padding: 60px 0 44px;
  text-align: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(
    ellipse at center,
    rgba(123, 94, 167, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hero-label {
  display: inline-block;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
  line-height: 1.06;
}
.hero-title em {
  font-style: normal;
  color: var(--accent2);
}
.hero-sub {
  color: var(--muted);
  font-size: 14px;
  max-width: 380px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-size: 22px;
  font-weight: 700;
}
.hero-stat-lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.feed-page-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.1;
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: .35em;
}
.feed-page-title .feed-page-title-accent {
  font-family: 'Playfair Display', 'Georgia', 'Cambria', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.18em;
  letter-spacing: .01em;
  background: linear-gradient(120deg, #ff8aa3 0%, #c46cff 55%, var(--accent2, #353bf7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 18px rgba(196,108,255,.22);
}
@media (max-width: 640px) {
  .feed-page-title { font-size: 19px; }
}
.home-hero {
  margin: 8px 0 22px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(53,59,247,.08), rgba(53,59,247,.02));
  border: 1px solid rgba(53,59,247,.18);
  border-radius: 10px;
}
.home-hero-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.4px;
  margin: 0 0 8px;
  color: var(--text);
}
.home-hero-lede {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.home-hero-lede a {
  color: var(--accent2);
  text-decoration: none;
}
.home-hero-lede a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .home-hero { padding: 14px; }
  .home-hero-title { font-size: 19px; }
  .home-hero-lede { font-size: 13px; }
}
.seo-intro {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 880px;
}
.seo-intro a {
  color: var(--accent2);
  text-decoration: none;
}
.seo-intro a:hover { text-decoration: underline; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: "";
  width: 2px;
  height: 12px;
  background: var(--accent2);
  border-radius: 1px;
  flex-shrink: 0;
}
.section-more {
  font-size: 12px;
  color: var(--muted);
  transition: color var(--t);
}
.section-more:hover {
  color: var(--accent2);
}
.sep {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
  opacity: 0.6;
}

.search-bar-form {
  margin-bottom: 20px;
}
.search-bar-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.search-bar-input-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.search-bar-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--dim);
}
.search-select {
  width: auto;
  min-width: 90px;
  max-width: 130px;
  flex-shrink: 0;
}
.search-result-count {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.cat-pill {
  padding: 4px 10px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease;
  text-transform: capitalize;
  white-space: nowrap;
}
.cat-pill:hover {
  border-color: var(--border2);
  color: var(--text);
}
.cat-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}
.video-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-items: start;
}

.vcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--s1);
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.14s ease;
  text-decoration: none;
  height: 100%;
}
.vcard:hover {
  border-color: var(--border2);
}
/* Overlay anchor — catches clicks across the whole card and routes to the
   video. Sits below interactive children (.vcard-author-link z=2,
   .vcard-edit-btn z=5) so those override navigation when clicked. */
.vcard-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
}
.vcard-author-link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  min-width: 0; /* allow author-name's text-overflow:ellipsis to clip */
}
.vcard-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--s2);
  overflow: hidden;
}
.vcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--s2);
  transition: filter 0.14s ease;
}

.vcard-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--s2);
  aspect-ratio: 16/9;
}
.vcard-thumb-ph svg {
  opacity: 0.1;
}
.vcard-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vcard-play-btn {
  width: 36px;
  height: 36px;
  background: rgb(35, 35, 35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.vcard:hover .vcard-play-btn {
  opacity: 1;
}
.vcard-cat {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  text-transform: capitalize;
  letter-spacing: 0.4px;
}
.vcard-locked {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.vcard-locked-text {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}
.vcard-badges-tr {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
  z-index: 4;
}
.vcard-badges-tr > .vcard-short-badge,
.vcard-badges-tr > .vcard-friends-badge,
.vcard-badges-tr > .vcard-sub-badge {
  position: static;
  top: auto;
  right: auto;
}
.vcard-short-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(192, 132, 252, 0.9);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.vcard-short-badge::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent #fff;
}
.vcard-friends-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background:rgba(59, 131, 246, 0.697);
  color: #ffffffda;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}
.vcard-sub-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background:rgba(123, 94, 167, 0.697);
  color: #ffffffd2;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

video::-webkit-media-controls-download-button { display: none !important; }
video::-internal-media-controls-download-button { display: none !important; }
video::-webkit-media-controls-panel { overflow: hidden !important; }

video { user-select: none; -webkit-user-select: none; }
.vcard-body {
  position: relative;
  padding: 7px 9px 9px;
  min-height: 68px;
  height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.vcard-body:has(> .vcard-edit-btn) .vcard-meta-row {
  padding-left: 22px;
}
.vcard-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.vcard-meta-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.vcard-ava {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  font-size: 6px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vcard-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vcard-author-name {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
  transition: color var(--t);
}
.vcard-author-link:hover .vcard-author-name {
  color: var(--accent2);
}
.vcard-dot {
  font-size: 10px;
  color: var(--dim);
  flex-shrink: 0;
}
.vcard-stat-inline {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: var(--dim);
  white-space: nowrap;
  flex-shrink: 0;
}
.vcard-status-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  margin-left: auto;
  flex-shrink: 0;
}
.vcard-status-pending {
  background: rgba(255,152,0,.15);
  color: #ffa500;
  border: 1px solid rgba(255,152,0,.3);
}
.vcard-status-rejected {
  background: rgba(220,53,69,.15);
  color: #e06c75;
  border: 1px solid rgba(220,53,69,.3);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-purple {
  background: rgba(123, 94, 167, 0.12);
  color: var(--accent2);
  border: 1px solid rgba(123, 94, 167, 0.2);
}
.badge-blue {
  background: rgba(74, 144, 217, 0.1);
  color: var(--blue);
  border: 1px solid rgba(74, 144, 217, 0.2);
}
.badge-red {
  background: rgba(224, 64, 96, 0.1);
  color: var(--red);
  border: 1px solid rgba(224, 64, 96, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease,
    color 0.14s ease;
  text-decoration: none;
  white-space: nowrap;
  border: none;
}
.btn-primary {
  background: var(--s1);
 border: 1px solid var(--accent2);
  color: #e0e0e0ee;
}
.btn-primary:hover {
  background: var(--s1);
  border: 1px solid var(--accent4);
  color: #ffffff;
}
.btn-secondary {
  background: var(--s2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border2);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border2);
}
.btn-danger {
  background: rgba(224, 64, 96, 0.1);
  color: var(--red);
  border: 1px solid rgba(224, 64, 96, 0.2);
}
.btn-danger:hover {
  background: rgba(224, 64, 96, 0.18);
}
/* Pending-save indicator for settings save buttons. Applied by JS when an
   input in the section has been changed but not yet saved. */
.btn-dirty {
  background: rgba(255, 165, 0, 0.18) !important;
  color: #ffa500 !important;
  border: 1px solid rgba(255, 165, 0, 0.4) !important;
}
.btn-sm {
  padding: 5px 11px;
  font-size: 12px;
  border-radius: var(--r);
}
.btn-lg {
  padding: 11px 24px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
}
.btn-friend {
  background: var(--s2);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 12px;
  padding: 5px 11px;
  border-radius: var(--r);
}
.btn-friend:hover {
  border-color: var(--border2);
}
.btn-friend.pending {
  color: var(--muted);
}
.btn-friend.accepted {
  border-color: var(--green);
  color: var(--green);
}

.form-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 52px);
  padding: 36px 20px;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(123, 94, 167, 0.06) 0%,
    transparent 55%
  );
}
.form-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.form-logo {
  text-align: center;
  margin-bottom: 24px;
}
.form-logo-mark {
  font-size: 17px;
  font-weight: 700;
}
.form-logo-mark span {
  color: var(--accent2);
}
.form-heading {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.form-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.6;
}
.form-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.form-divider span {
  font-size: 11px;
  color: var(--dim);
}
.form-group {
  margin-bottom: 13px;
}
.form-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.form-input {
  width: 100%;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 9px 11px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color var(--t);
}
.form-input::placeholder {
  color: var(--dim);
}
.form-input:focus {
  border-color: var(--border2);
}
textarea.form-input {
  resize: vertical;
  min-height: 76px;
  line-height: 1.55;
}

.cf-pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cf-radio {
  display: none;
}
.cf-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--s2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  user-select: none;
}
.cf-pill:hover {
  border-color: var(--accent2);
  color: var(--text);
}
.cf-radio:checked + .cf-pill {
  background: var(--bg);
  border-color: var(--accent2);
  color: #fff;
  font-weight: 600;
}
.form-select {
  width: 100%;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 9px 28px 9px 11px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.14s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6'%3E%3Cpath d='M0 0l4.5 5L9 0z' fill='%23555568'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.form-select:focus {
  border-color: var(--border2);
}
.form-error {
  background: rgba(224, 64, 96, 0.08);
  border: 1px solid rgba(224, 64, 96, 0.2);
  color: #f09090;
  padding: 9px 11px;
  border-radius: var(--r);
  font-size: 12px;
  margin-bottom: 13px;
}
.form-note {
  font-size: 11px;
  color: var(--dim);
  margin-top: 4px;
}
.pw-bar {
  margin-top: 4px;
  height: 2px;
  border-radius: 1px;
  background: var(--border);
  overflow: hidden;
}
.pw-bar-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s, background 0.3s;
  border-radius: 1px;
}

.watch-layout {
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 20px;
  align-items: start;
}
.player-wrap {
  position: relative;
  background: #000;
  border-radius: var(--r2);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.player-wrap video::-webkit-media-controls,
.player-wrap video::-webkit-media-controls-enclosure {
  display: none !important;
}
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  padding: 28px 12px 10px;
  opacity: 0;
  transition: opacity 0.18s;
}
.player-wrap:hover .player-controls,
.player-wrap.show-controls .player-controls {
  opacity: 1;
}
.player-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 8px;
  position: relative;
  transition: height 0.1s;
}
.player-progress:hover {
  height: 4px;
  margin-bottom: 7px;
}
.player-progress-fill {
  height: 100%;
  background: var(--accent2);
  border-radius: 2px;
  pointer-events: none;
}
.player-progress-thumb {
  position: absolute;
  top: 50%;
  right: -4px;
  transform: translateY(-50%) scale(0);
  width: 9px;
  height: 9px;
  background: var(--accent2);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.1s;
}
.player-progress:hover .player-progress-thumb {
  transform: translateY(-50%) scale(1);
}
.player-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.player-btn {
  color: #fff;
  padding: 2px;
  line-height: 0;
  opacity: 0.85;
  transition: opacity var(--t);
}
.player-btn:hover {
  opacity: 1;
}
.player-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: default;
  pointer-events: none;
}
.player-vol-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.player-vol-slider {
  width: 52px;
  height: 3px;
  accent-color: var(--accent2);
  cursor: pointer;
}
.player-spacer {
  flex: 1;
}
.player-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgb(35, 35, 35);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s;
}
.player-center-btn:hover {
  transform: translate(-50%, -50%) scale(1.05);
}
.player-center-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 16/9;
  background: var(--s2);
  border-radius: var(--r2);
  border: 1px solid var(--border);
  text-align: center;
  padding: 24px;
}
.player-gate-icon {
  font-size: 32px;
  opacity: 0.4;
}
.player-gate-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.player-gate-sub {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.55;
}

.video-detail-wrap {
  margin-top: 14px;
}
.video-watch-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.2px;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.watch-votes {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.action-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 12px 0 13px;
  flex-wrap: wrap;
}
.vote-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.14s ease, background-color 0.14s ease,
    border-color 0.14s ease;
}
.vote-btn:hover {
  border-color: var(--border2);
  color: var(--text);
}
.vote-btn.liked {
  background: rgba(47, 184, 128, 0.1);
  border-color: rgba(47, 184, 128, 0.3);
  color: var(--green);
}
.vote-btn.disliked {
  background: rgba(224, 64, 96, 0.1);
  border-color: rgba(224, 64, 96, 0.3);
  color: var(--red);
}
.vote-bar {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
  min-width: 40px;
}
.vote-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--accent2));
  border-radius: 1px;
  transition: width 0.35s;
}
.video-desc {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 12px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 0px;
}
.tag {
  padding: 2px 6px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease;
}
.tag:hover {
  border-color: var(--border2);
  color: var(--accent2);
}

.comments-section {
  margin-top: 18px;
}
.comments-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.comments-count {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 10px;
}
.comment-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.comment-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}
.comment-input-area {
  flex: 1;
}
.comment-input {
  width: 100%;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 7px 10px;
  color: var(--text);
  font-size: 12px;
  outline: none;
  resize: none;
  min-height: 34px;
  max-height: 100px;
  overflow-y: auto;
  transition: border-color var(--t);
  line-height: 1.5;
}
.comment-input:focus {
  border-color: var(--border2);
}
.comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 5px;
}
.comment-limit-hint {
  margin-right: auto;
  font-size: 10px;
  color: var(--dim);
}
.comment-submit {
  padding: 4px 12px;
  border: 1px solid var(--accent2);
  background: var(--bg);
  color: #ffffffd7;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s ease;
}
.comment-submit:hover {
  background: var(--accent2);
}
.comment {
  display: flex;
  gap: 7px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.comment:last-child {
  border-bottom: none;
}
.comment.is-reply {
  padding-left: 28px;
  display: none;
}
.comment-body {
  flex: 1;
  min-width: 0;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.comment-user {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent2);
}
.comment-time {
  font-size: 10px;
  color: var(--dim);
}
.comment-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  word-break: break-word;
}
.comment-mention {
  color: var(--accent2);
  font-weight: 600;
  text-decoration: none;
}
.comment-mention:hover { text-decoration: underline; }
.comment-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.comment-action-btn {
  background: none;
  border: none;
  font-size: 10px;
  color: var(--dim);
  cursor: pointer;
  transition: color var(--t);
}
.comment-action-btn:hover {
  color: var(--muted);
}
.reply-form {
  margin-top: 8px;
  display: none;
}
.reply-form.open {
  display: flex;
  gap: 7px;
}
.pinned-comment {
  
  text-align: left;
}
.pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent2);
  opacity: .7;
}
.creator-liked-badge {
  display: inline-flex;
  align-items: center;
  color: var(--red);
  opacity: .65;
}

.sidebar-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.related-card {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity var(--t);
}
.related-card:hover {
  opacity: 0.7;
}
.related-card:last-child {
  border-bottom: none;
}
.related-card--upnext {
  padding: 10px;
  margin: 0 -10px 8px;
  border-bottom: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  transition: background var(--t);
}
.related-card--upnext:hover {
  opacity: 1;
  background: rgba(255,255,255,0.07);
}
.related-thumb--upnext {
  width: 120px;
  position: relative;
}
.related-thumb-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.38);
  opacity: 0;
  transition: opacity 0.15s;
  border-radius: 5px;
}
.related-card--upnext:hover .related-thumb-play-overlay {
  opacity: 1;
}
.related-thumb {
  width: 96px;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  border-radius: 5px;
  overflow: hidden;
  background: var(--s2);
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0.15;
}
.related-info {
  flex: 1;
  min-width: 0;
}
.related-title-text {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}
.related-meta-text {
  font-size: 10px;
  color: var(--muted);
}

.profile-banner {
  height: 180px;
  background: linear-gradient(135deg, var(--s2) 0%, var(--s1) 100%);
  position: relative;
  overflow: hidden;
}
.profile-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(17, 17, 22, 0.95));
}
.profile-banner-edit {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r);
  padding: 4px 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.14s ease, background-color 0.14s ease;
}
.profile-banner-edit:hover {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}
.profile-header-inner {
  padding: 0 0 22px;
}
.profile-avatar-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -44px;
  padding: 0 2px;
}
.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}
.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 15px;
}
.profile-avatar:hover .profile-avatar-overlay {
  display: flex;
}
.profile-actions-row {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  padding-bottom: 2px;
  flex-wrap: wrap;
}
.profile-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 12px;
  margin-bottom: 1px;
}
.profile-handle {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.profile-bio-text {
  font-size: 12px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.65;
  margin-bottom: 10px;
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--dim);
}
.profile-kinks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}
.kink-tag {
  padding: 2px 7px;
  background: rgba(118, 118, 118, 0.08);
  border: 1px solid rgba(123, 94, 167, 0.15);
  border-radius: 3px;
  font-size: 10px;
  color: rgba(143, 148, 218, 0.7);
}
.profile-stats-row {
  display: flex;
  gap: 20px;
}
.profile-stat-num {
  font-size: 17px;
  font-weight: 700;
}
.profile-stat-lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 1px;
}
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.profile-tab {
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.14s ease, border-color 0.14s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.profile-tab:hover {
  color: var(--text);
}
.profile-tab.active {
  color: var(--accent2);
  border-bottom-color: var(--accent2);
}
.settings-panel {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 20px;
  margin-top: 16px;
  display: none;
}
.settings-panel.open {
  display: block;
}
.settings-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.settings-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.settings-section-danger {
  border-bottom: 1px solid rgba(220, 53, 69, 0.2) !important;
}
.settings-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r2);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  background: var(--s1);
  transition: border-color 0.14s ease, background-color 0.14s ease;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent2);
  background: rgba(123, 94, 167, 0.04);
}
.upload-zone-icon {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.5;
}
.upload-zone-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}
.upload-zone-sub {
  color: var(--muted);
  font-size: 12px;
}
.upload-progress {
  display: none;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  margin-top: 12px;
  overflow: hidden;
}
.upload-progress-bar {
  height: 100%;
  background: var(--accent2);
  border-radius: 1px;
  width: 0%;
  transition: width 0.3s;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
}
.page-btn {
  padding: 5px 11px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease;
  text-decoration: none;
  font-weight: 500;
}
.page-btn:hover,
.page-btn.current {
  border-color: var(--border2);
  color: var(--accent2);
}
input.page-jump-input {
  width: 58px;
  text-align: center;
  cursor: text;
  -moz-appearance: textfield;
}
input.page-jump-input::-webkit-outer-spin-button,
input.page-jump-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.empty-state {
  text-align: center;
  padding: 56px 20px;
}
.empty-icon {
  width: 48px;
  height: 48px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--dim);
}
.empty-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}
.empty-sub {
  font-size: 13px;
  color: var(--muted);
}

.ticket-list-item {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  transition: border-color .15s;
  color: inherit;
}
.ticket-list-item:hover { border-color: var(--accent); }

.toast-container {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}
.toast {
  padding: 8px 14px;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 500;
  min-width: 180px;
  animation: toastIn 0.2s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}
.toast-success {
  background: #1a3d2e;
  border: 1px solid #2f7a55;
  color: #7dd9a8;
}
.toast-error {
  background: #3d1a1a;
  border: 1px solid #8f3030;
  color: #f09090;
}
.toast-info {
  background: #1a2a3d;
  border: 1px solid #2a5080;
  color: #90bce0;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  border-top: 1px solid var(--border);
  padding: 14px 0;
  color: var(--dim);
  font-size: 11px;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-links {
  display: flex;
  gap: 12px;
}
.footer-links a {
  color: var(--dim);
  transition: color var(--t);
}
.footer-links a:hover {
  color: var(--muted);
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent2);
  border-radius: 50%;
  animation: spin 0.45s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

@media (max-width: 1020px) {
  .watch-layout {
    grid-template-columns: 1fr;
  }
  .related-sidebar {
    display: block;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 4px;
  }
  .related-sidebar .sidebar-title:first-child {
    margin-top: 0;
  }
}
@media (max-width: 700px) {
  .container {
    padding: 0 14px;
  }
  .p-banner {
  height: 165px;

}
  .navbar .container {
    gap: 7px;
  }
  .nav-search {
    max-width: 140px;
  }
  .nav-username {
    display: none;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 24px 18px;
  }
  .profile-stats-row {
    gap: 16px;
  }
  
  .p-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }
  .p-actions {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    padding-bottom: 4px;
  }
  
  .p-stats {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .p-stats::-webkit-scrollbar { display: none; }
  .p-stat {
    flex-shrink: 0;
    padding: 10px 14px;
  }
}
@media (max-width: 440px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
   .p-banner {
  height: 165px;

}
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

.p-banner {
  height: 210px;
  background: var(--s2);
  position: relative;
  overflow: hidden;
  margin-top: -15px;
  image-rendering: high-quality;
}
.p-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  image-rendering: high-quality;
}
.p-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(17, 17, 22, 0.92));
}
.p-banner img,
#profileBannerBg {
  image-rendering: crisp-edges; 
  image-rendering: -webkit-optimize-contrast; 
}
.p-banner-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r);
  padding: 4px 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: color 0.14s ease, background-color 0.14s ease;
}
.p-banner-btn:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
}

.p-header {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: -20px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.p-ava {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}
.p-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.p-ava-edit {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  color: #fff;
}
.p-ava:hover .p-ava-edit {
  display: flex;
}
.p-info {
  flex: 1;
  min-width: 0;
}
.p-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.p-handle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.p-since {
  color: var(--dim);
}
.p-bio {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
  max-width: 440px;
}
.p-website {
  font-size: 11px;
  margin-top: 4px;
}
.p-website a {
  color: var(--accent2);
}
.p-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  padding-bottom: 2px;
}

.p-about {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.p-about-bio {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}
.p-kinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.p-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  scrollbar-width: none;
}
.p-stats::-webkit-scrollbar { display: none; }
.p-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 18px;
  cursor: pointer;
  transition: color 0.14s ease, background-color 0.14s ease,
    border-bottom-color 0.14s ease;
  text-decoration: none;
  color: var(--text);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.p-stat:hover {
  background: var(--s1);
}
.p-stat.active {
  border-bottom-color: var(--accent2);
}
.p-stat-n {
  font-size: 14px;
  font-weight: 700;
}
.p-stat-l {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 1px;
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.user-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.14s ease;
}
.user-list-item:last-child {
  border-bottom: none;
}
.user-list-item:hover {
  opacity: 0.8;
}
.user-list-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.user-list-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-list-info {
  flex: 1;
  min-width: 0;
}
.user-list-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-list-handle {
  font-size: 11px;
  color: var(--muted);
}

.watch-info {
  margin-top: 12px;
}
.watch-title-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.watch-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.watch-author {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--text);
  transition: color 0.14s ease;
}
.watch-author:hover {
  color: var(--accent2);
}
.watch-author-ava {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.watch-author-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.watch-stat {
  font-size: 11px;
  color: var(--muted);
}

.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.otp-digit {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  outline: none;
  transition: border-color 0.14s ease, background-color 0.14s ease;
  caret-color: var(--accent2);
}
.otp-digit:focus {
  border-color: var(--accent2);
  background: var(--bg);
}
.form-success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.25);
  color: var(--green);
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: 13px;
  margin-bottom: 12px;
}

.admin-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-stat-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 16px 20px;
}
.admin-stat-n {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.admin-stat-l {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.admin-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.admin-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-table tr:hover td {
  background: var(--s1);
}
.admin-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  background: var(--s2);
  color: var(--muted);
}
.admin-badge.green {
  background: rgba(40, 167, 69, 0.15);
  color: var(--green);
}
.admin-badge.orange {
  background: rgba(255, 152, 0, 0.15);
  color: #ffa500;
}
.admin-badge.red {
  background: rgba(220, 53, 69, 0.15);
  color: #e06c75;
}
.admin-badge.purple {
  background: rgba(123, 94, 167, 0.2);
  color: var(--accent2);
}

html {
  background: var(--bg, #111116);
}

.search-submit-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.search-cat-mobile { display: none; }
.search-filter-group--mobile-only { display: none; }

@media (max-width: 640px) {
  .search-page form > div:first-child {
    flex-wrap: wrap;
  }
  .search-page #searchSort,
  .search-page #searchVis,
  .search-page #searchCT,
  .search-page .search-cat-mobile {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    width: auto !important;
  }
  .search-page #searchQuality { display: none !important; }
  .search-page .search-cat-mobile { display: block; }
  .search-filter-group--mobile-only { display: flex; }
  .search-page .search-query-group {
    flex: 1 1 100%;
  }
  .search-page .search-filter-toggle,
  .search-page .search-submit-btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.main {
  animation: fadeIn 0.08s ease-out;
}

html,
body {
  background: #111116;
}

.pending-card {
  display: flex;
  gap: 16px;
  background: linear-gradient(180deg, var(--s2) 0%, var(--s1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 16px 18px 16px 16px;
  align-items: flex-start;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.pending-card:hover {
  border-color: var(--border2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}
.pending-card .pending-cb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--border2);
  border-radius: 5px;
  background: var(--bg);
  cursor: pointer;
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  transition: border-color .12s, background .12s;
}
.pending-card .pending-cb:hover { border-color: var(--accent2); }
.pending-card .pending-cb:checked {
  background: var(--accent2);
  border-color: var(--accent2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.pending-thumb {
  width: 168px;
  height: 95px;
  border-radius: 8px;
  background: var(--s3);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.pending-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .4) 100%);
  pointer-events: none;
}
.pending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pending-info {
  flex: 1;
  min-width: 0;
}
.pending-info .pending-title {
  font-weight: 700; font-size: 15px;
  margin-bottom: 6px; letter-spacing: -.2px;
}
.pending-kind {
  display: inline-block;
  font-size: 9px; font-weight: 700; letter-spacing: .6px;
  padding: 2px 6px; border-radius: 4px;
  vertical-align: middle;
  margin-right: 6px;
  position: relative; top: -1px;
}
.pending-kind-short {
  background: rgba(192, 132, 252, .18);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, .35);
}
.pending-kind-video {
  background: rgba(74, 144, 217, .18);
  color: #4a90d9;
  border: 1px solid rgba(74, 144, 217, .35);
}
.pending-info .pending-meta {
  font-size: 12px; color: var(--muted); margin-bottom: 8px;
}
.pending-info .pending-meta a { color: var(--accent2); }
.pending-info .pending-desc {
  font-size: 12px; color: var(--muted); line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .pending-card {
    flex-direction: column;
  }
   .p-banner {
  height: 165px;

}
  .pending-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}

.nav-bell {
  position: relative;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.14s ease;
}
.nav-bell:hover {
  color: var(--text);
}
.notif-badge {
  position: absolute;
  top: -2px;
  right: -3px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}

.notif-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 340px;
  max-width: calc(100vw - 20px);
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 500;
  overflow: hidden;
}
.notif-list {
  max-height: 380px;
  overflow-y: auto;
}
.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.12s ease;
  align-items: flex-start;
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover {
  background: var(--s2);
}
.notif-item.unread {
  background: rgba(123, 94, 167, 0.07);
}
.notif-item.unread:hover {
  background: rgba(123, 94, 167, 0.12);
}
.notif-ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}
.notif-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.notif-body {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
}
.notif-actor {
  font-weight: 600;
}
.notif-item--issue {
  border-left: 3px solid rgba(255, 180, 50, .7);
}
.notif-issue-text {
  color: rgba(255, 180, 50, .95);
  font-weight: 500;
}
.notif-item--success {
  border-left: 3px solid var(--green);
}
.notif-success-text {
  color: var(--green);
  font-weight: 500;
}
.notif-sub {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif-time {
  color: var(--dim);
  font-size: 10px;
  margin-top: 2px;
}

.comment-reactions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-left: 2px;
}
.emoji-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 1px 5px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.1s, border-color 0.1s;
}
.emoji-react-btn:hover {
  background: var(--s2);
  border-color: var(--border);
}
.emoji-react-btn.active-emoji {
  background: var(--s2);
  border-color: var(--accent2);
}
.emoji-count {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
.emoji-react-btn.active-emoji .emoji-count {
  color: var(--accent2);
}
.comment-react-btn {
  background: none;
  border: none;
  color: var(--dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 3px;
  transition: color 0.12s ease;
}
.comment-react-btn:hover {
  color: var(--accent2);
}
.comment-react-btn.active-like {
  color: var(--accent2);
}
.comment-react-btn.active-dislike {
  color: #f87171;
}
.comment-like-count {
  font-size: 10px;
}
.comment-dislike-count {
  font-size: 10px;
}

.notif-pref-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.notif-pref-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent2);
  cursor: pointer;
  flex-shrink: 0;
}

.agegate-wrap {
  min-height: 100vh;
  margin-top: -100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}
.agegate-card {
  display: flex;
  align-items: center;
  gap: 52px;
  max-width: 820px;
  width: 100%;
}
.agegate-mascot {
  flex-shrink: 0;
  width: 260px;
}
.agegate-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 40px rgba(123, 94, 167, 0.25));
}
.agegate-content {
  flex: 1;
  min-width: 0;
}
.agegate-logo {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1;
}
.agegate-logo span {
  color: var(--accent2);
}
.agegate-tagline {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}
.agegate-notice {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.agegate-notice strong {
  color: var(--text);
}
.agegate-btns {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border: none;
  background: none;
  padding: 0;
}
.agegate-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 28px;
  border-radius: var(--r2);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.1px;
  transition: background-color 0.14s ease, color 0.14s ease,
    border-color 0.14s ease;
  border: 2px solid transparent;
}
.agegate-btn-enter {
  background: var(--bg);
  color: #fff;
  border-color: var(--accent);
}
.agegate-btn-enter:hover {
  background: var(--bg);
  border-color: var(--accent3);
}
.agegate-btn-leave {
  background: transparent;
  color: var(--muted);
  border-color: var(--muted);
}
.agegate-btn-leave:hover {
  color: var(--text);
  border-color: var(--red);
}
.agegate-legal {
  font-size: 11px;
  color: var(--dim);
  line-height: 1.7;
}
.agegate-legal a {
  color: var(--muted);
}
.agegate-legal a:hover {
  color: var(--text);
}
@media (max-width: 640px) {
  .agegate-card {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }
  .agegate-mascot {
    width: 160px;
    margin: 0 auto;
  }
  .agegate-logo {
    font-size: 28px;
  }
  .agegate-btns {
    justify-content: center;
  }
}

.layout-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 5px 8px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  transition: color 0.14s ease, border-color 0.14s ease;
}
.layout-btn:hover,
.layout-btn.active {
  color: var(--text);
  border-color: var(--border2);
}
.layout-btn.active {
  background: var(--s2);
}
.layout-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-grid.list-view {
  grid-template-columns: 1fr !important;
  gap: 8px;
}
.video-grid.list-view .vcard {
  display: flex;
  flex-direction: row;
  border-radius: var(--r);
  align-items: stretch;
  min-height: 0;
}
.video-grid.list-view .vcard-thumb {
  width: 200px;
  min-width: 200px;
  flex-shrink: 0;
  aspect-ratio: unset;
  height: auto;
  min-height: 113px;
  border-radius: var(--r) 0 0 var(--r);
}
.video-grid.list-view .vcard-thumb img,
.video-grid.list-view .vcard-thumb-ph {
  height: 100%;
  min-height: 113px;
}
.video-grid.list-view .vcard-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  height: auto;
}
.video-grid.list-view .vcard-title {
  font-size: 13px;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin-bottom: 8px;
  white-space: normal;
}
.video-grid.list-view .vcard-meta-row {
  flex-wrap: wrap;
  gap: 6px;
}
@media (max-width: 600px) {
  .video-grid.list-view .vcard {
    flex-direction: column;
  }
   .p-banner {
  height: 165px;

}
  .video-grid.list-view .vcard-thumb {
    width: 100%;
    min-height: 0;
  }
}

.density-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 4px 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.14s ease, border-color 0.14s ease;
}
.density-btn:hover,
.density-btn.active {
  color: var(--text);
  border-color: var(--border2);
  background: var(--s2);
}

/* Video grid: column counts locked to divisors common to both per-page
   sizes (24 for trending/latest/search/category, 36 for profile videos),
   i.e. {1,2,3,4,6,12}. A full page always lays out a complete final row
   regardless of density × viewport. */
[data-density="compact"] .video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
[data-density="compact"] .vcard-body {
  padding: 5px 7px 7px;
  min-height: 60px;
  height: 60px;
}
[data-density="compact"] .vcard-title {
  font-size: 11px;
}

[data-density="comfortable"] .video-grid,
[data-density=""] .video-grid,
.video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

[data-density="spacious"] .video-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
[data-density="spacious"] .vcard-body {
  padding: 10px 12px 12px;
  min-height: 78px;
  height: 78px;
}
[data-density="spacious"] .vcard-title {
  font-size: 14px;
}

@media (min-width: 600px) {
  [data-density="compact"] .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  [data-density="comfortable"] .video-grid,
  [data-density=""] .video-grid,
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  [data-density="spacious"] .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  [data-density="compact"] .video-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  [data-density="comfortable"] .video-grid,
  [data-density=""] .video-grid,
  .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  [data-density="spacious"] .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 600px) {
  .feed-video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  [data-density="comfortable"] .feed-video-grid,
  [data-density=""] .feed-video-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  [data-density="spacious"] .feed-video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  [data-density="comfortable"] .feed-video-grid .vcard:nth-child(n+26),
  [data-density=""] .feed-video-grid .vcard:nth-child(n+26) {
    display: none;
  }
  
  [data-density="spacious"] .feed-video-grid .vcard:nth-child(n+28) {
    display: none;
  }
}

@media (max-width: 379px) {
  .density-btn {
    padding: 4px 6px;
  }
   .p-banner {
  height: 165px;

}
  [data-density="compact"] .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  [data-density="comfortable"] .video-grid,
  [data-density=""] .video-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  [data-density="comfortable"] .vcard-body,
  [data-density=""] .vcard-body {
    min-height: 72px;
    height: 72px;
  }
  [data-density="comfortable"] .vcard-thumb,
  [data-density=""] .vcard-thumb {
    aspect-ratio: 16 / 10;
  }
  [data-density="spacious"] .video-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

.vcard-duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
  pointer-events: none;
}
.vcard-res {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: rgba(0, 0, 0, 0.75);
  color: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  pointer-events: none;
}
.vcard-res.hd {
  color: #4af;
  background: rgba(0, 30, 80, 0.8);
}
.vcard-res.fhd {
  color: #7df;
  background: rgba(0, 40, 100, 0.8);
}
.vcard-res.uhd {
  color: #fa4;
  background: rgba(60, 30, 0, 0.8);
}
.vcard-watched {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.vcard-watched svg {
  opacity: 0.7;
}
.vcard-edit-btn {
  position: absolute;
  bottom: 5px;
  left: 5px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 9px;
  color: #fff;
  line-height: 1;
  user-select: none;
  transition: background var(--t), border-color var(--t);
}
.vcard-edit-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
}

.browse-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: start;
}
.cat-sidebar {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 6px;
}
.cat-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 7px 10px;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.14s ease, background-color 0.14s ease;
  text-transform: capitalize;
  text-align: left;
}
.cat-sidebar-item:hover {
  color: var(--text);
  background: var(--s2);
}
.cat-sidebar-item.active {
  color: var(--text);
  background: var(--s2);
}
.cat-sidebar-item .cat-count {
  font-size: 10px;
  font-weight: 500;
  color: var(--dim);
  background: var(--s3);
  padding: 1px 6px;
  border-radius: 10px;
}
.cat-sidebar-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 10px 4px;
}
@media (max-width: 720px) {
  .browse-layout {
    grid-template-columns: 1fr;
  }
  .cat-sidebar,
  .cat-sidebar-wrap {
    display: none;
  }
}

.browse-layout--users {
  grid-template-columns: 1fr;
}

.cat-sidebar-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trending-tags-box {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 6px 8px 10px;
}
.trending-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px 4px 2px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  background: var(--s2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
  max-width: 100%;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag-chip:hover {
  background: var(--s3, var(--s2));
  color: var(--text);
  border-color: var(--border2);
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  align-items: start;
}
.scard {
  display: flex;
  flex-direction: column;
  background: var(--s1);
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.14s ease;
  text-decoration: none;
  height: 100%;
}
.scard:hover { border-color: var(--border2); }
.scard-thumb {
  position: relative;
  aspect-ratio: 9/16;
  background: var(--s2);
  overflow: hidden;
}
.scard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scard-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--s2);
}
.scard-thumb-ph svg { opacity: 0.1; }
.scard-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(192, 132, 252, 0.85);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  z-index: 2;
}
.scard-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px 8px 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.scard-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.scard-stat svg { flex-shrink: 0; }
.scard-body {
  padding: 7px 9px 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  height: 68px;
  min-height: 68px;
  overflow: hidden;
}
.scard-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}
.scard-author {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  align-items: start;
}
.ucard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 18px 14px 14px;
  text-decoration: none;
  transition: border-color 0.14s ease, transform 0.14s ease;
}
.ucard:hover {
  border-color: var(--border2);
  transform: translateY(-1px);
}
.ucard-ava {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 2px solid var(--s2);
}
.ucard-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ucard-ava-init {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
.ucard-name {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
}
.ucard-name .verified-badge {
  margin-left: 3px;
  vertical-align: 0;
  align-self: center;
}
.ucard-display {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.ucard-handle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ucard-bio {
  font-size: 11px;
  color: var(--dim);
  margin-top: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}
.ucard-stats {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 10px;
  color: var(--dim);
}
.ucard-stats strong {
  color: var(--text);
  font-weight: 700;
}

.feed-empty-cta {
  text-align: center;
  padding: 48px 24px;
}
.feed-empty-cta .empty-icon {
  margin-bottom: 12px;
  opacity: 0.25;
}

.dm-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  height: calc(100vh - 180px);
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
}
.dm-sidebar {
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.dm-thread {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.dm-thread-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dm-msg-wrap {
  display: flex;
  flex-direction: column;
}
.dm-msg-wrap[data-mine="1"] { align-items: flex-end; }
.dm-msg-wrap[data-mine="0"] { align-items: flex-start; }
.dm-msg {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: var(--r2);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.dm-msg.mine {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}
.dm-msg.theirs {
  background: var(--s2);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.dm-msg-time {
  font-size: 10px;
  opacity: 0.55;
  margin-top: 3px;
}
.dm-compose {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  background: var(--s1);
}
.dm-compose input {
  flex: 1;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.dm-compose input:focus {
  border-color: var(--accent2);
}
.dm-inbox-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.12s ease;
}
.dm-inbox-item:hover {
  background: var(--s2);
}
.dm-inbox-item.unread {
  background: rgba(123, 94, 167, 0.07);
}
.dm-inbox-snippet {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.pl-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.14s ease;
}
.pl-card:hover {
  border-color: var(--border2);
}
.pl-thumb {
  aspect-ratio: 16/9;
  background: var(--s2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.pl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pl-count-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
}
.pl-body {
  padding: 8px 10px;
}
.pl-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.player-speed {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  padding: 2px 5px;
  cursor: pointer;
  min-width: 34px;
  text-align: center;
  transition: background-color 0.12s ease;
}
.player-speed:hover {
  background: rgba(255, 255, 255, 0.1);
}
.player-loop {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 5px;
  transition: color 0.12s ease;
}
.player-loop.active {
  color: var(--accent2);
}

.theatre-mode .watch-layout {
  grid-template-columns: 1fr;
}
.theatre-mode .related-sidebar {
  display: none;
}
.theatre-mode .main {
  padding-top: 0;
}
.theatre-mode #playerWrap {
  width: 100%;
  height: 70vh;
  max-height: none;
  border-radius: 0;
  box-shadow: 0 2px 48px rgba(0, 0, 0, 0.85);
}

#playerWrap {
  transition: border-radius 0.22s ease;
}

.player-theatre.active svg {
  stroke: var(--accent2, #c084fc);
}

.theatre-overlay {
  display: none;
}
.player-theatre {
  color: rgba(255, 255, 255, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  transition: color 0.12s ease;
}

.upload-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 580px) {
  .upload-fields-grid {
    grid-template-columns: 1fr;
  }
  .nav-user { display: none; }
}

@media (hover: none) and (pointer: coarse) {
  .player-vol-wrap {
    display: none;
  }
  .player-theatre {
    display: none;
  }
  #playerPip {
    display: none !important;
  }
   .nav-user { display: none; }

}
@media (max-width: 600px) {
  
  .dm-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .dm-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 220px;
  }
  .dm-thread {
    min-height: 400px;
  }
  
  .dm-layout.has-thread .dm-sidebar { display: none; }
  .dm-layout.has-thread .dm-thread  { min-height: calc(100dvh - 120px); height: calc(100dvh - 120px); }
  .dm-layout:not(.has-thread) .dm-thread { display: none; }
  .dm-layout:not(.has-thread) .dm-empty  { display: none; }
  
  .toast-container {
    right: 10px;
    left: 10px;
    bottom: 10px;
    align-items: stretch;
  }
  .toast {
    min-width: 0;
    text-align: center;
  }
  
  .nav-search {
    max-width: 110px;
  }
  
  .form-card {
    padding: 20px 14px;
  }
  
  .p-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .nav-user { display: none; }
}
@media (max-width: 640px) {
  
  .nav-hamburger { display: flex; }
  .nav-hamburger-guest { margin-left: auto; }
  .nav-ham-only { display: flex; }
  .nav-search {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin: 0 6px 0 0;
  }
  .nav-logo {
    flex-shrink: 0;
    margin-right: 4px;
  }
  .page-search .search-query-group {
    display: none;
  }
  .nav-mobile-quick { display:flex;align-items:center;gap:4px;margin-left:0; }
  .nav-links {
    display: none;
    position: fixed;
    top: 52px;
    
    left: 0 !important;
    right: 0 !important;
    width: 100vw;
    margin-left: 0 !important;
    background: var(--s1);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
    z-index: 499;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    box-sizing: border-box;
  }
  .nav-links.open { display: flex; }
  .nav-links.open .nav-ham-user-row,
  .nav-links.open .nav-auth-row {
    display: flex !important;
  }
  .nav-link {
    padding: 11px 18px;
    font-size: 14px;
    border-radius: 0;
    border-left: 3px solid transparent;
  }
  .nav-link.active {
    border-left-color: var(--accent2);
    background: var(--s2);
    color: var(--text);
  }
  .nav-link:hover { background: var(--s2); border-left-color: var(--border2); }
  .nav-icon-link { display: none; }
  .nav-btn {
    margin: 4px 14px;
    text-align: center;
    justify-content: center;
    display: block;
    box-sizing: border-box;
  }
  .nav-auth-row {
    padding: 6px 14px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border2, #3a3a4e);
    margin-top: 6px;
  }
  .nav-auth-row .nav-btn {
    flex: 1;
    margin: 0;
    min-width: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }
  .nav-user { visibility: hidden; }
  .nav-username { display: inline; }
  .nav-bell { padding: 11px 18px; width: 100%; text-align: left; border-radius: 0; justify-content: flex-start; border-left: 3px solid transparent; }
  
  .nav-mobile-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 4px 8px;
    gap: 0;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }
  .nav-user { display: none; }
}
@media (max-width: 480px) {
    .nav-user { visibility: hidden; }

  .container {
    padding: 0 10px;
  }
  .shorts-upload-fab 
  {
    visibility: hidden;
  }
  
  .nav-link {
    padding: 5px 7px;
    font-size: 12px;
  }
  
  .watch-title-row {
    flex-wrap: wrap;
  }
  
  .player-speed {
    display: none;
  }
  
  .upload-zone {
    padding: 32px 16px;
  }
  
  .hero {
    padding: 40px 0 30px;
  }
  
  .hero-stats {
    gap: 18px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .nav-user { display: none; }
}
.player-theatre:hover {
  color: #fff;
}

.player-wrap {
  max-width: 100%;
  width: 100%;
}

.watch-layout {
  max-width: 100%;
  min-width: 0;
}

.page-wrap {
  overflow-x: hidden;
  max-width: 100vw;
}

.nav-ham-user-row {
  display: none;
  align-items: center;
  padding: 8px 14px;
  gap: 8px;
  border-top: 1px solid var(--border2, #3a3a4e);
  margin-top: 6px;
}
.nav-ham-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.nav-ham-ava {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.nav-ham-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-ham-signout {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color var(--t);
}
.nav-ham-signout:hover {
  color: var(--text);
}
@media (max-width: 640px) {
  
  .notif-panel { margin-right: -25px; }
}

@media (hover: none) and (pointer: coarse) {
  .vcard.touch-hover .vcard-play-btn {
    opacity: 1;
  }
  .vcard:active .vcard-play-btn {
    opacity: 1;
  }
}

.watch-layout > div,
.watch-info,
.video-detail-wrap,
.action-bar,
.comments-section {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.comment-input,
.comment-input-wrap,
.comment-input-area {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.comment-input {
  width: 100%;
}

.comment-text,
.video-desc {
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.watch-action-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.watch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.watch-tags-meta {
  margin-left: auto;
  flex-shrink: 0;
  margin-top: 0;
}

.watch-tags-mobile {
  display: none;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .watch-tags-meta { display: none; }
  .watch-tags-mobile { display: flex; }
}

.watch-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  z-index: 200;
  min-width: 160px;
  overflow: hidden;
  padding: 4px 0;
}
.watch-more-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background .12s;
}
.watch-more-item:hover { background: var(--s3); }

@media (max-width: 640px) {
  
  .watch-meta {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    align-items: center;
  }
  .watch-meta::-webkit-scrollbar { display: none; }
  .watch-author { align-items: center; flex-shrink: 0; }
  
  .watch-more-menu {
    right: 0;
    left: auto;
    top: auto;
    bottom: calc(100% + 6px);
  }
}

@media (max-width: 420px) {
  
  .watch-title-row {
    flex-wrap: nowrap;
    gap: 6px;
    align-items: flex-start;
  }
  .video-watch-title {
    flex: 1;
    min-width: 0;
  }
  
  .vote-btn {
    padding: 4px 7px;
    font-size: 10px;
    flex-shrink: 1;
  }
  
  .player-vol-slider {
    display: none;
  }
  
  .player-loop {
    display: none;
  }
  
  .player-theatre {
    display: none;
  }
  
  .comment-actions {
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .tags {
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  
  .watch-layout,
  .watch-info,
  .watch-title-row,
  .watch-meta,
  .action-bar,
  .comments-section,
  .comment-input-wrap,
  .comment-body {
    min-width: 0;
  }
  
  input, textarea, select {
    max-width: 100%;
    box-sizing: border-box;
  }
}

.verified-badge {
  display: inline-block;
  vertical-align: -3px;
  margin-left: 3px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

.vcard-meta-row .verified-badge {
  align-self: center;
  vertical-align: 0;
  margin-left: -1px;
  margin-bottom: -1px;
}

.p-name .verified-badge {
  vertical-align: -4px;
  margin-left: 1px;
  margin-bottom: 2px;
}
.vcard-stats-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.watch-author .verified-badge {
  display: inline-flex;
  align-self: center;
  margin-left: -4px;
  margin-bottom: -3px;
  vertical-align: 0;
}

.comment-header .verified-badge {
  vertical-align: -2px;
  margin-left: -3px;
  margin-bottom: -2px;
}

.p-up-next {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px 16px;
  margin-bottom: 18px;
}
.p-up-next-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent2);
  font-weight: 700;
  margin-bottom: 10px;
}
.p-up-next-card {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  border-radius: 7px;
  transition: background 0.12s;
  padding: 2px;
  margin: -2px;
}
.p-up-next-card:hover { background: rgba(255,255,255,0.04); }
.p-up-next-thumb {
  position: relative;
  width: 130px;
  min-width: 130px;
  aspect-ratio: 16/9;
  background: var(--s2);
  border-radius: 6px;
  overflow: hidden;
}
.p-up-next-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-up-next-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.15s;
  border-radius: 6px;
}
.p-up-next-card:hover .p-up-next-play { opacity: 1; }
.p-up-next-info { flex: 1; min-width: 0; }
.p-up-next-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 5px;
  color: var(--text);
}
.p-up-next-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.p-up-next-cat {
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 500;
  text-transform: capitalize;
}

.pinned-group {
  border-left: 2px solid var(--accent2);
  padding-left: 10px;
  margin-left: 0;
  margin-bottom: 4px;
  text-align: left;
}
.pinned-group .comment,
.pinned-group .comment-header,
.pinned-group .comment-body,
.pinned-group .comment-text,
.pinned-group .comment-footer {
  text-align: left;
}
.pinned-group .comment.is-reply {
  margin-left: 14px;
  padding-left: 0;
  border-left: none;
}

.comment-edit-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  opacity: .75;
  transition: opacity .12s, color .12s, filter .12s;
}
.comment-edit-icon-btn[disabled] { opacity: .35; cursor: default; }
.comment-edit-icon-btn.is-loading { opacity: .5; }
.comment-edit-icon-btn:hover:not([disabled]) { opacity: 1; }
.comment-edit-icon-btn--save   { color: #4ade80; }
.comment-edit-icon-btn--cancel { color: #f87171; }

.comment-action-btn.admin-delete-btn {
  color: #f87171;
  font-weight: 600;
}
.comment-action-btn.admin-delete-btn:hover {
  color: #ef4444;
  text-decoration: underline;
}

.np-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.np-toggle:hover { border-color: var(--border2); }
.np-toggle.np-toggle-on {
  border-color: rgba(83, 88, 252, .55);
  background: linear-gradient(135deg, rgba(53, 59, 247, .10), rgba(83, 88, 252, .04) 60%, var(--s2));
  box-shadow: 0 0 0 1px rgba(83, 88, 252, .18) inset, 0 6px 22px -10px rgba(53, 59, 247, .55);
}
.np-toggle-track {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 22px;
  background: rgba(255, 255, 255, .1);
  border-radius: 999px;
  transition: background .18s ease;
}
.np-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  transition: transform .2s cubic-bezier(.4, 1.4, .55, 1);
}
.np-toggle.np-toggle-on .np-toggle-track {
  background: linear-gradient(135deg, var(--accent3), var(--accent4));
}
.np-toggle.np-toggle-on .np-toggle-thumb { transform: translateX(16px); }
.np-toggle-text { flex: 1; }

.np-vis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 420px) {
  .np-vis-grid { grid-template-columns: 1fr; }
}
.np-vis-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 12px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, transform .14s ease, box-shadow .14s ease;
  isolation: isolate;
  overflow: hidden;
}
.np-vis-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(135deg, rgba(53, 59, 247, .14), rgba(192, 132, 252, .06));
  transition: opacity .18s ease;
}
.np-vis-card:hover { border-color: var(--border2); transform: translateY(-1px); }
.np-vis-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.np-vis-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .82);
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.np-vis-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.np-vis-card-desc {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}
.np-vis-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background .14s ease, color .14s ease, border-color .14s ease, transform .14s ease;
}
.np-vis-card.is-selected {
  border-color: rgba(83, 88, 252, .55);
  box-shadow: 0 0 0 1px rgba(83, 88, 252, .35) inset, 0 10px 30px -14px rgba(53, 59, 247, .55);
}
.np-vis-card.is-selected::before { opacity: 1; }
.np-vis-card.is-selected .np-vis-card-icon {
  background: linear-gradient(135deg, var(--accent3), var(--accent4));
  border-color: transparent;
  color: #fff;
}
.np-vis-card.is-selected .np-vis-card-check {
  background: linear-gradient(135deg, var(--accent3), var(--accent4));
  border-color: transparent;
  color: #fff;
  transform: scale(1.05);
}

.playlist-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #1c1c25;
  border: 1px solid #2b2b38;
  border-radius: var(--r2);
  box-shadow: 0 8px 24px rgba(0,0,0,.7);
  z-index: 500;
  overflow: hidden;
}
.playlist-dd-scroll {
  max-height: 200px; 
  overflow-y: auto;
}
.playlist-dd-item,
.playlist-dd-create {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background .12s;
}
.playlist-dd-item:hover,
.playlist-dd-create:hover { background: var(--s2); }
.playlist-dd-item small { color: var(--dim); font-size: 11px; margin-left: auto; }
.playlist-dd-empty { color: var(--muted); font-size: 12px; }
.playlist-dd-create {
  border-top: 1px solid var(--border);
  color: var(--accent2);
  font-weight: 600;
}

.profile-playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.profile-playlist-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  height: 68px;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.profile-playlist-card:hover {
  border-color: var(--accent2);
  background: var(--s2);
}
.profile-playlist-icon {
  width: 36px; height: 36px;
  background: var(--s2);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}
.profile-playlist-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.profile-playlist-title {
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-playlist-meta {
  font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
  margin-top: 2px;
}
.profile-playlist-private {
  background: rgba(255,193,7,.15); color: #f5a623;
  border-radius: 3px; padding: 1px 5px; font-size: 10px; font-weight: 600;
}

.search-filter-toggle {
  position: relative;
  display: flex; align-items: center; gap: 5px;
}
.search-filter-toggle.active { color: var(--accent2); }
.filter-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 5px; height: 5px;
  background: var(--accent2);
  border-radius: 50%;
}
.search-filters-panel {
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
}
.search-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.search-filter-group { display: flex; flex-direction: column; gap: 5px; }
.search-filter-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted);
}
.form-select--sm,
.form-input--sm {
  font-size: 12px;
  padding: 6px 10px;
  height: 32px;
}

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 9990;
}
.modal-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}
.modal-title {
  font-size: 16px; font-weight: 700; margin-bottom: 4px;
}

.settings-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 28px 16px 60px;
}
.settings-title {
  font-size: 22px; font-weight: 800; margin: 0 0 6px;
}
.settings-sub {
  font-size: 13px; color: var(--muted); margin: 0 0 28px;
}

.stripe-card-el {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px;
  transition: border-color .15s;
}
.stripe-card-el:focus-within { border-color: var(--accent2); }

.user-section-card {
  background: linear-gradient(180deg, var(--s2) 0%, var(--s1) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 24px 0;
}
.user-section-hdr {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.user-section-title {
  font-size: 15px; font-weight: 700;
  background: linear-gradient(120deg, #fff 0%, #c5c0ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.user-section-meta { color: var(--muted); font-weight: 400; font-size: 13px; }

.user-section-toggle {
  background: var(--s1);
  border: 1px solid var(--border);
  padding: 12px 14px;
  margin: 16px 0 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  font-family: inherit;
  border-radius: 10px;
  transition: border-color .15s, background .15s;
}
.user-section-toggle:hover {
  border-color: var(--accent2);
  background: var(--s2);
}
.user-section-toggle .toggle-arrow {
  font-size: 10px; color: var(--accent2);
  display: inline-block;
  transition: transform .15s;
}
.user-section-toggle[aria-expanded="true"] .toggle-arrow { transform: rotate(0deg); }

.timeline-filters {
  display: inline-flex; gap: 4px; flex-wrap: wrap; margin-left: auto;
}
.timeline-filter {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px; font-weight: 600;
  letter-spacing: .4px; text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .12s, border-color .12s, background .12s;
}
.timeline-filter:hover { color: var(--text); border-color: var(--border2); }
.timeline-filter.active {
  color: #fff;
  border-color: var(--accent2);
  background: linear-gradient(120deg, rgba(123,94,167,.25), rgba(53,59,247,.25));
}

.timeline-list {
  list-style: none; margin: 0; padding: 0;
  position: relative;
}
.timeline-list::before {
  content: ''; position: absolute;
  left: 11px; top: 6px; bottom: 6px;
  width: 1px; background: var(--border);
}
.timeline-item {
  position: relative;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0 10px 0;
}
.timeline-icon {
  position: relative;
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--s3);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  z-index: 1;
}
.timeline-upload       .timeline-icon { color: var(--accent2); border-color: rgba(123,94,167,.35); background: rgba(123,94,167,.12); }
.timeline-comment      .timeline-icon { color: var(--blue);    border-color: rgba(74,144,217,.35); background: rgba(74,144,217,.12); }
.timeline-video_like   .timeline-icon { color: #f87171;        border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.10); }
.timeline-comment_like .timeline-icon { color: #f87171;        border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.10); }
.timeline-report       .timeline-icon { color: var(--orange);  border-color: rgba(224,128,48,.35); background: rgba(224,128,48,.12); }
.timeline-body { flex: 1; min-width: 0; }
.timeline-meta {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 12px;
}
.timeline-label { font-weight: 600; color: var(--text); }
.timeline-time  { color: var(--muted); font-size: 11px; }
.timeline-text {
  font-size: 12px; line-height: 1.5;
  color: var(--text);
  margin-top: 3px; word-break: break-word;
}
.timeline-quote {
  border-left: 2px solid var(--border2);
  padding-left: 8px; color: var(--muted);
  font-style: italic;
}
.timeline-video {
  font-size: 11px; color: var(--muted); margin-top: 3px;
}
.timeline-video a { color: var(--accent2); text-decoration: none; }
.timeline-video a:hover { text-decoration: underline; }

.audit-filter-form {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: end;
  background: linear-gradient(180deg, var(--s2), var(--s1));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.audit-filter-field { display: flex; flex-direction: column; gap: 4px; }
.audit-filter-field label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted); font-weight: 600;
}
.audit-filter-field select,
.audit-filter-field input[type="date"] {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--text);
  outline: none;
  min-width: 130px;
}
.audit-filter-field input[type="date"] { color-scheme: dark; }
.audit-filter-field select:focus,
.audit-filter-field input[type="date"]:focus { border-color: var(--accent2); }
.audit-filter-actions { display: flex; gap: 6px; }
.audit-action-pill {
  font-family: monospace;
  font-size: 11px;
  background: var(--s2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--text);
}
.audit-row-reverted { opacity: .55; }
.audit-row-reverted .audit-action-pill { text-decoration: line-through; }

.admin-bulk-bar {
  position: sticky;
  top: 8px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(53,59,247,.18), rgba(53,59,247,.08));
  border: 1px solid rgba(123,94,167,.45);
  border-radius: 999px;
  font-size: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}
.admin-bulk-bar[hidden] { display: none; }
.admin-bulk-bar > span { font-weight: 600; color: var(--text); padding-right: 4px; }

.admin-totp-modal {
  position: fixed; inset: 0;
  background: rgba(8, 8, 14, .72);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.admin-totp-modal[hidden] { display: none; }
.admin-totp-modal-card {
  width: 100%; max-width: 380px;
  background: linear-gradient(180deg, var(--s2) 0%, var(--s1) 100%);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 22px 22px 18px;
  box-shadow: 0 28px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.admin-totp-modal-title {
  font-size: 17px; font-weight: 700; letter-spacing: -.2px;
  margin: 0 0 4px;
  background: linear-gradient(120deg, #fff 0%, #c5c0ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.admin-totp-modal-sub {
  font-size: 12.5px; color: var(--muted);
  margin: 0 0 16px; line-height: 1.4;
}
.admin-totp-modal-input {
  width: 100%; box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 22px; letter-spacing: .35em; text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.admin-totp-modal-input:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 4px rgba(53, 59, 247, .12);
}
.admin-totp-modal-err {
  font-size: 12px; color: var(--red);
  margin: 8px 2px 0;
}
.admin-totp-modal-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 14px;
}

/* ── Verified-only toggle (search bar pill) ────────────────────────────── */
.verified-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--s1);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.verified-toggle:hover { border-color: var(--border2); color: var(--text); }
.verified-toggle input[type="checkbox"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
  margin: 0;
}
.verified-toggle-icon {
  flex-shrink: 0;
  color: currentColor;
}
/* Off state: thin outlined ring + checkmark */
.verified-toggle .vt-ring  { stroke: currentColor; fill: none; }
.verified-toggle .vt-fill  { fill: none; }
.verified-toggle .vt-check { stroke: currentColor; fill: none; }
/* On state: filled badge with white check (the familiar verified look) */
.verified-toggle.is-on {
  background: rgba(53, 59, 247, .12);
  border-color: var(--accent2);
  color: var(--accent2);
}
.verified-toggle.is-on .vt-ring  { stroke: none; }
.verified-toggle.is-on .vt-fill  { fill: var(--accent2); }
.verified-toggle.is-on .vt-check { stroke: #fff; }
/* Outline only on keyboard focus, not on click — prevents the "double
   highlight" on tap (active border + browser focus ring stacking). */
.verified-toggle:has(:focus-visible) {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

/* ── User search grid: 2 cards per row on mobile ───────────────────────── */
@media (max-width: 640px) {
  .user-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ucard {
    padding: 14px 8px 12px;
  }
  .ucard-ava {
    width: 56px;
    height: 56px;
    margin-bottom: 8px;
  }
  .ucard-ava-init { font-size: 22px; }
  .ucard-display { font-size: 12px; max-width: 100%; }
  .ucard-handle  { font-size: 10px; }
  .ucard-bio     { font-size: 10px; margin-top: 6px; -webkit-line-clamp: 2; line-clamp: 2; }
  .ucard-stats   { gap: 8px; margin-top: 8px; font-size: 9px; }
  .verified-toggle {
    height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }
}

/* Shorts grid: column counts locked to divisors common to both per-page
   sizes (24 for search shorts, 36 for profile shorts) = {1,2,3,4,6,12}. */
[data-density="compact"] .shorts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
[data-density="comfortable"] .shorts-grid--profile,
[data-density=""]            .shorts-grid--profile {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
[data-density="spacious"] .shorts-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 600px) {
  [data-density="compact"] .shorts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  [data-density="comfortable"] .shorts-grid--profile,
  [data-density=""]            .shorts-grid--profile {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  [data-density="spacious"] .shorts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  [data-density="compact"] .shorts-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  [data-density="comfortable"] .shorts-grid--profile,
  [data-density=""]            .shorts-grid--profile {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  [data-density="spacious"] .shorts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .shorts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  [data-density="compact"] .shorts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  [data-density="spacious"] .shorts-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  /* Search-only: when the spacious 1-col layout kicks in below 640px on
     desktop (browser narrowed), the full-width 9/16 card is taller than the
     viewport. Cap the card width so it's less vertical and the stats
     overlay stays on screen. Scoped to .search-page so profile shorts and
     the rest of the site aren't affected. width: 100% gives the grid item
     a definite size before the cap so margin-inline: auto centers cleanly
     instead of collapsing through .scard's flex intrinsic sizing. */
  [data-density="spacious"] .search-page .shorts-grid > a {
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
  }
  .scard-stats { gap: 6px; font-size: 10px; }
}

/* Profile shorts/liked/history grids: on mobile, pin to fixed column counts
   (M=2, S=3, L=1). On desktop, fall through to the regular .shorts-grid
   auto-fill behavior so cards don't balloon to half the viewport. */
@media (max-width: 640px) {
  .shorts-grid--profile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-density="compact"] .shorts-grid--profile {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  [data-density="spacious"] .shorts-grid--profile {
    grid-template-columns: minmax(0, 1fr);
  }
}

