:root {
  --bg: #07090d;
  --bg2: #0d1118;
  --panel: #121821;
  --panel2: #18212d;
  --line: rgba(140, 170, 210, 0.14);
  --text: #edf2f7;
  --muted: #8b97a8;
  --accent: #4ea2ff;
  --accent2: #7cf0c2;
  --warn: #ffb020;
  --new: #5eead4;
  --feat: #a78bfa;
  --trusted: #38bdf8;
  --radius: 16px;
  --side: 250px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Syne", "DM Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; min-height: 100dvh; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(78, 162, 255, 0.16), transparent 55%),
    radial-gradient(700px 380px at 90% 0%, rgba(124, 240, 194, 0.08), transparent 50%),
    var(--bg);
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

.hub {
  display: grid;
  grid-template-columns: var(--side) 1fr;
  height: 100%;
  min-height: 100dvh;
  min-height: 100svh;
}

.side {
  border-right: 1px solid var(--line);
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(12px);
  padding: 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.2rem 0.35rem;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-weight: 800;
  background: linear-gradient(145deg, #4ea2ff, #1d4e89);
  box-shadow: 0 8px 24px rgba(78, 162, 255, 0.25);
}
.brand-text {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}
.brand-text span { color: var(--accent); }

.side-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0.4rem;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin: 0.1rem 0.2rem 0.25rem;
}
.mode-switch-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: 12px;
  padding: 0.7rem 0.5rem;
  cursor: pointer;
}
.mode-switch-btn.active {
  background: linear-gradient(135deg, #4ea2ff, #2563eb);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(78, 162, 255, 0.28);
}
.mode-switch-btn.adult.active {
  background: linear-gradient(135deg, #ff4d6d, #b91c1c);
  box-shadow: 0 8px 22px rgba(255, 77, 109, 0.3);
}

.strio-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #041018;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  margin: 0.15rem 0.2rem 0.35rem;
  background: linear-gradient(135deg, #ff4d6d, #ffb020);
  box-shadow: 0 10px 28px rgba(255, 77, 109, 0.28);
}

.adult-pane {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #000;
}
.adult-pane[hidden] { display: none !important; }
.adult-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.85rem;
  background: #101318;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.adult-bar strong { flex: 1; font-size: 0.95rem; }
.adult-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b0d10;
}
body.lib-adult { overflow: hidden; }
body.lib-adult .hub > .main,
body.lib-adult .hub > .side .cats,
body.lib-adult #strioBtn { /* side stays for mode switch */ }

.cats { display: grid; gap: 0.28rem; }
.cat-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
}
.cat-btn span.meta { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.cat-btn:hover { background: rgba(255,255,255,0.03); }
.cat-btn.active {
  background: linear-gradient(90deg, rgba(78,162,255,0.16), transparent);
  border-color: rgba(78,162,255,0.28);
}

.side-foot { margin-top: auto; display: grid; gap: 0.55rem; padding: 0.4rem; }
.pill-soft {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  text-align: center;
}
.dash-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.main {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.1rem 1.35rem 2.5rem;
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  min-width: 0;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.top-left { display: flex; align-items: center; gap: 0.7rem; }
.top h1 {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.muted { color: var(--muted); font-size: 0.86rem; }
.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: min(340px, 48vw);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}
.search-wrap input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
}
.search-ico { color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.35rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(78,162,255,0.1), transparent 45%),
    var(--panel);
}
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 0.55rem;
}
.hero h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 0.65rem;
}
.hero-sub { color: var(--muted); max-width: 40ch; line-height: 1.5; }
.hero-badge {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cfe6ff;
  background: rgba(78,162,255,0.14);
  border: 1px solid rgba(78,162,255,0.28);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.stat {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.stat span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.85rem;
}

.card {
  position: relative;
  appearance: none;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border-radius: 18px;
  padding: 1rem 0.85rem 0.9rem;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(78,162,255,0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.card-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.22rem 0.45rem;
}
.card-badge.TRUSTED { background: rgba(56,189,248,0.16); color: var(--trusted); }
.card-badge.FEATURED { background: rgba(167,139,250,0.16); color: var(--feat); }
.card-badge.NEW { background: rgba(94,234,212,0.14); color: var(--new); }

.avatar {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #041018;
  background: linear-gradient(145deg, var(--a1, #4ea2ff), var(--a2, #7cf0c2));
}
.card strong { font-size: 1rem; letter-spacing: -0.02em; }
.card .dom { color: var(--muted); font-size: 0.78rem; }
.card .blurb { color: #b7c2d0; font-size: 0.8rem; line-height: 1.35; margin-top: auto; }

.preserved {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.preserved h3 {
  font-family: var(--display);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}
.chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

/* In-site viewer — no new tab */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #05070a;
}
.viewer[hidden] { display: none !important; }
.viewer-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 18, 0.96);
}
.viewer-meta { flex: 1; min-width: 0; }
.viewer-meta strong { display: block; font-size: 0.95rem; }
.viewer-meta span { font-size: 0.75rem; }
.viewer-actions { display: flex; gap: 0.4rem; }
.vbtn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.vbtn.ghost { background: transparent; }
.vbtn.primary {
  background: linear-gradient(135deg, #4ea2ff, #2f7fd6);
  border: 0;
  color: #041018;
}
.viewer-frame-wrap { position: relative; min-height: 0; }
.viewer-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.frame-note {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  background:
    radial-gradient(600px 280px at 50% 20%, rgba(78,162,255,0.16), transparent 60%),
    #0a0e14;
  gap: 0.5rem;
}
.frame-note p { max-width: 42ch; color: var(--muted); line-height: 1.45; }
.frame-note strong { color: var(--text); }

.search-hero { margin-bottom: 1.1rem; }
.search-wrap.big {
  min-width: 0;
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  background: var(--panel2);
  border-color: rgba(78,162,255,0.28);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
}
.search-wrap.big input { font-size: 1.05rem; font-weight: 700; }
.quick-row, .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.55rem 0 0.15rem;
}
.quick-chip, .filter-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.quick-chip:hover, .filter-chip:hover { border-color: rgba(78,162,255,0.45); }
.filter-chip.on {
  background: linear-gradient(135deg, #4ea2ff, #2563eb);
  border-color: transparent;
  color: #fff;
}
.trend-block { margin: 0.4rem 0 1.1rem; }
.trend-block h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}
.title-grid.trend { margin-bottom: 0.4rem; }
.mode-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0.75rem 0 0.45rem;
}
.mode-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}
.mode-tab.active {
  color: #041018;
  background: linear-gradient(135deg, #4ea2ff, #7cf0c2);
  border-color: transparent;
}
.search-hint { font-size: 0.84rem; line-height: 1.4; max-width: 70ch; }
.status-line { margin: 0.3rem 0 0.8rem; font-weight: 600; }

.title-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}
.tcard {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.tcard:hover {
  transform: translateY(-2px);
  border-color: rgba(78,162,255,0.4);
}
.tcard-poster {
  aspect-ratio: 2/3;
  width: 100%;
  object-fit: cover;
  background: #10151d;
  display: block;
}
.tcard-poster.ph {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  color: #041018;
  background: linear-gradient(145deg, #4ea2ff, #7cf0c2);
}
.tcard-body { padding: 0.7rem 0.75rem 0.85rem; }
.tcard-body strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}
.tcard-body span { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.tcard-play, .tcard-src {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.22rem 0.45rem;
}
.tcard-play { background: #7cf0c2; color: #041018; }
.tcard-src { background: rgba(0,0,0,0.55); color: #cfe6ff; }
.tcard-src.lib { background: rgba(255, 77, 109, 0.85); color: #fff; }
.genre-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.35rem 0 0.1rem; }
.live-panel { margin: 0.4rem 0 1.2rem; }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.live-sub { margin: 0.9rem 0 0.45rem; font-size: 0.95rem; }
.live-scores, .live-odds { display: grid; gap: 0.55rem; }
.live-card, .odds-row {
  text-align: left;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  display: grid;
  gap: 0.2rem;
  cursor: pointer;
  font: inherit;
}
.live-card.on { border-color: rgba(255, 77, 109, 0.55); box-shadow: 0 0 0 1px rgba(255,77,109,0.2); }
.live-meta { color: var(--accent); font-size: 0.78rem; font-weight: 800; }
.live-score { font-weight: 800; font-size: 0.95rem; }
.episode-pack { margin-top: 1rem; }
.episode-list { display: flex; flex-wrap: wrap; gap: 0.35rem; max-height: 180px; overflow: auto; }
.ep-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #0f1520;
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.tcard { position: relative; }

.detail {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.detail[hidden] { display: none !important; }
.detail-card {
  position: relative;
  width: min(860px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #121821, #0b0f15);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.detail-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.45);
  color: var(--text);
  cursor: pointer;
}
.detail-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.1rem;
  padding: 1.2rem;
}
.detail-poster {
  width: 100%;
  border-radius: 14px;
  background: #10151d;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.detail-type {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.detail-copy h2 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.detail-overview {
  margin: 0.7rem 0 1rem;
  color: #c5ceda;
  line-height: 1.5;
  font-size: 0.95rem;
}
.detail-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.detail-actions button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.detail-actions button:hover {
  border-color: rgba(78,162,255,0.45);
  background: rgba(78,162,255,0.12);
}

@media (max-width: 900px) {
  body { overflow: auto; }
  .hub {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
  }
  .side {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 86vw);
    height: 100dvh;
    z-index: 30;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    padding-top: max(1.1rem, env(safe-area-inset-top));
  }
  .side.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,0.5); }
  .menu-btn { display: grid; place-items: center; }
  .main {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding: 0.85rem 0.9rem 2.8rem;
    padding-left: max(0.9rem, env(safe-area-inset-left));
    padding-right: max(0.9rem, env(safe-area-inset-right));
  }
  .search-hero { margin-bottom: 0.9rem; }
  .search-wrap.big { min-height: 48px; }
  .search-wrap input { font-size: 16px; } /* iOS zoom prevent */
  .chat-panel {
    width: min(100vw - 0.6rem, 100%);
    left: 0.3rem;
    right: 0.3rem;
    bottom: 4.4rem;
    height: min(78vh, 640px);
    max-width: none;
  }
  .chat-fab { right: 0.75rem; bottom: 0.85rem; }
  .chat-fab.free-fab { bottom: 4.2rem; }
  .mode-tabs { width: 100%; }
  .mode-tab { flex: 1; }
  .hero { grid-template-columns: 1fr; padding: 1rem; }
  .hero h2 { font-size: 1.55rem; }
  .search-wrap { min-width: 0; flex: 1; }
  .top { flex-wrap: wrap; margin-bottom: 0.75rem; }
  .title-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .grid { grid-template-columns: 1fr; }
  .detail-body { grid-template-columns: 100px 1fr; gap: 0.75rem; padding: 0.9rem; }
  .detail-card { max-height: 92dvh; border-radius: 16px; }
  .viewer-bar { padding: 0.55rem 0.65rem; gap: 0.4rem; flex-wrap: wrap; }
  .viewer-actions { width: 100%; justify-content: flex-end; }
}

/* Free movies + Adult video search — full page grid (Plex-style boxes) */
.chat-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 800;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  color: #041018;
  background: linear-gradient(135deg, #ff4d6d, #ffb020);
  box-shadow: 0 12px 36px rgba(255, 77, 109, 0.35);
}
.chat-fab.free-fab {
  bottom: 4.55rem;
  color: #041018;
  background: linear-gradient(135deg, #4ea2ff, #7cf0c2);
  box-shadow: 0 12px 36px rgba(78, 162, 255, 0.35);
}
.chat-fab.on { filter: brightness(1.08); }
.free-panel .chat-head strong { color: #7cf0c2; }
.chat-panel.chat-full {
  position: fixed;
  inset: 0;
  z-index: 220;
  width: 100vw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(255, 77, 109, 0.18), transparent 55%),
    linear-gradient(180deg, #0b121c 0%, #070b10 100%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.chat-panel[hidden] { display: none !important; }
.chat-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 180, 80, 0.15);
  background: linear-gradient(90deg, #1a1210, #101820);
  flex-shrink: 0;
}
.chat-back {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #15202c;
  color: #e8eef5;
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.chat-back:hover { border-color: #ffc46b; color: #ffc46b; }
.chat-head-copy { min-width: 0; }
.chat-head strong { display: block; font-size: 1.1rem; color: #ffc46b; }
.chat-head .muted { display: block; font-size: 0.82rem; }
.chat-form-top {
  display: flex;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0e1620;
  flex-shrink: 0;
  align-items: flex-start;
}
.chat-suggest-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}
.chat-form-top input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a1016;
  color: #e8eef5;
  padding: 0.65rem 0.8rem;
  font: inherit;
}
.chat-form-top input:focus {
  outline: none;
  border-color: rgba(255, 196, 107, 0.55);
}
.chat-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: min(52vh, 320px);
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121a24;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.chat-suggest[hidden] { display: none !important; }
.chat-suggest li {
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  color: #e8eef5;
  font-size: 0.95rem;
  line-height: 1.3;
}
.chat-suggest li mark {
  background: transparent;
  color: #ffc46b;
  font-weight: 700;
}
.chat-suggest li:hover,
.chat-suggest li.active {
  background: rgba(255, 196, 107, 0.12);
}
.chat-suggest .sug-fix {
  display: block;
  font-size: 0.75rem;
  color: #8b9aab;
  margin-top: 0.1rem;
}
.chat-form-top .vbtn { white-space: nowrap; margin-top: 0; }
.chat-status {
  padding: 0.45rem 1rem 0.2rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.chat-log {
  flex: 1;
  overflow: auto;
  padding: 0.75rem 1rem 2rem;
  display: block;
}
.chat-note {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #161e28;
  border: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.45;
}
.vid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.85rem 0.7rem;
}
@media (min-width: 900px) {
  .vid-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
.vid-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  background: #121a24;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.vid-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 196, 107, 0.45);
}
.vid-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a1016;
  overflow: hidden;
}
.vid-card-poster .vid-thumb-wrap.movie-poster {
  aspect-ratio: 2 / 3;
}
.vid-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vid-card-search {
  opacity: 0.72;
  border-style: dashed;
}
.vid-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.4rem;
  font-weight: 800;
  font-size: 0.85rem;
  color: #7cf0c2;
  background: linear-gradient(145deg, #142033, #1a2a22);
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.vid-dur {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  max-width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}
.vid-meta {
  padding: 0.45rem 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 4.2rem;
}
.vid-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vid-site {
  font-size: 0.72rem;
  color: #7cf0c2;
  font-weight: 700;
}
.site-cat { margin-top: 1.1rem; color: #ffc46b; font-weight: 800; }
.site-grid {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.45rem;
}
.site-chip {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #15202c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8eef5;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 650;
}
.site-chip:hover { border-color: #ff4d6d; color: #ffc46b; }
.site-chip.cat-reality { border-color: rgba(126, 240, 194, 0.35); }
.site-chip.cat-indian { border-color: rgba(255, 180, 80, 0.4); }
.site-chip.cat-pakistani { border-color: rgba(120, 200, 255, 0.4); }
.site-chip.cat-filipino { border-color: rgba(255, 120, 180, 0.4); }
.site-chip.cat-celebrity { border-color: rgba(220, 180, 255, 0.45); }
.site-chip.cat-erotic_movies { border-color: rgba(255, 100, 100, 0.4); }
.site-chip.cat-rough { border-color: rgba(255, 80, 80, 0.5); }
.site-chip.cat-meta { border-color: rgba(255, 255, 255, 0.2); }
.site-chip.cat-reality_tv { border-color: rgba(100, 255, 180, 0.45); }
.site-chip.cat-desi { border-color: rgba(255, 200, 80, 0.5); }
.site-chip.cat-party { border-color: rgba(255, 100, 200, 0.45); }
.site-chip.cat-erotic { border-color: rgba(255, 140, 160, 0.45); }
.site-chip.cat-hollywood { border-color: rgba(200, 180, 255, 0.5); }
.site-chip.cat-onlyfans_free { border-color: rgba(0, 200, 255, 0.45); }
.site-chip.cat-celeb_desi { border-color: rgba(255, 160, 60, 0.5); }
.site-chip.cat-lesbian { border-color: rgba(255, 120, 200, 0.4); }
.site-chip.cat-amateur { border-color: rgba(160, 255, 160, 0.4); }
.site-chip.cat-outdoor { border-color: rgba(120, 220, 120, 0.4); }
.site-chip.cat-massage { border-color: rgba(180, 160, 255, 0.4); }
.site-chip.cat-tv_scenes { border-color: rgba(255, 220, 100, 0.45); }
.chat-loadmore {
  margin: 1.1rem auto 0.4rem;
  display: block;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 107, 0.35);
  background: #1a1210;
  color: #ffc46b;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.chat-sentinel {
  height: 1px;
  margin-top: 0.5rem;
}

/* In-site Brave-style player — popups/ads tabs blocked via sandbox */
.play-shell {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  background: #07090e;
  color: #f2f4f8;
}
.play-shell[hidden] {
  display: none !important;
}
.play-shell-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  background: #10161f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.play-shell-meta {
  flex: 1;
  min-width: 0;
}
.play-shell-meta strong {
  display: block;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-shell-meta span {
  font-size: 0.72rem;
}
.play-shell-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}
.play-shell-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: #0c1118;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.play-src-btn {
  border: 1px solid rgba(255, 196, 107, 0.28);
  background: #151b24;
  color: #ffd79a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}
.play-src-btn.on {
  background: #2a2114;
  border-color: #ffc46b;
  color: #fff;
}
.unlock-btn {
  border: 1px solid rgba(80, 220, 160, 0.45) !important;
  background: #122018 !important;
  color: #9dffc8 !important;
  font-weight: 800 !important;
  white-space: nowrap;
}
.unlock-btn.on {
  background: #1a3d2c !important;
  border-color: #3dff9a !important;
  color: #eafff3 !important;
}
.unlock-btn:not(.on) {
  background: #1a1a1a !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #bbb !important;
}
.play-shell-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #000;
}
.play-shell-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.play-shell-note {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  max-width: min(92vw, 28rem);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(10, 14, 20, 0.92);
  border: 1px solid rgba(255, 196, 107, 0.35);
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .play-shell-bar {
    flex-wrap: wrap;
  }
  .play-shell-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .play-src-btn {
    font-size: 0.85rem;
    padding: 0.55rem 0.85rem;
  }
}
