:root {
  --bg: #050505;
  --bg-elevated: #111111;
  --bg-soft: #181818;
  --accent: #e5e5e5;
  --accent-soft: #737373;
  --accent-strong: #ffffff;
  --text: #f5f5f5;
  --text-soft: #a3a3a3;
  --border-subtle: #262626;
  --pill-bg: #171717;
  --danger: #f97373;
  --radius-lg: 0;
  --radius-md: 0;
  --radius-pill: 0;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.9);
  --shadow-subtle: 0 12px 30px rgba(0, 0, 0, 0.7);
}

* {
   box-sizing: border-box;
 }
 
 body {
   margin: 0;
   min-height: 100vh;
   font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text',
     'Segoe UI', sans-serif;
  background: #020202;
   color: var(--text);
 }
 
 a {
   color: inherit;
   text-decoration: none;
 }
 
 button {
   font-family: inherit;
 }
 
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* Zona central más ancha para grids de video y página de video */
.page:has(.video-layout),
.page:has(.video-grid) {
  max-width: 1520px;
  padding: 32px 24px 64px;
}
 
 #site-header-placeholder {
   margin: 0;
   padding: 0;
   width: 100%;
 }

 .site-header {
   position: sticky;
   top: 0;
   z-index: 20;
   display: grid;
   grid-template-columns: 1fr auto 1fr;
   align-items: stretch;
   min-height: 60px;
   padding: 0;
   width: 100%;
   max-width: 100%;
   margin: 0;
   box-sizing: border-box;
   backdrop-filter: blur(14px);
   background: rgba(10, 10, 10, 0.98);
   border-radius: 0;
   border-bottom: 1px solid var(--border-subtle);
 }

.news-ticker-wrapper {
  position: sticky;
  top: 60px;
  z-index: 19;
  width: 100%;
}

.news-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 28px;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9fafb;
  text-decoration: none;
  background:
    linear-gradient(120deg, #020617 0%, #111827 40%, #020617 80%) padding-box,
    linear-gradient(90deg, rgba(148, 163, 184, 0.35), rgba(248, 250, 252, 0.65), rgba(148, 163, 184, 0.35)) border-box;
  border-top: 1px solid transparent;
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.news-ticker-text {
  display: inline-block;
  font-weight: 700;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  white-space: nowrap;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
 
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  justify-self: start;
}

.logo-link {
  color: inherit;
  text-decoration: none;
}
 
 .logo-mark {
   width: 32px;
   height: 32px;
   border-radius: 0;
  background: #171717;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 14px;
   font-weight: 600;
   letter-spacing: 0.04em;
  color: #fafafa;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
 }
 
 .logo-text {
   display: flex;
   flex-direction: column;
 }
 
 .logo-title {
   font-size: 16px;
   font-weight: 600;
 }
 
 .logo-subtitle {
   font-size: 11px;
   color: var(--text-soft);
 }
 
 .main-nav {
  display: none;
 }
 
 .nav-link {
   padding: 6px 14px;
   border-radius: 0;
   font-size: 13px;
   color: var(--text-soft);
   transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
 }
 
 .nav-link:hover {
  background: #111111;
   color: var(--text);
   transform: translateY(-1px);
 }
 
 .nav-link.active {
  background: #f5f5f5;
  color: #050505;
  box-shadow: none;
 }

.header-spacer {
  flex: 1;
}

.header-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 640px;
  max-width: min(960px, 100vw - 32px);
  justify-self: center;
}

.search-main {
  width: 100%;
  display: flex;
}

.search-main input[type='search'] {
  width: 100%;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: #050505;
  color: var(--text);
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
}

.search-main input[type='search']::placeholder {
  color: var(--text-soft);
}

.search-main-emphasized {
  border-radius: 999px;
  padding: 2px;
  background: radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.25), transparent 55%);
  box-shadow: 0 0 0 1px rgba(82, 82, 91, 0.7), 0 18px 40px rgba(0, 0, 0, 0.9);
}

.search-main-emphasized input[type='search'] {
  border-radius: 999px;
  border: 1px solid rgba(82, 82, 91, 0.9);
  font-size: 14px;
  padding: 10px 16px;
}

.advanced-toggle {
  font-size: 11px;
  text-transform: lowercase;
  color: var(--text-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
}

.advanced-toggle:hover {
  color: var(--text);
}
 
 .nav-actions {
   display: flex;
   align-items: stretch;
   gap: 12px;
   padding: 0;
   justify-self: end;
 }
 
 .nav-actions .btn,
 .nav-actions a.btn {
   height: 100%;
   min-height: 60px;
   padding: 0 16px;
   margin: 0;
   border-radius: 0;
   border: none;
   display: inline-flex;
   align-items: center;
   justify-content: center;
 }

 .nav-actions .btn.ghost,
 .nav-actions a.btn.ghost {
   background: transparent;
   color: var(--text-soft);
 }
 .nav-actions .btn.ghost:hover,
 .nav-actions a.btn.ghost:hover {
   color: var(--text);
   background: rgba(255, 255, 255, 0.06);
 }

 .nav-link-item.nav-active {
   color: var(--text);
   background: rgba(255, 255, 255, 0.08);
 }
 
 .btn {
   border-radius: 0;
   padding: 7px 16px;
   font-size: 13px;
   border: none;
   cursor: pointer;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 6px;
   transition: transform 0.12s ease, box-shadow 0.12s ease,
     background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
 }
 
 .btn.primary {
  background: #f5f5f5;
  color: #050505;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
 }
 
 .btn.primary:hover {
   transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.9);
 }
 
 .btn.ghost {
  background: #050505;
   color: var(--text-soft);
  border: 1px solid var(--border-subtle);
 }
 
.btn.danger {
  border-color: var(--danger);
  color: var(--danger);
  background: transparent;
}

.btn.danger:hover {
  background: rgba(249, 115, 115, 0.12);
  color: #fca5a5;
  border-color: #fca5a5;
}

 .btn.ghost:hover {
   color: var(--text);
  border-color: #404040;
  background: #111111;
 }
 
 .hero {
   display: grid;
   grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
   gap: 32px;
   margin-top: 40px;
   align-items: stretch;
 }
 
 .hero-text h1 {
   font-size: 2.4rem;
   line-height: 1.15;
   margin: 0 0 14px;
   letter-spacing: -0.03em;
 }
 
 .hero-text p {
   margin: 0;
   color: var(--text-soft);
   font-size: 15px;
   max-width: 36rem;
 }
 
 .hero-actions {
   display: flex;
   gap: 10px;
   margin-top: 20px;
 }
 
 .hero-meta {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   margin-top: 18px;
 }

/* Landing hero with big search */
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 56px;
  align-items: center;
  justify-items: center;
}

.landing-hero-text {
  max-width: 720px;
  text-align: center;
}

.landing-hero-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.landing-hero-title {
  margin: 0 0 12px;
  font-size: 2.8rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.landing-hero-subtitle {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--text-soft);
  max-width: 34rem;
}

.landing-hero-search {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-top: 10px;
  justify-content: center;
}

.landing-search-field {
  flex: 0 1 640px;
}

.landing-search-field input[type='search'] {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(82, 82, 91, 0.9);
  background: #050505;
  color: var(--text);
  font-size: 15px;
  outline: none;
}

.landing-search-field input[type='search']::placeholder {
  color: var(--text-soft);
}

.landing-search-button {
  padding-inline: 22px;
  font-size: 14px;
  border-radius: 999px;
}

