/* dropR - redesigned: clean product-tool aesthetic, dark UI */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;450;500;600&display=swap');

:root {
  --bg: #0e0f11;
  --surface: #16181c;
  --surface-2: #1d2025;
  --surface-3: #25282f;
  --line: #2a2e35;
  --line-soft: #21242a;

  --ink: #f2f3f5;
  --ink-2: #b6bac2;
  --ink-3: #7e838d;
  --ink-4: #565b64;

  --acc: #3d7dff;
  --acc-hover: #5a91ff;
  --acc-soft: rgba(61, 125, 255, 0.12);
  --acc-line: rgba(61, 125, 255, 0.35);

  --ok: #34c759;
  --warn: #ff9f0a;
  --bad: #ff453a;

  --r: 12px;
  --r-sm: 8px;
  --r-lg: 18px;

  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

a { color: var(--ink); text-decoration: none; transition: color .14s; }
a:hover { color: var(--acc-hover); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }

::selection { background: var(--acc-soft); color: var(--ink); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 15, 17, 0.85);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 26px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { color: var(--ink-3); font-size: 14px; font-weight: 450; padding: 7px 12px; border-radius: var(--r-sm); }
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav-divider { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.nav-cta { background: var(--acc); color: #fff !important; font-weight: 500; padding: 7px 16px !important; }
.nav-cta:hover { background: var(--acc-hover) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink-2); border-radius: 2px; }

.main-content { flex: 1; padding: 44px 22px 72px; width: 100%; max-width: var(--maxw); margin: 0 auto; }
.main-content-tight { padding-top: 12px; padding-bottom: 24px; }

.hero { margin-bottom: 30px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--body); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 14px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 199, 89,0.18); }
.hero h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 700; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--acc); }
.hero .sub { color: var(--ink-2); font-size: 16px; margin-top: 12px; max-width: 52ch; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; }
.seg a { padding: 7px 18px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.seg a:hover { color: var(--ink); }
.seg a.active { background: var(--surface-3); color: var(--ink); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.panel-tight { padding: 20px; }

.dropzone {
  position: relative; border-radius: var(--r-lg);
  padding: 34px 24px; text-align: center; cursor: pointer;
  transition: border-color .18s, background .18s, transform .12s;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--acc-soft), transparent 60%),
    var(--surface);
  border: 1.5px dashed var(--line);
  overflow: hidden;
}
.dropzone::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(60% 60% at 50% 40%, rgba(61, 125, 255,0.10), transparent 70%);
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.dropzone:hover { border-color: var(--acc); background: var(--surface-2); }
.dropzone:hover::before, .dropzone.dragover::before { opacity: 1; }
.dropzone.dragover { border-color: var(--acc); border-style: solid; transform: scale(1.006); background: var(--surface-2); }
.dropzone.uploading { border: 0; padding: 0; background: transparent; cursor: default; }
.dropzone.uploading::before { opacity: 0; }

.dz-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 18px;
  background: linear-gradient(160deg, var(--acc), #2f63d6);
  color: #fff; box-shadow: 0 10px 28px -10px rgba(61, 125, 255,0.7);
  transition: transform .2s;
}
.dropzone:hover .dz-icon, .dropzone.dragover .dz-icon { transform: translateY(-3px) scale(1.04); }
.dz-icon svg { width: 28px; height: 28px; }
.dropzone h3 { font-size: 19px; margin-bottom: 6px; letter-spacing: -0.01em; }
.dropzone p { color: var(--ink-3); font-size: 14px; }
.dz-link { color: var(--acc); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.dz-formats { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.dz-formats span {
  font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--ink-3);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 999px;
}
.dz-hint { margin-top: 14px; font-size: 12.5px; color: var(--ink-4); }

.spec-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line-soft); padding: 5px 11px; border-radius: 999px; }
.chip strong { color: var(--ink-2); font-weight: 600; }
.chip a { color: var(--acc); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; font-weight: 500; }
input[type=text], input[type=email], input[type=url], input[type=password] { width: 100%; padding: 11px 14px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-size: 14.5px; font-family: inherit; transition: border-color .14s, box-shadow .14s; }
input::placeholder { color: var(--ink-4); }
input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 20px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; font-family: var(--body); font-size: 14.5px; font-weight: 500; background: var(--acc); color: #fff; transition: background .14s, border-color .14s, transform .06s; }
a.btn, a.btn:hover, a.btn:visited, a.btn:focus { color: #fff; }
.btn:hover { background: var(--acc-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
a.btn-ghost, a.btn-ghost:visited, a.btn-ghost:focus { color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
a.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-danger { background: transparent; border-color: rgba(255, 69, 58,0.3); color: #ff6b62; }
a.btn-danger, a.btn-danger:visited, a.btn-danger:focus, a.btn-danger:hover { color: #ff6b62; }
.btn-danger:hover { background: rgba(255, 69, 58,0.1); }

.progress-wrap { margin-top: 22px; display: none; }
.progress-wrap.show { display: block; }
.progress-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.progress-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--acc); transition: width .2s; border-radius: 999px; }

/* ---- Upload progress card (uploading / processing / done) ---- */
.upcard {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px; position: relative;
  transition: border-color .3s;
}
.upcard.is-done { border-color: rgba(52, 199, 89,0.4); }
.upcard-top { display: flex; align-items: center; gap: 16px; }

/* Thumbnail tile on the left */
.upcard-thumb {
  position: relative; width: 132px; flex: none; aspect-ratio: 16 / 9;
  border-radius: var(--r); overflow: hidden;
  background: var(--bg); border: 1px solid var(--line);
}
.upcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .4s ease; }
.upcard-thumb.has-thumb img { opacity: 1; }
.upcard-thumb-ph {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-4);
  background:
    linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.05) 40%, transparent 60%) var(--surface-3);
  background-size: 250% 100%; animation: shimmer 1.6s ease infinite;
}
.upcard-thumb.has-thumb .upcard-thumb-ph { opacity: 0; transition: opacity .3s; }
.upcard-thumb-ph svg { width: 28px; height: 28px; position: relative; z-index: 1; }

/* Right side: ring + text + done-check */
.upcard-body { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.upcard-ring { position: relative; width: 46px; height: 46px; flex: none; }
.upcard-ring svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--surface-3); stroke-width: 4; }
.ring-fill {
  fill: none; stroke: var(--acc); stroke-width: 4; stroke-linecap: round;
  transition: stroke-dashoffset .25s ease;
}
.upcard-pct {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums;
}
/* Processing = spinning indeterminate ring */
.upcard.is-processing .upcard-ring svg { animation: none; }
.upcard.is-processing .ring-fill {
  stroke-dasharray: 45 75;
  stroke-dashoffset: 0;
  animation: ringspin .85s linear infinite;
  transition: none;
}
.upcard.is-processing .upcard-pct { opacity: 0; }
.upcard-ring.is-indeterminate .ring-fill {
  stroke-dasharray: 45 75;
  stroke-dashoffset: 0;
  animation: ringspin .85s linear infinite;
}
.upcard-ring.is-indeterminate .upcard-pct { opacity: 0; }
@keyframes ringspin {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -120; }
}

.upcard-text { min-width: 0; flex: 1; }
.upcard-label {
  font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upcard-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.upcard.is-done .upcard-sub { color: var(--ok); }

/* Green confirmation check on the right (only when done) */
.upcard-donecheck {
  width: 30px; height: 30px; flex: none; color: var(--ok);
  padding: 4px; border-radius: 50%; border: 2px solid var(--ok);
  opacity: 0; transform: scale(.4); transition: opacity .25s, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.upcard.is-done .upcard-donecheck { opacity: 1; transform: scale(1); }
.upcard.is-done .upcard-ring { opacity: 0; pointer-events: none; }

/* Integrated link row (appears when done) */
.upcard-link {
  display: none; align-items: center; gap: 8px; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.upcard.has-link .upcard-link { display: flex; }
.upcard-link input {
  flex: 1; min-width: 0; padding: 9px 12px; font-size: 13.5px;
  border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); color: var(--ink);
}
.upcard-link .btn { flex: none; }

/* Legacy hooks kept hidden */
.up-frame-hidden { display: none; }

@media (max-width: 540px) {
  .upcard-top { flex-wrap: wrap; }
  .upcard-thumb { width: 100%; }
  .upcard-link { flex-wrap: wrap; }
  .upcard-link input { width: 100%; flex-basis: 100%; }
}

.result { display: none; margin-top: 22px; }
.result.show { display: block; }
.result-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.result-head .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; color: #fff; font-size: 12px; flex: none; }
.result-head h3 { font-size: 16px; }
.url-box { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--bg); }
.url-box input { border: 0; border-radius: 0; background: transparent; }
.url-box input:focus { box-shadow: none; }
.url-box .btn { border-radius: 0; }
.share-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.share-row a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); font-weight: 500; background: var(--surface-2); border: 1px solid var(--line); padding: 8px 13px; border-radius: var(--r-sm); }
.share-row a:hover { color: var(--ink); border-color: var(--line); background: var(--surface-3); }

.watch { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 920px; margin: 0 auto; box-sizing: border-box; width: 100%; }
@media (max-width: 760px) {
  .main-content:has(.watch) { padding-left: 10px; padding-right: 10px; }
}
.watch video { width: 100%; border-radius: var(--r); background: #000; display: block; border: 1px solid var(--line); }
.watch-title { font-size: 20px; margin-bottom: 4px; }
.watch-stats { color: var(--ink-3); font-size: 13.5px; display: flex; gap: 14px; flex-wrap: wrap; }
.watch-stats span { display: inline-flex; align-items: center; gap: 6px; }

.lib { display: grid; grid-template-columns: 200px 1fr; gap: 28px; }
.lib-aside { position: sticky; top: 80px; align-self: start; }
.lib-aside h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); font-family: var(--body); font-weight: 600; margin-bottom: 12px; }
.lib-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; }
.lib-stat .n { font-family: var(--display); font-size: 22px; font-weight: 700; }
.lib-stat .l { font-size: 12.5px; color: var(--ink-3); }

.lib-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.lib-head h1 { font-size: 22px; }
.lib-head .count { color: var(--ink-3); font-size: 14px; font-weight: 400; font-family: var(--body); }

