/* ======================================================
   OmniJAV Index - Yandex Video Style Dark Theme
   Mirrors the exact color scheme, search pill, sub-tabs,
   filter chips, and 3-column video card grid of Yandex Video
====================================================== */

:root {
  --yandex-bg: #19191a;
  --yandex-surface: #202022;
  --yandex-surface-hover: #29292b;
  --yandex-chip-bg: #2c2c2e;
  --yandex-chip-active: #3e3e42;
  --yandex-red: #fc3f1d;
  --yandex-red-border: #e53935;
  --yandex-red-hover: #e03212;
  --text-white: #ffffff;
  --text-muted: #929295;
  --text-dim: #6e6e72;
  --border-subtle: #2d2d30;
  --card-radius: 12px;
  --badge-bg: rgba(0, 0, 0, 0.75);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--yandex-bg);
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ======================================================
   Age Confirmation Modal
====================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-box {
  background: #222225;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.age-box .modal-badge {
  display: inline-block;
  background: var(--yandex-red);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.age-box h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.age-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.gate-actions {
  display: flex;
  gap: 12px;
}

.gate-actions .btn {
  flex: 1;
}

/* ======================================================
   Buttons & Core Elements
====================================================== */
.btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--yandex-red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--yandex-red-hover);
}

.btn-secondary {
  background: var(--yandex-chip-bg);
  color: var(--text-white);
}
.btn-secondary:hover {
  background: var(--yandex-chip-active);
}

.btn-accent {
  background: rgba(252, 63, 29, 0.15);
  color: #ff6b52;
  border: 1px solid rgba(252, 63, 29, 0.35);
}
.btn-accent:hover {
  background: rgba(252, 63, 29, 0.25);
}

/* ======================================================
   Yandex Style Header & Search Bar
====================================================== */
.yandex-header {
  background: var(--yandex-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-top: 14px;
}

.header-top-row {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Search Pill */
.yandex-search-container {
  flex: 1;
  max-width: 500px;
}

.search-pill {
  position: relative;
  display: flex;
  align-items: center;
  background: #1c1c1e;
  border: 1.5px solid var(--yandex-red-border);
  border-radius: 999px;
  height: 38px;
  padding: 0 12px 0 5px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.search-pill:focus-within {
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.25);
}

.search-logo-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yandex-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.35);
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  margin-right: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.search-logo-circle:hover {
  transform: scale(1.06);
  box-shadow: 0 3px 12px rgba(229, 57, 53, 0.55);
}

.search-pill input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-size: 0.88rem;
  font-weight: 500;
  padding-right: 8px;
}

.search-pill input::placeholder {
  color: #7b7b80;
  font-weight: 400;
}

.search-clear-cross {
  background: none;
  border: none;
  color: #8e8e93;
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  transition: color 0.15s;
}
.search-clear-cross:hover {
  color: #ffffff;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.icon-btn:hover {
  background: var(--yandex-surface-hover);
  color: var(--text-white);
}

/* ======================================================
   Service Sub-Navigation Tabs (Underline active indicator)
====================================================== */
.service-nav-tabs {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 24px 0 24px;
}

.nav-tabs-scroll {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.service-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 0 10px 0;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
}

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

.service-tab.active {
  color: var(--text-white);
  font-weight: 600;
}

.service-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--text-white);
  border-radius: 2px 2px 0 0;
}

/* ======================================================
   Quick Filter Pill Chips Strip
====================================================== */
.chips-strip-container {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 0;
  background: rgba(25, 25, 26, 0.96);
}

.chips-scroll {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: var(--yandex-chip-bg);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}

.filter-chip:hover {
  background: var(--yandex-chip-active);
}

.filter-chip.active {
  background: #444448;
  color: #fff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.2);
}