.landing-hero-preview {
  position: relative;
}
 
 .hero-pill {
   font-size: 11px;
   padding: 6px 10px;
   border-radius: var(--radius-pill);
   border: 1px solid rgba(148, 163, 184, 0.45);
   background: radial-gradient(
     circle at 0 0,
     rgba(56, 189, 248, 0.18),
     transparent 60%
   );
   color: var(--text-soft);
 }
 
 .hero-preview {
   position: relative;
 }
 
 .hero-card {
   position: relative;
   border-radius: 0;
  padding: 14px;
  background: #050505;
  border: 1px solid var(--border-subtle);
   box-shadow: var(--shadow-soft);
   overflow: hidden;
 }
 
 .hero-card-thumb {
   position: relative;
   border-radius: 0;
  height: 180px;
  background: #111111;
  border: 1px solid var(--border-subtle);
   overflow: hidden;
   display: flex;
   align-items: center;
   justify-content: center;
 }
 
 .hero-card-thumb::before {
   content: '';
   position: absolute;
   inset: -20%;
   background-image: linear-gradient(
       120deg,
       rgba(248, 250, 252, 0.07) 10%,
       transparent 40%,
       rgba(248, 250, 252, 0.07) 60%,
       transparent 100%
     ),
     radial-gradient(circle at 10% 0, rgba(96, 165, 250, 0.45), transparent 55%),
     radial-gradient(circle at 90% 100%, rgba(244, 114, 182, 0.45), transparent 55%);
   mix-blend-mode: screen;
   animation: shimmer 18s linear infinite;
 }
 
 .hero-card-body {
   position: relative;
   margin-top: 14px;
   padding: 14px 10px 8px;
 }
 
 .hero-card-label {
   font-size: 11px;
   text-transform: uppercase;
   letter-spacing: 0.14em;
  color: var(--accent-soft);
   margin-bottom: 6px;
 }
 
 .hero-card-body h2 {
   font-size: 1.2rem;
   margin: 0 0 6px;
 }
 
 .hero-card-body p {
   margin: 0;
   font-size: 13px;
   color: var(--text-soft);
 }
 
 .hero-card-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 6px;
   margin-top: 10px;
 }
 
.tag-pill {
  position: relative;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #050505;
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
}

.tag-model-plus-group {
  display: inline-flex;
  gap: 4px;
  margin-right: 4px;
}

.tag-model-plus {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(23, 23, 23, 0.95);
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 1px #000;
}

.tag-model-plus-left,
.tag-model-plus-right {
  transform: none;
  margin: 0;
}

.tag-model-plus .tag-model-symbol {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tag-model-plus .tag-model-role {
  display: none;
}

.tag-model-plus[data-model] {
  color: #e5e5e5;
  border-color: #71717a;
}

/* Avatar de modelo dentro de los tags (acciones) */
.tag-model-avatar-wrap {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  background: #111111;
}

.tag-model-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag-model-plus.male {
  color: #7dd3fc;
  border-color: #0ea5e9;
}

.tag-model-plus.female {
  color: #f9a8d4;
  border-color: #ec4899;
}

.tag-model-plus:hover {
  background: #111827;
}
 
.section {
  margin-top: 44px;
  padding: 20px 18px 22px;
  border-radius: 0;
  background: #050505;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

/* Sin recuadro: todo sobre fondo negro (landing, bookmarks, video page, profile, add-video) */
.section:has(.video-layout),
.section:has(.video-grid),
.section.profile-section,
.section.add-video-section,
.section.models-section,
.section.model-section,
.section.ranking-section {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
 
 .section-alt {
   margin-top: 32px;
  background: #050505;
 }
 
 .section-header {
   display: flex;
   gap: 18px;
   justify-content: space-between;
   align-items: flex-end;
   margin-bottom: 18px;
 }
 
 .section-header h3 {
   margin: 0 0 4px;
   font-size: 1.1rem;
 }
 
 .section-subtitle {
   margin: 0;
   font-size: 13px;
   color: var(--text-soft);
   max-width: 28rem;
 }
 
 .filters {
   display: flex;
   gap: 14px;
 }

.section-search-center {
  max-width: 960px;
  margin-inline: auto;
}

.section-header-centered {
  justify-content: center;
  text-align: center;
}

.section-header-centered .section-subtitle {
  margin-inline: auto;
}

.search-main-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.search-main-centered {
  justify-content: center;
}

.search-advanced-panel {
  width: 100%;
  padding: 14px 16px;
  border-radius: 0;
  background: #050505;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.search-advanced-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.search-advanced-row-secondary {
  margin-top: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: flex-end;
}

.search-advanced-row-single {
  grid-template-columns: minmax(0, 1fr);
}

.search-advanced-row-tags {
  margin-top: 10px;
}

.search-tag-filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.search-tag-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 6px 8px;
  border: 1px solid var(--border-subtle);
  background: #080808;
}

.search-tag-filter-remove {
  border: none;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 4px 0 0;
}

.search-tag-filter-remove:hover {
  color: var(--text);
}

.search-tag-filter-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-right: 4px;
}

.search-tag-filter-role {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-tag-filter-role-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.search-tag-filter-select {
  min-width: 120px;
  max-width: 200px;
  padding: 4px 8px;
  font-size: 11px;
}

.filter-column {
  min-width: 0;
}

.filter-column-small {
  max-width: 200px;
}

.filter-search-input,
.filter-number-input,
.filter-date-input {
  width: 100%;
  padding: 7px 10px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: #050505;
  color: var(--text);
  font-size: 12px;
}

.filter-search-input::placeholder {
  color: var(--text-soft);
}

.filter-inline-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-inline-separator {
  font-size: 11px;
  color: var(--text-soft);
}

.filter-selected-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: #050505;
  font-size: 11px;
  color: var(--text-soft);
}

.filter-pill-remove {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  padding: 0;
  cursor: pointer;
}

.filter-pill-remove:hover {
  color: var(--text);
}

.filter-suggestions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-suggestion-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  color: var(--text-soft);
  cursor: pointer;
}

.filter-suggestion-pill:hover {
  color: var(--text);
  border-color: #404040;
}

.filters-advanced {
  display: none;
}
 
 .filter-group {
   display: flex;
   flex-direction: column;
   gap: 4px;
   font-size: 11px;
   color: var(--text-soft);
 }
 
 .filter-group label {
   text-transform: uppercase;
   letter-spacing: 0.16em;
 }

.participants-section-title {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  color: var(--text-soft);
}

.search-cast-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.search-cast-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn-small {
  padding: 4px 9px;
  font-size: 10px;
}

.search-participants-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 8px;
  align-items: start;
}

.search-participants-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.participant-slot-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.participant-traits-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: flex-end;
  padding: 2px 4px 6px;
  border: 1px solid var(--border-subtle);
  border-top: none;
  background: #070707;
}

.participant-slot-wrap .participant-row + .participant-traits-row {
  margin-top: -1px;
}

.participant-trait {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.participant-trait-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.participant-trait-select {
  min-width: 88px;
  max-width: 140px;
  padding: 4px 6px;
  font-size: 10px;
}

.participant-row {
  display: grid;
  grid-template-columns: minmax(40px, 24%) minmax(100px, 1fr) 22px;
  gap: 6px 8px;
  align-items: center;
  padding: 5px 6px;
  border: 1px solid var(--border-subtle);
  background: #050505;
}

.participant-role-wrap {
  position: relative;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

button.participant-gender-badge {
  font: inherit;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 5px;
  border: 1px solid var(--border-subtle);
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  background: #0c0c0c;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

button.participant-gender-badge:hover {
  border-color: #404040;
  color: var(--text);
}

.participant-gender-badge.female {
  border-color: #5c3048;
  color: #e8b8cc;
}

.participant-gender-badge.male {
  border-color: #304a5c;
  color: #b8d4e8;
}

.participant-model-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 3px);
  min-width: min(220px, 55vw);
  width: max(100%, 200px);
  max-width: min(320px, 92vw);
  z-index: 40;
  border: 1px solid var(--border-subtle);
  background: #0a0a0a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.participant-model-picker .participant-model-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  background: #111;
  color: var(--text);
  font-size: 11px;
}

.participant-model-picker .participant-model-search-input::placeholder {
  color: var(--text-soft);
}

.participant-model-search-results {
  max-height: 220px;
  overflow-y: auto;
}

.participant-model-search-empty {
  margin: 0;
  padding: 10px 8px;
  font-size: 11px;
  color: var(--text-soft);
}

.participant-age-range {
  position: relative;
  min-width: 0;
  width: 100%;
  height: 36px;
  padding-top: 2px;
}

.participant-age-range::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 13px;
  height: 4px;
  background: var(--border-subtle);
  border-radius: 1px;
  pointer-events: none;
  z-index: 0;
}

