/* Shadow Multi-Platform Studio (AMOLED Dark ReactVibe) */
#multipostPanel {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 0 40px;
}

.mp-hero-banner {
  background: radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 45%),
              rgba(11, 12, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.mp-hero-info h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 12px;
  text-wrap: balance;
}

.mp-hero-info p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

.mp-hero-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 600;
}

.mp-form-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.mp-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .mp-form-grid {
    grid-template-columns: 1fr;
  }
}

.mp-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.mp-field textarea,
.mp-field input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  box-sizing: border-box;
}

.mp-field textarea:focus,
.mp-field input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.mp-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.mp-btn-adapt {
  background: linear-gradient(135deg, #00e5ff 0%, #38bdf8 100%);
  color: #07090e;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.mp-btn-adapt:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.mp-btn-publish {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.mp-btn-publish:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.mp-notice-box {
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
}

/* 4-Column Cards Grid */
.mp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.mp-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mp-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.mp-card-head {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.mp-card-icon {
  font-size: 1.5rem;
}

.mp-card-head div {
  flex: 1;
}

.mp-card-head strong {
  display: block;
  font-size: 0.95rem;
  color: #f8fafc;
}

.mp-card-head small {
  font-size: 0.75rem;
  color: #94a3b8;
}

.mp-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mp-hook-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
}

.mp-hook-box strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 4px;
}

.mp-hook-box p {
  margin: 0;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.mp-preview-pre {
  margin: 0;
  padding: 12px;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow-y: auto;
  font-family: inherit;
  flex: 1;
}

.mp-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mp-copy-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* History / Jobs section */
.mp-jobs-section {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
}

.mp-jobs-section h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mp-job-item {
  padding: 14px 16px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 10px;
}

.mp-job-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mp-job-id {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.8rem;
  color: #38bdf8;
}

.mp-job-prompt {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.mp-platform-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mp-mini-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

/* === AI VIDEO PRODUCTION PLAN & VERTICAL PHONE PREVIEW === */
.mp-video-plan-section {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(56, 189, 248, 0.08);
}
.mp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mp-section-head h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mp-plan-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mp-plan-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px) {
  .mp-plan-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* 9:16 Vertical Phone Mockup */
.mp-phone-mockup {
  width: 280px;
  height: 498px;
  background: #020408;
  border-radius: 36px;
  border: 4px solid #1e293b;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.2);
  padding: 8px;
  position: relative;
  overflow: hidden;
}
.mp-phone-inner {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  background: #05070d;
}
.mp-phone-camera {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 14px;
  background: #0f172a;
  border-radius: 10px;
  z-index: 10;
}
.mp-poster-canvas-box {
  width: 100%;
  height: 100%;
}
.mp-poster-canvas-box svg,
.mp-poster-canvas-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.mp-phone-overlay-controls {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 5;
}
.mp-play-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #00e5ff;
  color: #05070d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}
.mp-phone-meta {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mp-phone-meta strong {
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-phone-meta small {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Scene-by-scene script cards */
.mp-scenes-card {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
}
.mp-scenes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mp-scenes-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-scenes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mp-scene-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid #38bdf8;
  border-radius: 10px;
  padding: 12px 16px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.mp-scene-item:hover {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateX(3px);
}
.mp-scene-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.mp-scene-time {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}
.mp-scene-phase {
  font-size: 0.95rem;
  color: #fff;
}
.mp-scene-overlay-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c084fc;
}
.mp-scene-body {
  font-size: 0.9rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mp-scene-visual {
  margin: 0;
  color: #94a3b8;
}
.mp-scene-voice {
  margin: 0;
  color: #e2e8f0;
  font-style: italic;
}

.mp-field select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(2, 6, 23, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 0.94rem;
  font-family: inherit;
  box-sizing: border-box;
}

.mp-field select:focus {
  outline: none;
  border-color: #38bdf8;
}

.mp-autopilot-section {
  margin-top: 28px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(11, 16, 28, 0.96);
  display: grid;
  gap: 18px;
}

.mp-auto-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.mp-auto-head h3 {
  margin: 0 0 6px;
  color: #f8fafc;
  font-size: 1.2rem;
}

.mp-auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.mp-auto-full {
  grid-column: 1 / -1;
}

.mp-auto-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.mp-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #cbd5e1;
  cursor: pointer;
}

.mp-auto-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.mp-auto-subcard {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 18, 0.92);
}

.mp-auto-subcard h4 {
  margin: 0 0 12px;
  font-size: 0.98rem;
  color: #f8fafc;
}

.mp-auto-list {
  display: grid;
  gap: 10px;
}

.mp-auto-item {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  gap: 6px;
}

.mp-auto-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mp-auto-pillar {
  margin: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.mp-auto-link {
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.mp-auto-link:hover {
  text-decoration: underline;
}

.mp-auto-preview {
  margin: 4px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.78);
  color: #94a3b8;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
}

.mp-auto-trace {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(6, 10, 20, 0.92);
  display: grid;
  gap: 10px;
}

.mp-trace-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
}

.mp-trace-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.mp-trace-step {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
}

.mp-trace-step strong {
  color: #38bdf8;
}

.mp-trace-step span {
  color: #cbd5e1;
}

#multipostPanel :is(button, a, summary, input, select, textarea):focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

#multipostPanel :is(.mp-hero-status, .mp-trace-step strong) {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  #multipostPanel * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