.chip-select-wrapper select {
  background: var(--yandex-chip-bg);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.active-filter-badge {
  background: rgba(252, 63, 29, 0.2);
  color: #ff6b52;
  border: 1px solid rgba(252, 63, 29, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.active-filter-badge button {
  background: none;
  border: none;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.results-stats {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ======================================================
   Main Content Layout
====================================================== */
.main-content {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 48px 24px;
}

.view-panel.hidden {
  display: none !important;
}

/* ======================================================
   Yandex Style 3-Column Video Card Grid
====================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 20px;
}

.video-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
}

.thumbnail-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0e0e10;
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 10px;
}

.thumbnail-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.video-card:hover .thumbnail-box img {
  transform: scale(1.03);
}

/* Overlays on Thumbnail */
.duration-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: var(--badge-bg);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.source-count-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--badge-bg);
  backdrop-filter: blur(4px);
  color: #e5e5e7;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.code-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--yandex-red);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Card Content Below Thumbnail */
.card-content-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.card-play-icon {
  display: none !important;
}

.card-info-col {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-white);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-stats-subline {
  font-size: 0.74rem;
  color: var(--text-dim, #71717a);
  margin-top: 3px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-more-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  flex-shrink: 0;
}
.card-more-btn:hover {
  color: var(--text-white);
}

/* ======================================================
   Pagination
====================================================== */
.pagination-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  background: var(--yandex-chip-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  min-width: 40px;
  height: 40px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.page-btn:hover {
  background: var(--yandex-chip-active);
  color: #fff;
}

.page-btn.active {
  background: var(--yandex-red);
  color: #fff;
}

.page-btn.page-arrow-btn {
  font-size: 0.95rem;
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  padding: 0 4px;
  font-weight: 700;
  user-select: none;
}

/* ======================================================
   Unified Performer Hub Controls
====================================================== */
.performer-hub-header {
  margin-bottom: 24px;
}

.performer-hub-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.performer-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--yandex-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 0 14px;
  min-width: 260px;
  flex: 1;
  max-width: 380px;
  height: 38px;
  transition: all 0.2s ease;
}

.performer-search-box:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.performer-search-box svg {
  color: var(--text-dim);
  margin-right: 8px;
  flex-shrink: 0;
}

.performer-search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.86rem;
  width: 100%;
  outline: none;
}

.performer-search-box input::placeholder {
  color: var(--text-dim);
}

.actress-clear-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  font-size: 0.8rem;
  transition: color 0.15s;
}

.actress-clear-btn:hover {
  color: #fff;
}

/* ======================================================
   Performer Directory Grid
====================================================== */
.actress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.actress-card {
  background: var(--yandex-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.actress-card:hover {
  transform: translateY(-3px);
  background: var(--yandex-surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.actress-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 2px solid var(--border-subtle);
}

.actress-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}

.actress-jp {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.actress-count {
  font-size: 0.78rem;
  color: #ff6b52;
  background: rgba(252, 63, 29, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
}

/* ======================================================
   Admin & Crawler Dashboard
====================================================== */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header h2 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.admin-header p {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--yandex-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.metric-value {
  font-size: 1.7rem;
  font-weight: 800;
}

.text-success { color: #34d399 !important; }
.text-danger { color: #f87171 !important; }

.admin-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.control-box {
  background: var(--yandex-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.control-box h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.control-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
}

.scraper-status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-status.idle {
  background: var(--yandex-chip-bg);
  color: var(--text-muted);
}

.badge-status.running {
  background: rgba(252, 63, 29, 0.25);
  color: var(--yandex-red);
  border: 1px solid var(--yandex-red);
}

.btn-large {
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: auto;
}

.test-input-group {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.test-input-group input {
  flex: 1;
  background: #141416;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 9px 12px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.test-input-group input:focus {
  border-color: var(--yandex-red);
}

.test-results-box {
  background: #141416;
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 16px;
  margin-bottom: 20px;
}

.test-results-box h4 {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-white);
}

.json-output {
  background: #0c0c0e;
  border: 1px solid #242428;
  border-radius: 8px;
  padding: 12px;
  font-family: monospace;
  font-size: 0.8rem;
  color: #d1d1d6;
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-box {
  background: #121214;
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.terminal-bar {
  background: #1e1e22;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-clear-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.75rem;
  cursor: pointer;
}
.terminal-clear-btn:hover {
  color: #fff;
}

.terminal-body {
  padding: 12px 16px;
  min-height: 160px;
  max-height: 280px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.log-line.info { color: #9a9aa0; }
.log-line.success { color: #34d399; }
.log-line.error { color: #f87171; }

/* ======================================================
   Dedicated Watch Page (Full-Page View)
====================================================== */
.watch-nav-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.watch-back-btn {
  background: #242428;
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.watch-back-btn:hover {
  background: var(--yandex-red);
  border-color: var(--yandex-red);
  color: #fff;
  transform: translateX(-2px);
}

.watch-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crumb-link {
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}
.crumb-link:hover {
  color: #38bdf8;
}

.crumb-sep {
  color: var(--text-dim);
  opacity: 0.5;
}

.crumb-code {
  color: #38bdf8;
  font-weight: 700;
}

.crumb-title {
  color: var(--text-white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 450px;
}

/* 2-Column Watch Layout */
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.watch-main-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

/* Player Wrapper */
.player-wrapper {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.ad-shield-banner {
  background: #141417;
  border-bottom: 1px solid #232328;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.shield-badge {
  color: #34d399;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.server-active-pill {
  margin-left: auto;
  background: #25252b;
  color: #38bdf8;
  border: 1px solid #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
}

.iframe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #09090b;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

/* ── Touch Gesture Overlay — Bug 2 Fix ────────────────────────────────────
   Overlay container is pointer-events:none so iframe controls stay clickable.
   Only the narrow side tap zones get pointer-events:auto.                    */
.touch-gesture-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: stretch;
}

/* Tap zones: only on the outer 25% of width, leave center completely transparent */
.gesture-tap-zone {
  pointer-events: none; /* disabled by default (iframe mode) */
  width: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}

/* Only enable tap zones when native <video> is active */
.touch-gesture-overlay.native-active .gesture-tap-zone {
  pointer-events: auto;
}

.zone-right { margin-left: auto; }

.gesture-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  justify-content: center;
  pointer-events: none;
}

.gesture-indicator.visible { opacity: 1; }
.gesture-arrow { font-size: 1.4rem; line-height: 1; }
.gesture-text { font-size: 0.65rem; font-weight: 700; color: #fff; letter-spacing: 0.03em; }

/* Quick Server Switcher Strip */
.source-switcher-bar {
  background: #18181b;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #27272a;
}

.sources-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.source-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.source-tab-btn {
  background: #222226;
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.source-tab-btn:hover {
  background: #323238;
}
.source-tab-btn.active {
  background: var(--yandex-red);
  border-color: var(--yandex-red);
  box-shadow: 0 2px 8px rgba(252, 63, 29, 0.4);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
}
.source-quality-tag {
  font-size: 0.7rem;
  opacity: 0.85;
}

/* All Available Mirrors Card */
.all-sources-card {
  background: #1e1e22;
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 20px;
}

.all-sources-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.all-sources-header h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--text-white);
}

.all-sources-header p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0;
}

.sources-mirrors-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mirror-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141416;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  gap: 12px;
  flex-wrap: wrap;
  transition: all 0.15s ease;
}
.mirror-item-row:hover {
  border-color: #383840;
  background: #17171a;
}
.mirror-item-row.active-mirror {
  border-color: var(--yandex-red);
  background: rgba(252, 63, 29, 0.07);
}

.mirror-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 200px;
}

.mirror-index-badge {
  background: #232328;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mirror-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mirror-host-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-white);
}

.mirror-badge {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.mirror-badge.quality {
  background: #2a2a32;
  color: #38bdf8;
}
.mirror-badge.online {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}
.mirror-badge.live {
  background: var(--yandex-red);
  color: #fff;
}

.mirror-url-preview {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 480px;
}

.mirror-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mirror-actions .btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  text-decoration: none;
}

.active-now {
  background: var(--yandex-red) !important;
  color: #fff !important;
  cursor: default;
}

/* Direct Download Mirrors Card */
.download-mirrors-card {
  border-left: 3px solid #38bdf8;
}

.downloads-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141416;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  gap: 12px;
  flex-wrap: wrap;
  transition: all 0.15s ease;
}

.download-item-row:hover {
  border-color: #38bdf8;
  background: #17181c;
}

.btn-download-action {
  background: #0284c7;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-download-action:hover {
  background: #0369a1;
  color: #fff;
  transform: translateY(-1px);
}

/* Video Details Card */
.video-details-card {
  background: #1e1e22;
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 24px;
}

.code-and-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.btn-action-pill {
  background: #27272b;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-action-pill:hover {
  color: #fff;
  background: #34343a;
}

.detail-code-badge {
  background: var(--yandex-red);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 0.03em;
}

.detail-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text-white);
}

.detail-original-title {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 18px;
  font-weight: 400;
}

.meta-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: #151518;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.meta-item .label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.meta-item .value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
}

.performer-badge {
  display: inline-block;
  background: #25252b;
  color: #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
  margin-bottom: 4px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
}
.performer-badge:hover {
  background: var(--yandex-red);
  color: #fff;
}

.genres-wrapper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.genre-badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--yandex-chip-bg);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
}

/* Semantic Anchor Resets for Crawlable Badges & Cards */
a.performer-bio-chip,
a.studio-badge,
a.performer-badge,
a.genre-badge,
a.card-title-link {
  text-decoration: none !important;
  color: inherit;
}
a.card-title-link {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}
a.card-title-link:hover {
  color: #ff6b52;
}
.genre-badge:hover {
  background: var(--yandex-red);
  color: #fff;
}

/* Sidebar Column: Related Releases */
.watch-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin: 0;
}

.related-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-video-card {
  display: flex;
  gap: 12px;
  background: #1b1b1e;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
}
.sidebar-video-card:hover {
  background: #25252a;
  border-color: #383840;
  transform: translateX(2px);
}

.sidebar-thumb-box {
  width: 120px;
  aspect-ratio: 16 / 9;
  position: relative;
  flex-shrink: 0;
  background: #000;
}

.sidebar-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-code-pill {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--yandex-red);
  font-weight: 800;
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 3px;
}

.sidebar-card-info {
  padding: 8px 8px 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.sidebar-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.sidebar-card-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ======================================================
   Footer
====================================================== */
.footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #141416;
  padding: 24px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
}

/* ======================================================
   Responsive & Mobile Friendly Media Queries
====================================================== */
@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
  }
  .watch-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .crumb-title {
    max-width: 220px;
  }
  .mirror-item-row {
    flex-direction: column;
    align-items: stretch;
  }
  .mirror-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .header-top-row {
    padding: 0 16px;
  }
  .search-pill {
    height: 36px;
    padding: 0 4px 0 6px;
  }
  .search-logo-circle {
    width: 26px;
    height: 26px;
    font-size: 0.65rem;
    letter-spacing: -0.5px;
    margin-right: 6px;
  }
  .search-input-field {
    font-size: 0.82rem;
  }
  .service-nav-tabs {
    padding: 8px 16px 0 16px;
  }
  .chips-scroll {
    padding: 0 16px;
  }
  .main-content {
    padding: 8px 6px 40px 6px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  .video-grid {
    grid-template-columns: 1fr !important; /* Single column on phones */
    gap: 24px !important;
    width: 100% !important;
  }
  .video-card {
    width: 100% !important;
  }
  .thumbnail-box {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    min-height: 235px !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
  }
  .thumbnail-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .card-title {
    font-size: 0.95rem !important;
    line-height: 1.38 !important;
  }

  /* 2 Videos in a Line on Mobile for Daily Drops, Saved, and Playlists */
  #calendar-view .video-grid,
  .timeline-day-group .video-grid,
  #favorites-view .video-grid,
  #favorites-grid,
  #playlists-view .playlist-videos-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px 10px !important;
    width: 100% !important;
  }

  #calendar-view .video-grid .video-card,
  .timeline-day-group .video-grid .video-card,
  #favorites-view .video-grid .video-card,
  #favorites-grid .video-card,
  #playlists-view .playlist-videos-row .video-card {
    width: 100% !important;
  }

  #calendar-view .video-grid .thumbnail-box,
  .timeline-day-group .video-grid .thumbnail-box,
  #favorites-view .video-grid .thumbnail-box,
  #favorites-grid .thumbnail-box,
  #playlists-view .playlist-videos-row .thumbnail-box {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    min-height: unset !important;
    height: auto !important;
    border-radius: 8px !important;
    margin-bottom: 6px !important;
  }

  #calendar-view .video-grid .card-title,
  .timeline-day-group .video-grid .card-title,
  #favorites-view .video-grid .card-title,
  #favorites-grid .card-title,
  #playlists-view .playlist-videos-row .card-title {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 4px !important;
  }

  #calendar-view .video-grid .card-meta,
  .timeline-day-group .video-grid .card-meta,
  #favorites-view .video-grid .card-meta,
  #favorites-grid .card-meta,
  #playlists-view .playlist-videos-row .card-meta {
    font-size: 0.7rem !important;
    gap: 4px !important;
  }

  #calendar-view .video-grid .card-badges,
  .timeline-day-group .video-grid .card-badges,
  #favorites-view .video-grid .card-badges,
  #favorites-grid .card-badges,
  #playlists-view .playlist-videos-row .card-badges {
    transform: scale(0.85);
    transform-origin: top left;
  }

  /* 2 Studios in a Line on Mobile */
  #studios-view .studios-grid,
  .studios-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px 10px !important;
    margin-top: 10px !important;
    width: 100% !important;
  }

  .studio-card {
    border-radius: 10px !important;
  }

  .studio-card-banner {
    height: 64px !important;
  }

  .studio-card-content {
    padding: 10px 8px !important;
  }

  .studio-card-title {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    margin-bottom: 3px !important;
  }

  .studio-card-desc {
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 2 !important;
    margin-bottom: 6px !important;
  }

  .studio-prefix-tag {
    font-size: 0.65rem !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
  }

  .studio-card-meta {
    font-size: 0.7rem !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  /* Playlists Container on Mobile */
  #playlists-view .playlist-card {
    padding: 14px 10px !important;
    border-radius: 10px !important;
  }

  #playlists-view .playlist-card-header {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }

  #playlists-view .playlist-title-box h3 {
    font-size: 0.95rem !important;
  }

  .admin-action-row {
    grid-template-columns: 1fr;
  }
  .test-input-group {
    flex-direction: column;
  }
}