.participant-age-range-min {
  z-index: 1;
}

.participant-age-range-max {
  z-index: 2;
}

.participant-age-range input[type='range'] {
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: inherit;
}

.participant-age-range input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border: none;
}

.participant-age-range input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border-radius: 1px;
  background: var(--text-soft);
  border: 1px solid var(--border-subtle);
  cursor: grab;
  box-sizing: border-box;
}

.participant-age-range input[type='range']::-moz-range-track {
  height: 4px;
  background: transparent;
  border: none;
}

.participant-age-range input[type='range']::-moz-range-thumb {
  pointer-events: auto;
  width: 11px;
  height: 11px;
  border-radius: 1px;
  background: var(--text-soft);
  border: 1px solid var(--border-subtle);
  cursor: grab;
}

.participant-age-range-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  font-size: 9px;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.participant-model-menu[hidden] {
  display: none !important;
}

.participant-model-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 5px 8px;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-soft);
  font-size: 11px;
  cursor: pointer;
}

.participant-model-menu-item:last-child {
  border-bottom: none;
}

.participant-model-menu-item:hover {
  background: #141414;
  color: var(--text);
}

.participant-row .filter-number-input {
  min-width: 0;
  padding: 4px 5px;
  font-size: 10px;
}

.participant-remove {
  border: none;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 2px 0;
  justify-self: center;
}

.participant-remove:hover {
  color: var(--text);
}

@media (max-width: 720px) {
  .search-participants-grid {
    grid-template-columns: 1fr;
  }
}
 
 select {
  background: #050505;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
   color: var(--text);
   padding: 6px 26px 6px 10px;
   font-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
 }
 
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.loading-msg {
  grid-column: 1 / -1;
  color: var(--text-soft);
  font-size: 14px;
  margin: 0;
}
 
.video-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

 .video-card {
   border-radius: 0;
   background: transparent;
   border: none;
   overflow: hidden;
   display: flex;
   flex-direction: column;
   cursor: pointer;
   transition: transform 0.16s ease, opacity 0.18s ease;
 }

 .video-card:hover {
   transform: translateY(-2px);
   opacity: 0.95;
 }

 .video-thumb {
   aspect-ratio: 16 / 9;
   width: 100%;
   height: auto;
   background: #111111;
   position: relative;
   overflow: hidden;
   order: 1;
 }

 .video-thumb-img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
 }

 .video-thumb-preview {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   opacity: 0;
   transition: opacity 0.2s ease;
   pointer-events: none;
 }

 .video-card:hover .video-thumb-preview {
   opacity: 1;
 }

 .video-card-stats .video-card-likes-pct {
   display: inline-flex;
   align-items: center;
   gap: 4px;
 }

 .video-card-stats .video-card-likes-pct svg {
   width: 12px;
   height: 12px;
   flex-shrink: 0;
   opacity: 0.85;
 }

 .video-thumb.placeholder::before,
 .video-thumb.placeholder::after {
   content: '';
   position: absolute;
   inset: 18% 18%;
   border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: #0a0a0a;
  opacity: 1;
 }
 
 .video-thumb.placeholder::after {
   inset: 28% 25%;
   border-radius: 0;
  background: #171717;
  background-repeat: no-repeat;
  border: none;
  opacity: 1;
 }

 .video-body {
   padding: 6px 0 0;
   order: 2;
 }

 .video-card-stats {
   display: flex;
   align-items: center;
   gap: 12px;
   margin: 0 0 4px;
   font-size: 11px;
   color: var(--text-soft);
 }

 .video-card-stats .video-card-views {
   display: inline-flex;
   align-items: center;
   gap: 4px;
 }

 .video-card-stats .video-card-views svg {
   width: 14px;
   height: 14px;
   flex-shrink: 0;
   opacity: 0.85;
 }

 .video-card-stats .video-card-likes-pct {
   color: var(--text-soft);
 }

 .video-title {
   margin: 0;
   font-size: 13px;
 }

 .video-meta {
   margin: 0;
   font-size: 11px;
   color: var(--text-soft);
 }
 
 .video-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 6px;
   margin-top: 8px;
 }

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}

.video-page-actions {
  gap: 12px;
  align-items: flex-end;
  margin-left: auto;
  margin-top: 8px;
}

.action-group-like-dislike-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
}

.action-group-like-dislike {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-subtle);
}

.action-group-like-dislike .action-btn {
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--border-subtle);
}

.action-group-like-dislike .action-btn:last-child {
  border-right: none;
}

.like-dislike-bar {
  display: flex;
  width: 100%;
  height: 3px;
  min-width: 80px;
  background: var(--border-subtle);
  overflow: hidden;
}

.like-dislike-bar-green {
  height: 100%;
  background: #22c55e;
  transition: width 0.2s ease;
}

.like-dislike-bar-red {
  height: 100%;
  background: #ef4444;
  transition: width 0.2s ease;
}

.action-btn {
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-soft);
  font-size: 11px;
  padding: 3px 9px;
  cursor: pointer;
}

.action-btn .count {
  margin-left: 4px;
}

.action-btn.active {
  background: #111111;
  color: var(--text);
}

.action-btn.like.liked {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.5);
}

.action-btn.like.liked .action-icon-symbol svg {
  stroke: #22c55e;
}

.action-btn.dislike.disliked {
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.5);
}

.action-btn.dislike.disliked .action-icon-symbol svg {
  stroke: #f97316;
}

.action-btn.action-icon.bookmark.active .action-icon-symbol svg {
  fill: currentColor;
  stroke: currentColor;
}

.action-btn.action-icon {
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.action-btn.action-icon .action-icon-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.action-btn.action-icon .action-icon-symbol svg {
  display: block;
  flex-shrink: 0;
}

.action-btn.action-icon .count {
  font-size: 14px;
}

.action-btn.action-icon.bookmark .count {
  display: none;
}

.action-btn.action-icon.bookmark {
  min-width: 52px;
  min-height: 46px;
  box-sizing: border-box;
}

.views-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-soft);
}

.tag-label {
  font-size: 14px;
}

.tag-vote-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 4px;
}

.tag-vote {
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-soft);
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
  min-width: 22px;
  line-height: 1.2;
  box-sizing: border-box;
}

.tag-vote:hover {
  color: var(--text);
}

.tag-vote.tag-vote-voted {
  color: #7dd3fc;
}

.tag-pill-with-bar.tag-pill-voted-up,
.tag-pill-with-bar.tag-pill-voted-down {
  border-color: #7dd3fc;
}

/* El recuadro del tag es la barra: el fondo del pill muestra la proporción de votos */
.tag-pill-with-bar {
  --tag-fill-pct: 0%;
  display: inline-flex;
  align-items: center;
  min-width: 52px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(to right, rgba(115, 115, 115, 0.35) 0%, rgba(115, 115, 115, 0.35) var(--tag-fill-pct, 0%), #171717 var(--tag-fill-pct, 0%), #171717 100%);
  transition: background 0.2s ease;
}

.tag-pill-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 5px;
}

.tag-vote-bar {
  height: 4px;
  margin-top: 4px;
  border-radius: 0;
  background: #262626;
  overflow: hidden;
}

.tag-vote-bar-fill {
  height: 100%;
  border-radius: 0;
  background: var(--text-soft);
  transition: width 0.2s ease;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 1.5fr);
  gap: 28px;
  align-items: flex-start;
}

.video-player-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-player-shell {
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: #000;
  overflow: hidden;
  padding-bottom: 0;
}

.player-sources-bar {
  margin-top: -16px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.player-sources-hint {
  font-size: 12px;
  color: var(--text-soft);
}

.player-sources-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.player-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  cursor: pointer;
}

.player-source-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: #404040;
}

.player-source-btn.active {
  background: var(--bg-soft);
  color: var(--text);
  border-color: #404040;
}