.vid-list { display: flex; flex-direction: column; gap: 10px; }
.vid-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; transition: border-color .14s, background .14s; }
.vid-row:hover { border-color: var(--line); background: var(--surface-2); }
.vid-thumb { width: 96px; height: 56px; border-radius: var(--r-sm); background: var(--bg); display: grid; place-items: center; color: var(--ink-4); border: 1px solid var(--line-soft); overflow: hidden; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vid-thumb svg { width: 20px; height: 20px; }
.vid-info { min-width: 0; }
.vid-info h4 { font-family: var(--body); font-size: 14.5px; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vid-info .m { font-size: 12.5px; color: var(--ink-3); }
.vid-actions { display: flex; gap: 6px; }

.empty { text-align: center; padding: 70px 20px; max-width: 440px; margin: 0 auto; }
.empty .ico { width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-4); }
.empty h2 { font-size: 18px; margin-bottom: 6px; }
.empty p { color: var(--ink-3); margin-bottom: 18px; }

.alert { padding: 11px 14px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: 13.5px; border: 1px solid; }
.alert-error { background: rgba(255, 69, 58,0.08); border-color: rgba(255, 69, 58,0.25); color: #ff8079; }
.alert-success { background: rgba(52, 199, 89,0.08); border-color: rgba(52, 199, 89,0.25); color: #5fd97f; }
.alert-info { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc-hover); }

.auth-wrap { max-width: 380px; margin: 30px auto; }
.auth-wrap .brand { justify-content: center; margin-bottom: 24px; }
.auth-wrap .brand-logo { height: 30px; width: auto; }
.auth-wrap .panel h1 { font-size: 19px; margin-bottom: 4px; }
.auth-wrap .panel .sub { color: var(--ink-3); font-size: 13.5px; margin-bottom: 20px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 18px; }

.doc { max-width: 760px; margin: 0 auto; }
.doc-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.doc-head h1 { font-size: 30px; }
.doc-head .updated { color: var(--ink-4); font-size: 13px; margin-top: 8px; }
.doc .lead { font-size: 16px; color: var(--ink-2); margin-bottom: 24px; }
.doc h2 { font-size: 18px; margin: 30px 0 10px; }
.doc h3 { font-size: 15px; font-family: var(--body); font-weight: 600; color: var(--ink); margin: 20px 0 8px; }
.doc p { color: var(--ink-2); margin-bottom: 13px; }
.doc ul { color: var(--ink-2); margin: 0 0 16px; padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--ink-4); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--acc); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { padding: 18px 2px; cursor: pointer; font-family: var(--display); font-weight: 500; font-size: 15.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q .pm { color: var(--ink-3); font-size: 20px; transition: transform .2s; flex: none; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); color: var(--acc); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--ink-2); }
.faq-item.open .faq-a { max-height: 360px; padding-bottom: 18px; }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 480px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.contact-card .k { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); margin-bottom: 8px; }
.contact-card .v { font-family: var(--display); font-size: 18px; }

.site-footer { border-top: 1px solid var(--line); margin-top: auto; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding: 16px 0 24px; }
.footer-brand .footer-logo { height: 22px; width: auto; display: block; opacity: .9; }
.footer-brand p { color: var(--ink-3); font-size: 13px; margin-top: 6px; max-width: 30ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: start; }
.footer-links a { color: var(--ink-3); font-size: 13.5px; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { padding: 16px 0 28px; border-top: 1px solid var(--line-soft); color: var(--ink-4); font-size: 12.5px; }

@media (max-width: 820px) {
  .lib { grid-template-columns: 1fr; }
  .lib-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .lib-aside h2 { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px; margin-left: 0; display: none; }
  .site-nav.open { display: flex; }
  .nav-divider { display: none; }
  .site-nav a { padding: 11px 14px; }
  .nav-cta { text-align: center; }
  .vid-row { grid-template-columns: 64px 1fr; }
  .vid-thumb { width: 64px; height: 40px; }
  .vid-actions { grid-column: 1 / -1; }
  .vid-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }

/* ===========================================================================
   Additions: centered stage, reserved-link box, share modal, QR, transitions
   =========================================================================== */

/* Centered upload/remote view */
.stage { max-width: 640px; margin: 0 auto; }
.hero-center { text-align: center; }
.hero-center h1 { max-width: none; margin-left: auto; margin-right: auto; }
.hero-center .sub { margin-left: auto; margin-right: auto; }
.hero-center .eyebrow { display: inline-flex; justify-content: center; }
.seg-center { display: flex; width: max-content; margin-left: auto; margin-right: auto; }
.stage-panel { max-width: 640px; margin: 0 auto; }

/* Reserved link (shown before upload completes) */
.reserve { margin-top: 20px; padding: 16px; border: 1px solid var(--acc-line); background: var(--acc-soft); border-radius: var(--r); }
.reserve-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--acc-hover); font-weight: 600; margin-bottom: 8px; }
.reserve .url-box { background: var(--bg); }
.reserve-hint { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }

/* Copy feedback */
.copy-btn.is-copied { background: var(--ok); }

/* Watch page bar with Share button */
.watch-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.watch-bar .btn { flex: none; }
.watch-info { min-width: 0; }

/* Pink Share button */
.btn-share { background: #ec4899; }
.btn-share:hover { background: #ee63a8; }
a.btn-share, a.btn-share:hover, a.btn-share:visited, a.btn-share:focus { color: #fff; }

@media (max-width: 760px) {
  .watch-info .watch-title, .watch-stats .watch-date { display: none; }
  .watch-stats { font-size: 14px; }
  /* Vues à gauche, boutons à droite sur la même ligne */
  .watch-bar { flex-wrap: nowrap; align-items: center; gap: 8px; }
  .watch-info { flex: 1; min-width: 0; flex-basis: auto; }
  .watch-actions { width: auto; flex-shrink: 0; }
  .watch-actions .btn { flex: none; }}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 7, 9, 0.72); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
  animation: modalFade .15s ease;
}
.modal-backdrop[hidden] { display: none; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
body.modal-open { overflow: hidden; }
.modal {
  width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: 0 30px 70px -20px rgba(0,0,0,0.7);
  animation: modalPop .18s ease;
}
@keyframes modalPop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-close { background: none; border: 0; color: var(--ink-3); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }

/* Start-at-time control */
.share-check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.share-check input { width: 16px; height: 16px; accent-color: var(--acc); cursor: pointer; }
.time-input { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.time-input input[type=number] { width: 62px; padding: 8px 10px; text-align: center; }
.time-input span { font-size: 13px; color: var(--ink-3); }
.time-input .btn { margin-left: auto; }

/* QR */
.qr-zone { text-align: center; }
.qr-box { width: 188px; height: 188px; margin: 0 auto; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.qr-box svg { display: block; }
.qr-hint { font-size: 12px; color: #555; }
.qr-cap { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }

/* AJAX transition */
.main-content { transition: opacity .12s ease; }
.main-content.is-leaving { opacity: 0; }

/* Active nav link */
.site-nav a.current { color: var(--ink); }
.site-nav a.current:not(.nav-cta)::after {
  content: ''; display: block; height: 2px; border-radius: 2px;
  background: var(--acc); margin-top: 4px;
}

@media (max-width: 680px) {
  .modal { max-width: 100%; }
}

.url-box .btn { white-space: nowrap; }

/* Processing state (video still uploading) */
.ico.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.proc-dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.proc-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); opacity: .35; animation: procPulse 1.2s ease-in-out infinite; }
.proc-dots span:nth-child(2) { animation-delay: .2s; }
.proc-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes procPulse { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ico.spin svg, .proc-dots span { animation: none; } }

/* Drop anywhere overlay */
.drop-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  background: rgba(10, 11, 14, 0.86); backdrop-filter: blur(6px);
  padding: 24px;
}
.drop-overlay.show { display: grid; animation: modalFade .12s ease; }
.drop-overlay-inner {
  pointer-events: none; text-align: center;
  border: 2px dashed var(--acc-line); border-radius: var(--r-lg);
  padding: 56px 64px; background: rgba(61, 125, 255, 0.06);
  max-width: 90vw;
}
.drop-overlay-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 16px;
  background: var(--acc-soft); border: 1px solid var(--acc-line); color: var(--acc);
}
.drop-overlay-icon svg { width: 30px; height: 30px; }
.drop-overlay h2 { font-size: 22px; margin-bottom: 6px; }
.drop-overlay p { color: var(--ink-2); font-size: 14.5px; }

/* Ad slot under the video player */
/* Ad frame with "Advertisement" label */
.ad-box {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); padding: 10px 12px 12px;
  margin: 20px auto 0; width: max-content; max-width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.ad-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-4); align-self: center;
}
.ad-slot { display: flex; justify-content: center; align-items: center; min-height: 90px; overflow: hidden; }
@media (max-width: 760px) { .ad-slot { min-height: 250px; } }

/* Top ad replacing the navbar on the watch page */
.top-ad-wrap {
  display: flex; justify-content: center; padding: 12px 16px 6px;
}
.top-ad-wrap .ad-box { margin-top: 0; }
.watch .ad-box { margin-top: 0; }

/* ===========================================================================
   How it works band
   =========================================================================== */
.howto { max-width: 880px; margin: 56px auto 0; padding: 0 22px; }
.howto-inner {
  display: flex; align-items: stretch; justify-content: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 22px;
}
.howto-step { flex: 1; text-align: center; max-width: 220px; }
.howto-ico {
  width: 46px; height: 46px; margin: 0 auto 14px; display: grid; place-items: center;
  border-radius: 12px; background: var(--acc-soft); color: var(--acc);
  border: 1px solid var(--acc-line);
}
.howto-ico svg { width: 22px; height: 22px; }
.howto-step h3 { font-size: 15px; margin-bottom: 6px; }
.howto-step p { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.howto-arrow { display: flex; align-items: center; color: var(--ink-4); flex: none; }
.howto-arrow svg { width: 22px; height: 22px; }
@media (max-width: 680px) {
  .howto-inner { flex-direction: column; align-items: center; gap: 18px; }
  .howto-arrow { transform: rotate(90deg); }
  .howto-step { max-width: none; }
}

/* ===========================================================================
   Library empty state
   =========================================================================== */
.lib-empty { text-align: center; padding: 50px 20px 60px; max-width: 460px; margin: 0 auto; }
.lib-empty-art { position: relative; width: 180px; height: 120px; margin: 0 auto 26px; }
.lib-empty-card {
  position: absolute; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2);
}
.lib-empty-card-main {
  inset: 0; left: 30px; right: 30px; z-index: 3;
  display: grid; place-items: center; color: var(--acc);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.6);
}
.lib-empty-card-main svg { width: 34px; height: 34px; }
.lib-empty-card-a { z-index: 2; inset: 8px 14px; transform: rotate(-7deg); opacity: .7; }
.lib-empty-card-b { z-index: 1; inset: 8px 14px; transform: rotate(7deg); opacity: .45; }
.lib-empty h2 { font-size: 19px; margin-bottom: 8px; }
.lib-empty p { color: var(--ink-3); margin-bottom: 20px; font-size: 14px; line-height: 1.55; }

