.studio-page {
  background: #f5f6fa;
  color: #25262b;
  min-height: 100vh;
}
.studio-header {
  position: sticky;
  top: 0;
}
.studio-shell {
  max-width: 1480px;
  width: calc(100% - 48px);
  margin: 22px auto 50px;
}
.studio-guest-card {
  max-width: 560px;
  margin: 70px auto;
  padding: 46px 38px;
  background: #fff;
  border: 1px solid #e9ebee;
  border-radius: 16px;
  box-shadow: 0 10px 35px #1f29370f;
  text-align: center;
}
.studio-guest-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #ff6a28;
  background: #fff1e8;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.studio-guest-card h1 {
  font-size: 26px;
  margin-bottom: 12px;
}
.studio-guest-card p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 26px;
}
.studio-guest-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.studio-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid #e9ebee;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px #1f293708;
}
.studio-status-left,
.studio-status-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.studio-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
}
.studio-live-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.studio-live-pill.is-offline {
  background: #f3f4f6;
  color: #6b7280;
}
.studio-live-pill.is-offline i {
  background: #9ca3af;
}
.studio-live-pill.is-live {
  background: #fff1eb;
  color: #e14209;
  border: 1px solid #ffc7b2;
}
.studio-live-pill.is-live i {
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: studioPulse 1.6s infinite;
}
@keyframes studioPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.studio-metric {
  font-size: 13px;
  color: #6b7280;
}
.studio-metric strong {
  color: #1f2937;
  font-weight: 600;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}
.studio-card {
  background: #fff;
  border: 1px solid #e9ebee;
  border-radius: 12px;
  box-shadow: 0 4px 16px #1f293708;
  overflow: hidden;
}
.studio-mode-tabs {
  display: flex;
  border-bottom: 1px solid #edeef2;
  background: #fafbfc;
}
.studio-mode-tab {
  flex: 1;
  padding: 15px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.studio-mode-tab:hover {
  color: #ff6a28;
}
.studio-mode-tab.active {
  color: #ff6a28;
  background: #fff;
  border-bottom-color: #ff6a28;
}
.studio-mode-panel {
  padding: 20px;
}
.studio-preview-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: #131722;
}
.studio-preview-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.studio-preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  color: #e5e7eb;
  background: radial-gradient(circle at 50% 35%, #232b42, #111520);
}
.studio-preview-icon {
  font-size: 42px;
  margin-bottom: 4px;
}
.studio-preview-placeholder strong {
  font-size: 18px;
}
.studio-preview-placeholder p {
  font-size: 12px;
  color: #9ca3af;
  max-width: 420px;
}
.studio-overlay-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.studio-overlay-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: studioPulse 1.4s infinite;
}
.studio-controls-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.studio-inline-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}
.studio-inline-field select {
  height: 38px;
  padding: 0 11px;
  border: 1px solid #e2e5ec;
  border-radius: 7px;
  background: #fff;
  color: #25262b;
  font-size: 13px;
}
.studio-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.studio-btn-primary,
.studio-btn-go-live,
.studio-btn-stop,
.studio-btn-outline,
.studio-btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}
.studio-btn-sm {
  height: 34px;
  padding: 0 13px;
  font-size: 12px;
}
.studio-btn-primary,
.studio-btn-go-live {
  background: #ff6a28;
  color: #fff;
}
.studio-btn-primary:hover,
.studio-btn-go-live:hover {
  background: #ef5714;
}
.studio-btn-go-live {
  margin-left: auto;
  padding: 0 26px;
  font-size: 14px;
}
.studio-btn-stop {
  margin-left: auto;
  background: #dc2626;
  color: #fff;
  padding: 0 24px;
  font-size: 14px;
}
.studio-btn-stop:hover {
  background: #b91c1c;
}
.studio-btn-outline {
  background: #fff;
  color: #374151;
  border: 1px solid #d9dde6;
}
.studio-btn-outline:hover {
  border-color: #ff6a28;
  color: #ff6a28;
}
.studio-btn-danger-outline {
  background: #fff;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.studio-btn-danger-outline:hover {
  background: #fef2f2;
  border-color: #ef4444;
}
.studio-helper-status {
  margin-top: 14px;
  padding: 10px 13px;
  border-radius: 8px;
  background: #f8f9fc;
  border: 1px solid #eceef4;
  color: #525866;
  font-size: 12px;
  line-height: 1.6;
}
.studio-helper-status.is-live {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.studio-helper-status.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.studio-obs-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.studio-secret-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.studio-secret-row label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}
.studio-copy-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.studio-copy-group input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e2e5ec;
  border-radius: 7px;
  background: #f9fafb;
  color: #1f2937;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.studio-obs-guide {
  padding: 16px 18px;
  border-radius: 10px;
  background: #fff8f3;
  border: 1px solid #ffe0ce;
}
.studio-obs-guide h3 {
  font-size: 14px;
  color: #c2410c;
  margin-bottom: 10px;
}
.studio-obs-guide ol {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: #5c4b42;
  line-height: 1.9;
}
.studio-obs-guide code {
  background: #ffedd5;
  color: #9a3412;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11.5px;
}
.studio-obs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #6b7280;
  padding-top: 8px;
  border-top: 1px solid #f0f1f5;
}
.studio-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.studio-settings-card,
.studio-chat-card {
  padding: 20px;
}
.studio-settings-card h2,
.studio-chat-card h2 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 14px;
}
.studio-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.studio-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #6b7280;
}
.studio-form input[type="text"],
.studio-form select,
.studio-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #e2e5ec;
  border-radius: 7px;
  background: #fff;
  color: #25262b;
  font-size: 13px;
}
.studio-form textarea {
  resize: vertical;
  min-height: 58px;
}
.studio-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.studio-cover-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}
.studio-cover-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.studio-cover-row img {
  width: 124px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}
.studio-cover-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.studio-cover-actions small {
  font-size: 11px;
  color: #9ca3af;
}
.studio-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.studio-chat-head h2 {
  margin-bottom: 0;
}
.studio-ws-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  background: #f3f4f6;
  color: #6b7280;
}
.studio-ws-pill.is-connected {
  background: #ecfdf5;
  color: #059669;
}
.studio-chat-messages {
  height: 240px;
  overflow-y: auto;
  padding: 10px 12px;
  background: #fafbfc;
  border: 1px solid #edeef2;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  margin-bottom: 10px;
}
.studio-chat-row {
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.studio-chat-row strong {
  color: #ff6a28;
  margin-right: 6px;
  font-weight: 600;
}
.studio-chat-row.is-gift {
  background: #fff6ed;
  border: 1px solid #ffe5ce;
  border-radius: 6px;
  padding: 4px 8px;
  color: #b45309;
}
.studio-chat-form {
  display: flex;
  gap: 8px;
}
.studio-chat-form input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  border: 1px solid #e2e5ec;
  border-radius: 7px;
  font-size: 12.5px;
}
@media (max-width: 980px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .studio-shell {
    width: calc(100% - 24px);
    margin-top: 14px;
  }
  .studio-controls-row,
  .studio-form-row {
    grid-template-columns: 1fr;
  }
  .studio-copy-group {
    flex-wrap: wrap;
  }
}
