.btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 550;
  font-size: 12.5px;
  line-height: 1;
  transition: background 150ms, border-color 150ms, color 150ms;
  white-space: nowrap;
}
.btn i { font-size: 14px; line-height: 1; display: block; }
.btn:hover { background: #f7f8fa; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-ghost { background: transparent; }
.btn-danger { background: #fff; color: var(--danger); border-color: #f0c9ce; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { height: 30px; padding: 0 9px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 550; color: #374151; }
.field .help { font-size: 11px; color: var(--secondary); }
.input, .select, .textarea {
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
  outline: none;
  width: 100%;
}
.textarea { height: auto; min-height: 88px; padding: 8px 10px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: #b9a2e4; box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.12); }
.searchbox {
  height: 34px;
  width: 300px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
.searchbox i { color: #8b909a; font-size: 14px; }
.searchbox input { border: 0; outline: 0; width: 100%; height: 32px; background: transparent; }

.badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.03em;
  background: #eef0f3;
  color: #4b5160;
}
.badge-primary { background: var(--primary-soft); color: #5b32a8; }
.badge-success { background: var(--success-soft); color: #0f7a45; }
.badge-warning { background: var(--warning-soft); color: #9a6708; }
.badge-danger { background: var(--danger-soft); color: #b42330; }
.badge-info { background: var(--info-soft); color: #0b57c7; }

.chk {
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--chk-border);
  border-radius: 3px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: transparent;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.chk i { font-size: 11px; line-height: 1; }
.chk.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chk.danger.on { background: var(--danger); border-color: var(--danger); }
.chk-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  font-size: 11.5px;
  color: #3c4250;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
}
.chk-row:hover .chk { border-color: #b7bcc6; }
.chk-row.off-label { color: #8b909a; }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.toolbar h2 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.toolbar .count { color: var(--secondary); font-size: 12px; font-weight: 500; margin-left: 4px; }
.toolbar-spacer { flex: 1; }
.seg {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.seg button {
  height: 32px;
  border: 0;
  background: #fff;
  padding: 0 9px;
  color: #4b5160;
  border-right: 1px solid var(--border);
  font-size: 12px;
}
.seg button:last-child { border-right: 0; }
.seg button.on { background: #f6f3fb; color: var(--primary); font-weight: 600; }

.movie-list { display: flex; flex-direction: column; gap: 10px; }
.movie-card {
  display: grid;
  grid-template-columns: 32px 112px minmax(0, 1fr) 168px;
  gap: 10px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  transition: border-color 150ms, background 150ms;
}
.movie-card:hover { border-color: #d5d8e0; background: #fcfcfd; }
.movie-card.selected { border-color: #d9cbf3; background: #fcfaff; }
.mc-check { display: flex; align-items: flex-start; padding-top: 4px; }
.mc-poster { position: relative; width: 112px; }
.mc-poster img, .poster-fallback {
  width: 112px;
  height: 160px;
  object-fit: cover;
  border-radius: 5px;
  background: #1c1d24;
}
.poster-fallback {
  display: flex;
  align-items: flex-end;
  padding: 10px;
  color: #fff;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.year-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(17, 18, 22, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 650;
  height: 18px;
  padding: 0 6px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
}
.poster-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}
.meta-chip {
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 3px;
}
.meta-chip.id { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.meta-chip.created { color: #0f766e; background: #f0fdfa; border-color: #99f6e4; }
.meta-chip.updated { color: #9a6708; background: #fff7ed; border-color: #fed7aa; }
.mc-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mc-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mc-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #1b1430;
  line-height: 1.25;
}
.mc-title a:hover { color: var(--primary); }
.mc-original {
  font-size: 12px;
  color: var(--secondary);
  padding: 1px 0 5px;
  border-bottom: 1px solid #e4e6eb;
}
.pill {
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #4b5160;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
}
.mc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: #4b5160;
  font-size: 12px;
  padding: 4px 0;
}
.mc-stats span { display: inline-flex; align-items: center; gap: 5px; }
.mc-stats i { color: #8b909a; font-size: 13px; }
.mc-fields { display: grid; gap: 8px; padding: 4px 0 2px; }
.mc-fields.movie { grid-template-columns: 120px minmax(0, 1fr); }
.mc-fields.series { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mc-fields label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
}
.mc-fields input, .mc-fields select {
  height: 30px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: #fff;
  padding: 0 8px;
  color: #374151;
  width: 100%;
  font-size: 12px;
}
.mc-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px 12px;
  align-content: start;
  border-top: 1px solid #f0f1f4;
  padding: 8px 2px 2px;
}
.mc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  align-content: start;
  width: 168px;
  padding-left: 8px;
  border-left: 1px solid #f0f1f4;
}
.act.tool { grid-column: auto; color: #3d4d73; background: #f7f8fb; justify-content: center; padding: 0; }
.act.tool span { display: none; }
.mc-tools { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.act.tool:hover { background: #eef2f8; border-color: #d5dce8; }
.act {
  height: 28px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 0 6px;
  color: #3f4553;
  font-size: 11px;
  transition: background 150ms, border-color 150ms, color 150ms;
}
.act i { font-size: 13px; }
.act:hover { background: #f6f7f9; border-color: #d5d8e0; }
.act.primary { color: #5b32a8; }
.act.primary:hover { background: var(--primary-soft); border-color: #e0d4f7; }
.act.danger { color: var(--danger); }
.act.danger:hover { background: var(--danger-soft); border-color: #f3c9ce; }
.act span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.pager-pages { display: flex; gap: 4px; }
.page-btn {
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 5px;
  color: #374151;
  font-size: 12px;
}
.page-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.45; }
.pager-meta { color: var(--secondary); font-size: 12px; margin-right: auto; }

.toast-wrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  min-width: 220px;
  max-width: 320px;
  background: #1c1e24;
  color: #fff;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  animation: toast-in 160ms ease;
}
.toast i { color: #b9f6ca; }
.toast.err i { color: #ffb4b4; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(16, 17, 22, 0.48);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-back.show { display: flex; }
.modal {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(16,18,27,.16);
}
.switch-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.switch-row input { appearance: none; width: 36px; height: 20px; border-radius: 99px; background: #d5d8e0; position: relative; }
.switch-row input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch-row input:checked { background: #6f42c1; }
.switch-row input:checked::after { left: 18px; }
.modal.fit .field.full, .modal.fit .input, .modal.fit .select, .modal.fit .textarea { width: 100%; }
.modal-sec { border: 1px solid #e6eaf2; border-radius: 6px; padding: 10px 12px 12px; }
.modal-sec + .modal-sec { margin-top: 10px; }
.modal-sec b { display: block; font-size: 12px; color: #5b6472; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .03em; }
.modal-b .form-grid { gap: 10px; }
.modal-h, .modal-f {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-f { border-bottom: 0; border-top: 1px solid var(--border); justify-content: flex-end; padding: 14px 16px; }
.modal-f .btn { min-width: 72px; margin-left: 4px; }
.modal-b { padding: 16px; }
.modal-h h3 { margin: 0; font-size: 15px; font-weight: 650; flex: 1; }
.grab-modal { width: min(640px, 100%); position: relative; border-radius: 10px; }
.cast-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; max-height: 320px; overflow: auto; }
.cast-card { min-width: 0; }
.cast-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; background: #eceff3; }
.cast-card b { display: block; margin-top: 4px; font-size: 11px; line-height: 1.25; color: #1f2328; }
.cast-card span { display: block; font-size: 10px; color: #6b7280; line-height: 1.3; }
.grab-x { position: absolute; top: 8px; right: 8px; }
.grab-b { padding: 22px 22px 18px; }
.grab-b h3 { margin: 0; font-size: 18px; font-weight: 650; color: #243044; }
.grab-sub { margin-top: 3px; font-size: 12px; color: #8b909a; }
.grab-label { margin: 16px 0 7px; font-size: 15px; font-weight: 650; color: #243044; }
.grab-search, .grab-link { display: flex; align-items: center; }
.grab-search { border: 1px solid #d9dde5; border-radius: 4px; background: #fff; }
.grab-check { width: 26px; flex: 0 0 26px; display: grid; place-items: center; }
.grab-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin: 0;
  padding: 0;
  border: 1px solid #b7bec8;
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
}
.grab-check input:checked { background: #6f42c1; border-color: #6f42c1; }
.grab-search .grab-text, .grab-link input, .grab-result {
  height: 36px;
  border: 1px solid #d9dde5;
  border-radius: 4px;
  padding: 0 10px;
  width: 100%;
  background: #fff;
  font-size: 13px;
}
.grab-search .grab-text { border: 0; border-radius: 0; height: 36px; }
.grab-link { gap: 0; }
.grab-link input { border-right: 0; border-radius: 4px 0 0 4px; }
.grab-api, .grab-curl, .grab-submit {
  height: 38px;
  border: 0;
  color: #fff;
  font-weight: 650;
  font-size: 13px;
  padding: 0 14px;
  white-space: nowrap;
}
.grab-api { background: #0d6efd; }
.grab-curl { background: #e55353; border-radius: 0 4px 4px 0; }
.grab-api:hover { background: #0b5ed7; }
.grab-curl:hover { background: #d44848; }
.grab-result { margin-top: 14px; background: #fff; }
.grab-submit { width: 100%; margin-top: 16px; background: #0d6efd; border-radius: 4px; }
.grab-submit:hover { background: #0b5ed7; }
.grab-follow { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; color: #4b5160; font-size: 12px; }
.grab-follow b { font-size: 18px; color: #1f2328; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(760px, 100%);
  background: #fff;
  z-index: 70;
  border-left: 1px solid var(--border);
  transform: translateX(104%);
  transition: transform 180ms ease;
  display: flex;
  flex-direction: column;
}
.drawer.show { transform: none; }
.drawer-h, .drawer-f {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-f { border-bottom: 0; border-top: 1px solid var(--border); justify-content: flex-end; }
.drawer-h h3 { margin: 0; font-size: 15px; flex: 1; }
.drawer-b { padding: 14px 16px 20px; overflow: auto; flex: 1; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: -4px 0 14px; }
.tabs button {
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--secondary);
  padding: 0 10px;
  border-bottom: 2px solid transparent;
  font-size: 12.5px;
  font-weight: 550;
}
.tabs button.on { color: var(--primary); border-bottom-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.drop {
  border: 1px dashed #d5d8e0;
  border-radius: 6px;
  background: #fafbfc;
  min-height: 92px;
  display: grid;
  place-items: center;
  color: var(--secondary);
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.stat span { display: block; color: var(--secondary); font-size: 11px; }
.stat b { display: block; margin-top: 3px; font-size: 18px; letter-spacing: -0.03em; }
.stat em { font-style: normal; color: #0f7a45; font-size: 11px; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 10px; }
.block-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.block-h h3 { margin: 0; font-size: 13px; font-weight: 650; }
.block-b { padding: 10px 12px; }
.mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f2f3f5;
  font-size: 12.5px;
}
.mini-row:last-child { border-bottom: 0; }
.bar {
  height: 8px;
  background: #f1eef8;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.server-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.server-dot.warn { background: var(--warning); }
.server-dot.bad { background: var(--danger); }
.empty {
  border: 1px dashed #d7dae1;
  background: #fff;
  border-radius: 8px;
  padding: 36px 16px;
  text-align: center;
  color: var(--secondary);
}
.empty b { display: block; color: var(--text); margin-bottom: 4px; }
.note {
  font-size: 11px;
  color: var(--secondary);
  background: #f7f5fb;
  border: 1px solid #ece6f6;
  border-radius: 6px;
  padding: 7px 9px;
  margin-bottom: 10px;
}
.table-wrap { overflow: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 12.5px;
}
table.data th, table.data td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data th { font-size: 11px; color: var(--secondary); font-weight: 600; background: #fafbfc; }
.bulkbar {
  display: none;
  align-items: center;
  gap: 8px;
  background: #1e1a28;
  color: #fff;
  border-radius: 7px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 12.5px;
}
.bulkbar.show { display: flex; }
.bulkbar .btn { background: transparent; color: #fff; border-color: #3d3850; }
.filter-pop {
  display: none;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
}
.filter-pop.show { display: grid; }
.menu {
  position: absolute;
  right: 16px;
  top: 50px;
  width: 230px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16,18,27,.08);
  display: none;
  z-index: 45;
  padding: 6px;
}
.menu.show { display: block; }
.menu button, .menu a {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  height: 32px;
  border-radius: 5px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.menu button:hover, .menu a:hover { background: #f6f7f9; }
.token-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatch { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; }
.swatch i { display: block; height: 42px; }
.swatch span { display: block; padding: 6px 8px; font-size: 11px; }
.flag-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; margin: 14px 0 6px; padding: 4px 2px; }
.flag-row { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #4b5568; font-size: 14px; height: 22px; width: max-content; }
.flag-box { width: 16px; height: 16px; border: 1px solid #c5cad3; border-radius: 3px; display: grid; place-items: center; color: transparent; background: #fff; }
.flag-box.on { background: #4f6bed; border-color: #4f6bed; color: #fff; }
.flag-box i { font-size: 12px; }
.status-box { margin-top: 14px; border: 1px solid #e6eaf2; border-radius: 8px; background: #fff; padding: 12px; }
.status-box h4 { margin: 0 0 10px; color: #3557d6; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.year-tag { height: 34px; display: inline-flex; align-items: center; gap: 6px; background: #3d4450; color: #fff; border-radius: 4px; padding: 0 8px; font-size: 12px; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.media-card { border: 1px solid #e6eaf2; border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.media-card b { font-size: 13px; color: #243044; }
.media-card .btn { align-self: flex-start; }
.media-preview { display: none; width: 100%; height: 120px; object-fit: cover; border-radius: 4px; background: #eceff3; border: 1px solid #e6eaf2; }
.ep-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 12px; align-items: start; }
.bak-list { display: flex; flex-direction: column; gap: 6px; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; white-space: nowrap; }
.row-actions .btn { margin: 0; }
.set-tabs { display: flex; gap: 8px; padding: 12px 14px 0; flex-wrap: wrap; }
.set-tabs button { height: 32px; border: 1px solid #e6eaf2; background: #fff; border-radius: 6px; padding: 0 12px; margin: 0; }
.set-tabs button.on { background: #6f42c1; color: #fff; border-color: #6f42c1; }
.thumb-row { display: flex; align-items: center; gap: 8px; }
.thumb-row .input { flex: 1; min-width: 0; width: auto; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.person-cell { display: flex; align-items: center; gap: 8px; }
.person-cell img, .person-cell span.ph { width: 34px; height: 34px; border-radius: 4px; object-fit: cover; background: #eceff3; }
.person-cell div { display: flex; flex-direction: column; line-height: 1.25; }
.person-cell span { font-size: 11px; color: #6b7280; }
.star-av { width: 34px; height: 34px; border-radius: 50%; background: #ef4444; color: #fde047; display: grid; place-items: center; }
.role-chip { display: inline-flex; height: 18px; align-items: center; padding: 0 6px; border-radius: 3px; background: #2563eb; color: #fff; font-size: 10px; font-weight: 650; }
.role-name { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; font-weight: 650; font-size: 12px; }
.role-name.admin { background: #fee2e2; color: #b91c1c; }
.role-name.edit { background: #ede9fe; color: #6d28d9; }
.role-name.member { background: #dbeafe; color: #1d4ed8; }
.view-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; background: #1d4ed8; color: #fff; font-size: 11px; font-weight: 650; }
.thumb-row .input { flex: 1; min-width: 0; }
.thumb-row .btn { width: 36px; height: 30px; padding: 0; flex: 0 0 36px; display: grid; place-items: center; }
.lang-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lang-flags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin-top: 10px; }
.status-box .form-grid { grid-template-columns: 1fr 1fr; }

@media (max-width: 1440px) {
  .movie-card { grid-template-columns: 32px 104px minmax(0, 1fr) 156px; }
  .mc-poster, .mc-poster img, .poster-fallback { width: 104px; }
  .mc-poster img, .poster-fallback { height: 148px; }
  .mc-actions { width: 156px; }
  .mc-fields.series { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .movie-card { grid-template-columns: 28px 96px minmax(0, 1fr); }
  .mc-actions { grid-column: 1 / -1; width: auto; border-left: 0; padding-left: 0; border-top: 1px solid #f0f1f4; padding-top: 8px; }
  .mc-status, .mc-fields.series { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .dash-grid, .form-grid, .token-grid { grid-template-columns: 1fr 1fr; }
  .filter-pop { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .movie-card { grid-template-columns: 28px 92px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .mc-poster img, .poster-fallback, .mc-poster { width: 92px; }
  .mc-poster img, .poster-fallback { height: 132px; }
  .mc-title { font-size: 14px; }
  .mc-body { grid-column: 1 / -1; }
  .mc-fields { grid-template-columns: 1fr; }
  .mc-status { grid-template-columns: 1fr 1fr; }
  .mc-actions { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .searchbox { width: 100%; }
  .toolbar-spacer { display: none; }
  .stats, .dash-grid, .form-grid, .token-grid, .filter-pop { grid-template-columns: 1fr 1fr; }
  .header { padding: 0 10px; }
  .crumb h1 { font-size: 14px; }
}