/* ===========================================================================
   Custom video player
   =========================================================================== */
.player {
  position: relative; width: 100%; background: #000;
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16 / 9; outline: none;
}
.player video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; cursor: pointer; }

/* Watermark */
.player-watermark {
  position: absolute; top: 12px; right: 14px; z-index: 4;
  opacity: .55; transition: opacity .2s; pointer-events: auto;
}
.player-watermark:hover { opacity: .9; }
.player-watermark img { height: 18px; width: auto; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)); }

/* Big center play */
.player-bigplay {
  position: absolute; inset: 0; margin: auto; z-index: 3;
  width: auto; height: auto; border: 0; background: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  color: hsla(0, 0%, 100%, .9);
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, .8));
  transition: transform .15s, opacity .2s;
}
.player-bigplay svg { width: 62px; height: 62px; display: block; }
.player-bigplay:hover { transform: scale(1.07); color: #fff; }
.player.playing .player-bigplay { opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
  .player-bigplay svg { width: 46px; height: 46px; }
}

/* Control bar */
.player-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 20px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.player:not(.playing) .player-controls,
.player.controls-visible .player-controls { opacity: 1; transform: none; pointer-events: auto; }

.player-scrub { position: relative; height: 16px; cursor: pointer; display: flex; align-items: center; margin-bottom: 4px; }
.player-scrub::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.25); }
.player-scrub-buffered { position: absolute; left: 0; height: 4px; width: 0; border-radius: 999px; background: rgba(255,255,255,0.35); }
.player-scrub-fill { position: absolute; left: 0; height: 4px; width: 0; border-radius: 999px; background: var(--acc); }
.player-scrub-knob {
  position: absolute; left: 0; top: 50%; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  opacity: 0; transition: opacity .15s;
}
.player-scrub:hover .player-scrub-knob, .player.controls-visible .player-scrub-knob { opacity: 1; }

.player-row { display: flex; align-items: center; gap: 10px; }
.pc-btn { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; display: grid; place-items: center; border-radius: 6px; transition: background .15s; }
.pc-btn:hover { background: rgba(255,255,255,0.15); }
.pc-btn svg { width: 20px; height: 20px; }
.pc-btn svg[hidden], .player svg[hidden] { display: none !important; }
.pc-time { color: #fff; font-size: 12.5px; font-variant-numeric: tabular-nums; opacity: .9; }
.pc-spacer { flex: 1; }
.pc-vol { display: flex; align-items: center; gap: 4px; }
.pc-volume {
  width: 0; opacity: 0; transition: width .2s, opacity .2s; -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 999px; background: rgba(255,255,255,0.3); cursor: pointer;
}
.pc-vol:hover .pc-volume { width: 64px; opacity: 1; }
.pc-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; cursor: pointer; }
.pc-volume::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }

/* Views badge */
.views-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.views-badge strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ===========================================================================
   Polish: copied state, page transitions
   =========================================================================== */
.copy-btn.is-copied { background: var(--ok) !important; color: #fff !important; }

/* Smoother AJAX page transition */
.main-content { animation: pageIn .22s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.main-content.is-leaving { opacity: 0; transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  .main-content { animation: none; }
  .player-bigplay, .player-controls { transition: none; }
}

/* ===========================================================================
   Bulk upload (distinct from single upload)
   =========================================================================== */
.bulk-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bulk-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px;
  transition: border-color .2s, background .2s;
}
.bulk-item.is-uploading { border-color: var(--acc-line); }
.bulk-item.is-done { border-color: rgba(52, 199, 89,0.4); }
.bulk-item.is-error { border-color: rgba(255, 69, 58,0.4); }
.bulk-ico {
  width: 64px; height: 40px; flex: none; border-radius: 8px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-4); position: relative;
}
.bulk-ico img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.bulk-ico-ph { display: grid; place-items: center; position: relative; z-index: 1; }
.bulk-ico svg { width: 18px; height: 18px; }
.bulk-main { flex: 1; min-width: 0; }
.bulk-name { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 7px; }
.bulk-bar { height: 5px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.bulk-fill { height: 100%; width: 0; border-radius: 999px; background: var(--acc); transition: width .2s; }
.bulk-item.is-done .bulk-fill { background: var(--ok); }
.bulk-item.is-error .bulk-fill { background: var(--bad); }
.bulk-status { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.bulk-item.is-done .bulk-status { color: var(--ok); }
.bulk-item.is-error .bulk-status { color: #ff8079; }
.bulk-link { display: flex; gap: 6px; margin-top: 8px; }
.bulk-link input {
  flex: 1; min-width: 0; padding: 7px 10px; font-size: 12.5px;
  border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); color: var(--ink);
}
.bulk-copy {
  flex: none; padding: 7px 12px; font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--acc-line); background: var(--acc-soft); color: var(--acc-hover);
  border-radius: var(--r-sm); cursor: pointer; transition: .15s;
}
.bulk-copy:hover { background: var(--acc); color: #fff; }
.bulk-copy.is-copied { background: var(--ok); border-color: var(--ok); color: #fff; }
/* Green completion check on the right */
.bulk-check {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: var(--ok); transform: scale(0); opacity: 0;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
}
.bulk-check svg { width: 16px; height: 16px; }
.bulk-item.is-done .bulk-check { transform: scale(1); opacity: 1; }
.bulk-item.is-error .bulk-check { background: var(--bad); transform: scale(1); opacity: 1; }
.bulk-item.is-error .bulk-check svg { display: none; }
.bulk-item.is-error .bulk-check::after { content: '\00d7'; font-size: 18px; line-height: 1; }

/* ===========================================================================
   Buffering spinner
   =========================================================================== */
.player-buffer { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.player-buffer[hidden] { display: none; }
.buffer-spin {
  width: 52px; height: 52px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.25); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.5));
}

/* ===========================================================================
   Grid gallery (Library + Trending) with list toggle
   =========================================================================== */
.grid-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px; margin-top: 18px; width: 100%;
}
.grid-gallery-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-gallery-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grid-gallery-4 { grid-template-columns: repeat(2, 1fr); } }
.gcard { display: block; border-radius: var(--r); overflow: hidden; transition: transform .15s; }
.gcard:hover { transform: translateY(-3px); }
.gcard-thumb {
  position: relative; aspect-ratio: 16 / 9; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.gcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard-thumb-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink-4); }
.gcard-thumb-empty svg { width: 34px; height: 34px; }
.gcard-rank {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--acc); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
}
.gcard-meta { padding: 10px 2px 0; }
.gcard-title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gcard-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* View toggle */
.lib-head-actions { display: flex; align-items: center; gap: 10px; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.vt-btn { background: var(--surface); border: 0; padding: 7px 10px; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; transition: .15s; }
.vt-btn + .vt-btn { border-left: 1px solid var(--line); }
.vt-btn:hover { color: var(--ink); }
.vt-btn.active { background: var(--acc-soft); color: var(--acc); }
/* Toggle which layout shows */
.lib-views[data-view="grid"] .vid-list { display: none; }
.lib-views[data-view="list"] .grid-gallery { display: none; }

/* ===========================================================================
   Skeleton loaders
   =========================================================================== */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-sm);
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sk-line { height: 12px; margin: 8px 0; border-radius: 6px; }
.sk-line.short { width: 55%; }

/* ===========================================================================
   404 / not-found page
   =========================================================================== */
.notfound { text-align: center; padding: 60px 20px 80px; max-width: 480px; margin: 0 auto; }
.notfound-art { width: 130px; margin: 0 auto 24px; }
.notfound-art svg { width: 100%; height: auto; }
.notfound h1 { font-size: 24px; margin-bottom: 10px; }
.notfound-reason { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin-bottom: 24px; }
.notfound-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===========================================================================
   More videos (watch page)
   =========================================================================== */