.player-source-btn:disabled {
  cursor: default;
  opacity: 0.5;
}

.player-source-btn .source-view-count {
  font-size: 11px;
  color: var(--text-soft);
}

.player-source-btn.player-source-add {
  min-width: 36px;
  font-size: 18px;
  line-height: 1;
}

.player-sources-test-wrap {
  margin-top: 0;
  padding: 10px 12px;
  border: none;
  background: transparent;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.player-sources-test-wrap .player-source-panel {
  flex: 1;
  min-width: 200px;
}

.player-sources-wrap {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 0;
  background: rgba(24, 24, 27, 0.85);
  border: 1px dashed rgba(82, 82, 91, 0.8);
}

.player-sources-wrap[data-current-source="torrent"] .player-source-link {
  display: none;
}

.player-sources-wrap[data-current-source="link"] .player-source-torrent {
  display: none;
}

.player-source-panel {
  margin: 0;
}

.player-test-magnet {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 0;
  background: rgba(24, 24, 27, 0.85);
  border: 1px dashed rgba(82, 82, 91, 0.8);
}

.player-test-label {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
}

.player-test-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.player-test-input {
  flex: 1;
  padding: 6px 9px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: #050505;
  color: var(--text);
  font-size: 12px;
}

.player-test-input::placeholder {
  color: var(--text-soft);
}

.player-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.player-loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.player-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent);
  border-radius: 0;
  animation: player-spin 0.9s linear infinite;
}

@keyframes player-spin {
  to { transform: rotate(360deg); }
}

.player-error-text {
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
  max-width: 90%;
}

.player-placeholder-label {
  font-size: 12px;
  color: var(--text-soft);
}

.webtorrent-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.webtor-embed {
  width: 100%;
  min-height: 360px;
  aspect-ratio: 16 / 9;
}

.player-embed-iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.video-primary-meta {
  display: flex;
  flex-direction: column;
}

.video-primary-meta h1 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.video-views-row {
  margin-top: 4px;
}

.tag-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.tag-add-btn:hover {
  color: var(--text);
  border-color: #404040;
}

.video-tags-below-title {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-actors-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.video-actors-label {
  font-size: 12px;
  color: var(--text-soft);
  flex-shrink: 0;
}

.video-actors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.video-actors-below-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actor-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--text-soft);
  border: 1px solid var(--border-subtle);
}

.actor-pill-with-avatar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 2px 4px;
}

.actor-pill-avatar-wrap {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  background: #111111;
}

.actor-pill-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.actor-pill-name {
  font-size: 11px;
  white-space: nowrap;
}

.actor-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.actor-add-btn:hover {
  color: var(--text);
  border-color: #404040;
}

/* Actor picker modal */
.actor-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.actor-modal-overlay.is-open {
  display: flex;
}

.actor-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  padding: 24px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
}

.actor-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.actor-modal-close:hover {
  color: var(--text);
}

.actor-modal-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.actor-modal-search {
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: #050505;
  color: var(--text);
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.actor-modal-search::placeholder {
  color: var(--text-soft);
}

.actor-modal-results {
  flex: 1;
  min-height: 120px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.actor-result-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.actor-result-item:hover {
  background: var(--bg-soft);
}

.actor-modal-empty {
  margin: 0;
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-soft);
}

.actor-unknown-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.actor-add-new-btn {
  width: 100%;
}

.video-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.meta-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: #050505;
}

.meta-text {
  font-size: 12px;
  color: var(--text-soft);
}

.video-description {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
  outline: none;
}

.video-description.description-collapsed .description-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-description.description-expanded .description-text {
  display: block;
}

.video-description:hover {
  color: var(--text);
}

.video-description:focus-visible {
  outline: 1px solid var(--border-subtle);
}

.video-comments {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.comments-title {
  margin: 0 0 8px;
  font-size: 1rem;
}

.comment-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.comment-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: #050505;
  color: var(--text);
  font-size: 13px;
}

.comment-input::placeholder {
  color: var(--text-soft);
}

.comment-submit {
  padding: 8px 16px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-placeholder {
  color: var(--text-soft);
  font-style: italic;
}

.comment-card {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: #050505;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.comment-author {
  font-size: 12px;
  font-weight: 600;
}

.comment-date {
  font-size: 11px;
  color: var(--text-soft);
}

.comment-body {
  font-size: 13px;
  color: var(--text-soft);
}

.video-side-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edit-video-btn {
  align-self: flex-start;
}

.side-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.side-source {
  font-size: 13px;
  color: var(--text-soft);
  padding: 6px 10px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.side-source:hover {
  color: var(--text);
  border-color: #404040;
}

.side-source.active {
  background: var(--bg-soft);
  color: var(--text);
  border-color: #404040;
}

.side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.side-list li + li {
  margin-top: 4px;
}

.recommended-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-side-column .recommended-grid {
  max-width: 320px;
}

.video-side-column .recommended-title {
  font-size: 13px;
}

.video-side-column .recommended-views {
  font-size: 11px;
}

.recommended-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}

.recommended-card:hover {
  opacity: 0.9;
}

.recommended-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111111;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.recommended-card:hover .video-thumb-preview {
  opacity: 1;
}

.recommended-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recommended-thumb.placeholder {
  background: #0a0a0a;
}

.recommended-title {
  font-size: 13px;
  font-weight: 500;
  margin-top: 6px;
  margin-bottom: 2px;
  line-height: 1.3;
}

.recommended-views {
  font-size: 11px;
  color: var(--text-soft);
}

.recommended-inline-section {
  margin-top: 32px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.recommended-inline-title {
  font-size: 1.1rem;
  margin: 0 0 16px;
  font-weight: 600;
}

.recommended-inline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 320px));
  gap: 20px;
  justify-content: center;
  max-width: 100%;
}

.recommended-inline-grid .recommended-card {
  display: flex;
  flex-direction: column;
}

.recommended-inline-grid .recommended-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111111;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.recommended-inline-grid .recommended-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recommended-inline-grid .recommended-thumb.placeholder {
  background: #0a0a0a;
}

.recommended-inline-grid .recommended-title {
  font-size: 13px;
  font-weight: 500;
  margin-top: 6px;
  margin-bottom: 2px;
  line-height: 1.3;
}

.recommended-inline-grid .recommended-views {
  font-size: 11px;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .recommended-inline-grid {
    grid-template-columns: repeat(2, minmax(0, 320px));
  }
}

@media (max-width: 600px) {
  .recommended-inline-grid {
    grid-template-columns: minmax(0, 320px);
  }
}

.section-columns {
   display: grid;
   grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
   gap: 28px;
 }
 
 .feature-list {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
   flex-direction: column;
   gap: 12px;
 }
 
 .feature-label {
   display: block;
   font-size: 12px;
   font-weight: 600;
   margin-bottom: 2px;
 }
 
 .feature-text {
   font-size: 13px;
   color: var(--text-soft);
 }
 
.site-footer {
  max-width: 1120px;
  margin: 0 auto 24px;
  padding: 12px 24px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  color: var(--text-soft);
  opacity: 0.85;
}

.footer-telegram-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-db-download {
  font-size: 11px;
  color: var(--text-soft);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.footer-db-download:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
}

.footer-telegram svg {
  display: block;
}