/* ======================================================
   Player Action Strip (Like / Dislike / Share)
====================================================== */
.player-action-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #18181b;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 12px;
  margin-top: 8px;
  margin-bottom: 16px;
  gap: 8px;
  flex-wrap: wrap;
}

.vote-group {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #222226;
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.vote-btn:hover {
  background: #2e2e33;
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.vote-btn.icon-only-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
}

.vote-btn.voted-like {
  background: rgba(34, 197, 94, 0.18);
  border-color: #22c55e;
  color: #4ade80;
}

.vote-btn.voted-dislike {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
  color: #f87171;
}

.vote-btn-report {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.25);
}

.vote-btn-report:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}

.vote-icon {
  font-size: 1rem;
  line-height: 1;
}

.vote-count {
  background: #141416;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ======================================================
   Performer Profile View (Hero & Stats)
====================================================== */
.actress-hero-banner {
  background: linear-gradient(180deg, #222226 0%, #171719 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.actress-hero-content {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.actress-hero-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--yandex-red);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.actress-hero-details {
  flex: 1;
  min-width: 260px;
}

.actress-hero-badge-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.badge-tag {
  background: var(--yandex-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.badge-subscribers {
  background: #242428;
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.actress-hero-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.actress-hero-jp {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

.actress-stats-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.stat-pill {
  background: #141416;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.actress-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.filmography-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.sort-pills-group {
  display: flex;
  gap: 6px;
  background: #1c1c1f;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.sort-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-pill-btn:hover {
  color: #fff;
}

.sort-pill-btn.active {
  background: var(--yandex-red);
  color: #fff;
}

/* ======================================================
   Comments & Discussion Section
====================================================== */
.comments-card {
  margin-top: 24px;
}

.comment-input-form {
  background: #161618;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.comment-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-input-form input,
.comment-input-form textarea {
  width: 100%;
  background: #202024;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.comment-input-form input:focus,
.comment-input-form textarea:focus {
  border-color: var(--yandex-red-border);
}

.comment-input-form textarea {
  resize: vertical;
  margin-bottom: 12px;
}

.comment-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.privacy-note {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.comment-status-msg {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
}

.comment-status-msg.success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.comment-status-msg.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

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

.comment-bubble {
  background: #19191c;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 18px;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.comment-user {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.comment-text {
  font-size: 0.88rem;
  color: #d1d5db;
  line-height: 1.5;
  white-space: pre-line;
  word-break: break-word;
}

/* ======================================================
   More Releases by Performer Grid (Big Banners like Homepage)
====================================================== */
.performer-releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.source-tab-btn.download-pill {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.source-tab-btn.download-pill:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #fff;
}

.source-tab-btn.download-pill .status-dot {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

/* ======================================================
   Top Actresses Ranking Cards & Badges
====================================================== */
.top-actress-card {
  position: relative;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ffae00);
  color: #000;
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #e0e0e0, #9e9e9e);
  color: #000;
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
  color: #fff;
}

.rank-badge.rank-other {
  background: rgba(15, 23, 42, 0.85);
  color: #94a3b8;
  border: 1px solid #334155;
}

/* ======================================================
   Subscription Modal Popup
====================================================== */
.subscribe-box {
  position: relative;
  text-align: left;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

.subscribe-input {
  width: 100%;
  background: #161618;
  border: 1.5px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
  outline: none;
}

.subscribe-input:focus {
  border-color: #38bdf8;
}

.subscribe-actions {
  display: flex;
  gap: 10px;
}

.subscribe-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.subscribe-msg.success {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.subscribe-msg.error {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Clickable performer & studio tags */
.performer-badge,
.studio-badge {
  display: inline-block;
  background: #252529;
  color: #38bdf8;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 6px;
  margin-bottom: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: all 0.2s;
}

.performer-badge:hover,
.studio-badge:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #7dd3fc;
}

/* ======================================================
   Live Search Autocomplete Popover
====================================================== */
.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #18181c;
  border: 1px solid #2e2e38;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  max-height: 440px;
  overflow-y: auto;
  padding: 8px 0;
}

.search-autocomplete-dropdown.hidden {
  display: none;
}

.ac-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  padding: 8px 16px 4px;
}

.ac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.ac-item:hover,
.ac-item.selected {
  background: #24242c;
}

.ac-item-thumb {
  width: 52px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: #111;
  flex-shrink: 0;
}

.ac-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  flex-shrink: 0;
  border: 1.5px solid #38bdf8;
}

.ac-item-details {
  flex: 1;
  min-width: 0;
}

.ac-item-main {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-item-sub {
  font-size: 0.74rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  gap: 6px;
  align-items: center;
}

.ac-badge {
  background: #2a2a35;
  color: #38bdf8;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* ======================================================
   Multi-Filter Drawer
====================================================== */
.filter-drawer-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1f1f25;
  border: 1px solid #343440;
  color: #f1f5f9;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  position: relative;
}

.filter-drawer-toggle-btn:hover {
  background: #2a2a33;
  border-color: #38bdf8;
}

.filter-active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.filter-drawer-panel {
  background: #16161a;
  border: 1px solid #2a2a34;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.filter-drawer-panel.hidden {
  display: none;
}

.filter-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.filter-drawer-header h4 {
  font-size: 0.88rem;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-drawer-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.filter-drawer-close:hover {
  color: #fff;
}

.filter-drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.filter-group select {
  background: #202026;
  border: 1px solid #333340;
  border-radius: 8px;
  color: #fff;
  padding: 7px 10px;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.filter-group select:focus {
  border-color: #38bdf8;
}

.filter-drawer-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ======================================================
   Floating Card Favorite Buttons
====================================================== */
.card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 15, 20, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.card-fav-btn:hover {
  background: rgba(15, 15, 20, 0.95);
  transform: scale(1.1);
  color: #f87171;
}

.card-fav-btn.active {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border-color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.favorites-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.favorites-header-row h2 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.favorites-header-row p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

/* ======================================================
   Studios Directory Grid & Cards
====================================================== */
.studios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.studio-card {
  background: #1a1a20;
  border: 1px solid #2a2a34;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.studio-card:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.studio-card-banner {
  height: 90px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #24242c;
}

.studio-card-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.studio-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.studio-card-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.studio-card-prefixes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.studio-prefix-tag {
  background: #23232c;
  color: #94a3b8;
  font-size: 0.68rem;
  font-family: monospace;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #333342;
}

.studio-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-dim);
  padding-top: 8px;
  border-top: 1px solid #262630;
}

/* Studio Hub Hero */
.studio-hero-banner {
  background: linear-gradient(135deg, #181820 0%, #22222c 100%);
  border: 1px solid #2f2f3e;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.studio-hero-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.studio-hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #38bdf8;
  background: #111;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.studio-hero-details {
  flex: 1;
  min-width: 260px;
}

.studio-hero-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.studio-hero-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}

.studio-hero-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 12px;
  max-width: 780px;
}

.studio-prefixes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.studio-prefixes-row span.lbl {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

.studio-actresses-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.studio-actress-pill {
  background: #1c1c24;
  border: 1px solid #2d2d3c;
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.studio-actress-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* ======================================================
   Performer Biological & Career Specs Grid
====================================================== */
.actress-bio-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.bio-spec-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bio-spec-lbl {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}

.bio-spec-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
}

.bio-spec-val a {
  color: #38bdf8;
  text-decoration: none;
  margin-right: 8px;
  font-size: 0.82rem;
}

.bio-spec-val a:hover {
  text-decoration: underline;
}

.actress-bio-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid #38bdf8;
  padding: 8px 14px;
  border-radius: 0 6px 6px 0;
  margin-top: 10px;
  margin-bottom: 14px;
}

/* ==========================================================================
   Stream Player Popout
   ========================================================================== */
.popout-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.popout-btn:hover {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   Mobile Touch Gestures Overlay (Double Tap Seek)
   ========================================================================== */
.touch-gesture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  pointer-events: none;
  z-index: 10;
}

.gesture-tap-zone {
  flex: 1;
  height: 100%;
  pointer-events: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.touch-gesture-overlay.native-active .gesture-tap-zone {
  pointer-events: auto;
}

.gesture-indicator {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.gesture-indicator.active {
  opacity: 1;
  transform: scale(1.1);
}

/* ==========================================================================
   5-Star Community Rating Widget
   ========================================================================== */
.star-rating-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #18181b;
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 8px;
}

.star-rating-stars {
  display: flex;
  gap: 3px;
  cursor: pointer;
}

.star-item {
  font-size: 1.15rem;
  color: #52525b;
  transition: color 0.15s, transform 0.15s;
  user-select: none;
}

.star-item:hover,
.star-item.hovered,
.star-item.active {
  color: #facc15;
  text-shadow: 0 0 6px rgba(250, 204, 21, 0.6);
}

.star-rating-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.star-avg-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: #facc15;
}

.star-count-badge {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Release Calendar / Daily Drops Timeline
   ========================================================================== */
.calendar-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-day-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-date-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #27272a;
}

.timeline-date-badge {
  background: var(--yandex-red);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-date-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
}

.timeline-count-badge {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-left: auto;
}

/* ==========================================================================
   Iconic Series & Franchise Hubs Grid
   ========================================================================== */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.series-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.series-card:hover {
  transform: translateY(-4px);
  border-color: var(--yandex-red);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.series-poster-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.series-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.series-card:hover .series-poster-img {
  transform: scale(1.05);
}

.series-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.series-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.series-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
}

.series-japanese {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.series-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

/* ==========================================================================
   Custom Playlists Manager
   ========================================================================== */
.playlist-top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.playlists-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.playlist-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 20px;
}

.playlist-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.playlist-title-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
}

.playlist-desc-text {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0;
}

.playlist-card-actions {
  display: flex;
  gap: 8px;
}

.playlist-videos-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.add-to-playlist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  margin: 14px 0;
}

.add-to-playlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #18181b;
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.add-to-playlist-item:hover {
  background: #27272a;
  border-color: #8b5cf6;
}

.add-to-playlist-item.selected {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
}

/* ==========================================================================
   User Playlist Indicator for Actresses on Single Video & Profile Pages
   ========================================================================== */
.watch-playlist-indicator-box {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.16) 0%, rgba(225, 29, 72, 0.10) 100%);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 10px;
  padding: 10px 16px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.25s ease;
}

.watch-playlist-indicator-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #c084fc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.watch-playlist-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actress-playlist-chip {
  background: rgba(139, 92, 246, 0.22);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #f3e8ff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.actress-playlist-chip:hover {
  background: #8b5cf6;
  color: #fff;
  border-color: #a855f7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.actress-pl-badge {
  background: rgba(139, 92, 246, 0.25);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #c084fc;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.actress-pl-badge:hover {
  background: #8b5cf6;
  color: #fff;
}

/* ======================================================
   Scene Preview Photo Gallery & Lightbox
====================================================== */
.gallery-card {
  margin-top: 18px;
  margin-bottom: 20px;
}

.watch-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.gallery-thumb-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #141416;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb-item:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #38bdf8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

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

.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  color: #fff;
  font-size: 1.1rem;
}

.gallery-thumb-item:hover .gallery-thumb-overlay {
  opacity: 1;
}

/* Fullscreen Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-wrapper img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9);
}

.lightbox-counter {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(20, 20, 22, 0.85);
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.lightbox-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close-btn:hover {
  background: #e11d48;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 20, 22, 0.75);
  color: #fff;
  border: 1px solid var(--border-subtle);
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: #38bdf8;
  color: #000;
  border-color: #38bdf8;
}

.lightbox-nav-btn.btn-prev {
  left: -54px;
}

.lightbox-nav-btn.btn-next {
  right: -54px;
}

@media (max-width: 768px) {
  .lightbox-nav-btn.btn-prev { left: 8px; }
  .lightbox-nav-btn.btn-next { right: 8px; }
  .lightbox-close-btn { top: -38px; right: 8px; }
}

/* Trailer Preview Toggle Button */
.btn-trailer-toggle {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(225, 29, 72, 0.5);
  color: #ff6b8b;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-trailer-toggle:hover, .btn-trailer-toggle.active {
  background: #e11d48;
  color: #fff;
  border-color: #e11d48;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.5);
}

/* Badges: Prefix, Censorship */
.detail-prefix-badge {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #c084fc;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.detail-prefix-badge:hover {
  background: #8b5cf6;
  color: #fff;
  border-color: #a855f7;
  transform: translateY(-1px);
}

.detail-censorship-badge {
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid rgba(100, 116, 139, 0.4);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-censorship-badge.censorship-uncensored {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(245, 158, 11, 0.15));
  border-color: #eab308;
  color: #fde047;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
}

.detail-censorship-badge.censorship-fc2 {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(217, 70, 239, 0.15));
  border-color: #c084fc;
  color: #e879f9;
}

.detail-censorship-badge.censorship-amateur {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #7dd3fc;
}

/* Performer Chips Strip with Avatar & Cup */
.watch-performers-section {
  margin-top: 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(20, 20, 24, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.section-micro-lbl {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.performer-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.performer-bio-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1c1c20;
  border: 1px solid #2d2d34;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.performer-bio-chip:hover {
  background: #25252c;
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.performer-bio-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #38bdf8;
}

.performer-bio-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-white);
}

.performer-cup-badge {
  background: #e11d48;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 2px;
}

.performer-height-badge {
  background: #222;
  color: #94a3b8;
  border: 1px solid #333;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 4px;
}

/* Thematic Tags Section */
.tags-section, .thematic-tag-cloud {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* Scene Preview Screenshots Gallery */
.gallery-card {
  margin-top: 24px;
}

.watch-gallery-grid, .scene-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.gallery-thumb-item, .scene-thumb-item {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #111115;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
}

.gallery-thumb-item:hover, .scene-thumb-item:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #38bdf8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(56, 189, 248, 0.35);
}

.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.2s ease;
}

.gallery-thumb-item:hover .gallery-thumb-img {
  filter: brightness(1.08);
}

.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.gallery-thumb-item:hover .gallery-thumb-overlay {
  opacity: 1;
}

/* Detail Badges: Prefix & Censorship */
.detail-prefix-badge, .prefix-badge {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #c084fc;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.detail-prefix-badge:hover, .prefix-badge:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: #c084fc;
  color: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.detail-censorship-badge, .censorship-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.censorship-uncensored {
  background: rgba(234, 179, 8, 0.18) !important;
  border-color: rgba(234, 179, 8, 0.6) !important;
  color: #facc15 !important;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.25);
}

.censorship-fc2 {
  background: rgba(236, 72, 153, 0.18) !important;
  border-color: rgba(236, 72, 153, 0.6) !important;
  color: #f472b6 !important;
}

.censorship-amateur {
  background: rgba(34, 197, 94, 0.18) !important;
  border-color: rgba(34, 197, 94, 0.6) !important;
  color: #4ade80 !important;
}

/* Trailer Preview Toggle Button */
.trailer-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.45);
  color: #fb7185;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.trailer-toggle-btn:hover {
  background: rgba(225, 29, 72, 0.3);
  border-color: #f43f5e;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.trailer-toggle-btn.active {
  background: #e11d48;
  border-color: #fda4af;
  color: #fff;
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.6);
  animation: pulse-trailer 2s infinite ease-in-out;
}

