:root {
  --bg: #0f0f0f;
  --surface: #1f1f1f;
  --surface-2: #272727;
  --border: #3f3f3f;
  --border-strong: #4a4a4a;
  --text: #f1f1f1;
  --muted: #aaaaaa;
  --muted-2: #8a8a8a;
  --red: #cc0000;
  --red-hover: #ff3333;
  --blue: #3ea6ff;
  --blue-soft: rgba(62, 166, 255, 0.16);
  --green: #2ba640;
  --green-soft: rgba(43, 166, 64, 0.18);
  --yellow: #f5b700;
  --yellow-soft: rgba(245, 183, 0, 0.18);
  --hover: #2a2a2a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --sidebar-w: 240px;
  --topbar-h: 56px;
}

body.studio-light-theme {
  --bg: #f9f9f9;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --border: #e5e5e5;
  --border-strong: #d9d9d9;
  --text: #0f0f0f;
  --muted: #606060;
  --muted-2: #8a8a8a;
  --red: #cc0000;
  --red-hover: #a50000;
  --blue: #065fd4;
  --blue-soft: #e8f1fb;
  --green: #1f8b4c;
  --green-soft: #e6f4ea;
  --yellow: #b06b00;
  --yellow-soft: #fdf3e2;
  --hover: #f2f2f2;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Top bar */
.studio-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 40;
}

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

.studio-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  font-size: 16px;
  letter-spacing: -0.2px;
  flex: 0 0 auto;
}
.studio-brand-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.studio-brand-mark svg {
  width: 26px;
  height: 26px;
  display: block;
}
.studio-brand-text b { font-weight: 700; }

.studio-search {
  flex: 0 1 520px;
  margin-left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
}
.studio-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.create-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
}
.create-btn:hover { background: var(--red-hover); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px 0;
  display: none;
  z-index: 1200;
}
.nav-dropdown.show { display: block; }
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  padding: 10px 16px;
  cursor: pointer;
  text-align: left;
}
.nav-dropdown-item:hover { background: var(--hover); }
.nav-dropdown-item .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: var(--red);
}

.topbar-account {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-2);
}
.topbar-account img { width: 100%; height: 100%; object-fit: cover; }

/* Shell */
.studio-shell {
  display: flex;
  padding-top: var(--topbar-h);
  min-height: 100vh;
}

.studio-sidebar {
  position: fixed;
  top: var(--topbar-h);
  bottom: 0;
  left: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 12px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 30;
  transition: transform 0.2s ease;
}

.side-group { display: flex; flex-direction: column; gap: 2px; }

.side-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
}
.side-item svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--muted); }
.side-item:hover { background: var(--hover); }
.side-item.active { background: rgba(204, 0, 0, 0.08); font-weight: 600; color: var(--red); }
.side-item.active svg { color: var(--red); }

.side-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 10px;
}

.side-footer {
  margin-top: auto;
  padding: 14px;
  color: var(--muted-2);
  font-size: 12px;
}

.studio-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  padding: 24px 28px 60px;
}

body.nav-collapsed .studio-sidebar { transform: translateX(-100%); }
body.nav-collapsed .studio-main { margin-left: 0; }

/* Loading / gate */
.studio-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 80px 0;
  color: var(--muted);
}
.studio-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.studio-gate {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 24px;
}
.gate-card {
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 36px 32px;
  text-align: center;
}
.gate-card h1 { margin: 0 0 10px; font-size: 24px; }
.gate-card p { margin: 0 0 22px; color: var(--muted); line-height: 1.5; }
.gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
}

