/* TipluTiplu — mobile reels, shared controls and clear publishing flows. */
:root {
  color-scheme: dark;
  --bg: #101113;
  --surface: #181a1e;
  --surface-raised: #22252a;
  --line: #303239;
  --text: #f2f1ee;
  --muted: #a2a5ae;
  --pink: #f54d82;
  --pink-soft: #f54d821a;
  --success: #8bd3ae;
  --warning: #e8bd83;
  --radius: 14px;
  --sidebar: 208px;
  --header: 72px;
  --bottom: 56px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}
body {
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}
svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex-shrink: 0;
}
button svg {
  pointer-events: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 28px;
  font-weight: 650;
  margin-bottom: 0;
}
h2 {
  font-size: 25px;
}
h3 {
  font-size: 17px;
}
p {
  color: var(--muted);
}
.hidden {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 30px 20px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  z-index: 30;
}
.brand,
.mobile-brand,
.gate-wordmark {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1;
}
.brand span,
.mobile-brand span,
.gate-wordmark span {
  color: var(--pink);
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.2px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 13px;
}
.brand {
  margin-bottom: 45px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-link {
  border: 0;
  border-radius: 9px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 47px;
  text-align: left;
  padding: 0 13px;
  font-weight: 550;
  color: var(--muted);
}
.nav-link:hover {
  background: var(--surface);
}
.nav-link.is-active {
  background: var(--surface-raised);
  color: var(--text);
}
.nav-link.is-active svg {
  color: var(--pink);
}
.sidebar-divider {
  height: 1px;
  background: var(--line);
  margin: 23px 12px;
}
.sidebar-upload {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  border: 0;
  border-radius: 9px;
  background: var(--pink);
  color: #fff;
  font-weight: 650;
  margin-top: 23px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
  display: grid;
  gap: 14px;
}
.sidebar-bottom > small {
  font-size: 10px;
  color: #777d88;
}
.sidebar-account {
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  padding: 20px 0 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  overflow-wrap: anywhere;
}
.rules-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}
.rules-link:hover {
  color: var(--text);
}
.workspace {
  margin-left: var(--sidebar);
}
.topbar {
  height: var(--header);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  z-index: 20;
}
.header-heading {
  font-size: 13px;
  color: var(--muted);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar-button {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 600;
}
.topbar-button:hover {
  background: var(--surface);
}
.avatar-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  font-size: 12px;
}
.mobile-brand {
  display: none;
}
.workspace-inner { display:block; max-width:1100px; margin:auto; padding:20px 32px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
body.in-feed { overflow:hidden; }
body.in-feed .workspace-inner { padding:12px 28px; }
/* Reserve two 66px gutters so tablet browse buttons stay inside the viewport. */
.feed-zone { position:relative; width:min(calc(100% - 132px),calc((100dvh - 96px) * .625)); margin:auto; }
.feed-stepper { position:absolute; right:-66px; top:42%; display:grid; gap:14px; }
.feed-stepper button { width:44px; height:44px; border:1px solid var(--line); border-radius:50%; background:var(--surface); font-size:21px; }
.video-back { position:absolute; left:12px; top:14px; z-index:25; width:44px; height:44px; border:0; background:#0005; border-radius:50%; font-size:24px; }
.audio-recovery { position:absolute; bottom:160px; left:50%; transform:translateX(-50%); z-index:25; min-height:44px; border:1px solid #fff5; border-radius:24px; padding:8px 18px; background:#16181be6; color:#fff; font-size:12px; }
.main-left {
  min-width: 0;
}
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.section-kicker {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin-bottom: 9px;
}
.watch-hint {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.watch-hint span {
  padding-left: 10px;
}
.feed-options { position:absolute; top:10px; left:0; right:0; z-index:20; display:flex; align-items:center; justify-content:center; gap:10px; padding:0 14px; margin:0; background:linear-gradient(#0005,transparent); }
.feed-tabs {
  display: flex;
  gap: 5px;
}
.feed-tab {
  border: 0;
  background: transparent;
  padding: 9px 10px;
  border-radius: 0;

  font-size: 12px;
  color:#ffffffad;
  font-weight:650;
  text-shadow:0 1px 6px #000;
  white-space:nowrap;

  min-height: 44px;
}
.feed-tab.selected {
  background:transparent;
  color:#fff;
  box-shadow:inset 0 -2px #fff;
}
.feed-tab:hover:not(.selected) {
  background: var(--surface);
}
.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 0 11px;
  min-width: 0;
  width: min(245px, 45%);
}
.search-row svg {
  width: 15px;
  color: var(--muted);
}
.search-row input {
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  width: 100%;
  height: 37px;
  font-size: 11px;
  min-width: 0;
}
.feed-discover-btn {
  display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:50%; background:transparent; color:#fff;
}
.category-list {
  display: flex;
  gap: 7px;
  overflow: auto;
  scrollbar-width: none;
  margin-bottom: 18px;
  padding-bottom: 1px;
}
.category-pill {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  min-height: 30px;
}
.category-pill.active {
  color: var(--text);
  border-color: #737680;
  background: var(--surface);
}
.video-feed {
  height:calc(100dvh - 96px);
  min-height:0;
  max-height:none;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  border-radius:12px;
  background:#08090a;
  border:0;
  overscroll-behavior-y:contain;
  touch-action:pan-y pinch-zoom;
  overflow-anchor:none;
  -webkit-overflow-scrolling:touch;
}
.video-feed::-webkit-scrollbar {
  display: none;
}
.video-slide { position:relative; height:100%; min-height:100%; width:100%; scroll-snap-align:start; scroll-snap-stop:always; overflow:hidden; background:#000; --viewer-clearance:0px; }
.poster-bg { display:none; }
.video-poster,
.video-slide > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.slide-gradient { position:absolute; inset:0; background:linear-gradient(180deg,#0005,transparent 18%,transparent 62%,#000b); pointer-events:none; z-index:4; }
.slide-top { position:absolute; right:12px; bottom:calc(10px + var(--viewer-clearance)); top:auto; z-index:7; }
.slide-sound { display:grid; place-items:center; min-width:44px; width:44px; height:44px; border:0; padding:11px; color:#fff; background:transparent; filter:drop-shadow(0 1px 4px #0008); }
.slide-sound span {
  display: none;
}
.slide-sound.sound-enabled {
  border-color: #ffffff9c;
}
.slide-sound.sound-awaiting-gesture:after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  position: absolute;
  right: 3px;
  top: 3px;
}
.slide-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events:none;
  z-index:6;
  opacity:0;
  visibility:hidden;
}
.is-paused .slide-center,
.is-autoplay-blocked .slide-center {
  opacity:1;
  visibility:visible;
}
.slide-center button { pointer-events:auto; border:1px solid #ffffff30; background:#1119; width:44px; height:44px; border-radius:50%; color:#fff; font-size:15px; }
.slide-feedback { position:absolute; top:60%; left:20%; right:20%; text-align:center; font-size:12px; z-index:6; text-shadow:0 1px 8px #000; pointer-events:none; }
.slide-bottom { position:absolute; left:16px; right:16px; bottom:calc(68px + var(--viewer-clearance)); z-index:6; color:#fff; text-shadow:0 1px 7px #0008; }
.creator-name { display:flex; align-items:center; gap:8px; min-height:36px; max-width:100%; border:0; background:none; padding:0; color:#fff; font-weight:650; font-size:12px; margin-bottom:4px; }
.clip-title { font-size:14px; font-weight:500; line-height:1.4; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; letter-spacing:0; max-width:100%; }
.clip-caption { display:none; }
.category-tag { display:none; }
.private-preview-label {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 4px;
  background: #252017;
  font-size: 9px;
  color: var(--warning);
  text-shadow: none;
}
.action-rail { position:absolute; left:12px; right:66px; bottom:calc(10px + var(--viewer-clearance)); z-index:7; display:flex; flex-direction:row; align-items:center; gap:8px; }
.action-item { display:flex; flex-direction:row; align-items:center; gap:0; }
.action-item button { border:0; width:44px; height:44px; display:grid; place-items:center; border-radius:0; background:transparent; filter:drop-shadow(0 1px 4px #0008); color:#fff; min-width:44px; min-height:44px; }
.action-item button svg { width:23px; height:23px; }
.action-item small { display:none; font-size:11px; color:#fff; font-variant-numeric:tabular-nums; }
.action-item .is-liked {
  color: #ff6e9a;
}
.action-item .is-saved { color:var(--pink); }
.bunny-inline-stage { position:absolute; inset:0; overflow:hidden; }
.bunny-feed-frame { width:100%; height:100%; border:0; position:absolute; inset:0; pointer-events:none; }
.inline-bunny-fallback .bunny-feed-frame {
  pointer-events: auto;
}
/* Show the optional provider controls above, rather than behind, Tiplu's dock. */
.inline-bunny-fallback .bunny-inline-stage { bottom:var(--viewer-clearance); z-index:7; }
.inline-bunny-fallback .slide-bottom,
.inline-bunny-fallback .action-rail,
.inline-bunny-fallback .slide-top,
.inline-bunny-fallback .slide-center { visibility:hidden; }

.is-focus-mode .bunny-feed-frame { position:absolute; inset:0; max-width:none; max-height:none; }
.is-focus-mode.is-fit-fill .bunny-feed-frame {
  max-width: none;
  max-height: none;
  flex-shrink: 0;
}
.video-slide.is-focus-mode video {
  object-fit: contain;
}
.video-slide.is-focus-mode.is-fit-fill video {
  object-fit: cover;
}
.is-focus-mode .slide-bottom { bottom:calc(68px + var(--viewer-clearance)); }
.is-focus-mode .action-rail { bottom:calc(10px + var(--viewer-clearance)); }
.is-focus-mode .action-item:has([data-action="watch-video"]) { display:flex; }
.inline-watch-dock {
  position: absolute;
  z-index: 8;
  bottom: 0;
  left: 0;
  right: 0;
  padding:18px 14px 10px;
  background: linear-gradient(transparent, #090a0ce8);
  border: 0;
  border-radius: 0;
}
.inline-watch-timeline input[type="range"] {
  width: 100%;

  display: block;
  accent-color: var(--pink);
  cursor: pointer;
  margin: 0 0 13px;

  height: 24px;
  margin-bottom: 4px;
  --seek-progress: 0%;
}
.inline-watch-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.inline-watch-buttons button {
  min-width: 32px;

  border: 0;
  background: none;
  padding: 3px;
  color: #fff;
  font-size: 16px;
  border-radius: 6px;

  min-height: 44px;
}
.inline-watch-buttons button:hover {
  background: #ffffff15;
}
.inline-watch-buttons button small {
  font-size: 8px;
}
.inline-watch-buttons .inline-watch-time {
  font-size: 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #c8cad0;
  margin-right: auto;
}
.inline-time-separator {
  color: #7c818c;
}
.inline-watch-buttons .inline-watch-speed {
  font-size: 10px;
}
.inline-bunny-help {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.inline-bunny-help:empty {
  display: none;
}
.persistent-media {
  position: fixed;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  background:transparent;
  opacity:0;
}
.persistent-media.is-ready { opacity:1; }
.persistent-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.persistent-media.fill video {
  object-fit: cover;
}
.media-ready > .video-poster { visibility:hidden; }
.bottom-nav {
  display: none;
}
.main-cta,
.mini-btn,
.pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
  background: var(--surface-raised);
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.main-cta {
  background: var(--pink);
  border-color: var(--pink);
  min-height: 46px;
  font-size: 13px;
  color: #fff;
}
.main-cta:hover {
  background: #e73e74;
}
.mini-btn:hover {
  background: #30333a;
}
.mini-btn.danger {
  background: none;
  color: #d3a4ad;
  border-color: #4d343e;
}
.mini-btn.danger:hover {
  background: #4d2331;
}
.text-cta {
  display: block;
  border: 0;
  background: none;
  color: var(--muted);
  min-height: 40px;
  font-size: 12px;
}
.form-field {
  display: block;
  width: 100%;
  background: #121416;
  border: 1px solid #383b43;
  border-radius: 8px;
  color: var(--text);
  padding: 12px 13px;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.5;
}
.form-field:focus {
  outline: 1px solid var(--pink);
  border-color: var(--pink);
}
.form-field::placeholder {
  color: #737985;
}
textarea.form-field {
  resize: vertical;
  min-height: 86px;
}
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin: 18px 0 8px;
  color: #caccd2;
}
.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin-top: 18px;
}
.form-check input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--pink);
  margin: 2px 0 0;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.form-help,
.admin-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.form-help {
  margin-top: 12px;
}
.preserve-lines {
  white-space: pre-line;
}
.modal-layer,
.age-gate {
  position: fixed;
  inset: 0;
  background: #000a;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  z-index: 100;
  overflow: auto;
  overscroll-behavior: contain;
}
.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 56px);
  overflow: auto;
  border: 1px solid #3a3d43;
  border-radius: 18px;
  background: var(--surface);
  padding: 30px;
  box-shadow: 0 32px 120px #0008;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.modal-head h2 {
  font-size: 26px;
  margin-bottom: 13px;
}
.close-modal {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
}
.modal-sub {
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 20px;
}
.auth-switch {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 10px 0 22px;
}
.auth-switch button {
  flex: 1;
  border: 0;
  border-bottom: 2px solid transparent;
  min-height: 42px;
  background: none;
  color: var(--muted);
  font-size: 12px;
}
.auth-switch .selected {
  border-color: var(--pink);
  color: var(--text);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  border: 1px solid #4a4d55;
  border-radius: 10px;
  background: #292c32;
  color: #fff;
  font-size: 12px;
  z-index: 150;
  box-shadow: 0 8px 35px #0005;
  max-width: min(500px, 90vw);
}
.age-card {
  width: 420px;
  max-width: 100%;
  padding: 35px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.gate-wordmark {
  margin-bottom: 40px;
}
.age-card h2 {
  font-size: 30px;
}
.age-card p {
  font-size: 13px;
}
.age-card .main-cta {
  width: 100%;
  margin: 20px 0 7px;
}
.age-card .text-cta {
  width: 100%;
}
.gate-note {
  font-size: 10px;
  line-height: 1.7;
  color: #7c828f;
  margin-top: 24px;
}
.other-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 15px 0 60px;
}
.other-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.other-header h2 {
  font-size: 30px;
  margin-bottom: 10px;
}
.other-header p {
  font-size: 12px;
  margin-bottom: 0;
}
.workspace:has(.other-page:not(.hidden)) .workspace-inner {
  display: block;
}
.workspace:has(.other-page:not(.hidden)) .right-rail {
  display: none;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 20px;
}
.video-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.video-card > img,
.processing-thumb {
  width: 100%;
  height: 155px;
  object-fit: cover;
  background: #26282e;
}
.processing-thumb {
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  font-size: 25px;
  color: var(--muted);
}
.processing-thumb small {
  font-size: 11px;
}
.video-card-info {
  padding: 18px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 9px;
}
.video-card-info > strong {
  width: 100%;

  font-size: 14px;
}
.video-card-info > p {
  font-size: 11px;
  margin: 0;
  width: 100%;
}
.video-card-info .mini-btn {
  font-size: 10px;
  min-height: 34px;
  padding: 7px 10px;
}
.video-card-info .danger {
  margin-left: auto;
  order: 10;
}
.storage-provider {
  width: 100%;
  font-size: 10px;
  color: var(--muted);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 600;
  background: #30333b;
  color: #c9ccd5;
}
.status-badge.pending {
  color: var(--warning);
  background: #e8bd8317;
}
.status-badge.published {
  color: var(--success);
  background: #8bd3ae17;
}
.status-badge.rejected,
.status-badge.removed {
  color: #ed9cac;
  background: #ed9cac17;
}
.empty-card {
  padding: 65px 25px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.empty-card h3 {
  margin: 8px 0 0;
}
.empty-card p {
  font-size: 12px;
  max-width: 350px;
}
.big-icon {
  font-size: 30px;
  color: var(--muted);
}
.feed-placeholder {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
  padding: 30px;
}
.feed-placeholder > span {
  font-size: 24px;
  color: var(--pink);
}
.feed-placeholder p {
  font-size: 12px;
}
.admin-tabbar {
  display: flex;
  gap: 6px;
  overflow: auto;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--bg);
  padding: 12px 0 18px;
  margin-bottom: 15px;
}
.admin-tab-btn {
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 550;
  padding: 10px 13px;
  white-space: nowrap;
  min-height: 40px;
}
.admin-tab-btn.active {
  background: var(--surface-raised);
  color: var(--text);
  border-color: var(--line);
}
.admin-section {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 22px;
  min-width: 0;
}
.admin-section h3 {
  margin-bottom: 12px;
}
.admin-section .admin-section {
  padding: 16px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.admin-stat {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  background: var(--surface);
}
.admin-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 550;
}
.admin-stat small {
  font-size: 11px;
  color: var(--muted);
}
.admin-row {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 17px;
  flex-wrap: wrap;
  min-width: 0;
}
.admin-row:first-of-type {
  margin-top: 18px;
}
.admin-row-info {
  flex: 1;
  min-width: 160px;
  overflow-wrap: anywhere;
}
.admin-row-info strong {
  font-size: 12px;
}
.admin-row-info small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 5px;
}
.admin-video-preview {
  width: 68px;
  height: 75px;
  border-radius: 7px;
  object-fit: cover;
  background: #282a31;
}
.admin-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-buttons .mini-btn {
  font-size: 10px;
  min-height: 35px;
  padding: 8px 10px;
}
.admin-review-checks {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}
.admin-review-checks label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  color: #c0c4cd;
  min-height: 30px;
}
.admin-review-checks input {
  width: 17px;
  height: 17px;
  accent-color: var(--pink);
  flex-shrink: 0;
}
.admin-row textarea {
  margin-top: 14px;
  font-size: 11px;
}
.admin-review-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}
.admin-decision-status {
  width: 100%;
  font-size: 11px;
  color: var(--success);
  margin: 0;
  line-height: 1.8;
}
.admin-decision-status.is-error {
  color: #ed9cac;
}
.admin-decision-status:empty {
  display: none;
}
.admin-publish-confirm,
.admin-bulk-confirm {
  width: 100%;
  border: 1px solid #494032;
  border-radius: 8px;
  background: #e8bd830a;
  padding: 16px;
  margin-top: 5px;
}
.review-highlight {
  outline: 2px solid var(--pink);
  outline-offset: 6px;
  scroll-margin-top: 90px;
}
.disclaimer {
  border-left: 2px solid var(--warning);
  padding: 12px 16px;
  color: #beb4a3;
  background: #e8bd8309;
  font-size: 11px;
  line-height: 1.8;
  border-radius: 0 8px 8px 0;
}
.category-admin-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.category-admin-list button {
  border: 1px solid var(--line);
  background: var(--surface-raised);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 11px;
}
.bunny-video-card {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
}
.bunny-video-thumb {
  display: grid;
  place-items: center;
  width: 60px;
  height: 70px;
  background: #292a33;
  border-radius: 7px;
  color: var(--pink);
  flex-shrink: 0;
}
.bunny-video-info {
  min-width: 0;
  flex: 1;
}
.bunny-video-info strong {
  font-size: 12px;
}
.bunny-video-meta {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 12px;
}
.bunny-video-state.is-ready {
  color: var(--success);
}
.bunny-video-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bunny-video-actions .mini-btn {
  font-size: 10px;
  min-height: 34px;
}
.bunny-embed,
.review-player {
  width: 100%;
  aspect-ratio: 9/12;
  max-height: 65dvh;
  border: 0;
  border-radius: 9px;
  background: #060708;
}
.upload-bar {
  height: 4px;
  border-radius: 8px;
  background: #333640;
  overflow: hidden;
  margin-top: 22px;
}
.upload-bar > div {
  height: 100%;
  width: 0;
  background: var(--pink);
  transition: width 0.25s;
}
.batch-upload-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.batch-upload-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.batch-upload-line > span:first-child {
  max-width: 60%;
}
.batch-upload-line.is-complete {
  color: var(--success);
}
.batch-upload-line.is-failed {
  color: #ed9cac;
}
.upload-terms {
  margin-top: 14px;
  color: var(--muted);

  line-height: 1.8;

  font-size: 12px;
}
.upload-terms summary {
  cursor: pointer;
}
.upload-steps {
  display: flex;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 10px 0 25px;
}
.upload-steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #7d8490;
}
.upload-steps b {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid #454b57;
  border-radius: 50%;
  font-size: 10px;
}
.upload-steps .active {
  color: var(--text);
}
.upload-steps .active b {
  background: var(--pink);
  border-color: var(--pink);
  color: white;
}
.upload-steps .complete b {
  color: var(--success);
  border-color: var(--success);
}
.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 38px 24px;
  border: 1px dashed #515765;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  background: #121416;
}
.upload-drop.dragging {
  border-color: var(--pink);
  background: var(--pink-soft);
}
.upload-drop svg {
  width: 33px;
  height: 33px;
  color: #b7bdc8;
}
.upload-drop strong {
  font-size: 15px;
  font-weight: 550;
}
.upload-drop small {
  font-size: 10px;
  color: var(--muted);
}
.upload-picker-label {font-size:15px;font-weight:550;cursor:pointer;}
/* Keep the real native control visible and tappable: no proxy click, hidden
   offscreen input or asynchronous activation before opening Photos/Files. */
.upload-file-input {position:static;width:100%;max-width:420px;min-height:48px;opacity:1;overflow:visible;font:inherit;font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:6px;background:var(--surface);}
.upload-file-input::file-selector-button {min-height:48px;margin-right:12px;padding:10px 14px;border:0;border-right:1px solid var(--line);background:var(--surface-raised);color:var(--text);font:inherit;cursor:pointer;}
.upload-drop:focus-within {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}
.upload-selection {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.selected-file {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.selected-file > span {
  min-width: 0;
  flex: 1;
}
.selected-file strong {
  display: block;

  overflow-wrap: anywhere;

  font-size: 12px;
}
.selected-file small {
  color: var(--muted);

  font-size: 11px;
}
.selected-file button {
  border: 0;
  background: none;
  color: var(--muted);
  width: 32px;
  height: 32px;
  font-size: 19px;

  min-width: 44px;
  min-height: 44px;
}
.upload-selection:empty {
  display: none;
}
.upload-error {
  font-size: 11px;
  color: #ed9cac;
}
.upload-error:empty {
  display: none;
}
.upload-wizard .form-actions {
  justify-content: space-between;
}
.upload-wizard .form-actions .main-cta {
  margin-left: auto;
}
.upload-summary {
  font-size: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--surface-raised);
  border-radius: 8px;
}
.upload-step-heading {
  font-size: 20px;
  margin: 15px 0;
}
.upload-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 15px;
}
.upload-result-link {
  margin-top: 15px;
}

.in-library .right-rail {
  display: none;
}
.in-library .workspace-inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1550px;
}
.in-library .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
}
.feed-placeholder p {
  max-width: 260px;
  text-align: center;
  color: var(--muted);
}
.upload-drop input:focus-visible,
.upload-step-heading:focus {
  outline: none;
}
.upload-retry .mini-btn {
  white-space: normal;
}
.video-slide.is-error .slide-feedback {
  max-width: 65%;
  text-align: center;
}
.admin-note,
.form-help,
.upload-note {
  font-size: 12px;
  line-height: 1.7;
}
.batch-upload-line.is-failed {
  display: grid;
  gap: 8px;
}
.batch-upload-line.is-failed > span:first-child {
  max-width: none;
}
.batch-upload-line.is-failed > span:last-child {
  line-height: 1.7;
  font-size: 12px;
}
.modal-open .toast {
  top: 18px;
  bottom: auto;
}
body.modal-open {
  overflow: hidden;
}
@media (max-width: 1180px) {
  :root {
    --sidebar: 178px;
  }
  .sidebar {
    padding: 27px 13px 17px;
  }
  .workspace-inner {
    max-width: 950px;
    padding: 28px;
  }
  .watch-hint {
    display: none;
  }
  .topbar {
    padding: 0 28px;
  }
}
@media (max-width: 700px) {
  :root {
    --header: 58px;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 58px;
    padding: 0 17px;
  }
  .mobile-brand {
    display: block;
    font-size: 24px;
  }
  .header-heading {
    display: none;
  }
  .topbar-button {
    border: 0;
    padding: 0;
    min-width: 32px;
  }
  .topbar-button > span:last-child {
    display: none;
  }
  .topbar-right {
    gap: 16px;
  }
  .avatar-button {
    width: 31px;
    height: 31px;
  }
  .workspace-inner {
    display: block;
    padding: 0;
  }
  .content-header {
    display: none;
  }
  .feed-options {
    position: absolute;
    top:calc(8px + env(safe-area-inset-top));
    left: 0;
    right: 0;
    padding:0 12px;
    margin: 0;
    z-index: 20;
    background: linear-gradient(#0b0c0ecd, transparent);
    align-items:center;
    min-height:48px;
  }
  .feed-tabs {
    gap: 3px;
  }
  .feed-tab {
    font-size: 11px;
    padding: 8px 13px;

    background:transparent;
    color:#ffffffa8;

    min-height: 44px;
  }
  .feed-tab.selected {
    background:transparent;
    color:#fff;
  }
  .feed-discover-btn {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border:0;
    background:transparent;

    min-width: 44px;
    min-height: 44px;
  }
  .search-row {
    display: none;
  }
  .category-list {
    position: absolute;
    top: 114px;
    left: 0;
    right: 0;
    padding: 12px 16px;
    z-index: 21;
    margin: 0;
    background: #111316ef;
    display: none;
  }
  .discovery-open .category-list {
    display: flex;
    top:112px;
    padding-top: 0;
  }
  .discovery-open .search-row {
    display: flex;
    position: absolute;
    left: 16px;
    right: 16px;
    top:56px;
    width: auto;
    background: #22252a;
  }
  body.in-feed .topbar { display:none; }
  body.in-feed .workspace-inner { padding:0; }
  .feed-zone { width:100%; margin:0; }
  .feed-stepper { display:none; }
  .video-back { top:calc(60px + env(safe-area-inset-top)); }
  .video-feed {
    border: 0;
    border-radius: 0;
    height: calc(
      var(--reel-viewport,100dvh) - var(--bottom) - env(safe-area-inset-bottom)
    );
    min-height:0;
    max-height: none;
  }
  .video-slide > video {
    object-fit: contain;
  }

  .inline-watch-dock {
    padding:18px 12px 10px;
  }
  .inline-watch-buttons {
    gap: 4px;
  }
  .inline-watch-buttons button {
    min-width: 32px;

    min-height: 44px;
  }
  .inline-watch-buttons .inline-watch-time {
    font-size: 9px;
  }

  .bottom-nav {
    position: fixed;
    inset: auto 0 0;
    height:calc(var(--bottom) + env(safe-area-inset-bottom));
    min-height:0;
    padding:2px 8px calc(2px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #141619;
    border-top: 1px solid #2b2e34;
    z-index: 40;
  }
  .bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    border: 0;
    background: none;
    color: #9299a5;
    min-height: 48px;
    padding: 2px;
  }
  .bottom-nav svg {
    width: 19px;
    height: 19px;
  }
  .bottom-nav small {
    font-size: 9px;
  }
  .bottom-nav .active {
    color: var(--text);
  }
  .bottom-nav .active svg {
    color: var(--pink);
  }
  .bottom-nav .bottom-upload > span { display:grid; place-items:center; width:32px; height:28px; background:var(--pink); color:#fff; border-radius:8px; }
  .other-page {
    padding: 25px 17px calc(110px + env(safe-area-inset-bottom));
  }
  .other-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
  }
  .other-header h2 {
    font-size: 27px;
  }
  .other-header .admin-buttons {
    width: 100%;
  }
  .other-header .admin-buttons .mini-btn {
    flex: 1;
  }
  .admin-tabbar {
    margin: 0 -17px 13px;
    padding: 8px 17px 13px;
    top: 0;
  }
  .admin-tab-btn {
    font-size: 10px;
    padding: 9px 12px;
    min-height: 38px;
  }
  .admin-section {
    padding: 18px 15px;
  }
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .admin-stat {
    padding: 17px;
  }
  .admin-stat strong {
    font-size: 25px;
  }
  .admin-row {
    gap: 12px;
  }
  .admin-video-preview {
    width: 55px;
    height: 65px;
  }
  .admin-row > .admin-buttons {
    width: 100%;
    justify-content: flex-end;
  }
  .admin-review-toolbar {
    display: block;
  }
  .admin-review-toolbar > span {
    display: block;
    margin-top: 10px;
  }
  .admin-buttons .mini-btn {
    min-height: 39px;
  }
  .admin-row-info {
    min-width: 160px;
  }
  .admin-row textarea,
  .form-field {
    font-size: 16px;
  }
  .admin-review-checks label {
    font-size: 11px;
    min-height: 35px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .video-card-info {
    padding: 13px;
    gap: 8px;
  }
  .video-card-info > strong {
    font-size: 14px;
  }
  .video-card-info > p {
    font-size: 10px;
  }
  .video-card > img,
  .processing-thumb {
    height: 125px;
  }
  .video-card-info .mini-btn {
    width: 100%;
    min-height: 35px;
  }
  .video-card-info .danger {
    margin-left: 0;
  }
  .modal-layer {
    padding: 12px;
    align-items: flex-end;
  }
  .modal-card {
    padding: 25px 20px calc(23px + env(safe-area-inset-bottom));
    border-radius: 18px;
    max-height: calc(100dvh - 24px);
  }
  .modal-head h2 {
    font-size: 25px;
  }
  .modal-layer .form-field {
    font-size: 16px;
  }
  .modal-sub {
    font-size: 12px;
  }
  .toast {
    bottom: calc(86px + env(safe-area-inset-bottom));
    max-width: none;
    left: 14px;
    right: 14px;
    transform: none;
    font-size: 11px;
  }
  .upload-drop {
    padding: 28px 17px;
  }
  .upload-steps {
    margin-top: 6px;
  }
  .upload-wizard .form-actions {
    position: sticky;
    bottom: -22px;
    background: var(--surface);
    padding-top: 15px;
    padding-bottom: 3px;
  }
  .bunny-video-actions .mini-btn {
    min-height: 40px;
  }
  .bunny-embed,
  .review-player {
    max-height: 55dvh;
  }
  .age-gate {
    padding: 22px;
  }
  .age-card {
    padding: 28px;
  }
  .age-card h2 {
    font-size: 28px;
  }
}
@media (max-width: 390px) {
  .feed-tab {
    padding: 8px 11px;

    min-height: 44px;
  }
  .cards-grid {
    gap: 10px;
  }
  .inline-watch-buttons {
    gap: 2px;
  }
  .inline-watch-buttons button {
    min-width: 29px;

    min-height: 44px;
  }

}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.thumbnail-connection{border-top:1px solid var(--line);padding-top:16px;margin-top:22px}.thumbnail-connection summary{cursor:pointer;font-size:13px;margin-bottom:12px}.bunny-video-thumb{object-fit:cover}

.in-feed .search-row { display:none; }
.in-feed.discovery-open .search-row { display:flex; position:absolute; left:14px; right:14px; top:58px; width:auto; background:#191b20f5; }
.in-feed .category-list { display:none; position:absolute; z-index:21; top:110px; left:0; right:0; padding:12px 14px; margin:0; background:#111316f5; }
.in-feed.discovery-open .category-list { display:flex; }
@media (max-width:700px) {
 .in-feed.discovery-open .search-row { top:56px; }
 .in-feed.discovery-open .category-list { top:calc(108px + env(safe-area-inset-top)); }
 .modal-layer { padding-top:env(safe-area-inset-top); }
}

.creator-avatar { width:25px; height:25px; border-radius:50%; display:inline-grid; place-items:center; background:#ffffff20; border:1px solid #ffffff30; font-size:11px; flex-shrink:0; }
.action-item .like-count { display:block; }
.is-focus-mode { --viewer-clearance:104px; }
.advanced-controls .slide-bottom,.advanced-controls .action-rail { display:none; }
.is-focus-mode .slide-top { display:none; }
.inline-watch-dock { max-height:calc(100% - 64px); overflow:auto; overscroll-behavior:contain; }
.inline-video-details { max-height:100px; overflow:auto; font-size:12px; text-align:left; margin:4px 0 10px; line-height:1.5; color:#dadce2; }
.inline-video-details p { margin:4px 0; }
.inline-advanced { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:center; justify-content:space-around; gap:8px; padding:6px 0; }
.inline-advanced button { min-height:44px; min-width:44px; border:0; border-radius:6px; background:#ffffff0c; color:#fff; font-size:12px; padding:5px 10px; }

.video-poster { z-index:1; pointer-events:none; }

.inline-advanced .keep-muted { grid-column:1 / -1; }