@keyframes pulse-trailer {
  0%, 100% { box-shadow: 0 0 10px rgba(225, 29, 72, 0.5); }
  50% { box-shadow: 0 0 20px rgba(225, 29, 72, 0.9); }
}

/* Fullscreen Screenshot Lightbox Modal */
.lightbox-overlay, .lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.2s ease-out;
}

.lightbox-overlay.hidden, .lightbox-modal.hidden {
  display: none !important;
}

.lightbox-content, .lightbox-stage {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: contain;
}

.lightbox-counter {
  margin-top: 10px;
  font-size: 0.84rem;
  color: #cbd5e1;
  background: rgba(15, 15, 20, 0.8);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
}

.lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: #ef4444;
  transform: rotate(90deg);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 15, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: rgba(56, 189, 248, 0.8);
  border-color: #38bdf8;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.btn-prev {
  left: -60px;
}

.lightbox-nav-btn.btn-next {
  right: -60px;
}

@media (max-width: 768px) {
  .lightbox-nav-btn.btn-prev { left: 10px; }
  .lightbox-nav-btn.btn-next { right: 10px; }
  .lightbox-close-btn { top: 10px; right: 10px; }
}

/* Floating Toast Notification */
.app-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 15px rgba(56, 189, 248, 0.25);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ======================================================
   Mobile-First Watch Page Minimalist Streamlining
   (Positioned at end of stylesheet for definitive override)