.watch-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.more-videos { margin-top: 6px; }
.more-title { font-size: 16px; margin-bottom: 12px; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.more-card { display: block; border-radius: var(--r); overflow: hidden; transition: transform .15s; }
.more-card:hover { transform: translateY(-3px); }
.more-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.more-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.more-thumb-empty { display: grid; place-items: center; color: var(--ink-4); }
.more-thumb-empty svg { width: 30px; height: 30px; }
.more-meta { padding: 9px 2px 0; }
.more-name { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.more-views { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.more-empty { color: var(--ink-3); font-size: 14px; padding: 10px 0; }
.more-card.is-skeleton { pointer-events: none; }

/* ===========================================================================
   Trending range tabs
   =========================================================================== */
.trending-range { flex-wrap: wrap; }

/* ===========================================================================
   Admin panel
   =========================================================================== */
.admin { max-width: 1040px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-head h1 { font-size: 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.astat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-align: center; }
.astat .n { font-family: var(--display); font-size: 22px; font-weight: 700; }
.astat .l { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.admin-search { display: flex; gap: 8px; margin: 16px 0; }
.admin-search input { flex: 1; padding: 9px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 8px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.admin-table th { color: var(--ink-3); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.admin-table code { font-size: 12px; color: var(--acc); }
.admin-table tr:hover td { background: var(--surface); }
.admin-row-actions { display: flex; gap: 6px; align-items: center; }
.admin-reason { padding: 5px 8px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: 12px; }
.admin-empty { text-align: center; color: var(--ink-3); padding: 24px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: var(--surface-3); color: var(--ink-2); }
@media (max-width: 680px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-table { font-size: 12px; }
  /* The videos table controls its own column hiding (it has extra columns);
     keep the blunt nth-child rule for every other admin table. */
  .admin-table:not(.admin-videos-table) th:nth-child(4),
  .admin-table:not(.admin-videos-table) td:nth-child(4) { display: none; }
}

/* ---- Admin: bulk select + delete bar ---- */
.admin-bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  position: sticky;
  top: 8px;
  z-index: 6;
}
.admin-bulk-info { font-size: 13px; color: var(--ink-2); }
.admin-bulk-info strong { color: var(--ink); }
.admin-bulk-spacer { flex: 1; }
.admin-cb-col { width: 1%; white-space: nowrap; text-align: center; }
.admin-cb-col input {
  width: 16px; height: 16px;
  cursor: pointer;
  accent-color: var(--acc);
  vertical-align: middle;
}

/* ---- Admin: uploader column + ban ---- */
.admin-uploader { font-size: 12px; line-height: 1.5; }
.admin-uploader .up-email { color: var(--ink); }
.admin-uploader .up-ip { color: var(--ink-2); }
.admin-uploader .up-tok { color: var(--ink-3); font-size: 11px; }
.admin-actions-cell { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

@media (max-width: 680px) {
  /* The videos table has Title, Slug, Uploader, Views, Size, Date, Actions.
     On small screens drop Size and Date to make room for the Uploader/IP. */
  .admin-videos-table .col-size, .admin-videos-table .col-date { display: none; }
  .admin-bulk-bar { flex-wrap: wrap; }
}

/* ===========================================================================
   Theme toggle button + LIGHT MODE
   =========================================================================== */
.theme-toggle { background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; transition: .15s; }
.theme-toggle:hover { background: var(--surface-2); color: var(--ink); }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }
html[data-theme="light"] .theme-toggle .ic-sun { display: block; }
html[data-theme="light"] .theme-toggle .ic-moon { display: none; }

html[data-theme="light"] {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f1f4;
  --surface-3: #e5e7eb;
  --line: #e2e5ea;
  --line-soft: #eceef2;
  --ink: #14161a;
  --ink-2: #3d424c;
  --ink-3: #6b717c;
  --ink-4: #9aa0ab;
  --acc-soft: rgba(61, 125, 255,0.1);
}
html[data-theme="light"] body { background: var(--bg); color: var(--ink); }
html[data-theme="light"] .site-header { background: rgba(255,255,255,0.85); }
html[data-theme="light"] .brand-logo,
html[data-theme="light"] .footer-logo,
html[data-theme="light"] .player-watermark img { filter: invert(1); }
html[data-theme="light"] .player, html[data-theme="light"] .player video { background: #000; }

/* ===========================================================================
   Pagination
   =========================================================================== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 32px 0 8px; flex-wrap: wrap; }
.pg-btn {
  min-width: 38px; height: 38px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: .15s; text-decoration: none;
}
.pg-btn:hover { border-color: var(--acc-line); color: var(--ink); background: var(--surface-2); }
.pg-btn.is-current { background: var(--acc); border-color: var(--acc); color: #fff; cursor: default; }
.pg-btn.is-disabled { opacity: .4; pointer-events: none; }
.pg-ellipsis { color: var(--ink-4); padding: 0 4px; }

/* ===========================================================================
   Admin - Storage settings
   =========================================================================== */
.admin-settings { max-width: 640px; margin: 0 auto; }
.admin-settings h2 { font-family: var(--display); font-size: 20px; margin: 0 0 4px; }
.admin-settings .sub { color: var(--ink-3); font-size: 14px; margin: 0 0 18px; }
.storage-form { display: flex; flex-direction: column; gap: 14px; }
.storage-opt {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px;
  cursor: pointer; transition: .15s; background: var(--surface);
}
.storage-opt:hover { border-color: var(--acc-line); }
.storage-opt.is-selected { border-color: var(--acc); background: var(--acc-soft); }
.storage-opt input[type="radio"] { margin-top: 3px; accent-color: var(--acc); width: 16px; height: 16px; flex: none; }
.storage-opt-body { display: flex; flex-direction: column; gap: 4px; }
.storage-opt-title { font-weight: 600; font-size: 15px; }
.storage-opt-title em { color: var(--ink-4); font-weight: 500; font-style: normal; }
.storage-opt-desc { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.storage-opt-desc code, .admin-settings code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 12px; }
.storage-opt-tag {
  align-self: flex-start; margin-top: 4px; font-size: 11px; font-weight: 600;
  color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px;
}
.storage-form .btn { align-self: flex-start; margin-top: 4px; }

/* ===========================================================================
   Auth - sign in / create account (email + 4-digit code)
   =========================================================================== */
.auth-tabs { display: flex; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px; margin-bottom: 22px; }
.auth-tab {
  flex: 1; text-align: center; padding: 8px 10px; border-radius: calc(var(--r-sm) - 2px);
  font-size: 13.5px; font-weight: 600; color: var(--ink-3); text-decoration: none; transition: .15s;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.pin-input {
  letter-spacing: .5em; text-align: center; font-size: 20px; font-weight: 600;
  font-family: var(--display, inherit); padding-left: .5em;
}
.auth-switch { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.auth-switch a { color: var(--acc); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ===========================================================================
   Reddit title fetch row (appears in the upcard when upload is done)
   =========================================================================== */
.upcard-reddit {
  display: none; align-items: center; gap: 8px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.upcard.has-link .upcard-reddit { display: flex; }
.upcard-reddit svg { flex: none; opacity: .8; }
.upcard-reddit input {
  flex: 1; min-width: 0; padding: 7px 10px; font-size: 13px;
  border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line);
  color: var(--ink);
}
.upcard-reddit input::placeholder { color: var(--ink-4); }
.upcard-reddit input:focus { outline: none; border-color: var(--acc); }
.upcard-reddit .btn { flex: none; white-space: nowrap; }

/* ===========================================================================
   Grid card actions (hover overlay in My Videos)
   =========================================================================== */
.gcard-wrap { position: relative; border-radius: var(--r); }
.gcard-actions {
  position: absolute; top: 6px; right: 6px;
  display: flex; gap: 4px; z-index: 4;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .15s, transform .15s;
  pointer-events: none;
}
.gcard-wrap:hover .gcard-actions { opacity: 1; transform: none; pointer-events: auto; }
.gcard-act-btn {
  width: 28px; height: 28px; border-radius: 8px; border: 0; cursor: pointer;
  background: rgba(20,22,28,0.82); color: #fff;
  display: grid; place-items: center; backdrop-filter: blur(4px);
  transition: background .12s; text-decoration: none;
}
.gcard-act-btn:hover { background: rgba(61, 125, 255,0.9); }
.gcard-act-danger:hover { background: rgba(255, 69, 58,0.9); }

/* Private badge on thumbnail */
.gcard-private-badge {
  position: absolute; bottom: 6px; left: 6px; z-index: 3;
  background: rgba(20,22,28,0.78); color: #fff;
  font-size: 10px; font-weight: 600; padding: 2px 7px;
  border-radius: 999px; display: flex; align-items: center; gap: 4px;
  backdrop-filter: blur(3px);
}

/* ===========================================================================
   Admin Settings tab (feature toggles)
   =========================================================================== */
.admin-settings { max-width: 600px; margin-top: 16px; }
.admin-section-title { font-size: 17px; margin-bottom: 4px; }
.admin-section-sub { color: var(--ink-3); font-size: 13.5px; margin-bottom: 20px; }
.feature-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.feature-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 0; }
.feature-name { font-weight: 600; font-size: 14px; }
.feature-key { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }
.feature-key code { font-size: 11px; color: var(--acc); }

/* Toggle switch */
.toggle-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer; padding: 4px 0;
}
.toggle-track {
  width: 40px; height: 22px; border-radius: 999px; position: relative;
  background: var(--surface-3); border: 1px solid var(--line);
  transition: background .2s, border-color .2s; flex: none;
}
.toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--ink-4);
  transition: transform .2s, background .2s;
}
.toggle-btn.is-on .toggle-track { background: var(--acc); border-color: var(--acc); }
.toggle-btn.is-on .toggle-thumb { transform: translateX(18px); background: #fff; }
.toggle-label { font-size: 13px; font-weight: 600; color: var(--ink-3); min-width: 24px; }
.toggle-btn.is-on .toggle-label { color: var(--acc); }

/* ===========================================================================
   Trending threshold badge (My Videos cards)
   =========================================================================== */
.gcard-trending-badge {
  position: absolute; top: 6px; left: 6px; z-index: 3;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  color: #fff; display: inline-flex; align-items: center; gap: 3px;
  backdrop-filter: blur(3px);
  background: linear-gradient(135deg, #ff8a3d, #ff4d4d);
  box-shadow: 0 2px 8px -2px rgba(255,77,77,0.6);
}
.gcard-trending-badge.tier-10k { background: linear-gradient(135deg, #ff6b3d, #ff2d6b); }
.gcard-trending-badge.tier-100k {
  background: linear-gradient(135deg, #ff3df0, #7c3dff);
  box-shadow: 0 2px 10px -2px rgba(124,61,255,0.7);
}

/* ===========================================================================
   Player watermark (CSS overlay, works above the native <video> controls)
   =========================================================================== */
.player { position: relative; }
.player-watermark {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  opacity: .55; pointer-events: none; transition: opacity .2s;
}
.player:hover .player-watermark { opacity: .8; }
.player-watermark img { height: 17px; width: auto; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)); }
@media (max-width: 600px) { .player-watermark { top: 8px; right: 8px; } .player-watermark img { height: 14px; } }

/* ===========================================================================
   Reddit-themed fetching state (distinct from the blue upload shimmer)
   =========================================================================== */
.upcard-reddit.is-fetching {
  background: linear-gradient(90deg, rgba(255,69,0,0.10), rgba(255,69,0,0.02), rgba(255,69,0,0.10));
  background-size: 200% 100%;
  animation: reddit-pulse 1.3s ease infinite;
  border-radius: var(--r-sm);
  padding: 8px;
  margin: -8px;
}
@keyframes reddit-pulse { 0% { background-position: 0% 0; } 100% { background-position: -200% 0; } }
.upcard-reddit.is-fetching svg circle { animation: reddit-spin 1s linear infinite; transform-origin: center; }
@keyframes reddit-spin { to { transform: rotate(360deg); } }
.upcard-reddit.is-fetched { opacity: .7; }

/* ===========================================================================
   Homepage promo banner (Creator Compensation Program)
   =========================================================================== */
.promo-banner {
  display: flex; align-items: center; gap: 10px;
  max-width: 680px; margin: 0 auto 28px; padding: 11px 16px;
  border-radius: 999px; text-decoration: none;
  background: linear-gradient(90deg, rgba(61, 125, 255,0.14), rgba(124,61,255,0.14));
  border: 1px solid var(--acc-line);
  transition: transform .15s, border-color .15s;
}
.promo-banner:hover { transform: translateY(-1px); border-color: var(--acc); }
.promo-banner-badge {
  flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .03em;
  background: var(--acc); color: #fff; padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase;
}
.promo-banner-text { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.promo-banner-arrow { flex: none; color: var(--acc); font-weight: 700; }
@media (max-width: 600px) { .promo-banner-text { font-size: 12.5px; } }

.nav-earn { color: #ffb020 !important; font-weight: 700 !important; }

/* ===========================================================================
   Monetization landing page
   =========================================================================== */
.mz { max-width: 880px; margin: 0 auto; padding: 0 4px 60px; }

.mz-hero {
  position: relative; text-align: center; padding: 56px 20px 36px;
  overflow: hidden;
}
.mz-hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 320px; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(255,176,32,0.18), rgba(124,61,255,0.10), transparent 70%);
  filter: blur(10px);
}
.mz-eyebrow {
  position: relative; z-index: 1; display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #ffb020; background: rgba(255,176,32,0.12); border: 1px solid rgba(255,176,32,0.3);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.mz-hero h1 { position: relative; z-index: 1; font-size: 38px; line-height: 1.15; margin-bottom: 14px; }
.mz-hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffb020, #ff6b6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mz-sub { position: relative; z-index: 1; color: var(--ink-2); font-size: 16px; max-width: 540px; margin: 0 auto 28px; line-height: 1.6; }
.mz-cta { position: relative; z-index: 1; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 12px; }

.mz-stat-row { position: relative; z-index: 1; display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }
.mz-stat .n { font-family: var(--display); font-size: 26px; font-weight: 800; background: linear-gradient(90deg, #ffb020, #ff6b6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mz-stat .l { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* Guaranteed earnings banner */
.mz-banner {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(90deg, rgba(255,176,32,0.10), rgba(255,107,107,0.06));
  border: 1px solid rgba(255,176,32,0.28); border-radius: var(--r-lg);
  padding: 20px 24px; margin: 0 0 48px;
}
.mz-banner-icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(160deg, #ffb020, #ff6b6b); color: #fff;
  display: grid; place-items: center; font-size: 22px; font-weight: 800;
  box-shadow: 0 8px 22px -8px rgba(255,107,107,0.6);
}
.mz-banner-title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.mz-banner-sub { font-size: 14px; color: var(--ink-2); }
.mz-banner-sub strong { color: var(--ink); }

/* Sections */
.mz-section { margin-bottom: 52px; }
.mz-section h2 { font-size: 22px; text-align: center; margin-bottom: 28px; }

.mz-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mz-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 16px; text-align: center; transition: transform .15s, border-color .15s;
}
.mz-step:hover { transform: translateY(-3px); border-color: var(--acc-line); }
.mz-step-n {
  width: 30px; height: 30px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--acc-soft); color: var(--acc); font-weight: 700; font-size: 13px;
  display: grid; place-items: center;
}
.mz-step h3 { font-size: 14.5px; margin-bottom: 6px; }
.mz-step p { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
@media (max-width: 760px) { .mz-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .mz-steps { grid-template-columns: 1fr; } }

.mz-requirements { max-width: 480px; margin-left: auto; margin-right: auto; }
.mz-req-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mz-req-list li {
  display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px;
}
.mz-req-list svg { flex: none; color: var(--ok); margin-top: 1px; }

.mz-final { text-align: center; }
.mz-final-card {
  max-width: 460px; margin: 0 auto; padding: 32px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.mz-final-card h2 { font-size: 19px; margin-bottom: 8px; }
.mz-final-card p { color: var(--ink-3); font-size: 14px; margin-bottom: 20px; line-height: 1.55; }
.mz-final-card p a { color: var(--acc); }

.mz-status-icon { font-size: 30px; margin-bottom: 10px; }
.mz-status-pending .mz-status-icon { color: #ffb020; }
.mz-status-approved .mz-status-icon { color: var(--ok); }
.mz-status-rejected .mz-status-icon { color: var(--bad); }

.mz-progress { margin-top: 6px; }
.mz-progress-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.mz-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffb020, #ff6b6b); transition: width .4s ease; }
.mz-progress-label { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; font-variant-numeric: tabular-nums; }

/* Apply modal */
.mz-modal { max-width: 460px; }
.mz-success { text-align: center; padding: 16px 0; }
.mz-success h3 { font-size: 17px; margin-bottom: 8px; }
.mz-success p { color: var(--ink-3); font-size: 14px; }
.mz-success .mz-status-icon { color: var(--ok); }

/* ===========================================================================
   Admin: Monetization tab
   =========================================================================== */
.admin-section-title { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 18px 0 12px; }
.admin-section-title.mz-section-spaced { margin-top: 36px; }
.mz-count {
  font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--ink-2);
  padding: 2px 8px; border-radius: 999px;
}
.mz-count-hot { background: rgba(255,107,107,0.18); color: #ff6b6b; }
.admin-empty-inline { color: var(--ink-3); font-size: 13.5px; padding: 10px 0 4px; }
.mz-details { font-size: 11px; color: var(--ink-4); }
.mz-admin-progress { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.mz-admin-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffb020, #ff6b6b); }
.mz-views-input { width: 100px; padding: 6px 8px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: 12.5px; }
.mz-row-hot td { background: rgba(255,107,107,0.05); }

/* ===========================================================================
   Homepage promo card (richer version, replaces the thin pill)
   =========================================================================== */
.promo-card {
  position: relative; display: flex; align-items: center; gap: 16px;
  max-width: 640px; margin: 0 auto 30px; padding: 16px 20px;
  border-radius: var(--r-lg); text-decoration: none; overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,176,32,0.3);
  transition: transform .15s, border-color .15s;
}
.promo-card:hover { transform: translateY(-2px); border-color: #ffb020; }
.promo-card-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 160% at 0% 50%, rgba(255,176,32,0.14), transparent 60%);
}
.promo-card-icon {
  position: relative; z-index: 1; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(160deg, #ffb020, #ff6b6b); color: #fff;
  display: grid; place-items: center; font-size: 20px; font-weight: 800;
  box-shadow: 0 8px 20px -8px rgba(255,107,107,0.65);
}
.promo-card-body { position: relative; z-index: 1; flex: 1; min-width: 0; }
.promo-card-title { font-weight: 700; font-size: 14.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.promo-card-badge {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  background: #ffb020; color: #18130a; padding: 2px 7px; border-radius: 999px;
}
.promo-card-text { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.promo-card-text strong { color: var(--ink-2); }
.promo-card-arrow { position: relative; z-index: 1; flex: none; color: #ffb020; font-weight: 700; font-size: 18px; }
@media (max-width: 600px) {
  .promo-card { flex-wrap: wrap; padding: 14px 16px; }
  .promo-card-arrow { display: none; }
}

/* ===========================================================================
   Pending-review banner on the monetization landing page
   =========================================================================== */
.mz-pending-banner {
  display: flex; align-items: center; gap: 14px;
  max-width: 640px; margin: 0 auto 8px; padding: 14px 18px;
  background: rgba(255,176,32,0.08); border: 1px solid rgba(255,176,32,0.3);
  border-radius: var(--r); 
}
.mz-pending-icon { flex: none; font-size: 22px; }
.mz-pending-title { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.mz-pending-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.mz-cta .btn[disabled] { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ===========================================================================
   Creator dashboard (/monetization-dashboard)
   =========================================================================== */
.mzd { max-width: 680px; margin: 0 auto; padding: 0 4px 60px; }

.mzd-hero { text-align: center; padding: 40px 16px 8px; }
.mzd-eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #ffb020; background: rgba(255,176,32,0.12); border: 1px solid rgba(255,176,32,0.3);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 14px;
}
.mzd-hero h1 { font-size: 28px; margin-bottom: 6px; }
.mzd-sub { color: var(--ink-3); font-size: 14.5px; }

/* Big progress ring card */
.mzd-progress-card {
  text-align: center; padding: 36px 20px 32px; margin: 24px 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.mzd-ring-wrap { position: relative; width: 160px; height: 160px; margin: 0 auto 22px; }
.mzd-ring { width: 160px; height: 160px; transform: rotate(-90deg); }
.mzd-ring-track { fill: none; stroke: var(--surface-3); stroke-width: 10; }
.mzd-ring-fill { fill: none; stroke: url(#mzd-grad); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .6s ease; stroke: #ffb020; }
.mzd-ring-wrap.is-ready .mzd-ring-fill,
.mzd-ring-wrap.is-paid .mzd-ring-fill { stroke: var(--ok); }
.mzd-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mzd-ring-pct { font-family: var(--display); font-size: 32px; font-weight: 800; color: var(--ink); }
.mzd-ring-icon { font-size: 30px; color: var(--ok); }
.mzd-ring-label { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.mzd-status-title { font-size: 19px; margin-bottom: 8px; }
.mzd-status-sub { color: var(--ink-3); font-size: 14px; max-width: 420px; margin: 0 auto; line-height: 1.55; }
.mzd-status-sub strong { color: var(--ink); }

/* Journey timeline */
.mzd-section { margin: 36px 0; }
.mzd-section h2 { font-size: 16px; margin-bottom: 18px; }
.mzd-timeline { display: flex; }
.mzd-tl-item { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mzd-tl-dot {
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--line);
  display: grid; place-items: center; font-size: 13px; color: var(--ink-4); margin-bottom: 10px; z-index: 1;
  transition: background .3s, border-color .3s, color .3s;
}
.mzd-tl-item.is-done .mzd-tl-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.mzd-tl-line {
  position: absolute; top: 13px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0;
  transition: background .3s;
}
.mzd-tl-line.is-done { background: var(--ok); }
.mzd-tl-label { font-size: 11.5px; color: var(--ink-3); max-width: 100px; line-height: 1.4; }
.mzd-tl-item.is-done .mzd-tl-label { color: var(--ink-2); font-weight: 600; }
@media (max-width: 560px) { .mzd-tl-label { font-size: 10px; max-width: 72px; } }

/* Account details grid */
.mzd-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mzd-detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.mzd-detail .l { font-size: 11px; color: var(--ink-4); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.mzd-detail .v { font-size: 14px; font-weight: 600; color: var(--ink); }
.mzd-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.mzd-badge-accruing { background: rgba(255,176,32,0.15); color: #ffb020; }
.mzd-badge-awaiting_payout { background: rgba(52, 199, 89,0.15); color: var(--ok); }
.mzd-badge-paid { background: var(--surface-3); color: var(--ink-2); }
@media (max-width: 480px) { .mzd-details-grid { grid-template-columns: 1fr; } }

.mzd-actions { display: flex; gap: 10px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* ===========================================================================
   Dashboard: lifetime earnings strip + payout history + monetized badge
   =========================================================================== */
.mzd-lifetime {
  display: flex; align-items: baseline; gap: 10px; justify-content: center;
  margin: 18px 0 0; padding: 14px 20px;
  background: linear-gradient(90deg, rgba(255,176,32,0.10), rgba(255,107,107,0.06));
  border: 1px solid rgba(255,176,32,0.25); border-radius: var(--r);
}
.mzd-lifetime-amount { font-family: var(--display); font-size: 22px; font-weight: 800; color: #ffb020; }
.mzd-lifetime-label { font-size: 12.5px; color: var(--ink-3); }

.mzd-badge-monetized { background: rgba(52, 199, 89,0.15); color: var(--ok); }

.mzd-history { display: flex; flex-direction: column; gap: 8px; }
.mzd-history-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 14px;
}
.mzd-history-icon {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(160deg, #ffb020, #ff6b6b); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 800;
}
.mzd-history-amount { font-size: 14px; font-weight: 700; color: var(--ink); }
.mzd-history-sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; }

/* ===========================================================================
   Disabled features: nav links, seg tabs, buttons stay visible but inert
   =========================================================================== */
.btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

.nav-disabled {
  color: var(--ink-4); cursor: not-allowed; user-select: none;
  position: relative; opacity: .6;
}
.nav-disabled.nav-earn { color: var(--ink-4) !important; }
/* Small "paused" dot so it reads as deliberately off, not a styling bug */
.nav-disabled::after {
  content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-4); margin-left: 6px; vertical-align: middle;
}

/* Disabled seg tab (From URL / Bulk upload when off) */
.seg .nav-disabled {
  padding: 8px 14px; border-radius: var(--r-sm); font-size: 13.5px;
  display: inline-flex; align-items: center;
}

/* ===========================================================================
   "Under maintenance" page (shown when a disabled feature's URL is visited)
   =========================================================================== */
.maint { max-width: 420px; margin: 70px auto; text-align: center; padding: 0 20px; }
.maint-icon {
  width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 18px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-3);
}
.maint h1 { font-size: 19px; margin-bottom: 10px; line-height: 1.4; }
.maint p { color: var(--ink-3); font-size: 14px; margin-bottom: 24px; line-height: 1.55; }

/* =========================================================================
   Added features (status strip, earn bubble, live counter, reddit, etc.)
   ========================================================================= */

/* ---- System status strip (top of every page) ---- */
.status-strip { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.status-strip-inner { display: flex; justify-content: center; padding: 5px 0; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); padding: 3px 10px; border-radius: 999px; }
.status-pill:hover { color: var(--ink-2); background: var(--surface-2); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 199, 89,.5); animation: statusPulse 2.4s infinite; }
.status-check { color: var(--ok); font-weight: 700; }
.status-strip.is-down .status-dot { background: var(--bad); animation: none; }
.status-strip.is-down .status-pill { color: var(--bad); }
.status-strip.is-down .status-check { display: none; }
@keyframes statusPulse { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 89,.45); } 70% { box-shadow: 0 0 0 6px rgba(52, 199, 89,0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89,0); } }

/* ---- Earn nav link + auto-appearing bubble ---- */
.nav-earn-wrap { position: relative; display: inline-flex; }
.nav-earn { color: var(--acc) !important; font-weight: 600 !important; }
.nav-creator { color: var(--ok) !important; font-weight: 600 !important; }
.earn-bubble {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px) scale(.96);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: linear-gradient(135deg, var(--acc), #6a4dff); color: #fff;
  font-size: 12.5px; font-weight: 500; padding: 8px 12px; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(61, 125, 255,.35); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; z-index: 60;
}
.earn-bubble.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }
.earn-bubble::before { content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-bottom-color: var(--acc); }
.earn-bubble-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: statusPulse 2s infinite; }
.earn-bubble-x { background: none; border: 0; color: rgba(255,255,255,.8); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 0 0 2px; }
.earn-bubble-x:hover { color: #fff; }
@media (max-width: 680px) { .earn-bubble { display: none; } }

/* ---- Live "uploaded today" counter ---- */
.live-counter { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 18px; padding: 6px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); width: fit-content; }
.live-counter { display: flex; }
.live-counter-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 0 rgba(255, 69, 58,.5); animation: statusPulse 2s infinite; }
.live-counter-num { color: var(--ink); font-weight: 700; }

/* ---- Compact hero for returning uploaders ---- */
.hero-compact h1 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 6px; }
.hero-compact .sub { display: none; }
.stage-compact .live-counter { margin-bottom: 12px; }

/* ---- Auto-detected format row ---- */
.format-detect { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 12px auto 0; font-size: 13px; color: var(--ink-3); }
.format-detect .fd-ico { display: inline-flex; color: var(--acc); }
.format-detect .fd-label { color: var(--ink-3); }
.format-detect .fd-value { color: var(--ink); font-weight: 600; font-family: var(--display); letter-spacing: .2px; }

/* ---- New spec chips + moderation notice ---- */
.spec-row { display: flex; justify-content: center; margin-top: 12px; }
.chip-lock { color: var(--ok); }
.chip-lock svg { vertical-align: -1px; margin-right: 3px; }
.chip-speed { color: var(--ink-2); }
.mod-notice { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 12px; color: var(--ink-3); }
.mod-notice svg { color: var(--ink-4); }

/* ---- Built for Reddit ---- */
.reddit-built { max-width: var(--maxw); margin: 28px auto 0; padding: 0 20px; }
.reddit-built-inner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.reddit-built-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; text-align: left; }
.reddit-built-head h2 { font-size: 20px; margin: 0; }
.reddit-built-head .sub { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }
.reddit-built-logo { flex: 0 0 auto; display: inline-flex; }
.reddit-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.reddit-flow li { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px; }
.reddit-flow .rf-step { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.reddit-flow strong { display: block; font-size: 14px; margin-bottom: 3px; }
.reddit-flow span:not(.rf-step) { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 820px) { .reddit-flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .reddit-flow { grid-template-columns: 1fr; } }

/* ---- Paste-from-clipboard (From URL) ---- */
.url-input-row { display: flex; gap: 8px; }
.url-input-row input { flex: 1 1 auto; }
.btn-paste { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }

/* ---- Notify-me button in the upload card ---- */
.upcard-notify { display: inline-flex; align-items: center; gap: 7px; margin: 12px auto 0; padding: 8px 14px; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.upcard-notify:hover { color: var(--ink); border-color: var(--acc-line); }
.upcard-notify.is-armed { color: var(--ok); border-color: rgba(52, 199, 89,.4); }

/* ---- Hover preview frames (My Videos) ---- */
.gcard-thumb-img { transition: opacity .15s ease; }

/* ---- Floating scroll-to-upload button ---- */
.scroll-fab {
  position: fixed; right: 20px; bottom: 22px; z-index: 70;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 16px 11px 13px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--acc); color: #fff; font-family: var(--body); font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(61, 125, 255,.4);
  opacity: 0; transform: translateY(14px) scale(.95); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, background .18s ease;
}
.scroll-fab svg { width: 17px; height: 17px; }
.scroll-fab:hover { background: var(--acc-hover); }
.scroll-fab.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
@media (max-width: 540px) { .scroll-fab span { display: none; } .scroll-fab { padding: 12px; } }

/* ---- /status page ---- */
.status-overall { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: var(--r); font-weight: 600; margin-bottom: 18px; border: 1px solid var(--line); }
.status-overall.is-ok { background: rgba(52, 199, 89,.08); border-color: rgba(52, 199, 89,.3); color: var(--ok); }
.status-overall.is-down { background: rgba(255, 69, 58,.08); border-color: rgba(255, 69, 58,.3); color: var(--bad); }
.status-overall-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.status-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.status-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.status-item-name { font-size: 14px; color: var(--ink); }
.status-item-state { font-size: 13px; font-weight: 600; }
.status-item.is-ok .status-item-state { color: var(--ok); }
.status-item.is-down .status-item-state { color: var(--bad); }
.status-foot { font-size: 13px; color: var(--ink-3); line-height: 1.55; }

/* ---- Ads Manager page ---- */
.ads-form { display: flex; flex-direction: column; gap: 24px; }
.ad-fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--surface-2); }
.ad-fieldset legend { font-weight: 600; font-size: 15px; color: var(--ink); margin: -9px 0 12px -6px; padding: 0 6px; }
.ad-desc { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.ad-checkbox { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; cursor: pointer; }
.ad-checkbox input { cursor: pointer; }
.ad-checkbox span { font-weight: 500; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; margin-top: 12px; }
.ad-code-input { font-family: 'Monaco', 'Courier New', monospace; font-size: 12px; width: 100%; min-height: 120px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); resize: vertical; }
.field-hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.admin-ads-info { background: var(--surface-2); }
.admin-ads-info h2 { font-size: 16px; margin-bottom: 12px; }

/* ---- Modal dialogs (universal) ---- */
.modal-dialog-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 999; }
.modal-dialog-box { background: var(--surface); border-radius: var(--r-lg); padding: 28px; max-width: 420px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-dialog-box h2 { font-size: 18px; margin: 0 0 12px; }
.modal-dialog-body { font-size: 14px; margin-bottom: 20px; line-height: 1.5; color: var(--ink-3); }
.modal-dialog-actions { display: flex; gap: 8px; justify-content: flex-end; }
.modal-btn { padding: 8px 16px; border: 0; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; cursor: pointer; background: var(--surface-2); color: var(--ink); }
.modal-btn:hover { background: var(--line); }
.modal-btn-primary { background: var(--acc); color: #fff; }
.modal-btn-primary:hover { background: #2e6adb; }

/* ---- Report/Flag system badges ---- */
.badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.badge-pending { background: var(--warn-soft); color: var(--warn); }
.badge-success { background: rgba(52, 199, 89,.15); color: var(--ok); }
.badge-default { background: var(--surface-2); color: var(--ink-3); }
.badge-warning { background: var(--warn-soft); color: var(--warn); }

/* ---- Custom alerts (toasts) ---- */
.custom-alert { position: fixed; bottom: 20px; right: 20px; max-width: 380px; background: var(--surface); border-radius: var(--r-lg); padding: 16px 20px; box-shadow: 0 12px 40px rgba(0,0,0,.3); border-left: 4px solid var(--accent); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1000; }
.custom-alert.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.alert-inner { }
.alert-inner strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.alert-inner p { font-size: 13px; color: var(--ink-3); margin: 0; line-height: 1.4; }
.custom-alert.alert-success { border-left-color: var(--ok); }
.custom-alert.alert-error { border-left-color: var(--bad); }
.custom-alert.alert-warning { border-left-color: var(--warn); }
.custom-alert.alert-info { border-left-color: var(--acc); }
@media (max-width: 540px) { .custom-alert { left: 10px; right: 10px; max-width: none; } }

/* ---- Footer report button ---- */
.footer-report-btn { background: none; border: none; color: var(--bad); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }
.footer-report-btn:hover { color: #ff3420; }

/* ---- Modal form inputs ---- */
.modal-dialog-body select,
.modal-dialog-body input[type="password"],
.modal-dialog-body input[type="text"],
.modal-dialog-body textarea {
  width: 100%;
  padding: 8px 10px;
  margin-top: 6px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
}

.modal-dialog-body textarea {
  min-height: 80px;
  resize: vertical;
}

.modal-dialog-body select:focus,
.modal-dialog-body input:focus,
.modal-dialog-body textarea:focus {
  outline: none;
  border-color: var(--acc);
  background: var(--surface);
}

/* ---- Search bar (My Videos) ---- */
.lib-search { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); }
.lib-search svg { color: var(--ink-3); flex-shrink: 0; }
.lib-search input { flex: 1; background: none; border: 0; color: var(--ink); font-size: 14px; outline: none; padding: 4px 0; }
.lib-search input::placeholder { color: var(--ink-3); }
.lib-search-clear { color: var(--ink-3); padding: 2px 8px; border-radius: 4px; text-decoration: none; font-size: 14px; }
.lib-search-clear:hover { color: var(--ink); background: var(--line); }

/* ---- Bulk actions bar ---- */
.lib-bulk-bar[hidden] { display: none !important; }
.lib-bulk-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; margin-bottom: 16px; background: var(--acc-soft); border: 1px solid var(--acc); border-radius: var(--r); }
.bulk-count { font-weight: 600; color: var(--acc); flex: 1; font-size: 14px; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #ff3420; }

/* ---- Bulk checkbox on cards ---- */
.gcard-wrap { position: relative; }
.bulk-checkbox { position: absolute; top: 8px; left: 8px; z-index: 5; cursor: pointer; opacity: 0; transition: opacity .15s ease; }
.gcard-wrap:hover .bulk-checkbox,
.gcard-wrap .bulk-checkbox input:checked + .bulk-checkbox-mark,
.gcard-wrap:has(input:checked) .bulk-checkbox { opacity: 1; }
.bulk-checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.bulk-checkbox-mark { display: block; width: 24px; height: 24px; background: rgba(0,0,0,.7); border: 2px solid #fff; border-radius: 4px; position: relative; }
.bulk-checkbox input:checked + .bulk-checkbox-mark { background: var(--acc); border-color: var(--acc); }
.bulk-checkbox input:checked + .bulk-checkbox-mark::after { content: '✓'; position: absolute; top: -2px; left: 4px; color: #fff; font-weight: bold; font-size: 16px; }

/* ---- Loading skeletons ---- */
@keyframes skeleton-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.skeleton-card { background: var(--surface-2); border-radius: var(--r); padding: 12px; animation: skeleton-pulse 1.5s ease-in-out infinite; }
.skeleton-thumb { width: 100%; aspect-ratio: 16/9; background: var(--line); border-radius: var(--r-sm); margin-bottom: 12px; }
.skeleton-line { height: 14px; background: var(--line); border-radius: 4px; margin-bottom: 8px; }
.skeleton-line-sm { width: 60%; height: 10px; }

/* ---- Mobile-first improvements ---- */
@media (max-width: 768px) {
  /* Better touch targets */
  .btn { min-height: 40px; padding: 10px 16px; }
  .btn-sm { min-height: 36px; padding: 8px 12px; }
  
  /* Stacked layout */
  .lib { grid-template-columns: 1fr; }
  .lib-aside { display: flex; gap: 12px; margin-bottom: 16px; }
  .lib-aside h2 { display: none; }
  .lib-stat { flex: 1; padding: 12px; text-align: center; }
  
  /* Bigger search */
  .lib-search { padding: 14px 16px; }
  .lib-search input { font-size: 16px; }
  
  /* Card grid: 2 columns on mobile */
  .gcard-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  
  /* Always show bulk checkbox on mobile */
  .bulk-checkbox { opacity: 1; }
  
  /* Smaller font sizes for cards */
  .gcard-title { font-size: 13px; }
  .gcard-meta { font-size: 11px; }
  
  /* Sticky bulk bar */
  .lib-bulk-bar { position: sticky; top: 60px; z-index: 100; }
  
  /* Modal full width on mobile */
  .modal-dialog-box { max-width: none; width: calc(100% - 20px); margin: 10px; }
  
  /* Hide some nav items */
  .site-header { padding: 12px 16px; }
  
  /* Bigger upload area */
  .dropzone { padding: 40px 20px; }
}

/* ---- Smooth transitions for swipe ---- */
.gcard-wrap { transition: transform .2s ease; }

/* ---- Google Ad Manager container - centered with reserved space ---- */
.ad-slot { display: flex; justify-content: center; align-items: center; }
#div-gpt-ad-1781947500301-1 { 
  display: flex; 
  justify-content: center; 
  align-items: center;
  min-width: 300px;
  min-height: 90px;
  width: 100%;
  /* Reserve space for 728x90 on desktop */
  @media (min-width: 768px) {
    min-height: 90px;
  }
  /* Reserve space for 300x250 on mobile */
  @media (max-width: 767px) {
    min-height: 250px;
  }
}

/* Prevent layout shift when ad loads */
.ad-box { margin: 20px 0; }

/* ---- Google Ad Manager - centered with reserved space ---- */
.ad-container-watch {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  padding: 10px 0;
}

#div-gpt-ad-1781947500301-1 {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
  min-height: 90px;
}

@media (max-width: 767px) {
  #div-gpt-ad-1781947500301-1 {
    min-height: 250px;
  }
}

/* ---- Watch page ad - centred, space reserved to avoid layout shift ---- */
.watch-ad-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}
.watch-ad-slot {
  /* Desktop: reserve 728×90 */
  width: 728px;
  min-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 767px) {
  .watch-ad-slot {
    /* Mobile: reserve 300×250 */
    width: 300px;
    min-height: 250px;
  }
}

/* ---- Watch action buttons (Share / More videos) new design ---- */
.watch-actions { display: flex; gap: 6px; align-items: center; }

.wact-wrap { position: relative; }

.wact-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}
.wact-btn:hover {
  color: var(--ink);
  border-color: var(--ink-3);
  background: var(--surface);
}
.wact-chevron {
  transition: transform .2s;
  opacity: .5;
}
.wact-wrap:hover .wact-chevron,
.wact-btn:hover .wact-chevron { transform: rotate(180deg); opacity: 1; }

/* Bubble popup */
.wact-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  min-width: 200px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s;
  z-index: 50;
}
.wact-bubble.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* Arrow pointing down */
.wact-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 22px;
  width: 10px;
  height: 10px;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}

/* Bubble hint text */
.wact-bubble-hint { font-size: 12px; color: var(--ink-3); }

/* More videos mini grid inside bubble */
.more-grid-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}
.bubble-more-card {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-3);
  font-size: 12px;
  border-radius: var(--r-sm);
  padding: 4px;
  transition: color .15s, background .15s;
}
.bubble-more-card:hover { color: var(--ink); background: var(--surface); }
.bubble-more-card img { width: 56px; height: 32px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.bubble-more-empty { width: 56px; height: 32px; background: var(--line); border-radius: 4px; flex-shrink: 0; }
.bubble-more-card span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }

/* Share bubble content */
.share-bubble-inner { min-width: 200px; }
.share-qr-box {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.share-qr-box img, .share-qr-box canvas { border-radius: 6px; }
.share-bubble-cap {
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.share-link-row { display: flex; gap: 6px; }
.share-link-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-3);
  font-size: 11px;
  padding: 5px 8px;
  min-width: 0;
}
.share-copy-btn {
  padding: 5px 10px;
  font-size: 11px;
  border-radius: var(--r-sm);
  background: var(--acc);
  color: #fff;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}
.share-copy-btn:hover { background: #2e6adb; }

/* Mobile: bulle centrée sous les boutons, ne déborde pas */
@media (max-width: 600px) {
  .wact-wrap { position: static; }
  .watch-actions { position: relative; }
  .wact-bubble {
    position: fixed;
    bottom: auto;
    top: auto;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    right: auto;
    width: calc(100vw - 32px);
    max-width: 340px;
    min-width: unset;
  }
  .wact-bubble.show {
    transform: translateX(-50%) translateY(0);
  }
  .wact-bubble::after { display: none; }
}

/* ================================================================
   VIDEO PAGE V2 - alternative redesign
   Activated via admin setting video_layout = 'v2'
================================================================ */

.watch-v2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Hero with ambient glow behind player */
.v2-hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.v2-hero-glow {
  position: absolute;
  inset: -40px -40px -40px -40px;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(1.3);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.v2-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.6) 100%);
  z-index: 0;
  pointer-events: none;
  border-radius: var(--r-lg);
}
.v2-player {
  position: relative;
  z-index: 1;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

/* Info card */
.v2-info-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.v2-info-main { flex: 1; min-width: 0; }

.v2-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.2;
  word-break: break-word;
}

.v2-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.v2-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 500;
}
.v2-meta-chip svg { opacity: .7; }
.v2-meta-chip strong { color: var(--ink); font-weight: 700; }
.v2-chip-views { color: var(--acc); border-color: rgba(61, 125, 255,.3); }
.v2-chip-views strong { color: var(--acc); }
.v2-chip-warn { color: var(--warn); border-color: rgba(255,159,10,.3); }

/* Actions */
.v2-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.v2-action-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.v2-action-btn:hover {
  background: var(--surface);
  border-color: var(--ink-3);
  transform: translateY(-1px);
}
.v2-action-primary {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
  box-shadow: 0 4px 12px rgba(61, 125, 255,.3);
}
.v2-action-primary:hover {
  background: #2e6adb;
  border-color: #2e6adb;
  box-shadow: 0 6px 16px rgba(61, 125, 255,.4);
}

/* Locked card */
.v2-locked-card {
  text-align: center;
  padding: 60px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  max-width: 420px;
  margin: 60px auto;
}
.v2-locked-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--surface-2);
  border-radius: 50%;
  color: var(--warn);
  margin-bottom: 16px;
}
.v2-locked-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-family: var(--display);
}
.v2-locked-card p {
  margin: 0 0 24px;
  color: var(--ink-3);
}
.v2-locked-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v2-locked-form input {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  text-align: center;
  box-sizing: border-box;
}
.v2-locked-form input:focus {
  outline: none;
  border-color: var(--acc);
}
.v2-btn-primary {
  padding: 12px 20px;
  background: var(--acc);
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.v2-btn-primary:hover { background: #2e6adb; }

/* Mobile responsive */
@media (max-width: 760px) {
  .v2-info-card {
    flex-direction: column;
    padding: 16px;
    gap: 14px;
  }
  .v2-title { font-size: 18px; margin-bottom: 10px; }
  .v2-actions {
    width: 100%;
    gap: 8px;
  }
  .v2-action-btn { flex: 1; justify-content: center; }
  .v2-hero-glow { display: none; }
  .v2-player { box-shadow: none; }
  .watch-v2 { gap: 12px; }
}

/* ---- Ban notice banner ---- */
.ban-notice {
  width: 100%;
  background: #3d1a1a;
  color: #f87171;
  border-bottom: 1px solid #7f1d1d;
  text-align: center;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .01em;
  position: relative;
  z-index: 200;
}

/* ---- dropr.co Custom Ad Banners ---- */
.dropr-ad-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 16px 8px;
}

/* === 728x90 Leaderboard (desktop default) === */
.dropr-ad-leaderboard {
  display: flex;
  width: 728px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #13172a 0%, #1a1035 100%);
  border: 1px solid rgba(61, 125, 255, 0.3);
  text-decoration: none;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(61, 125, 255, 0);
  flex-shrink: 0;
}
.dropr-ad-leaderboard:hover {
  border-color: rgba(61, 125, 255, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(61, 125, 255, 0.18), 0 0 0 1px rgba(168, 85, 247, 0.15);
}
.dropr-ad-inner {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 24px;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.dropr-ad-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(61, 125, 255, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.dropr-ad-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.dropr-ad-icon svg {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.dropr-ad-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dropr-ad-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(168, 85, 247, 0.9);
}
.dropr-ad-headline {
  font-size: 15px;
  font-weight: 500;
  color: #e8ecf4;
  font-family: var(--display);
}
.dropr-ad-headline strong {
  color: #fff;
  font-weight: 700;
}
.dropr-ad-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 20px;
}
.dropr-ad-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.dropr-ad-stat-n {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.dropr-ad-stat-l {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.dropr-ad-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.1);
}
.dropr-ad-cta {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #3d7dff, #a855f7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  white-space: nowrap;
  font-family: var(--display);
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.dropr-ad-leaderboard:hover .dropr-ad-cta {
  opacity: 0.9;
}

/* === 300x250 Rectangle (mobile) - hidden on desktop === */
.dropr-ad-rect {
  display: none;
  width: 300px;
  max-width: 100%;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #13172a 0%, #1a1035 100%);
  border: 1px solid rgba(61, 125, 255, 0.3);
  text-decoration: none;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  flex-shrink: 0;
}
.dropr-ad-rect:hover {
  border-color: rgba(61, 125, 255, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(61, 125, 255, 0.2);
}
.dropr-ad-rect-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  padding: 24px 20px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.dropr-ad-rect-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(61, 125, 255, 0.15) 0%, transparent 70%),
              radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.dropr-ad-rect-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(168, 85, 247, 0.9);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 3px 10px;
  border-radius: 100px;
}
.dropr-ad-rect-icon svg {
  display: block;
  width: 52px;
  height: 52px;
}
.dropr-ad-rect-headline {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: #e8ecf4;
  line-height: 1.2;
}
.dropr-ad-rect-headline strong {
  color: #fff;
}
.dropr-ad-rect-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}
.dropr-ad-rect-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #3d7dff, #a855f7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  margin-top: 4px;
  font-family: var(--display);
  transition: opacity 0.15s;
}
.dropr-ad-rect:hover .dropr-ad-rect-btn {
  opacity: 0.9;
}

/* Responsive: switch to 300x250 on mobile */
@media (max-width: 780px) {
  .dropr-ad-leaderboard { display: none; }
  .dropr-ad-rect { display: flex; }
}

/* ---- Live stream badges ---- */
.live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e02020;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 10;
  pointer-events: none;
  text-transform: uppercase;
}
.live-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: live-pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}
.live-delay-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.75);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  z-index: 10;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* ---- Live dashboard (stream key panel) ---- */
.live-dash {
  max-width: 680px;
  margin: 40px auto;
  padding: 0 20px;
}
.live-dash h1 {
  font-size: 22px;
  margin-bottom: 24px;
}
.live-dash-card {
  background: var(--surface-2, #1a1a2e);
  border: 1px solid var(--line, #2a2a3d);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.live-dash-card h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3, #888);
  margin-bottom: 14px;
}
.live-key-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-key-input {
  flex: 1;
  background: var(--surface-1, #111);
  border: 1px solid var(--line, #2a2a3d);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 14px;
  color: var(--ink-1, #e8ecf4);
  min-width: 0;
}
.live-copy-btn {
  background: var(--surface-2, #1a1a2e);
  border: 1px solid var(--line, #2a2a3d);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--ink-2, #bbb);
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.live-copy-btn:hover { background: var(--surface-3, #252540); color: #fff; }
.live-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.live-status-indicator {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #555;
  flex-shrink: 0;
}
.live-status-indicator.is-live { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); animation: live-pulse 1.2s infinite; }
.live-status-label { font-size: 14px; color: var(--ink-2, #bbb); }
.live-obs-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.live-obs-steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line, #2a2a3d);
  font-size: 14px;
  color: var(--ink-2, #bbb);
  line-height: 1.5;
}
.live-obs-steps li:last-child { border-bottom: none; }
.live-obs-steps li::before {
  content: counter(step);
  background: var(--accent, #3d7dff);
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.live-obs-steps code {
  background: var(--surface-1, #111);
  border: 1px solid var(--line, #2a2a3d);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: monospace;
  font-size: 13px;
  color: var(--ink-1, #e8ecf4);
}

/* ---- Live dashboard dropzone ---- */
.live-dropzone {
  border: 2px dashed rgba(61, 125, 255,.35);
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: rgba(61, 125, 255,.03);
}
.live-dropzone:hover,
.live-dropzone.dz-over {
  border-color: rgba(61, 125, 255,.7);
  background: rgba(61, 125, 255,.07);
}
.live-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity .2s;
}
.live-dropzone-label {
  font-size: 14px;
  color: var(--ink-2, #bbb);
}
.live-dropzone-browse {
  color: var(--accent, #3d7dff);
  cursor: pointer;
  text-decoration: underline;
}
.live-dropzone-hint {
  font-size: 12px;
  color: var(--ink-4, #555);
}

/* ---- Live custom controls (pas de barre de progression = pas de seek possible) ---- */
.live-custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  z-index: 15;
}
.live-ctrl-btn {
  background: rgba(255,255,255,.12);
  border: none;
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background .15s;
}
.live-ctrl-btn:hover {
  background: rgba(255,255,255,.22);
}

/* ===========================================================================
   Add replay — appends a second clip onto an existing video
   =========================================================================== */
.replay-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; flex-wrap: wrap;
}

/* On the upload card the control only means something once a link exists */
.upcard .replay-row { display: none; }
.upcard.has-link .replay-row { display: flex; }

.replay-btn { flex: none; }
.replay-btn svg { flex: none; }
.replay-btn:disabled { opacity: .55; cursor: not-allowed; }

.replay-status {
  font-size: 12.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.replay-status:empty { display: none; }
.replay-status.is-done { color: var(--ok); }
.replay-status.is-error { color: #ff6b62; }

/* Grid tiles carry icon-only actions, so progress floats over the thumbnail,
   clear of the bulk checkbox (top-left) and the action row (top-right). */
.replay-status-float {
  position: absolute; left: 8px; top: 40px; z-index: 5;
  background: rgba(20, 22, 28, 0.88);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; pointer-events: none;
  max-width: calc(100% - 16px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  backdrop-filter: blur(4px);
}

.replay-act-btn svg { display: block; }

@media (max-width: 680px) {
  .vid-actions .replay-btn { flex: 1; }
}