/* View header */
.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.view-head h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.view-head .sub { margin: 6px 0 0; color: var(--muted); }
.view-head-actions { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--hover); }
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn.primary:hover { background: #0550b3; }
.btn.danger { color: var(--red); border-color: #f0c9c9; }
.btn.danger:hover { background: #fdf0f0; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.chip:hover { background: var(--hover); }
.chip.active { background: var(--red); color: #fff; border-color: var(--red); }
.chip.active:hover { background: var(--red-hover); border-color: var(--red-hover); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.card-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.card-head .link { color: var(--blue); font-weight: 600; font-size: 13px; }
.card-body { padding: 18px; }

/* Dashboard */
.greeting { margin-bottom: 20px; }
.greeting h1 { margin: 0; font-size: 26px; }
.greeting p { margin: 6px 0 0; color: var(--muted); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.stat-card .label { color: var(--muted); font-size: 13px; }
.stat-card .value { margin-top: 8px; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.stat-card .delta { margin-top: 6px; font-size: 12px; color: var(--muted); }
.stat-card .delta.up { color: var(--green); }

.dash-cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 200px;
  padding: 10px 4px 0;
}
.bar-chart .bar-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
}
.bar-chart .bar {
  width: 100%;
  max-width: 54px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #3ea6ff, #065fd4);
  min-height: 3px;
}
.bar-chart .bar-label {
  font-size: 11px;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-chart .bar-value { font-size: 11px; font-weight: 700; color: var(--text); }

.mini-list { display: flex; flex-direction: column; }
.mini-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.mini-item:last-child { border-bottom: none; padding-bottom: 0; }
.mini-item:first-child { padding-top: 0; }
.mini-thumb {
  width: 56px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-2);
  flex: 0 0 auto;
}
.mini-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: 0 0 auto; }
.mini-main { flex: 1; min-width: 0; }
.mini-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mini-text { font-size: 13px; margin-top: 3px; line-height: 1.35; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; }
table.studio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.studio-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.studio-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.studio-table tbody tr:hover { background: #fafafa; }
.studio-table tbody tr:last-child td { border-bottom: none; }

.video-cell { display: flex; gap: 12px; align-items: flex-start; min-width: 260px; }
.video-cell .thumb {
  width: 96px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
  flex: 0 0 auto;
}
.video-cell .info { min-width: 0; }
.video-cell .title { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.video-cell .desc {
  color: var(--muted);
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 420px;
}
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.action-icon {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.action-icon:hover { background: var(--hover); color: var(--text); }
.action-icon.danger:hover { background: #fdf0f0; color: var(--red); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.public { background: var(--green-soft); color: var(--green); }
.badge.unlisted { background: var(--yellow-soft); color: var(--yellow); }
.badge.private { background: var(--surface-2); color: var(--muted); }
.badge.scheduled { background: var(--blue-soft); color: var(--blue); }

/* Toolbar / filters */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  min-width: 220px;
}
.filter-search input { border: none; outline: none; background: transparent; font-size: 13px; width: 100%; color: var(--text); }
.select {
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
  font-size: 13px;
}

/* Analytics */
.range-tabs { display: flex; gap: 8px; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.analytics-bars { display: flex; flex-direction: column; gap: 16px; }
.analytics-row { display: flex; flex-direction: column; gap: 6px; }
.analytics-row .top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.analytics-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-row .track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.analytics-row .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3ea6ff, #065fd4); }
.analytics-row .fill.likes { background: linear-gradient(90deg, #ff7a7a, #cc0000); }
.analytics-row .fill.comments { background: linear-gradient(90deg, #7ad0a0, #1f8b4c); }

/* Comments moderation */
.comment-card {
  display: flex;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}
.comment-card:last-child { border-bottom: none; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: 0 0 auto; }
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-author { font-weight: 600; font-size: 13px; }
.comment-time { color: var(--muted); font-size: 12px; }
.comment-on-video { color: var(--muted); font-size: 12px; }
.comment-on-video b { color: var(--text); font-weight: 600; }
.comment-text { margin-top: 6px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.comment-actions { display: flex; gap: 14px; margin-top: 10px; }
.link-btn { border: none; background: none; padding: 0; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.link-btn.danger:hover { color: var(--red); }
.reply-form { display: flex; gap: 8px; margin-top: 10px; }
.reply-form input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
  outline: none;
}
.reply-form input:focus { border-color: var(--blue); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.form-field input[type="text"],
.form-field input[type="url"],
.form-field input[type="datetime-local"],
.form-field input[type="file"],
.form-field textarea,
.form-field select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  outline: none;
}
.form-field input[type="file"] {
  padding: 8px;
  font-size: 13px;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--blue); }
.form-field input[type="number"] {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  outline: none;
}
.form-field input[type="number"]:focus { border-color: var(--blue); }
.form-field input[type="color"] {
  width: 100%;
  height: 42px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-hint { font-size: 12px; color: var(--muted); }

.tier-editor {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  background: var(--surface);
}
.tier-editor .form-grid { gap: 14px; }
.tier-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tier-editor-preview {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--member-color, #ffd600);
}
.tier-editor-preview.pos-antes .tier-preview-selo { order: -1; }
.tier-preview-selo,
.tier-preview-name { color: var(--member-color, #ffd600); }
.tier-preview-selo { font-size: 17px; line-height: 1; display: inline-flex; align-items: center; }
.tier-preview-img { width: 17px; height: 17px; object-fit: contain; display: inline-block; }
.tier-badge-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tier-badge-picker input[type="file"] {
  flex: 1;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}
.tier-badge-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 22px;
  line-height: 1;
  overflow: hidden;
}
.tier-badge-preview img { width: 100%; height: 100%; object-fit: contain; }
.avatar-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.banner-preview { width: 100%; max-width: 420px; height: 96px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.visibility-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.visibility-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.visibility-option:hover { border-color: var(--border-strong); background: var(--hover); }
.visibility-option input { position: absolute; opacity: 0; pointer-events: none; }
.vis-radio {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
}
.visibility-option input:checked + .vis-radio { border-color: var(--blue); }
.visibility-option input:checked + .vis-radio::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--blue);
}
.visibility-option:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.vis-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vis-text strong { font-size: 13px; color: var(--text); }
.vis-text small { font-size: 11px; color: var(--muted); line-height: 1.35; }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state h3 { margin: 0; color: var(--text); font-size: 17px; }
.empty-state p { margin: 0; max-width: 420px; line-height: 1.5; }
.empty-state .big-icon { color: var(--muted-2); margin-bottom: 6px; }

.note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: #0b3d91;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 16px;
}

/* Modal */
.studio-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 80;
}
.studio-modal {
  width: min(620px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}
.studio-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.studio-modal-head h2 { margin: 0; font-size: 18px; }
.studio-modal-body { padding: 20px; }
.studio-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.studio-modal.upload-wide { width: min(840px, 100%); }

.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 18px;
  border: 2px dashed var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.upload-drop:hover,
.upload-drop.dragover {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.upload-drop svg { color: var(--muted); }
.upload-drop strong { font-size: 15px; }
.upload-hint { font-size: 12px; color: var(--muted); }
.upload-file-name { font-size: 13px; color: var(--blue); font-weight: 600; word-break: break-all; }
.upload-file-meta { font-size: 12px; color: var(--muted); }
.upload-file-meta.error { color: var(--red); font-weight: 600; }
.upload-progress {
  height: 8px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.upload-progress > div {
  height: 100%;
  width: 0;
  background: var(--blue);
  transition: width .15s;
}
.upload-progress-text {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.verified-icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  vertical-align: -5px;
  margin-left: 4px;
  object-fit: contain;
}

/* Toast */
.studio-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 20, 0.9);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 40;
}

/* Responsive */
@media (max-width: 1100px) {
  .stat-grid, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-cols { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .studio-sidebar { transform: translateX(-100%); }
  .studio-main { margin-left: 0; padding: 18px 16px 60px; }
  body.nav-open .studio-sidebar { transform: translateX(0); box-shadow: 8px 0 24px rgba(0,0,0,0.15); }
  .studio-search { display: none; }
  .create-btn span { display: none; }
  .create-btn { padding: 0 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .view-head h1 { font-size: 22px; }
}
@media (max-width: 560px) {
  .stat-grid, .metric-grid { grid-template-columns: 1fr 1fr; }
  .video-cell .desc { display: none; }
  .visibility-options { grid-template-columns: 1fr; }
}

[hidden] { display: none !important; }