.footer-telegram:hover svg {
  opacity: 0.88;
}
 
 @media (max-width: 960px) {
   .site-header {
     gap: 12px;
   }
 
   .main-nav {
     display: none;
   }
 
   .hero {
     grid-template-columns: minmax(0, 1fr);
   }
 
   .hero-preview {
     order: -1;
   }
 
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-advanced-row,
  .search-advanced-row-secondary {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-column-small {
    max-width: none;
  }

  .section-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .models-portraits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .categories-portraits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
 }
 
@media (max-width: 640px) {
  .nav-actions .btn.ghost {
     display: none;
   }
 
   .hero-text h1 {
     font-size: 1.85rem;
   }
 
   .video-grid {
     grid-template-columns: minmax(0, 1fr);
   }
 
   .section-header {
     flex-direction: column;
     align-items: flex-start;
   }
 
   .filters {
     width: 100%;
     justify-content: space-between;
   }
 
  .site-footer {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .models-portraits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .categories-portraits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
 }

/* Auth modal */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.auth-modal-overlay.is-open {
  display: flex;
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 24px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-close:hover {
  color: var(--text);
}

.auth-modal-title {
  margin: 0 0 16px;
  font-size: 1.15rem;
}

.auth-modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.auth-tab {
  padding: 8px 14px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  cursor: pointer;
}

.auth-tab:hover {
  color: var(--text);
}

.auth-tab.active {
  background: var(--border-subtle);
  color: var(--text);
}

/* Admin tabs */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.admin-tab-button {
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  cursor: pointer;
  border-radius: 0;
}

.admin-tab-button.active {
  background: var(--border-subtle);
  color: var(--text);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.is-active {
  display: block;
}

/* Admin users cards */
.campaign-list {
  display: grid;
  gap: 12px;
}

.campaign-item {
  border: 1px solid var(--border-subtle);
  background: #080808;
  padding: 14px;
}

.campaign-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.campaign-item-name {
  margin: 0;
  font-size: 1rem;
}

.campaign-item-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-soft);
}

.campaign-item-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 6px 12px;
}

.campaign-item-meta dt {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.campaign-item-meta dd {
  margin: 0;
  font-size: 13px;
  word-break: break-word;
}

.campaign-item-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-user-status-badge {
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--border-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-user-status-badge.is-active {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.4);
}

.admin-user-status-badge.is-banned {
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.45);
}

.admin-user-stats-grid {
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-user-stat {
  border: 1px solid var(--border-subtle);
  background: #050505;
  padding: 8px 10px;
}

.admin-user-stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 3px;
}

.admin-user-stat-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

.admin-user-meta {
  margin-bottom: 10px;
}

.admin-user-field {
  margin-top: 8px;
}

@media (max-width: 700px) {
  .campaign-item-meta {
    grid-template-columns: 1fr;
  }

  .admin-user-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Reputation rule editor (admin) */
.reputation-rule-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  padding: 2px 0;
}

.reputation-rule-col {
  flex: 1 1 260px;
}

.reputation-rule-col--min {
  border-left: 1px solid var(--border-subtle);
  padding-left: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-form label {
  font-size: 12px;
  color: var(--text-soft);
}

.auth-form input {
  padding: 10px 12px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: #050505;
  color: var(--text);
  font-size: 14px;
}

.auth-form input::placeholder {
  color: var(--text-soft);
}

.auth-form .btn {
  margin-top: 4px;
}

.auth-modal-error {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--danger);
}

.user-display {
  font-size: 13px;
  color: var(--text);
}

.user-menu {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.user-display-trigger {
  margin: 0;
  padding: 0 16px;
  min-height: 60px;
  height: 100%;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: linear-gradient(180deg, #151515 0%, #0a0a0a 100%);
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.user-display-trigger:hover {
  background: linear-gradient(180deg, #1f1f1f 0%, #101010 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.user-display-trigger[aria-expanded="true"] {
  background: linear-gradient(180deg, #242424 0%, #121212 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 160px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 6px 0;
  display: none;
  z-index: 30;
}

.user-menu-dropdown.is-open {
  display: block;
}

.user-menu-item {
  display: block;
  width: 100%;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.user-menu-item:hover {
  background: var(--bg-soft);
}

.user-menu-logout {
  color: var(--text-soft);
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
  padding-top: 8px;
}

.user-menu-logout:hover {
  color: var(--danger);
}

.section-filters-toggle {
  font-size: 11px;
  text-transform: lowercase;
  color: var(--text-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}

.section-filters-toggle:hover {
  color: var(--text);
}

.nav-auth-wrap {
  display: flex;
  align-items: center;
}

.profile-section {
  max-width: 920px;
}

.profile-title {
  font-size: 1.8rem;
  margin: 0 0 14px;
  font-weight: 700;
}

.profile-login-msg {
  color: var(--text-soft);
  font-size: 14px;
}

.profile-viewing-badge {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 5px 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* Profile tabs (Profile vs Settings) */
.profile-viewing-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-viewing-top-row .profile-viewing-badge {
  margin: 0;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.profile-tab {
  padding: 9px 16px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.profile-tab:hover {
  color: var(--text);
  border-color: #404040;
  background: rgba(255, 255, 255, 0.03);
}

.profile-tab.is-active {
  color: var(--text);
  background: var(--bg-soft);
  border-color: #404040;
}

.profile-tab.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.profile-tab-panels {
  display: block;
}

.profile-tab-panel {
  display: none;
}

.profile-tab-panel.is-active {
  display: block;
}

.profile-tab-panel.is-disabled {
  opacity: 0.6;
}

.profile-intro {
  color: var(--text-soft);
  font-size: 12px;
  margin: 0 0 12px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: #090909;
  border: 1px solid var(--border-subtle);
}

.profile-info {
  flex: 1;
}

.profile-display-name {
  font-size: 1.25rem;
  margin: 0 0 4px;
  font-weight: 600;
}

.profile-username {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
}

.profile-extra {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.profile-stats-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-stat-card--wide {
  grid-column: 1 / -1;
}

.profile-stat-card {
  padding: 14px;
  border: 1px solid var(--border-subtle);
  background: #080808;
}

.profile-stat-label {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-soft);
  letter-spacing: 0.08em;
}

.profile-stat-value {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.profile-stat-value-small {
  font-size: 1rem;
}

.profile-block {
  padding: 14px;
  background: #070707;
  border: 1px solid var(--border-subtle);
}

.profile-block-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-info-list {
  margin: 0;
  font-size: 13px;
  display: grid;
  gap: 8px 16px;
}

.profile-info-list dt {
  color: var(--text-soft);
  font-weight: 400;
  grid-column: 1;
}

.profile-info-list dd {
  margin: 0;
  color: var(--text);
  grid-column: 2;
}

.profile-mono {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.profile-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.profile-input {
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: #050505;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.profile-input:focus-visible {
  outline: none;
  border-color: var(--text-soft);
  box-shadow: 0 0 0 1px var(--text-soft);
}

.profile-input::placeholder {
  color: var(--text-soft);
}

.profile-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}

.profile-setting-label {
  color: var(--text);
}

.profile-setting-input {
  flex: 1;
  max-width: 260px;
  padding: 6px 10px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: #050505;
  color: var(--text);
  font-size: 13px;
}

.profile-setting-check {
  width: 18px;
  height: 18px;
  accent-color: var(--text);
}

.profile-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.profile-activity-item {
  border: 1px solid var(--border-subtle);
  background: #090909;
  padding: 10px 12px;
}

.profile-activity-title {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 13px;
}

.profile-activity-time {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
}

@media (max-width: 860px) {
  .profile-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .profile-stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Add video page */
.add-video-section {
  max-width: 560px;
}

.add-video-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.add-video-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.add-video-field label {
  font-size: 12px;
  color: var(--text-soft);
}

.add-video-field .required {
  color: var(--danger);
}

.add-video-field input[type="text"],
.add-video-field input[type="url"],
.add-video-field input[type="number"],
.add-video-field textarea,
.add-video-field select {
  padding: 10px 12px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: #050505;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.add-video-field input::placeholder,
.add-video-field textarea::placeholder {
  color: var(--text-soft);
}

.add-video-field textarea {
  resize: vertical;
  min-height: 80px;
}

.add-video-hint {
  font-size: 11px;
  color: var(--text-soft);
}

.add-video-source-type {
  display: flex;
  gap: 20px;
  margin-bottom: 4px;
}

.add-video-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.add-video-radio input {
  width: 16px;
  height: 16px;
  accent-color: var(--text);
}

.add-video-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.add-video-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  margin-top: 6px;
}

.add-video-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--text);
}

.campaign-field-group {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px 18px 8px;
  margin: 12px 0;
}

.campaign-placement-options {
  flex-wrap: wrap;
}

.ad-campaign-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.ad-campaign-row-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  background: rgba(15, 23, 42, 0.35);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ad-campaign-row-link:hover {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(30, 41, 59, 0.5);
}

.ad-campaign-row-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}

.ad-campaign-row-meta {
  font-size: 12px;
  color: var(--text-soft);
}

.campaign-detail-back {
  margin-bottom: 16px;
}

.campaign-detail-image-wrap {
  margin-top: 16px;
}

.campaign-detail-thumb {
  max-width: 100%;
  max-height: 280px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
}

/* ——— Create campaign page ——— */
.section.add-video-section.create-campaign-section {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 18px;
  padding-bottom: 48px;
}

.create-campaign-page-inner {
  width: 100%;
}

.create-campaign-hero {
  margin-bottom: 24px;
  padding: 20px 22px 22px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.9), rgba(7, 7, 7, 0.9));
}

.create-campaign-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.create-campaign-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.create-campaign-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-soft);
}

.create-campaign-login-msg {
  margin-bottom: 24px;
}

.create-campaign-section .create-campaign-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(400px, 37%);
  gap: 22px 28px;
  align-items: start;
  margin-top: 0;
}

.create-campaign-form-column {
  min-width: 0;
}

.create-campaign-form-shell {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(7, 7, 7, 0.92);
  padding: 6px 6px 2px;
}

.create-campaign-form.create-campaign-form {
  gap: 0;
  padding: 20px 24px 24px;
}

.create-campaign-form-section {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.create-campaign-bid-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .create-campaign-bid-row {
    grid-template-columns: 1fr;
  }
}

.campaign-detail-profile-extra {
  margin-top: 0;
  padding: 20px 24px 24px;
}

.campaign-detail-profile-extra .profile-block {
  min-width: 0;
  overflow: hidden;
}

.campaign-detail-profile-extra .profile-info-list {
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
}

.campaign-detail-profile-extra .profile-info-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.campaign-detail-profile-extra .profile-info-list dd a {
  word-break: break-all;
}

.campaign-detail-actions {
  margin-top: 12px;
}

.campaign-detail-cancel-btn {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.create-campaign-step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.create-campaign-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
}

.create-campaign-section-intro {
  margin: -6px 0 16px;
  font-size: 13px;
  color: var(--text-soft);
}

.optional-label {
  font-weight: 400;
  color: var(--text-soft);
}

.placement-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 640px) {
  .placement-card-grid {
    grid-template-columns: 1fr;
  }
}

.placement-card {
  display: block;
  cursor: pointer;
  margin: 0;
}

.placement-card-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

.placement-card-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 16px;
  min-height: 108px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.placement-card:hover .placement-card-inner {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.placement-card:has(.placement-card-input:checked) .placement-card-inner {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.1);
}

.placement-card:has(.placement-card-input:focus-visible) .placement-card-inner {
  outline: 2px solid #9ca3af;
  outline-offset: 2px;
}

.placement-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
}

.placement-card-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.placement-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.placement-card-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-soft);
}

.create-campaign-placement-hint {
  margin-top: 14px;
}

.create-campaign-section .create-campaign-fieldset.campaign-field-group {
  margin-top: 8px;
  margin-bottom: 0;
  padding: 20px 20px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}

.create-campaign-fieldset-legend {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.create-campaign-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.create-campaign-checkbox-tile {
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.create-campaign-checkbox-tile:hover {
  border-color: rgba(148, 163, 184, 0.32);
}

.create-campaign-section .add-video-field input[type='number'] {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #050505;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  max-width: 200px;
}

.create-campaign-section .add-video-field input[type='text'],
.create-campaign-section .add-video-field input[type='url'] {
  border-radius: 8px;
}

.create-campaign-section .add-video-field input:focus-visible,
.create-campaign-section .add-video-field input[type='number']:focus-visible {
  outline: none;
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

.create-campaign-actions-bar {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.create-campaign-actions-main {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.create-campaign-submit {
  min-width: 180px;
  padding: 12px 22px;
  font-weight: 600;
}

.create-campaign-actions-bar .add-video-error {
  margin-top: 14px;
}

.create-campaign-preview-column {
  position: sticky;
  top: 88px;
  padding: 0;
  border: none;
  background: transparent;
}

.create-campaign-preview-inner {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.95), rgba(7, 7, 7, 0.95));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.create-campaign-preview-header {
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.create-campaign-preview-heading {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.create-campaign-preview-sub {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.45;
}

.create-preview-device {
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.create-preview-device-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.32);
  border-bottom: 1px solid var(--border-subtle);
}

.create-preview-device-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}

.create-preview-device-dot:nth-child(1) {
  background: #f87171;
}

.create-preview-device-dot:nth-child(2) {
  background: #fbbf24;
}

.create-preview-device-dot:nth-child(3) {
  background: #4ade80;
}

.create-preview-device-body {
  padding: 20px 18px 24px;
  background: rgba(0, 0, 0, 0.16);
}

.create-preview-panel + .create-preview-panel {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.create-preview-label {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.create-preview-ticker-host {
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.create-preview-ticker-mock {
  pointer-events: none;
  font-size: 11px;
  padding: 12px 14px;
}

.create-preview-ticker-mock .news-ticker-text {
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  max-width: 100%;
}

.create-preview-meta {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--text-soft);
  word-break: break-word;
  line-height: 1.45;
}

.create-preview-feed-host {
  max-width: 100%;
  margin: 0 auto;
}

.create-preview-feed-card {
  pointer-events: none;
  cursor: default;
}

.create-preview-feed-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(145deg, rgba(28, 28, 28, 0.95), rgba(12, 12, 12, 0.95));
  color: var(--text-soft);
  font-size: 12px;
  text-align: center;
  padding: 12px;
  box-sizing: border-box;
}

.create-preview-surfaces {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.4;
}

@media (max-width: 960px) {
  .create-campaign-hero {
    padding: 22px 20px 24px;
  }

  .create-campaign-section .create-campaign-layout {
    grid-template-columns: 1fr;
  }

  .create-campaign-preview-column {
    position: static;
    order: -1;
  }

  .create-campaign-form-shell {
    padding: 4px;
  }

  .create-campaign-form.create-campaign-form {
    padding: 16px 16px 20px;
  }
}

.video-card-link--promo .video-card--promo {
  position: relative;
  outline: none;
}

.video-card--promo .video-card-promo-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.35;
}

.video-card--promo .video-card-promo-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.85);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.recommended-card--promo {
  position: relative;
  outline: none;
}

.recommended-card--promo .recommended-promo-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.9);
  color: #fbbf24;
}

.add-video-source-input {
  width: 100%;
  box-sizing: border-box;
}

.add-video-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.add-video-error {
  font-size: 13px;
  color: var(--danger);
  margin: 0;
}

.edit-sources-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.edit-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
}

.edit-source-label {
  font-size: 12px;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-source-delete {
  flex-shrink: 0;
}

.edit-sources-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.edit-sources-add select {
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
  background: #050505;
  color: var(--text);
  font-size: 13px;
}

.edit-source-value {
  flex: 1;
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
  background: #050505;
  color: var(--text);
  font-size: 13px;
}

/* Models catalog */
.models-intro {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0 0 24px;
}

.models-page-title {
  text-align: center;
}

.models-portraits-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.models-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.models-sort-label {
  font-size: 12px;
  color: var(--text-soft);
}

.models-sort-select {
  min-width: 120px;
}

.model-portrait-card-link {
  text-decoration: none;
  color: inherit;
}

.model-portrait-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.model-portrait-card:hover {
  border-color: #404040;
  transform: translateY(-1px);
}

.model-portrait-card-media {
  aspect-ratio: 3 / 4;
  background: #111111;
  overflow: hidden;
}

.model-portrait-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.model-portrait-card-image-placeholder {
  background: linear-gradient(135deg, #141414 0%, #0f0f0f 100%);
}

.model-portrait-card-body {
  padding: 10px 10px 12px;
}

.model-portrait-card-name {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
}

.model-portrait-card-meta {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-soft);
}

.categories-portraits-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.category-portrait-card-link {
  text-decoration: none;
  color: inherit;
}

.category-portrait-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.category-portrait-card:hover {
  border-color: #404040;
  transform: translateY(-1px);
}

.category-portrait-card-media {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #111111 0%, #171717 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-portrait-card-symbol {
  font-size: 40px;
  line-height: 1;
  color: #3f3f46;
}

.category-portrait-card-body {
  padding: 10px 10px 12px;
}

.category-portrait-card-name {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
}

.category-portrait-card-meta {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-soft);
}

/* Ranking */
.ranking-section .profile-title {
  text-align: center;
}

.ranking-intro {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0 auto 24px;
  max-width: 720px;
}

/* Ranking table centered on screen; weights sit to its right (not centered as a pair) */
.ranking-layout {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0 20px;
  box-sizing: border-box;
  overflow-x: clip;
}

.ranking-layout-shift {
  --ranking-aside-w: clamp(260px, 22vw, 480px);
  --ranking-layout-gap: clamp(18px, 3.4vw, 60px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transform: none;
}

.ranking-main {
  width: 100%;
  max-width: 1320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 auto;
  box-sizing: border-box;
}

.ranking-main .ranking-payout-panel {
  width: 100%;
  max-width: none;
  margin: 0 0 20px;
}

.ranking-table-block {
  width: 100%;
}

.ranking-table-box {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  background: #060606;
}

.ranking-table-box .ranking-row {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid var(--border-subtle);
}

.ranking-table-box .ranking-list > .ranking-row:last-child {
  border-bottom: none;
}

.ranking-table-box .ranking-separator {
  border-left: none;
  border-right: none;
  background: #080808;
}

.ranking-list-head {
  background: #0c0c0c;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.ranking-list-head .ranking-rank {
  color: var(--text-soft);
}

.ranking-head-name {
  min-width: 0;
  padding-top: 1px;
}

.ranking-head-metric {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-soft);
  text-align: right;
  white-space: nowrap;
}

.ranking-list-head .ranking-user-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, max-content));
  justify-content: end;
  align-items: center;
  column-gap: clamp(12px, 2.4vw, 24px);
}

