:root {
  --bg: #09090c;
  --surface: #0f0f14;
  --card: #13131a;
  --card-hover: #181822;
  --input-bg: #0b0b10;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #f5f5f7;
  --text-secondary: #c8c8d2;
  --text-muted: #868696;
  --brand: #ff5526;
  --brand-hover: #ff693f;
  --amber: #f59e0b;
  --emerald: #10b981;
  --danger: #ef4444;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 14px;
  --radius-xl: 18px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* ==================== SPLIT LOGIN ==================== */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  background: var(--bg);
}

@media (max-width: 1024px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-showcase {
    display: none !important;
  }
}

.login-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 60px;
  background: radial-gradient(circle at 15% 15%, rgba(255, 85, 38, 0.14), transparent 45%),
              #0b0b10;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.showcase-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.showcase-top,
.showcase-center,
.showcase-bottom {
  position: relative;
  z-index: 2;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.brand-corp {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.showcase-center {
  max-width: 560px;
}

.showcase-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
  border: 1px solid rgba(255, 85, 38, 0.3);
  background: rgba(255, 85, 38, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.showcase-center h2 {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.showcase-center p {
  margin: 0 0 26px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.showcase-posters {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.showcase-posters img {
  width: 78px;
  height: 106px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.showcase-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.sm-val {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.sm-lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.showcase-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.showcase-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
}

.showcase-bottom a:hover {
  color: #fff;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg);
}

.login-box {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 36px 34px;
}

.login-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 6px;
}

.login-box-header h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.login-box-header p {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--text-muted);
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.role-tab {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: all 0.15s ease;
}

.role-tab:hover {
  border-color: var(--border-strong);
}

.role-tab.active {
  border-color: var(--brand);
  background: rgba(255, 85, 38, 0.1);
}

.rt-title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

.rt-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.error-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  margin-bottom: 14px;
}

.login-meta-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==================== FORM CONTROLS ==================== */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 2px rgba(255, 85, 38, 0.16) !important;
  outline: none !important;
}

input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  outline: none !important;
  transition: all 0.14s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-secondary {
  background: #20202b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-secondary:hover {
  background: #282836;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.btn-accent {
  background: #f59e0b;
  color: #09090b;
  font-weight: 700;
}

.btn-accent:hover {
  background: #fbbf24;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #fff;
}

.btn-sm {
  padding: 6px 11px;
  font-size: 12px;
}

.btn-tall {
  padding: 10px 20px;
  font-size: 13.5px;
}

.btn-full {
  width: 100%;
}

/* ==================== MAIN APP SHELL & CLEAN SIDEBAR ==================== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.nav-sidebar {
  width: 248px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 10px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.sb-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.sb-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-scroll {
  flex: 1;
  overflow-y: auto;
}

.nav-group {
  margin-bottom: 18px;
}

.nav-group-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 10px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
  margin-bottom: 2px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.nav-link.active {
  background: rgba(255, 85, 38, 0.14);
  color: #fff;
  font-weight: 600;
}

.nav-link.active svg {
  color: var(--brand);
}

.nav-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.user-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}

.user-role {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-logout:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

/* ==================== MAIN WORKSPACE AREA ==================== */
.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 32px;
  background: rgba(15, 15, 20, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.page-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.view-pane {
  display: none;
  padding: 24px 32px 72px;
  max-width: 1600px;
  width: 100%;
}

.view-pane.active {
  display: block;
}

/* ==================== DASHBOARD COMPONENTS ==================== */
.mode-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(16, 185, 129, 0.28);
  margin-bottom: 20px;
}

.mode-strip.vip-active {
  border-color: rgba(245, 158, 11, 0.35);
}

.mode-strip-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  flex-shrink: 0;
}

.mode-strip.vip-active .status-dot {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

.mode-strip-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-strip-title-row strong {
  font-size: 14.5px;
  color: #fff;
}

.mode-strip p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1180px) {
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.mc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mc-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.mc-tag {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 999px;
}

.mc-val {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.mc-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.card-head h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
}

.card-head p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==================== CLEAN FULL-WIDTH DATA TABLES (STRICT NO VERTICAL TEXT WRAPPING!) ==================== */
.table-container {
  width: 100%;
  overflow-x: auto;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.clean-table th {
  text-align: left;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.clean-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}

.clean-table tbody tr:last-child td {
  border-bottom: none;
}

.clean-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.drama-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
}

.drama-thumb {
  width: 48px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: #000;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.drama-thumb-upload {
  position: relative;
  width: 50px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.drama-thumb-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drama-thumb-upload .dtu-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
}

.drama-thumb-upload:hover .dtu-mask {
  opacity: 1;
}

.drama-title-zh {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.drama-title-en {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
}

.drama-sub-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== STATUS TAGS & PILLS ==================== */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.tag-live {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.tag-draft {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.tag-archived {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.tag-vip {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tag-rank {
  background: #22222d;
  color: #f4f4f8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

/* ==================== FILTER & BULK ACTION BARS ==================== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-left,
.filter-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.input-search {
  width: 280px !important;
}

.input-select {
  width: auto !important;
  min-width: 160px;
}

.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  background: #171721;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.bulk-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.bulk-count {
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 600;
}

.bulk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==================== VISUAL CARD BATCH PUBLISHING STUDIO ==================== */
.batch-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.batch-subtabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 4px;
  gap: 4px;
}

.batch-subtab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.batch-subtab:hover {
  color: #fff;
}

.batch-subtab.active {
  background: #232330;
  color: #fff;
}

.btab-pane {
  display: none;
}

.btab-pane.active {
  display: block;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.batch-cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.batch-drama-card {
  display: grid;
  grid-template-columns: 146px 1fr;
  gap: 24px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  align-items: start;
}

.batch-drama-card:hover {
  border-color: rgba(255, 85, 38, 0.38);
}

.bdc-poster-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bdc-poster-box {
  position: relative;
  width: 142px;
  height: 190px;
  border-radius: 10px;
  overflow: hidden;
  background: #08080c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  display: block;
}

.bdc-poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bdc-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.84) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 8px;
  text-align: center;
}

.bdc-upload-pill {
  background: rgba(255, 85, 38, 0.92);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}

.bdc-mini-presets {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  justify-content: center;
}

.bdc-mini-swatch {
  width: 24px;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  background: #000;
}

.bdc-mini-swatch.active,
.bdc-mini-swatch:hover {
  border-color: var(--brand);
}

.bdc-mini-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bdc-form-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.bdc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.bdc-card-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.bdc-row-top {
  display: grid;
  grid-template-columns: 1.6fr 1.6fr 1.1fr 0.75fr 0.85fr 0.85fr;
  gap: 12px;
}

@media (max-width: 1360px) {
  .bdc-row-top {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bdc-row-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bdc-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.batch-bottom-bar {
  margin-top: 18px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.muted-note {
  font-size: 12.5px;
  color: var(--text-muted);
}

.dropzone-box {
  margin: 22px;
  padding: 48px 24px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
}

.dz-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: rgba(255, 85, 38, 0.1);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.dz-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.dz-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 5px;
}

.batch-video-controls {
  display: flex;
  gap: 16px;
  padding: 20px 22px 0;
  flex-wrap: wrap;
}

.batch-log-box {
  margin: 0 22px 22px;
  padding: 16px;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 12.5px;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==================== EPISODE HERO BAR & VIDEO CELL ==================== */
.episode-hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ehb-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ehb-poster {
  width: 44px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}

.ehb-label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ehb-select-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ehb-select {
  min-width: 300px !important;
  font-weight: 600;
}

.ehb-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ep-video-cell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ep-video-thumb-btn {
  position: relative;
  width: 104px;
  height: 58px;
  border-radius: 6px;
  overflow: hidden;
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.ep-video-thumb-btn video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ep-video-play-badge {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.ep-video-thumb-btn:hover .ep-video-play-badge {
  background: rgba(255, 85, 38, 0.75);
}

/* ==================== PLANS & SETTINGS ==================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0;
}

.plan-usd {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.plan-strike {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.plan-perks {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.settings-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.settings-form {
  padding: 22px;
}

/* ==================== MODALS ==================== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-panel {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: #14141d;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.modal-panel.modal-wide {
  max-width: 920px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.modal-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.modal-content {
  padding: 22px 24px;
}

.modal-columns {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
}

@media (max-width: 820px) {
  .modal-columns {
    grid-template-columns: 1fr;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.sub-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 4px;
}

.sub-box-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.side-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.visual-poster-uploader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 244px;
  background: #08080c;
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.visual-poster-uploader img {
  height: 100%;
  width: auto;
  object-fit: cover;
}

.visual-hero-uploader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 118px;
  background: #08080c;
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.visual-hero-uploader img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vpu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.visual-poster-uploader:hover .vpu-overlay,
.visual-hero-uploader:hover .vpu-overlay {
  opacity: 1;
}

.vpu-btn {
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
}

.vpu-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.preset-strip {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.preset-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.preset-thumb-btn {
  width: 40px;
  height: 54px;
  border-radius: 5px;
  overflow: hidden;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: #000;
  cursor: pointer;
}

.preset-thumb-btn:hover {
  border-color: var(--brand);
}

.preset-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-upload-studio-box {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  align-items: center;
}

.vus-player-wrap {
  width: 160px;
  height: 210px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.vus-player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vus-status-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.vus-desc {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.progress-wrap {
  margin-top: 10px;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 0.15s ease;
}

.progress-text {
  font-size: 11.5px;
  color: var(--amber);
  font-weight: 600;
  margin-top: 5px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 14px;
}

.modal-note {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.upload-status {
  font-size: 11.5px;
  color: var(--amber);
  font-weight: 600;
  margin-top: 6px;
}

.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #181822;
  border: 1px solid var(--brand);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  z-index: 300;
}