====================================================== */
@media (max-width: 768px) {
  /* Prevent horizontal overflow on entire mobile viewport */
  body.watch-active {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  body.watch-active .main-content {
    padding: 4px 10px 32px 10px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  body.watch-active .service-nav-tabs,
  body.watch-active #filter-strip {
    display: none !important;
  }

  /* Watch View: rigid boundaries so no child pushes out of frame */
  #watch-view {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .watch-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .watch-main-column,
  .watch-sidebar-column {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Watch Nav Bar: compact back button, hide long breadcrumbs */
  .watch-breadcrumbs {
    display: none !important;
  }

  .watch-nav-bar {
    margin-bottom: 6px !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .watch-back-btn {
    padding: 5px 12px !important;
    font-size: 0.76rem !important;
  }

  /* Video Player Container */
  .player-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 8px !important;
  }

  .ad-shield-banner {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .shield-text,
  .popout-text {
    display: none !important;
  }

  .trailer-toggle-btn {
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
  }

  .iframe-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    aspect-ratio: 16 / 9 !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .iframe-container iframe,
  .iframe-container video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border: none !important;
  }

  /* Source switcher on mobile: smooth touch-scrollable pills */
  .sources-label-text {
    display: none !important;
  }

  .source-switcher-bar {
    padding: 6px 8px !important;
    gap: 6px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .source-switcher-bar::-webkit-scrollbar,
  .source-pills::-webkit-scrollbar {
    display: none !important;
  }

  .source-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .source-tab-btn {
    flex-shrink: 0 !important;
    padding: 5px 10px !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
  }

  /* Player Action Strip: flex-wrap with rigid bounds so it never pushes out */
  .player-action-strip {
    padding: 8px 10px !important;
    margin-top: 6px !important;
    margin-bottom: 12px !important;
    gap: 8px 6px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .vote-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    align-items: center !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
  }

  .vote-btn {
    padding: 4px 8px !important;
    font-size: 0.76rem !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .vote-btn.icon-only-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
    border-radius: 50% !important;
  }

  .btn-fullscreen-landscape {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
  }

  @media (max-width: 440px) {
    .btn-fullscreen-landscape .vote-text {
      display: none !important;
    }
    .btn-fullscreen-landscape {
      width: 32px !important;
      height: 32px !important;
      min-width: 32px !important;
      padding: 0 !important;
      border-radius: 50% !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
  }

  .star-rating-box {
    padding: 3px 8px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }

  .star-rating-stars {
    font-size: 0.82rem !important;
    letter-spacing: -1px !important;
  }

  /* Video Details Card & specs grid on mobile */
  .video-details-card {
    padding: 14px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 10px !important;
  }

  .details-header {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .code-and-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
  }

  .detail-title {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    hyphens: auto;
    margin-bottom: 4px !important;
  }

  .detail-original-title {
    font-size: 0.8rem !important;
    color: var(--text-dim) !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    margin-bottom: 12px !important;
  }

  .meta-specs-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .meta-item {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .meta-item .label {
    font-size: 0.65rem !important;
  }

  .meta-item .value {
    font-size: 0.76rem !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  .watch-performers-section,
  .tags-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .performer-chips-container,
  .genres-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .performer-bio-chip {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .performer-bio-name {
    max-width: 130px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .genre-badge {
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
    word-break: break-word !important;
  }

  /* All Cards on Mobile */
  .all-sources-card {
    padding: 14px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    margin-top: 12px !important;
  }

  .all-sources-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .all-sources-header h3 {
    font-size: 0.95rem !important;
    word-break: break-word !important;
  }

  .all-sources-header .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Gallery Card: Hidden if empty */
  #watch-gallery-card.hidden {
    display: none !important;
  }

  .watch-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Related and Performer Releases Grids */
  .performer-releases-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Comments Form on Mobile */
  .comment-inputs-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .comment-input-form input,
  .comment-input-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .comment-form-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .comment-form-footer .btn {
    width: 100% !important;
  }

  /* Sidebar Recommended Releases on Mobile */
  .related-vertical-list,
  .sidebar-video-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .sidebar-card-info {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }

  .sidebar-card-title {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
}

/* ── Native Sponsor Ad Cards (Clean, Whitelisted, Shielded) ────────────── */
.player-sponsor-banner {
  margin-top: 12px;
  width: 100%;
}

.sponsor-ad-card {
  background: linear-gradient(135deg, rgba(34, 34, 40, 0.95), rgba(24, 24, 27, 0.95));
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.sponsor-ad-card:hover {
  border-color: rgba(168, 85, 247, 0.7);
  background: linear-gradient(135deg, rgba(42, 38, 52, 0.95), rgba(28, 26, 36, 0.95));
  transform: translateY(-1px);
}

.sponsor-ad-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  white-space: nowrap;
  text-transform: uppercase;
}

.sponsor-ad-content {
  flex: 1;
  min-width: 0;
}

.sponsor-ad-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.sponsor-ad-subtitle {
  font-size: 0.78rem;
  color: #a1a1aa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sponsor-ad-cta {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.sponsor-ad-cta:hover {
  filter: brightness(1.15);
  transform: scale(1.02);
}

.sponsor-ad-dismiss {
  background: transparent;
  border: none;
  color: #71717a;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}

.sponsor-ad-dismiss:hover {
  color: #e4e4e7;
}

/* Sidebar Sponsor Card */
.sidebar-sponsor-banner {
  margin-bottom: 16px;
}

.sidebar-sponsor-card {
  background: linear-gradient(135deg, #18181b, #222226);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-sponsor-card:hover {
  border-color: rgba(56, 189, 248, 0.7);
  transform: translateY(-1px);
}

.sidebar-sponsor-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin: 6px 0 4px;
}

.sidebar-sponsor-desc {
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.35;
  margin-bottom: 8px;
}

.sidebar-sponsor-cta {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.sidebar-sponsor-cta:hover {
  background: rgba(56, 189, 248, 0.25);
}

@media (max-width: 640px) {
  .sponsor-ad-card {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px;
  }
  .sponsor-ad-cta {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   User Auth & Cloud Playlist Sync Styling
   ========================================================================== */

.user-auth-container {
  position: relative;
  display: flex;
  align-items: center;
}

.btn-user-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-user-login:hover {
  background: rgba(14, 165, 233, 0.22);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.user-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  position: relative;
}

.user-profile-badge:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
}

.user-avatar-indicator {
  font-size: 0.9rem;
}

.user-display-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-cloud-pill {
  font-size: 0.78rem;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.6));
}

.user-chevron {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* User Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #12131a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.2);
  padding: 8px 0;
  z-index: 1050;
  animation: fadeInDropdown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-dropdown-header {
  padding: 10px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-dropdown-header .dropdown-label {
  font-size: 0.72rem;
  color: var(--text-dim, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-dropdown-header strong {
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-sync-tag {
  display: inline-block;
  font-size: 0.68rem;
  color: #38bdf8;
  font-weight: 600;
  margin-top: 3px;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.user-dropdown-item.logout-item {
  color: #f87171;
}

.user-dropdown-item.logout-item:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* Unified Sign-In Modal Styles */
.auth-modal-box {
  width: 100% !important;
  max-width: min(390px, calc(100vw - 28px)) !important;
  max-height: calc(100dvh - 32px) !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  background: linear-gradient(145deg, #18181c 0%, #1f1f26 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 40px rgba(252, 63, 29, 0.08) !important;
  padding: 30px 24px !important;
  text-align: center;
  position: relative;
}

.auth-card-header {
  margin-bottom: 22px;
}

.auth-icon-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: var(--yandex-red, #fc3f1d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(252, 63, 29, 0.45);
  user-select: none;
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.auth-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim, #929295);
  margin: 0;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.auth-field-group label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a0a0a8;
}

.auth-input-container {
  display: flex;
  align-items: center;
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0 12px;
  transition: all 0.2s ease;
}

.auth-input-container:focus-within {
  border-color: #fc3f1d;
  box-shadow: 0 0 0 2px rgba(252, 63, 29, 0.2), 0 0 16px rgba(252, 63, 29, 0.1);
  background: #141418;
}

.auth-field-icon {
  font-size: 0.95rem;
  margin-right: 10px;
  opacity: 0.6;
  user-select: none;
}

.auth-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  padding: 12px 0;
  outline: none;
  font-family: inherit;
}

.auth-input-field::placeholder {
  color: #55555c;
}

.auth-submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, #fc3f1d 0%, #e03212 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(252, 63, 29, 0.35);
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #ff5232 0%, #f03918 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(252, 63, 29, 0.45);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-error-msg {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.8rem;
  margin-top: 12px;
  text-align: left;
}

.auth-footer-note {
  margin-top: 18px;
  font-size: 0.72rem;
  color: #65656d;
}

@media (max-width: 480px) {
  .auth-modal-box {
    padding: 22px 18px !important;
    border-radius: 16px !important;
    max-height: calc(100dvh - 24px) !important;
  }
  .auth-card-header {
    margin-bottom: 16px;
  }
  .auth-icon-badge {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    margin-bottom: 10px;
  }
  .auth-title {
    font-size: 1.2rem;
  }
  .auth-input-container {
    padding: 0 10px;
  }
  .auth-input-field {
    padding: 10px 0;
    font-size: 0.88rem;
  }
  .auth-submit-btn {
    padding: 11px;
    font-size: 0.88rem;
  }
}

/* ======================================================
   ADMIN PANEL — World-Class Command Center UI
   Dark glassmorphic design with neon accent system
====================================================== */

/* Admin Auth Modal */
.admin-auth-modal-box {
  max-width: 420px !important;
  background: linear-gradient(135deg, #16161a 0%, #1c1c22 100%) !important;
  border: 1px solid rgba(252, 63, 29, 0.2) !important;
  box-shadow: 0 0 0 1px rgba(252,63,29,0.08), 0 24px 60px rgba(0,0,0,0.9), 0 0 80px rgba(252,63,29,0.06) !important;
}

.admin-lock-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(252,63,29,0.15) 0%, rgba(252,63,29,0.25) 100%);
  border: 1px solid rgba(252,63,29,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
  box-shadow: 0 0 24px rgba(252,63,29,0.2);
}

/* Main Admin View Layout */
#admin-view {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

/* Admin Sub-Tab Navigation */
.admin-subnav {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-subnav-btn {
  flex: 1;
  min-width: 110px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.admin-subnav-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-white);
}

.admin-subnav-btn.active {
  background: rgba(252, 63, 29, 0.15);
  color: #ff6b52;
  box-shadow: inset 0 0 0 1px rgba(252,63,29,0.3);
}

/* Admin Sub-Tab Panels */
.admin-panel-section { display: none; }
.admin-panel-section.active { display: block; }

/* Admin Header */
.admin-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-dash-title { display: flex; align-items: center; gap: 12px; }

.admin-crown-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fc3f1d 0%, #e53935 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(252,63,29,0.4);
  flex-shrink: 0;
}

.admin-dash-title h2 {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #cc9999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-dash-title p { font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }
.admin-dash-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* KPI Metrics Strip */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.admin-kpi-card {
  background: linear-gradient(135deg, #1e1e22 0%, #222228 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.admin-kpi-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

.admin-kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 14px 14px 0 0;
}

.admin-kpi-card.kpi-red::before    { background: linear-gradient(90deg, #fc3f1d, #e53935); }
.admin-kpi-card.kpi-green::before  { background: linear-gradient(90deg, #22c55e, #16a34a); }
.admin-kpi-card.kpi-blue::before   { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.admin-kpi-card.kpi-amber::before  { background: linear-gradient(90deg, #f59e0b, #d97706); }
.admin-kpi-card.kpi-purple::before { background: linear-gradient(90deg, #a78bfa, #7c3aed); }

.kpi-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kpi-sub { font-size: 0.72rem; color: var(--text-dim); margin-top: 6px; }
.kpi-icon { position: absolute; top: 16px; right: 16px; font-size: 1.5rem; opacity: 0.2; }

/* SEO Ladder Section */
.seo-ladder-card {
  background: linear-gradient(135deg, #1a1a20 0%, #1e1e26 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.seo-ladder-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(252,63,29,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.seo-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.seo-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(252,63,29,0.12);
  border: 1px solid rgba(252,63,29,0.3);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ff6b52;
}

.seo-stage-badge .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fc3f1d;
  animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.seo-countdown-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 18px;
  text-align: center;
  min-width: 200px;
}

.seo-countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.seo-countdown-time {
  font-size: 1.6rem;
  font-weight: 800;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.seo-countdown-code { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; }

/* Ladder Progress Stages */
.seo-ladder-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 12px 0 20px;
}

.seo-ladder-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.seo-step-bar {
  width: 100%; height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  transition: background 0.4s ease;
}

.seo-step-bar.active    { background: linear-gradient(90deg, #fc3f1d, #ff9a7a); }
.seo-step-bar.completed { background: linear-gradient(90deg, #22c55e, #16a34a); }

.seo-step-label { font-size: 0.62rem; color: var(--text-dim); text-align: center; white-space: nowrap; }
.seo-step-label.active    { color: #ff6b52; font-weight: 700; }
.seo-step-label.completed { color: #22c55e; }

/* Upcoming Queue Table */
.upcoming-queue-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
}

.upcoming-queue-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
  padding: 8px 12px;
  text-align: left;
}

.upcoming-queue-table td {
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  font-size: 0.82rem;
  color: var(--text-white);
}

.upcoming-queue-table td:first-child { border-radius: 8px 0 0 8px; }
.upcoming-queue-table td:last-child  { border-radius: 0 8px 8px 0; }
.upcoming-queue-table tr:hover td    { background: rgba(255,255,255,0.05); }

.queue-code-badge {
  display: inline-block;
  background: rgba(56,189,248,0.12);
  color: #38bdf8;
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 0.73rem;
  font-weight: 700;
  font-family: monospace;
}

.queue-minutes-pill {
  display: inline-block;
  background: rgba(252,63,29,0.12);
  color: #ff6b52;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.queue-title-cell {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.btn-publish-now {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-publish-now:hover { background: rgba(34,197,94,0.2); }

/* SEO Action Buttons Row */
.seo-action-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.btn-seo-action {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 9px;
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer; border: 1px solid;
  transition: all 0.2s;
}

.btn-seo-indexnow { background: rgba(56,189,248,0.1);  color: #38bdf8; border-color: rgba(56,189,248,0.25); }
.btn-seo-indexnow:hover { background: rgba(56,189,248,0.18); }

.btn-seo-google   { background: rgba(34,197,94,0.1);   color: #22c55e; border-color: rgba(34,197,94,0.25);  }
.btn-seo-google:hover { background: rgba(34,197,94,0.18); }

.btn-seo-replenish { background: rgba(167,139,250,0.1); color: #a78bfa; border-color: rgba(167,139,250,0.25); }
.btn-seo-replenish:hover { background: rgba(167,139,250,0.18); }

.btn-seo-check { background: rgba(245,158,11,0.1); color: #f59e0b; border-color: rgba(245,158,11,0.25); }
.btn-seo-check:hover { background: rgba(245,158,11,0.18); }

/* Admin Section Cards */
.admin-section-card {
  background: #1a1a20;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 20px;
}

.admin-section-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; flex-wrap: wrap; gap: 10px;
}

.admin-section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 700; color: var(--text-white);
}

.admin-section-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
}

.icon-bg-red    { background: rgba(252,63,29,0.15); }
.icon-bg-blue   { background: rgba(56,189,248,0.15); }
.icon-bg-green  { background: rgba(34,197,94,0.15); }
.icon-bg-purple { background: rgba(167,139,250,0.15); }
.icon-bg-amber  { background: rgba(245,158,11,0.15); }

/* Terminal / Log Console */
.admin-terminal {
  background: #0d0d10;
  border: 1px solid #1a1a20;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

.admin-terminal-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: #131318; padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.admin-terminal-dots { display: flex; gap: 6px; }
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }

.admin-terminal-title { font-size: 0.72rem; color: var(--text-dim); font-family: inherit; }

.admin-terminal-clear {
  background: none; border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim); border-radius: 5px; padding: 3px 10px;
  font-size: 0.7rem; cursor: pointer; transition: all 0.2s;
}

.admin-terminal-clear:hover { background: rgba(255,255,255,0.06); color: var(--text-white); }

.admin-terminal-body {
  height: 280px; overflow-y: auto;
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 3px;
}

.admin-terminal-body::-webkit-scrollbar { width: 4px; }
.admin-terminal-body::-webkit-scrollbar-track { background: transparent; }
.admin-terminal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.admin-log-line { font-size: 0.75rem; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.admin-log-line .log-ts { color: var(--text-dim); margin-right: 8px; user-select: none; }
.admin-log-line.log-info .log-msg    { color: #e2e8f0; }
.admin-log-line.log-success .log-msg { color: #22c55e; }
.admin-log-line.log-error .log-msg   { color: #f87171; }
.admin-log-line.log-warn .log-msg    { color: #f59e0b; }

/* Crawler controls */
.crawler-action-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }

.crawler-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 7px 12px; font-size: 0.78rem; font-weight: 600;
}

.crawler-status-pill .status-indicator { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.crawler-status-pill.running .status-indicator { background: #22c55e; animation: pulse-anim 1.5s infinite; }
.crawler-status-pill.running { border-color: rgba(34,197,94,0.3); color: #22c55e; }
.crawler-status-pill.idle    { color: var(--text-muted); }

/* Catalog Management */
.catalog-filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }

.catalog-search-input {
  flex: 1; min-width: 200px;
  background: #0f0f12; border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 10px 14px;
  color: var(--text-white); font-size: 0.85rem; outline: none;
}

.catalog-search-input:focus { border-color: rgba(252,63,29,0.4); }

.catalog-filter-select {
  background: #0f0f12; border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 10px 12px;
  color: var(--text-white); font-size: 0.82rem; cursor: pointer; outline: none;
}

.catalog-video-list { display: flex; flex-direction: column; gap: 6px; }

.catalog-video-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.02); border: 1px solid transparent;
  border-radius: 10px; padding: 10px 14px; transition: all 0.2s;
}

.catalog-video-row:hover { background: rgba(255,255,255,0.04); border-color: var(--border-subtle); }

.catalog-row-thumb { width: 64px; height: 40px; border-radius: 6px; object-fit: cover; background: #1a1a20; flex-shrink: 0; }
.catalog-row-info  { flex: 1; min-width: 0; }
.catalog-row-code  { font-size: 0.75rem; font-weight: 700; color: #38bdf8; font-family: monospace; }
.catalog-row-title { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.catalog-status-badge { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; flex-shrink: 0; }
.catalog-status-badge.published { background: rgba(34,197,94,0.15); color: #22c55e; }
.catalog-status-badge.scheduled { background: rgba(56,189,248,0.15); color: #38bdf8; }
.catalog-status-badge.broken    { background: rgba(248,113,113,0.15); color: #f87171; }
.catalog-status-badge.draft     { background: rgba(148,163,184,0.15); color: #94a3b8; }

.catalog-row-sources { font-size: 0.72rem; color: var(--text-dim); flex-shrink: 0; }
.catalog-row-actions { display: flex; gap: 6px; flex-shrink: 0; }

.catalog-action-btn {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 5px 10px; font-size: 0.72rem;
  color: var(--text-muted); cursor: pointer; transition: all 0.2s;
}

.catalog-action-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-white); }
.catalog-action-btn.danger { color: #f87171; }
.catalog-action-btn.danger:hover { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.3); }
.catalog-action-btn.heal { color: #22c55e; }
.catalog-action-btn.heal:hover { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); }
.catalog-action-btn.view { color: #38bdf8; }
.catalog-action-btn.view:hover { background: rgba(56,189,248,0.1); border-color: rgba(56,189,248,0.3); }

/* URL Test Results */
.admin-test-results {
  background: #0a0a0d; border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 16px; margin-top: 14px;
  font-family: 'Fira Code', monospace; font-size: 0.75rem;
  line-height: 1.7; color: #a3e635; max-height: 320px; overflow-y: auto;
  white-space: pre-wrap; word-break: break-all;
}

/* Admin inputs */
.admin-input {
  width: 100%; background: #0f0f12;
  border: 1px solid var(--border-subtle); border-radius: 8px;
  padding: 10px 14px; color: var(--text-white); font-size: 0.85rem;
  outline: none; transition: border-color 0.2s; box-sizing: border-box;
}

.admin-input:focus { border-color: rgba(252,63,29,0.4); box-shadow: 0 0 0 2px rgba(252,63,29,0.08); }

.admin-textarea {
  width: 100%; background: #0f0f12;
  border: 1px solid var(--border-subtle); border-radius: 8px;
  padding: 10px 14px; color: var(--text-white); font-size: 0.82rem;
  font-family: 'Fira Code', monospace; outline: none; resize: vertical;
  min-height: 80px; transition: border-color 0.2s; box-sizing: border-box;
}

.admin-textarea:focus { border-color: rgba(252,63,29,0.4); }

.admin-select {
  background: #0f0f12; border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 9px 12px;
  color: var(--text-white); font-size: 0.82rem; cursor: pointer; outline: none;
}

.admin-label {
  font-size: 0.73rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-dim); margin-bottom: 6px; display: block;
}

.admin-field { margin-bottom: 14px; }

.admin-divider { height: 1px; background: var(--border-subtle); margin: 20px 0; }

/* Source health badge */
.src-health-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }
.src-health-dot.ok      { background: #22c55e; }
.src-health-dot.broken  { background: #f87171; }
.src-health-dot.unknown { background: #94a3b8; }

/* Empty state */
.admin-empty-state { text-align: center; padding: 40px 20px; color: var(--text-dim); }
.admin-empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.5; display: block; }
.admin-empty-state p { font-size: 0.85rem; }

/* Ladder stage schedule table */
.ladder-stage-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; margin-top: 12px; }
.ladder-stage-table td { padding: 8px 12px; font-size: 0.8rem; background: rgba(255,255,255,0.025); }
.ladder-stage-table td:first-child { border-radius: 8px 0 0 8px; color: var(--text-muted); font-weight: 700; }
.ladder-stage-table td:last-child  { border-radius: 0 8px 8px 0; }
.ladder-stage-table tr.current-stage td { background: rgba(252,63,29,0.06); }
.ladder-stage-table tr.current-stage td:first-child { border-left: 3px solid #fc3f1d; color: #ff6b52; }

/* Admin pagination */
.admin-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.admin-page-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 7px 16px; color: var(--text-muted); font-size: 0.8rem; cursor: pointer; transition: all 0.2s; }
.admin-page-btn:hover:not(:disabled) { background: rgba(255,255,255,0.1); color: var(--text-white); }
.admin-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.admin-page-info { font-size: 0.78rem; color: var(--text-dim); }

/* Heal status chip */
.heal-result-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700;
}
.heal-result-chip.healed  { background: rgba(34,197,94,0.15); color: #22c55e; }
.heal-result-chip.no-heal { background: rgba(148,163,184,0.1); color: #94a3b8; }
.heal-result-chip.healing { background: rgba(245,158,11,0.12); color: #f59e0b; }
.heal-result-chip.spinning::before { content: '⏳ '; }

/* Responsive */
@media (max-width: 768px) {
  #admin-view { padding: 0 12px 40px; }
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-subnav-btn { min-width: 90px; font-size: 0.74rem; padding: 8px 10px; }
  .seo-stage-header { flex-direction: column; }
  .seo-countdown-box { min-width: auto; width: 100%; }
  .admin-terminal-body { height: 200px; }
  .seo-ladder-track { grid-template-columns: repeat(3, 1fr); }
  .catalog-video-row { flex-wrap: wrap; }
  .queue-title-cell { max-width: 160px; }
}

/* ======================================================
   LANGUAGE LOCALIZATION SWITCHER UI
====================================================== */
.lang-switcher-container {
  position: relative;
  display: inline-block;
}

.btn-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 7px 12px;
  color: var(--text-white);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-lang-switcher:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.lang-chevron {
  font-size: 0.7rem;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #18181c;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 6px;
  min-width: 160px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 3px;
  backdrop-filter: blur(12px);
}

.lang-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.lang-option-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
}

.lang-option-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-weight: 700;
}

.lang-opt-flag {
  font-size: 1.1rem;
}

/* ======================================================
   FULLSCREEN LANDSCAPE & THEATER MODE
   Orientation lock and theater mode button
====================================================== */

/* Fullscreen Landscape / Theater Button in Player Action Strip */
.btn-fullscreen-landscape {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: var(--text-white);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fullscreen-landscape:hover {
  background: rgba(252, 63, 29, 0.15);
  border-color: rgba(252, 63, 29, 0.4);
  color: #ff6b52;
  transform: translateY(-1px);
}

.btn-fullscreen-landscape .vote-icon {
  font-size: 1.05rem;
  line-height: 1;
}

/* Fullscreen Landscape Rules */
:fullscreen .player-wrapper,
:-webkit-full-screen .player-wrapper,
:-moz-full-screen .player-wrapper {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000 !important;
}

:fullscreen .iframe-container,
:-webkit-full-screen .iframe-container,
:-moz-full-screen .iframe-container {
  width: 100vw !important;
  height: 100vh !important;
  padding-bottom: 0 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 99999 !important;
}

:fullscreen #video-iframe,
:fullscreen #video-native,
:-webkit-full-screen #video-iframe,
:-webkit-full-screen #video-native,
:-moz-full-screen #video-iframe,
:-moz-full-screen #video-native {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Automatic Mobile Landscape Cinema Mode */
@media (max-width: 950px) and (orientation: landscape) {
  body.watch-active .site-header,
  body.watch-active .site-footer,
  body.watch-active .watch-crumb-bar,
  body.watch-active .watch-meta-card {
    display: none !important;
  }
  body.watch-active #watch-view {
    padding: 0 !important;
    max-width: 100vw !important;
    margin: 0 !important;
  }
  body.watch-active .main-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100vw !important;
  }
  body.watch-active .player-wrapper {
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
  }
  body.watch-active .iframe-container {
    height: 100dvh !important;
    padding-bottom: 0 !important;
  }
  body.watch-active #video-iframe,
  body.watch-active #video-native {
    width: 100vw !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    object-fit: contain !important;
  }
}

/* On-Demand Live Search UI */
.on-demand-loading-box {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin: 24px auto;
  max-width: 600px;
  width: 100%;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  animation: onDemandFadeIn 0.3s ease;
}

@keyframes onDemandFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.on-demand-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(252, 63, 29, 0.15);
  border-top-color: var(--yandex-red);
  border-radius: 50%;
  animation: onDemandSpin 0.85s linear infinite;
  margin-bottom: 20px;
}

@keyframes onDemandSpin {
  to { transform: rotate(360deg); }
}

.on-demand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.on-demand-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.5;
}

/* ======================================================
   SEO SEMANTIC CRAWLER MESH — High-Speed Spider Discovery
/* ======================================================
   SEO SEMANTIC CRAWLER MESH & SITE DIRECTORY ACCORDION
   Compliant with Google Search Guidelines (100% indexed)
   Collapsed by default for human users; full DOM text links
====================================================== */
details.seo-crawler-mesh,
.seo-crawler-mesh {
  margin: 32px auto 20px;
  max-width: 1400px;
  background: rgba(18, 18, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

summary.seo-mesh-summary-bar {
  list-style: none;
  cursor: pointer;
  padding: 12px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s, color 0.2s;
}

summary.seo-mesh-summary-bar::-webkit-details-marker,
summary.seo-mesh-summary-bar::marker {
  display: none;
}

summary.seo-mesh-summary-bar:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

details.seo-crawler-mesh[open] summary.seo-mesh-summary-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ff6b52;
}

.seo-mesh-toggle-icon {
  font-size: 0.9rem;
  transition: transform 0.2s;
}

details.seo-crawler-mesh[open] .seo-mesh-toggle-icon {
  transform: rotate(180deg);
}

.seo-mesh-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
}

.seo-mesh-breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.seo-mesh-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.seo-mesh-breadcrumbs a:hover {
  color: var(--yandex-red);
}

.seo-mesh-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.4;
  margin-bottom: 8px;
}

.seo-mesh-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.seo-mesh-meta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-mesh-meta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-mesh-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 80px;
}

.seo-mesh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seo-mesh-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.seo-mesh-pill.actress-pill {
  background: rgba(252, 63, 29, 0.1);
  color: #ff6b52;
  border: 1px solid rgba(252, 63, 29, 0.2);
}
.seo-mesh-pill.actress-pill:hover {
  background: rgba(252, 63, 29, 0.2);
}

.seo-mesh-pill.studio-pill {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.seo-mesh-pill.studio-pill:hover {
  background: rgba(56, 189, 248, 0.2);
}

.seo-mesh-pill.prefix-pill {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.seo-mesh-pill.tag-pill {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.seo-mesh-pill.tag-pill:hover {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.seo-mesh-section {
  margin-top: 20px;
}

.seo-mesh-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 14px;
}

.seo-mesh-text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}

.seo-mesh-text-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.seo-mesh-text-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(252, 63, 29, 0.35);
  transform: translateY(-1px);
}

.seo-mesh-text-link .seo-mesh-code-badge {
  position: static;
  background: rgba(252, 63, 29, 0.15);
  color: #ff6b52;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.seo-mesh-text-title {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seo-mesh-text-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Global photo gallery hidden rule */
#watch-gallery-card.hidden,
.gallery-card.hidden {
  display: none !important;
}

.seo-mesh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.seo-mesh-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.seo-mesh-card:hover {
  transform: translateY(-2px);
  border-color: rgba(252, 63, 29, 0.3);
}

.seo-mesh-card-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.seo-mesh-thumb-box {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}

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

.seo-mesh-code-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.seo-mesh-card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.seo-mesh-card-title {
  font-size: 0.78rem;
  color: var(--text-white);
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seo-mesh-card-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: auto;
  display: flex;
  gap: 4px;
}

.seo-mesh-footer {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-mesh-index-col {
  flex: 1;
  min-width: 260px;
}

.seo-mesh-index-col h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 700;
}

.seo-mesh-link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seo-mesh-link-cloud a {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  text-decoration: none;
  transition: all 0.2s;
}

.seo-mesh-link-cloud a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .seo-mesh-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .seo-crawler-mesh {
    padding: 16px;
    margin: 20px 0;
  }
}

/* ======================================================
   PWA INSTALLATION, CAMOUFLAGE ICONS & PIN SECURITY LOCK
   Ultra-modern glassmorphic design system
====================================================== */

/* Header Install Button */
.btn-install-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-install-header:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .btn-install-header .install-header-text {
    display: none;
  }
  .btn-install-header {
    padding: 6px 10px;
  }
}

/* PWA Install Modal Box */
.pwa-install-box {
  max-width: 460px !important;
  background: linear-gradient(145deg, #18181d 0%, #202028 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 22px !important;
  padding: 28px 24px !important;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.1) !important;
}

.pwa-modal-header {
  margin-bottom: 20px;
}

.pwa-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0.05) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 12px;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15);
}

.pwa-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}

.pwa-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
}

/* Camouflage 2x2 Grid */
.camouflage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.camouflage-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.camouflage-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.camouflage-card.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
}

.camouflage-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.camouflage-icon-wrap img {
  width: 100%;
  height: 100%;
  display: block;
}

.camouflage-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.camouflage-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.camouflage-tag {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 2px;
}

.camouflage-tag.disguise {
  color: #34d399;
}

/* Camouflage Live Preview Box */
.camouflage-preview-box {
  background: #101014;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.preview-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-item img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.preview-item span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
}

/* Install Action Buttons */
.btn-install-action {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
  transition: all 0.2s ease;
}

.btn-install-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.55);
}

/* Browser Detection Banner */
.browser-detect-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 16px;
  text-align: left;
}

.browser-badge-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.browser-detect-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.browser-detected-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.browser-detected-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-capability-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  margin-top: 3px;
}

.browser-capability-pill.manual {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

/* SSL HTTPS Switch Box */
.ssl-switch-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(234, 88, 12, 0.1) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  text-align: left;
}

.ssl-switch-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 4px;
}

.ssl-switch-text {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.4;
}

.ssl-switch-btn {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fef08a !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  font-weight: 700 !important;
}

.ssl-switch-btn:hover {
  background: rgba(245, 158, 11, 0.35) !important;
}

/* Generic Browser Step Guide */
.pwa-step-guide {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  margin-top: 10px;
}

.pwa-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-white);
}

/* iOS Safari Instruction Steps */
.pwa-ios-instructions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
}

.ios-instruction-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-white);
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #38bdf8;
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ======================================================
   4-DIGIT PIN SECURITY LOCK & NUMPAD
====================================================== */

.pin-setup-box {
  max-width: 380px !important;
  background: linear-gradient(145deg, #16161b 0%, #1e1e26 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 22px !important;
  padding: 28px 22px !important;
  text-align: center;
}

.pin-shield-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.pin-setup-subtitle {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 4px 0 16px;
  line-height: 1.4;
}

.pin-input-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

/* Passcode 4-Dot Indicators */
.pin-dots-display {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pin-dot.filled {
  background: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  transform: scale(1.15);
}

.pin-error-text {
  color: #f87171;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
  animation: shakeAnim 0.3s ease;
}

@keyframes shakeAnim {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* Numpad Keypad */
.pin-numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 270px;
  margin: 0 auto 16px;
}

.pin-num-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pin-num-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.pin-num-btn:active {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  transform: scale(0.95);
}

.pin-func-btn {
  font-size: 1.1rem;
  color: var(--text-dim);
}

.pin-disguise-toggle-row {
  margin: 14px 0 16px;
  text-align: left;
}

.pin-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
}

.pin-setup-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* ======================================================
   FULL-SCREEN PRIVACY APP LOCK OVERLAY (ZERO FLASH)
====================================================== */

html.app-pre-locked {
  background: #08080c !important;
  overflow: hidden !important;
}

html.app-pre-locked body {
  overflow: hidden !important;
}

html.app-pre-locked #pwa-lock-screen {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
}

html.app-pre-locked body > *:not(#pwa-lock-screen) {
  visibility: hidden !important;
}

html[data-lock-style="calculator"] #lock-keypad-view {
  display: none !important;
}

html[data-lock-style="calculator"] #lock-calculator-view {
  display: block !important;
}

html[data-lock-style="keypad"] #lock-calculator-view {
  display: none !important;
}

html[data-lock-style="keypad"] #lock-keypad-view {
  display: block !important;
}

.pwa-lock-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(8, 8, 12, 0.95);
  backdrop-filter: blur(45px);
  -webkit-backdrop-filter: blur(45px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pwa-lock-screen.hidden {
  display: none !important;
}

.lock-panel-view {
  width: 100%;
  max-width: 340px;
  text-align: center;
}

.lock-panel-view.hidden {
  display: none !important;
}

.lock-logo-badge {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.lock-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}

.lock-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0 0 20px;
}

.lock-error-msg {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  margin-bottom: 16px;
  animation: shakeAnim 0.3s ease;
}

/* ======================================================
   AUTHENTIC WORKING DISGUISE CALCULATOR
====================================================== */

.calc-app-frame {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: #000000;
  border-radius: 28px;
  padding: 20px 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.calc-screen {
  padding: 16px 12px 20px;
  text-align: right;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.calc-history {
  font-size: 0.85rem;
  color: #888888;
  min-height: 1.2em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
}

.calc-current {
  font-size: 3rem;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.calc-btn {
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  font-size: 1.45rem;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-btn:active {
  filter: brightness(1.3);
  transform: scale(0.96);
}

/* Numbers: Dark Gray */
.calc-btn.num {
  background: #333333;
}

/* Functions: Light Gray */
.calc-btn.fn {
  background: #a5a5a5;
  color: #000000;
}

/* Operators: Apple Orange */
.calc-btn.op {
  background: #ff9f0a;
  color: #ffffff;
  font-size: 1.6rem;
}

/* Zero button: pill shape spanning 2 columns */
.calc-btn.zero {
  grid-column: span 2;
  aspect-ratio: auto;
  border-radius: 999px;
  justify-content: flex-start;
  padding-left: 24px;
}

/* ======================================================
   APP LOCK SETTINGS MODAL
====================================================== */

.pin-settings-box {
  max-width: 440px !important;
  background: linear-gradient(145deg, #18181d 0%, #202028 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  padding: 28px 24px !important;
}

.pin-settings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.pin-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pin-setting-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pin-setting-row strong {
  font-size: 0.88rem;
  color: #fff;
  display: block;
}

.pin-setting-row p {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 2px 0 0;
}

/* Apple-Style Switch Toggle */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #333338;
  border-radius: 26px;
  transition: 0.25s ease;
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.25s ease;
}

.switch-toggle input:checked + .switch-slider {
  background: #22c55e;
}

.switch-toggle input:checked + .switch-slider::before {
  transform: translateX(20px);
}