.ranking-weights-aside {
  width: 100%;
  max-width: 1320px;
  min-width: 0;
}

.ranking-weights-aside .ranking-weights {
  margin: 0;
  max-width: none;
  width: 100%;
  position: sticky;
  top: 72px;
}

@media (max-width: 1400px) {
  .ranking-layout-shift {
    --ranking-aside-w: clamp(220px, 17vw, 420px);
    --ranking-layout-gap: clamp(16px, 2.5vw, 48px);
  }

  .ranking-main {
    max-width: 1350px;
  }

  .ranking-list {
    max-width: clamp(620px, 52vw, 1200px);
  }

  .ranking-payout-panel {
    max-width: clamp(640px, 48vw, 1180px);
  }
}

@media (max-width: 1280px) {
  .ranking-layout-shift {
    --ranking-aside-w: clamp(200px, 15vw, 360px);
    --ranking-layout-gap: clamp(14px, 2.2vw, 38px);
  }

  .ranking-main {
    max-width: 1200px;
  }

  .ranking-list {
    max-width: clamp(580px, 48vw, 1080px);
  }

  .ranking-payout-panel {
    max-width: clamp(600px, 45vw, 1040px);
  }
}

@media (max-width: 1200px) {
  .ranking-layout-shift {
    transform: none;
  }
}

