@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
/* ZAZISE — Inter is the site face. No Times, no Arial. */
:root {
  --zazise-gold: #E2AE41;
  --wf-bg: #f9f9f9;
  --wf-surface: #fff;
  --wf-border: #e5e5e5;
  --wf-muted: #606060;
  --wf-ph: #909090;
  --wf-ink: #030303;
  --wf-thumb: #e0e0e0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Inter, "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--wf-bg);
  color: var(--wf-ink);
  font-size: 14px;
  line-height: 1.4;
  min-height: 100vh;
}
html, button, input, textarea, select {
  font-family: Inter, "Segoe UI", "Helvetica Neue", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
html, body, a, button, input, textarea, label, select { -webkit-tap-highlight-color: transparent; }
a:focus, button:focus, input:focus, textarea:focus, select:focus { outline: none; }

/* ——— Top App Bar ——— */
.app-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 76px;
  background: var(--wf-surface); border-bottom: 1px solid var(--wf-border);
  display: flex; align-items: center; padding: 0 16px; gap: 16px;
  z-index: 100;
}
.app-bar .menu-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--wf-muted);
}
.app-bar .menu-btn:hover { background: #f0f0f0; }
.app-bar .brand {
  display: flex; align-items: center; gap: 8px; min-width: 120px;
}
.app-bar .brand img { height: 36px; width: auto; display: block; }
.search-wrap {
  flex: 1; display: flex; justify-content: flex-start; max-width: 640px; margin: 0;
}
.search-box { display: flex; width: 100%; max-width: 560px; }
.search-box input {
  flex: 1; height: 40px; border: 1px solid #ccc; border-right: none;
  border-radius: 2px 0 0 2px; padding: 0 12px; font-size: 16px;
  background: #fff; outline: none;
}
.search-box input:focus { border-color: var(--zazise-gold); }
.search-box .search-btn {
  width: 64px; height: 40px; background: #f8f8f8; border: 1px solid #ccc;
  border-radius: 0 2px 2px 0; color: var(--wf-muted);
  display: flex; align-items: center; justify-content: center;
}
.search-box .search-btn:hover { background: #f0f0f0; }
.app-bar-actions {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.app-bar-actions .icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--wf-muted);
}
.app-bar-actions .icon-btn:hover { background: #f0f0f0; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #909090;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 600; margin-left: 8px;
}

/* ——— Sidebar (RIGHT) ——— */
.layout { display: flex; padding-top: 108px; min-height: 100vh; }
.sidebar {
  width: 240px; flex-shrink: 0; background: var(--wf-surface);
  border-left: 1px solid var(--wf-border); padding: 12px 0;
  position: fixed; top: 108px; bottom: 0; right: 0; left: auto; overflow-y: auto;
}
.sidebar.mini { width: 72px; }
.sidebar.mini .nav-item {
  justify-content: center; gap: 0; padding: 0; font-size: 0;
}
.sidebar.mini .nav-item .ico { font-size: 18px; }
.sidebar.mini .section-label { display: none; }
.sidebar.mini .divider { margin: 12px 16px; }
.sidebar .nav-item {
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px; height: 40px; color: var(--wf-ink); font-size: 14px;
}
.sidebar .nav-item:hover { background: #f2f2f2; }
.sidebar .nav-item.active { background: #e5e5e5; font-weight: 500; }
.sidebar .nav-item .ico { width: 24px; text-align: center; color: var(--wf-muted); flex-shrink: 0; }
.sidebar .nav-item.active .ico { color: var(--wf-ink); }
.sidebar .section-label {
  padding: 16px 24px 8px; font-size: 14px; font-weight: 500;
  color: var(--wf-muted); text-transform: uppercase; letter-spacing: 0.5px;
}
.sidebar .divider { height: 1px; background: var(--wf-border); margin: 12px 0; }
.main {
  flex: 1; margin-right: 240px; margin-left: 0; padding: 16px 24px 24px; min-width: 0;
}
.main.full { margin-right: 0; margin-left: 0; }
.sidebar.mini ~ .main { margin-right: 72px; }

.hamburger span {
  display: block; width: 18px; height: 2px; background: #606060; margin: 3px 0;
}


/* ——— Site-wide language bar (SA official languages) ——— */
.lang-bar {
  position: fixed; top: 76px; left: 0; right: 0; height: 32px;
  z-index: 99;
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: #fafafa;
  border-bottom: 1px solid var(--wf-border);
  overflow: hidden;
}
.lang-bar .lang-hint {
  flex-shrink: 0;
  font-size: 11px; color: var(--wf-muted); white-space: nowrap;
  padding-right: 10px; border-right: 1px solid var(--wf-border);
  letter-spacing: 0.2px;
}
.lang-bar .lang-pills {
  display: flex; align-items: center; gap: 2px;
  flex: 1; min-width: 0; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lang-bar .lang-pills::-webkit-scrollbar { height: 0; }
.lang-bar .lang-pill {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 22px; padding: 0 7px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.4px;
  color: var(--wf-muted); text-transform: uppercase;
  border-radius: 11px; border: 1px solid transparent;
  line-height: 1;
}
.lang-bar .lang-pill:hover {
  color: var(--wf-ink); background: #f0f0f0;
}
.lang-bar .lang-pill.active {
  background: var(--wf-ink);
  color: #fff;
  border: 1px solid var(--wf-ink);
  box-shadow: inset 0 -2px 0 var(--zazise-gold);
}

/* Login — slim strip at very top (no app-bar) */
.lang-bar.lang-bar--login {
  top: 0; height: 30px;
  background: #fff; border-bottom: 1px solid #dadce0;
  justify-content: center;
}
.lang-bar.lang-bar--login .lang-hint { font-size: 10px; }

/* Clips — invert under dark chrome */
body.reels-body .lang-bar {
  top: 48px;
  background: rgba(18,18,18,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
body.reels-body .lang-bar .lang-hint {
  color: #888; border-right-color: rgba(255,255,255,0.12);
}
body.reels-body .lang-bar .lang-pill { color: #999; }
body.reels-body .lang-bar .lang-pill:hover {
  color: #fff; background: rgba(255,255,255,0.08);
}
body.reels-body .lang-bar .lang-pill.active {
  background: #2a2a2a; color: #fff;
  border-bottom: 2px solid var(--zazise-gold);
}

/* ——— Chips / video grid ——— */
.chips {
  display: flex; gap: 10px; flex-wrap: nowrap; overflow-x: auto;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--wf-border);
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { height: 0; }
.chip {
  padding: 7px 14px; border-radius: 16px; border: 1px solid #d3d3d3;
  background: #f2f2f2; font-size: 13px; white-space: nowrap; flex-shrink: 0;
}
.chip.active {
  background: var(--wf-ink); color: #fff; border-color: var(--wf-ink);
}
.chip:hover:not(.active) { background: #e8e8e8; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
}
.video-card { display: flex; flex-direction: column; gap: 10px; }
.thumb {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--wf-thumb); border: 1px solid #ccc;
  display: flex; align-items: center; justify-content: center;
  color: var(--wf-ph); font-size: 12px; overflow: hidden;
  border-radius: 2px;
}
.thumb .dur {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.85); color: #fff;
  font-size: 12px; font-weight: 500; padding: 2px 5px; border-radius: 2px;
  letter-spacing: 0.2px;
}
.thumb .label-ph { text-align: center; line-height: 1.3; }
.video-meta { display: flex; gap: 10px; align-items: flex-start; }
.video-meta .card-menu {
  flex-shrink: 0; width: 24px; height: 24px; color: var(--wf-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; margin-top: 2px;
}
.video-meta .ch-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #c0c0c0; flex-shrink: 0;
  order: 3; margin-left: auto;
}
.video-meta .info { flex: 1; min-width: 0; order: 2; }
.video-meta .title {
  font-size: 14px; font-weight: 500; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-meta .sub {
  font-size: 13px; color: var(--wf-muted); margin-top: 4px; line-height: 1.35;
}
.wf-label {
  font-size: 10px; color: var(--wf-ph); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 4px;
}

/* ——— Login ——— */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: transparent; padding: 48px 24px 24px;
}
.login-card {
  width: 440px; background: #fff; border: 1px solid #dadce0;
  border-radius: 8px; padding: 40px 40px 28px; text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.login-card .logo-block { margin-bottom: 12px; }
.login-card .logo-block img:not(.brand-icon):not(.brand-word) { height: 96px; width: auto; margin: 0 auto; display: block; }
.login-card .slogan {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--zazise-gold); margin-bottom: 28px;
}
.login-card h1 { font-size: 22px; font-weight: 400; margin-bottom: 6px; }
.login-card .subtitle { font-size: 15px; color: #5f6368; margin-bottom: 28px; }
.field { text-align: left; margin-bottom: 14px; }
.field label {
  display: block; font-size: 12px; color: var(--wf-muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.field input {
  width: 100%; height: 46px; border: 1px solid #dadce0; border-radius: 4px;
  padding: 0 14px; font-size: 15px; outline: none;
}
.field input:focus {
  border-color: var(--zazise-gold);
  box-shadow: inset 0 0 0 1px var(--zazise-gold);
}
.field .ph-hint { font-size: 12px; color: var(--wf-ph); margin-top: 4px; }
.login-actions {
  display: flex; justify-content: space-between; align-items: center; margin-top: 28px;
}
.link-muted { color: #1a73e8; font-size: 14px; font-weight: 500; }
.btn-primary {
  background: var(--zazise-gold); color: #1a1a1a; border-radius: 4px;
  padding: 10px 28px; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  border: 1px solid var(--zazise-gold);
}
.btn-primary:hover { filter: brightness(0.95); }
.btn-accent {
  background: var(--zazise-gold); color: #1a1a1a; border-radius: 2px;
  padding: 10px 18px; font-size: 14px; font-weight: 600;
  text-transform: uppercase; border: 1px solid var(--zazise-gold);
}
.btn-accent.outline {
  background: transparent; color: #1a1a1a;
}
.login-footer {
  margin-top: 32px; font-size: 12px; color: #5f6368;
  display: flex; justify-content: space-between;
}
.divider-or {
  display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--wf-ph); font-size: 12px;
}
.divider-or::before, .divider-or::after {
  content: ""; flex: 1; height: 1px; background: var(--wf-border);
}
.btn-outline {
  width: 100%; height: 42px; border: 1px solid #dadce0; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: #3c4043; margin-bottom: 8px;
  background: #fff;
}
.btn-outline:hover { background: #f8f9fa; }
.btn-outline .oauth-ico {
  width: 18px; height: 18px; background: #e0e0e0; border-radius: 2px;
  border: 1px solid #ccc; display: inline-block; flex-shrink: 0;
}

/* ——— Watch ——— */
.watch-layout {
  display: flex; flex-direction: column; gap: 0; max-width: 1100px; margin: 0 auto;
}
.watch-primary { flex: 1; min-width: 0; width: 100%; }
.player {
  width: 100%; aspect-ratio: 16/9; max-height: 340px; background: #000;
  border: 1px solid #222;
  display: flex; align-items: center; justify-content: center;
  color: #fff; position: relative; border-radius: 2px; overflow: hidden;
}
.player .play-icon {
  width: 68px; height: 48px; background: rgba(255,255,255,0.12);
  border: 2px solid #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.player .ctrl-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 42px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  display: flex; align-items: flex-end; padding: 8px 12px; gap: 14px;
  color: #ddd; font-size: 13px;
}
.player .prog {
  position: absolute; bottom: 40px; left: 0; right: 0; height: 4px; background: #444;
  cursor: pointer;
}
.player .prog .fill {
  width: 35%; height: 100%; background: var(--zazise-gold); position: relative;
}
.player .prog .fill::after {
  content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: var(--zazise-gold);
}
.player .prog-buff {
  position: absolute; left: 0; top: 0; bottom: 0; width: 55%; background: #666; opacity: 0.5;
}
.watch-title {
  font-size: 18px; font-weight: 500; margin: 12px 0 8px; line-height: 1.35;
}
.watch-stats {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--wf-border);
  color: var(--wf-muted); font-size: 14px; flex-wrap: wrap; gap: 8px;
}
.watch-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.watch-actions .act {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; color: var(--wf-muted); font-size: 13px; font-weight: 500;
  text-transform: uppercase; border-radius: 18px;
}
.watch-actions .act:hover { background: #f2f2f2; }
.channel-row {
  display: flex; align-items: center; gap: 12px; padding: 16px 0;
  border-bottom: 1px solid var(--wf-border);
}
.channel-row .ch-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: #c0c0c0;
  order: 3; margin-left: auto; flex-shrink: 0;
}
.channel-row .ch-info { flex: 1; order: 2; min-width: 0; }
.channel-row .btn-subscribe { order: 1; }
.channel-row .ch-name { font-weight: 500; font-size: 14px; }
.channel-row .ch-subs { font-size: 13px; color: var(--wf-muted); }
.btn-subscribe {
  background: var(--zazise-gold); color: #1a1a1a; padding: 10px 16px;
  font-size: 14px; font-weight: 600; text-transform: uppercase; border-radius: 2px;
}
.description-box {
  margin-top: 16px; padding: 14px; background: #f2f2f2; border-radius: 4px;
  font-size: 14px; color: var(--wf-ink); min-height: 72px; line-height: 1.5;
}
.comments-header {
  margin-top: 24px; font-size: 16px; font-weight: 500; margin-bottom: 16px;
  display: flex; align-items: center; gap: 16px;
}
.comments-header .sort-hint {
  font-size: 13px; color: var(--wf-muted); font-weight: 400;
}
.comment-row {
  display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start;
}
.comment-row .c-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #c0c0c0;
  flex-shrink: 0; order: 2;
}
.comment-row .c-body { flex: 1; order: 1; min-width: 0; }
.comment-row .c-name { font-size: 13px; font-weight: 500; }
.comment-row .c-text { font-size: 14px; margin-top: 4px; color: var(--wf-ink); }
.comment-row .c-meta { font-size: 12px; color: var(--wf-muted); margin-top: 6px; }

.watch-related {
  width: 100%; margin-top: 14px; margin-bottom: 4px; padding-top: 0;
}
.watch-related .wf-label { margin-bottom: 10px; font-weight: 500; color: var(--wf-muted); }
.related-rail {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.related-rail::-webkit-scrollbar { height: 6px; }
.related-rail::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.related-item {
  display: flex; flex-direction: column; gap: 6px;
  flex: 0 0 118px; width: 118px; scroll-snap-align: start;
}
.related-item .r-thumb {
  width: 100%; aspect-ratio: 16/9; height: auto; background: var(--wf-thumb);
  border: 1px solid #ccc; flex-shrink: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--wf-ph); font-size: 11px; border-radius: 2px;
}
.related-item .r-thumb .dur {
  position: absolute; bottom: 2px; right: 2px;
  background: rgba(0,0,0,0.85); color: #fff; font-size: 11px; padding: 1px 3px;
}
.related-item .r-info { flex: 1; min-width: 0; margin-top: 0; }
.related-item .r-title {
  font-size: 12px; font-weight: 500; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-item .r-sub { display: none; }

/* ——— Upload ——— */
.upload-wrap { max-width: 960px; margin: 0 auto; }
.upload-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--wf-border);
}
.upload-header h1 { font-size: 20px; font-weight: 400; }
.upload-steps {
  display: flex; gap: 0; margin-bottom: 16px; align-items: center;
  background: #fff; border: 1px solid var(--wf-border); border-radius: 4px; padding: 12px 20px;
}
.upload-steps .step {
  display: flex; align-items: center; gap: 10px; flex: 1; font-size: 13px; color: var(--wf-muted);
}
.upload-steps .step .n {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ccc;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--wf-muted); flex-shrink: 0;
}
.upload-steps .step.done .n,
.upload-steps .step.active .n {
  border-color: var(--zazise-gold); background: var(--zazise-gold); color: #1a1a1a;
}
.upload-steps .step.active { color: var(--wf-ink); font-weight: 500; }
.upload-steps .step.done { color: var(--wf-ink); }
.upload-steps .step-line {
  flex: 0 0 40px; height: 2px; background: #ddd; margin: 0 8px;
}
.upload-steps .step.done + .step-line { background: var(--zazise-gold); }
.upload-drop {
  border: 2px dashed #bbb; background: #fff; border-radius: 6px;
  padding: 24px 24px; text-align: center; margin-bottom: 14px;
}
.upload-drop .drop-icon {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  background: #f2f2f2; display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--wf-ph); border: 1px solid #ddd;
}
.upload-drop h2 { font-size: 18px; font-weight: 400; margin-bottom: 8px; }
.upload-drop p { color: var(--wf-muted); font-size: 14px; margin-bottom: 16px; }
.upload-form {
  background: #fff; border: 1px solid var(--wf-border); border-radius: 4px; padding: 16px 24px;
}
.upload-form h3 {
  font-size: 16px; font-weight: 500; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--wf-border);
}
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block; font-size: 13px; font-weight: 500; color: var(--wf-muted);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.3px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%; border: 1px solid #ccc; border-radius: 2px;
  padding: 10px 12px; font-size: 14px; font-family: inherit; outline: none;
  background: #fff;
}
.form-row textarea { min-height: 90px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--zazise-gold);
}
.form-cols { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
.thumb-preview {
  width: 100%; aspect-ratio: 16/9; background: var(--wf-thumb); border: 1px solid #ccc;
  display: flex; align-items: center; justify-content: center;
  color: var(--wf-ph); font-size: 12px; margin-bottom: 12px; border-radius: 2px;
}
.visibility-opts { display: flex; flex-direction: column; gap: 8px; }
.visibility-opts label {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--wf-ink); padding: 10px 12px; border: 1px solid var(--wf-border);
  border-radius: 2px; cursor: pointer;
}
.visibility-opts label.selected {
  border-color: var(--zazise-gold); background: rgba(196,154,36,0.08);
}
.upload-footer {
  display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px;
  padding-top: 16px; border-top: 1px solid var(--wf-border);
}
.btn-ghost {
  padding: 10px 16px; color: var(--wf-muted); font-size: 14px; font-weight: 500;
  text-transform: uppercase;
}
.btn-ghost:hover { color: var(--wf-ink); }

/* ——— Clips — TikTok / Shorts hybrid ——— */
body.reels-body { background: #0a0a0a; overflow: hidden; }
.app-bar.reels-bar {
  background: rgba(15,15,15,0.72); border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px); height: 48px;
}
.app-bar.reels-bar .brand img { height: 28px; }
.app-bar.reels-bar .search-wrap { max-width: 320px; opacity: 0.85; }
.app-bar.reels-bar .search-box input {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #fff; height: 34px; font-size: 14px;
}
.app-bar.reels-bar .search-box .search-btn {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); color: #aaa; height: 34px; width: 48px;
}
.app-bar.reels-bar .icon-btn { color: #fff; width: 36px; height: 36px; }
.app-bar.reels-bar .menu-btn .hamburger span { background: #fff; }
.app-bar.reels-bar .avatar { background: #666; width: 28px; height: 28px; font-size: 11px; }

.reels-shell {
  display: flex; flex-direction: row; height: calc(100vh - 80px);
  background: #0a0a0a; color: #fff; margin-top: 80px;
}
.reels-sidebar {
  width: 64px; background: #121212; border-left: 1px solid #222;
  padding: 10px 0; flex-shrink: 0; order: 2;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.reels-sidebar .nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; width: 56px; height: 44px; color: #bbb; font-size: 0;
  border-radius: 8px; padding: 0; position: relative;
}
.reels-sidebar .nav-item .ico { font-size: 18px; width: auto; line-height: 1; }
.reels-sidebar .nav-item:hover { background: #1e1e1e; color: #fff; }
.reels-sidebar .nav-item.active { background: #2a2a2a; color: #fff; font-weight: 600; }
.reels-sidebar .nav-item.active .ico { color: var(--zazise-gold); }
.reels-sidebar .divider { width: 32px; height: 1px; background: #2a2a2a; margin: 8px 0; }
.reels-sidebar .section-label { display: none; }
.reels-sidebar .badge-reels {
  position: absolute; top: 6px; right: 10px;
  width: 7px; height: 7px; padding: 0; border-radius: 50%;
  background: var(--zazise-gold); color: transparent; font-size: 0;
  letter-spacing: 0; margin: 0; line-height: 0;
}

.reels-main {
  flex: 1; order: 1; display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 12px 20px; position: relative; min-width: 0;
}

/* Phone-like 9:16 stage */
.reel-stage {
  position: relative;
  width: min(380px, 42vh * 9 / 16);
  height: min(calc(100vh - 104px), 88vh);
  aspect-ratio: 9/16;
  max-height: calc(100vh - 104px);
}
.reel-frame {
  width: 100%; height: 100%;
  background: #141414; border: 1px solid #333; border-radius: 16px;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.55);
}
.reel-peek {
  position: absolute; bottom: -18px; left: 8%; right: 8%; height: 28px;
  background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 0 0 12px 12px;
  opacity: 0.55; z-index: 0; pointer-events: none;
}
.reel-video {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1c1c1c 0%, #2a2a2a 45%, #181818 100%);
  display: flex; align-items: center; justify-content: center;
  color: #777; font-size: 13px; text-align: center;
}
.reel-video .play-big {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
  opacity: 0.55; margin: 0 auto 10px;
}
.reel-brand-mark {
  position: absolute; top: 14px; left: 14px; z-index: 5;
  display: flex; align-items: center; gap: 6px;
}
.reel-brand-mark img { height: 22px; width: auto; opacity: 0.9; }

/* Soft bottom gradient for caption */
.reel-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  padding: 56px 14px 18px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.88) 100%);
  text-align: left;
}
.reel-overlay .r-user {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.reel-overlay .r-user .av {
  width: 34px; height: 34px; border-radius: 50%; background: #555;
  border: 1.5px solid #fff;
}
.reel-overlay .r-user .name { font-weight: 600; font-size: 14px; }
.reel-overlay .r-user .follow {
  border: 1px solid #fff; border-radius: 4px; padding: 3px 10px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; margin-left: 4px;
  background: transparent; color: #fff;
}
.reel-overlay .r-cap { font-size: 13px; line-height: 1.4; margin-bottom: 8px; max-width: 88%; }
.reel-overlay .r-cap .tag { color: #ddd; }
.reel-overlay .r-audio {
  font-size: 12px; color: #ccc; display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Right action rail (TikTok-style) */
.reel-actions {
  display: flex; flex-direction: column; gap: 16px; align-items: center;
  padding: 8px 4px; z-index: 6; align-self: flex-end; margin-bottom: 48px;
}
.reel-actions .ra {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: #fff; font-size: 11px; font-weight: 500;
}
.reel-actions .ra .ra-ico {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.reel-actions .ra.avatar-follow { position: relative; margin-bottom: 4px; }
.reel-actions .ra.avatar-follow .ra-ico {
  width: 48px; height: 48px; background: #666; border: 2px solid #fff; font-size: 0;
}
.reel-actions .ra.avatar-follow .follow-plus {
  position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%; background: var(--zazise-gold);
  color: #1a1a1a; font-size: 14px; font-weight: 700; line-height: 18px; text-align: center;
  border: none;
}
.reel-actions .ra .sound-disc {
  width: 42px; height: 42px; border-radius: 50%;
  background: conic-gradient(#444 0deg, #222 90deg, #555 180deg, #1a1a1a 270deg, #444 360deg);
  border: 3px solid #888; position: relative;
}
.reel-actions .ra .sound-disc::after {
  content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #111;
  border: 1px solid #666;
}

/* Swipe / progress hints */
.reels-nav-hint {
  position: absolute; right: 88px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; z-index: 5;
}
.reels-nav-hint .rn {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px;
}
.reel-progress-dots {
  position: absolute; left: 50%; bottom: -28px; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.reel-progress-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: #444;
}
.reel-progress-dots span.on { background: var(--zazise-gold); }

/* Bilibili-style danmu float pills */
.danmu-layer {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden;
}
.danmu {
  position: absolute; white-space: nowrap;
  font-size: 12px; color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 3px 10px;
}
.danmu.d1 { top: 18%; left: 8%; }
.danmu.d2 { top: 28%; left: 35%; }
.danmu.d3 { top: 40%; left: 12%; }

.badge-reels {
  display: inline-block; background: var(--zazise-gold); color: #1a1a1a;
  font-size: 8px; font-weight: 700; padding: 1px 4px; border-radius: 2px;
  letter-spacing: 0.3px; margin-top: 1px;
}

/* ——— Index kit ——— */
.kit-page { background: #f0f0f0; min-height: 100vh; padding: 40px 24px; }
.kit-page .kit-inner { max-width: 900px; margin: 0 auto; }
.kit-hero {
  background: #fff; border: 1px solid #ddd; border-radius: 8px;
  padding: 40px; text-align: center; margin-bottom: 32px;
}
.kit-hero img { height: 100px; margin-bottom: 12px; }
.kit-hero .slogan {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--zazise-gold); margin-bottom: 16px;
}
.kit-hero h1 { font-size: 28px; font-weight: 400; margin-bottom: 8px; }
.kit-hero p { color: var(--wf-muted); font-size: 15px; }
.kit-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.kit-card {
  background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 20px;
  transition: box-shadow 0.15s;
}
.kit-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.kit-card .num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--wf-ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; margin-bottom: 12px;
}
.kit-card h3 { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.kit-card p { font-size: 13px; color: var(--wf-muted); margin-bottom: 14px; }
.kit-card .links { display: flex; gap: 12px; font-size: 13px; }
.kit-card .links a { color: #065fd4; font-weight: 500; }
.kit-meta {
  margin-top: 32px; padding: 16px; background: #fff; border: 1px solid #ddd;
  border-radius: 6px; font-size: 13px; color: var(--wf-muted);
}
.kit-meta code { background: #f2f2f2; padding: 1px 5px; border-radius: 2px; font-size: 12px; }

.anno {
  position: absolute; top: 4px; left: 4px;
  background: #fff; border: 1px dashed #909090; color: var(--wf-muted);
  font-size: 9px; padding: 1px 4px; text-transform: uppercase; letter-spacing: 0.3px;
  pointer-events: none; z-index: 2;
}
.ph { color: var(--wf-ph); font-style: italic; }

/* ——— Channel ——— */
.channel-banner {
  width: 100%; height: 168px; background: linear-gradient(135deg, #d0d0d0, #b8b8b8);
  border: 1px solid #ccc;
  display: flex; align-items: center; justify-content: center;
  color: var(--wf-ph); font-size: 13px; position: relative; border-radius: 2px;
}
.channel-header {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 0 14px; border-bottom: 1px solid var(--wf-border);
}
.channel-header .ch-big-avatar {
  width: 88px; height: 88px; border-radius: 50%; background: #c0c0c0; flex-shrink: 0;
  border: 3px solid #fff; box-shadow: 0 0 0 1px #ccc;
}
.channel-header .ch-meta { flex: 1; min-width: 0; text-align: right; }
.channel-header .ch-meta h1 { font-size: 24px; font-weight: 400; margin-bottom: 4px; }
.channel-header .ch-meta .ch-handle { font-size: 14px; color: var(--wf-muted); }
.channel-header .ch-meta .ch-stats { font-size: 13px; color: var(--wf-muted); margin-top: 4px; }
.channel-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--wf-border); margin-bottom: 20px;
  overflow-x: auto;
}
.channel-tabs .tab {
  padding: 14px 22px; font-size: 14px; font-weight: 500;
  text-transform: uppercase; color: var(--wf-muted); letter-spacing: 0.3px;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.channel-tabs .tab.active {
  color: var(--wf-ink); border-bottom-color: var(--zazise-gold);
}
.channel-tabs .tab:hover { color: var(--wf-ink); }
.channel-section-title {
  font-size: 16px; font-weight: 500; margin-bottom: 14px;
}
.channel-uploads .video-grid { grid-template-columns: repeat(4, 1fr); }
.btn-subscribe.subscribed {
  background: #ececec; color: var(--wf-muted);
}


/* ——— Top Trending (home) ——— */
.top-trending {
  margin: 0 0 18px;
  min-width: 0;
}
.top-trending-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--wf-ink);
}
.top-trending-title::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--zazise-gold);
  border-radius: 1px;
  flex-shrink: 0;
}
.top-trending-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.top-trending-scroll::-webkit-scrollbar { height: 4px; }
.top-trending-scroll::-webkit-scrollbar-thumb {
  background: #ccc; border-radius: 2px;
}
.trend-card {
  flex: 0 0 196px;
  width: 196px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 196px;
}
.trend-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--wf-thumb);
  border: 1px solid #ccc;
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wf-ph);
  font-size: 11px;
  overflow: hidden;
}
.trend-card .thumb .label-ph {
  text-align: center;
  line-height: 1.3;
  font-size: 11px;
}
.trend-card .thumb .dur {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 1px 4px;
  border-radius: 2px;
}
.trend-card .trend-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--wf-ink);
}


/* ——— Shared mobile helpers (homes / menu-open / localized share classes) ——— */
@media (max-width: 768px) {
  html {
    overflow-x: hidden;
  }
  body {
    overflow-x: hidden;
    max-width: 100%;
  }
  /* Right mini rail → burger menu on narrow viewports */
  .sidebar.mini {
    display: none !important;
  }
  .sidebar.mini ~ .main,
  .main {
    margin-right: 0;
  }
  .main {
    min-width: 0;
    max-width: 100%;
  }
  /* Single-column feed when shared grid is used */
  .video-grid {
    grid-template-columns: 1fr;
  }
  /* Chips / lang pills: allow horizontal swipe without page scroll */
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; height: 0; }
  .chip { flex-shrink: 0; }
  .lang-bar .lang-pills {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .lang-bar .lang-pills::-webkit-scrollbar { display: none; height: 0; }
  .top-trending-scroll {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* Watch / play screen */
  .main.watch-main {
    padding: 0 0 28px;
  }
  .watch-layout {
    max-width: 100%;
  }
  .player {
    max-height: none;
    border-radius: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .player .ctrl-bar {
    height: 48px;
    align-items: center;
    font-size: 15px;
  }
  .watch-stats {
    flex-direction: column;
    align-items: flex-start;
  }
  .watch-actions .act {
    min-height: 44px;
  }
  .btn-subscribe {
    min-height: 44px;
  }
  .related-rail {
    flex-direction: column;
    overflow-x: hidden;
    scroll-snap-type: none;
  }
  .related-item {
    flex-direction: row;
    flex: none;
    width: 100%;
    max-width: 100%;
  }
  .related-item .r-thumb {
    flex: 0 0 168px;
    width: 168px;
    max-width: 42vw;
  }
}