@media (max-width: 900px) {
  .ranking-layout {
    padding: 0 16px;
  }

  .ranking-layout-shift {
    width: 100%;
    max-width: 1720px;
  }

  .ranking-weights-aside {
    width: 100%;
    max-width: 840px;
  }

  .ranking-weights-aside .ranking-weights {
    position: static;
  }
}

.ranking-payout-panel {
  max-width: clamp(700px, 50vw, 1300px);
  padding: 14px clamp(16px, 2.7vw, 32px);
  border: 1px solid var(--border-subtle);
  background: rgba(80, 200, 160, 0.06);
}

.ranking-payout-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.ranking-payout-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-soft);
}

.ranking-payout-pool {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-soft);
  text-align: right;
  white-space: nowrap;
}

.ranking-payout-pool--muted {
  color: var(--text-soft);
  font-weight: 600;
}

.ranking-weights {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  background: #070707;
}

.ranking-weights-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
  width: 100%;
}

.ranking-weights-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5.5rem, max-content);
  align-items: baseline;
  column-gap: 20px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ranking-weights-list li:last-child {
  border-bottom: none;
}

.ranking-weight-label {
  min-width: 0;
}

.ranking-weight-pts {
  margin: 0;
  color: var(--accent-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  justify-self: end;
}

.ranking-main .ranking-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.ranking-main .ranking-table-box .ranking-list {
  gap: 0;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: clamp(680px, 56vw, 1320px);
  margin: 0 auto;
}

.ranking-row {
  display: grid;
  grid-template-columns: 56px 1fr minmax(108px, auto);
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
}

.ranking-row--users {
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, auto);
  gap: 12px clamp(16px, 3vw, 32px);
  padding: 6px clamp(18px, 3vw, 36px);
  align-items: center;
  min-height: 0;
}

.ranking-table-box .ranking-row--users {
  padding-top: 5px;
  padding-bottom: 5px;
}

.ranking-list-head.ranking-row--users {
  padding-top: 7px;
  padding-bottom: 7px;
}

.ranking-row--users .ranking-user-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, max-content));
  justify-content: end;
  align-items: center;
  column-gap: clamp(12px, 2.4vw, 24px);
  row-gap: 4px;
}

.ranking-row--users .ranking-points {
  font-size: 13px;
  line-height: 1.2;
}

.ranking-row--users .ranking-pct {
  font-size: 11px;
  line-height: 1.2;
}

.ranking-row--users .ranking-next-payout {
  font-size: 12px;
  line-height: 1.2;
}

.ranking-row--users .ranking-rank {
  font-size: 13px;
  line-height: 1.2;
}

.ranking-row-current {
  background: rgba(255, 200, 80, 0.12);
  border-color: rgba(255, 200, 80, 0.5);
  color: var(--text);
}

.ranking-rank {
  font-weight: 700;
  color: var(--accent-soft);
}

.ranking-row-current .ranking-rank {
  color: rgba(255, 200, 80, 0.95);
}

.ranking-name {
  font-weight: 500;
}

.model-ranking-row .ranking-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.model-ranking-avatar-wrap {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  background: #111111;
}

.model-ranking-avatar {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: block;
}

.ranking-name-text {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.ranking-count {
  color: var(--text-soft);
  font-size: 13px;
}

.ranking-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.ranking-user-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  text-align: right;
  min-width: 0;
}

.ranking-points {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.ranking-next-payout {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-soft);
  text-align: right;
  white-space: normal;
}

@media (max-width: 640px) {
  .ranking-row--users {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
      'rank name'
      'vals vals';
  }

  .ranking-row--users .ranking-rank {
    grid-area: rank;
  }

  .ranking-row--users .ranking-name {
    grid-area: name;
  }

  .ranking-row--users .ranking-user-values {
    grid-area: vals;
  }
}

.ranking-pct {
  font-size: 11px;
  color: var(--text-soft);
  white-space: normal;
}

.ranking-user-values .ranking-pct {
  text-align: right;
}

.ranking-name-tiered {
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.ranking-name-tiered:hover .rep-user-name {
  filter: brightness(1.08);
}

.ranking-separator {
  text-align: center;
  padding: 8px 0;
  color: var(--text-soft);
  font-size: 13px;
}

.ranking-empty {
  color: var(--text-soft);
  margin: 0;
}

.ranking-table-box .ranking-empty {
  padding: 20px 16px;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.model-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.model-card {
  padding: 16px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  transition: border-color 0.15s ease;
}

.model-card:hover {
  border-color: #404040;
}

.model-card-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.model-card-meta {
  font-size: 12px;
  color: var(--text-soft);
}

/* Model detail */
.model-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 26px 36px;
  border: 1px solid var(--border-subtle);
  background: #050505;
  box-shadow: var(--shadow-subtle);
}

.model-header.model-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px 32px;
  align-items: flex-start;
  padding-bottom: 24px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.model-header-main {
  min-width: 0;
  text-align: center;
}

.model-header-portrait-wrap {
  width: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.model-portrait {
  width: 108px;
  height: 144px;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  background-color: #111111;
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  object-fit: cover;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.model-portrait:hover {
  transform: translateY(-2px);
  border-color: #404040;
}

.model-portrait.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111;
}

.model-portrait-initials {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
}

.model-name {
  font-size: clamp(1.6rem, 4vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  line-height: 1.15;
  color: var(--text);
}

.model-actions {
  margin-top: 20px;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}

.model-actions .btn.primary {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.model-attrs {
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(110px, 34%) 1fr;
  gap: 0;
  font-size: 14px;
  max-width: 540px;
  text-align: left;
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  overflow: hidden;
  background: #050505;
}

.model-attrs dt {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 12px 14px 6px 16px;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  align-self: stretch;
  background: #080808;
}

.model-attrs dd {
  margin: 0;
  color: var(--text);
  padding: 12px 16px 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
  line-height: 1.45;
}

.model-attrs dd:last-child {
  border-bottom: none;
}

.model-attrs dt:last-of-type {
  border-bottom: none;
}

.model-attrs dd br {
  display: block;
  content: '';
  margin-top: 4px;
}

.model-error {
  color: var(--danger);
  font-size: 14px;
}

.model-tabs {
  margin-top: 24px;
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  gap: 8px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  background: #050505;
  border-radius: 0;
  box-shadow: none;
}

.model-tab {
  padding: 9px 18px;
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.18s ease;
}

.model-tab:last-child {
  border-right: none;
}

.model-tab:hover {
  color: var(--text);
  background: #111111;
}

.model-tab.active {
  color: #050505;
  background: #f5f5f5;
  box-shadow: none;
}

.model-tab-panels {
  margin-top: 16px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.model-tab-panel {
  padding-top: 4px;
}

#modelStatsContent {
  padding: 20px 20px 22px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: #050505;
}

#modelStatsContent .models-intro {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
  letter-spacing: 0.02em;
}

#modelStatsContent .ranking-list {
  max-width: none;
  margin: 0;
  gap: 6px;
}

#modelStatsContent .ranking-row {
  border-radius: 0;
  background: #080808;
  border-color: var(--border-subtle);
  transition: background 0.15s ease, border-color 0.15s ease;
}

#modelStatsContent .ranking-row:hover {
  background: #111111;
  border-color: #404040;
}

#modelStatsContent .ranking-empty {
  text-align: center;
  margin: 8px 0 0;
}

.model-tag-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--border-subtle);
  background: #080808;
  font: inherit;
}

.model-tag-row[aria-expanded='true'] {
  border-color: #404040;
  background: #111111;
}

.model-tag-videos {
  margin-top: -4px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  background: #060606;
}

.model-tag-videos-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.model-tag-video-card .recommended-title {
  margin-top: 6px;
}

.model-tag-videos-empty {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

.model-tag-view-more-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.model-tag-view-more-btn {
  font-size: 12px;
  padding: 6px 10px;
}

@media (max-width: 960px) {
  .model-tag-videos-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .model-tag-videos-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.model-portraits-strip {
  margin-top: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100px;
}

.model-portrait-thumb {
  width: 30px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #0c0c0c;
  padding: 0;
  cursor: pointer;
  opacity: 0.72;
  overflow: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.model-portrait-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-portrait-thumb.active,
.model-portrait-thumb:hover {
  opacity: 1;
  border-color: rgba(180, 170, 255, 0.45);
  transform: translateY(-1px);
}

.portrait-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.portrait-viewer-stage {
  width: min(86vw, 980px);
  height: min(90vh, 980px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid #333;
  background: #090909;
}

.portrait-viewer-nav {
  width: 44px;
  height: 44px;
  border: 1px solid #3d3d3d;
  background: rgba(20, 20, 20, 0.92);
  color: #f2f2f2;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.portrait-viewer-nav:hover {
  background: rgba(40, 40, 40, 0.96);
}

body.no-scroll {
  overflow: hidden;
}

.portrait-inputs-list {
  display: grid;
  gap: 8px;
}

.portrait-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.portrait-add-btn,
.portrait-remove-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
}

@media (max-width: 760px) {
  .model-content {
    padding: 20px 16px 28px;
    border-radius: 0;
  }

  .model-header.model-hero {
    gap: 20px;
    padding-bottom: 20px;
  }

  .model-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .model-header-portrait-wrap {
    margin: 0 auto;
  }

  .model-header-main {
    text-align: left;
  }

  .model-attrs {
    grid-template-columns: minmax(100px, 38%) 1fr;
  }

  .model-portraits-strip {
    justify-content: center;
  }

  .portrait-viewer {
    gap: 6px;
  }

  .portrait-viewer-nav {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}

/* —— Reputation tiers (ranking, header, comments, profile) —— */
.rep-user-name {
  display: inline;
  font-weight: inherit;
}

.rep-profile-name {
  font-size: inherit;
  font-weight: 700;
}

.rep-tier-0 {
  color: inherit;
}

.rep-tier-1 {
  background: linear-gradient(105deg, #b87333 0%, #f0c987 45%, #a65c1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  text-shadow: 0 0 18px rgba(205, 127, 50, 0.25);
}

.rep-tier-2 {
  background: linear-gradient(105deg, #9a9a9a 0%, #f4f4f4 50%, #6e6e6e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  filter: drop-shadow(0 0 4px rgba(200, 200, 220, 0.35));
}

.rep-tier-3 {
  background: linear-gradient(105deg, #d4af37 0%, #fff8dc 40%, #c9a227 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
}

.rep-tier-4 {
  background: linear-gradient(90deg, #7cf9ff, #c9a6ff, #ff9de2, #7cf9ff);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  animation: rep-tier-flow 5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(140, 200, 255, 0.45));
}

.rep-tier-5 {
  background: linear-gradient(90deg, #ff2a6d, #05d9e8, #d1f7ff, #fffd82, #ff2a6d);
  background-size: 320% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: 0.02em;
  animation: rep-tier-flow 3.2s linear infinite, rep-tier-pulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 80, 180, 0.55)) drop-shadow(0 0 16px rgba(5, 217, 232, 0.25));
}

@keyframes rep-tier-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes rep-tier-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 80, 180, 0.55)) drop-shadow(0 0 16px rgba(5, 217, 232, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(255, 120, 220, 0.75)) drop-shadow(0 0 22px rgba(5, 217, 232, 0.45));
  }
}

.user-display-trigger .rep-nav-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Search page first-visit tour ---------- */

.search-tour-replay-link {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 10100;
  margin: 0;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--text-soft);
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(8px);
}

.search-tour-replay-link:hover {
  color: var(--text);
  border-color: #404040;
}

@media (max-width: 640px) {
  .search-tour-replay-link {
    top: auto;
    bottom: 14px;
    right: 12px;
    font-size: 11px;
    padding: 5px 8px;
  }
}

.search-tour-root {
  position: fixed;
  inset: 0;
  z-index: 10040;
  pointer-events: none;
}

.search-tour-bar {
  position: fixed;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(2px);
}

.search-tour-ring {
  position: fixed;
  pointer-events: none;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  background: transparent;
}

.search-tour-card {
  position: fixed;
  left: 0;
  top: 0;
  max-width: min(380px, calc(100vw - 32px));
  padding: 16px 18px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  pointer-events: auto;
}

.search-tour-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.search-tour-body {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

.search-tour-progress {
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.search-tour-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.search-tour-arrow {
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.search-tour-arrow-top {
  top: -9px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid var(--bg-elevated);
  filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.12));
}

.search-tour-arrow-bottom {
  bottom: -9px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid var(--bg-elevated);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.12));
}

