:root {
  --bg: #0a0f1f;
  --bg-deep: #070b17;
  --card: rgba(21, 29, 54, 0.78);
  --card-solid: #151d36;
  --field: rgba(12, 18, 36, 0.72);
  --border: rgba(246, 196, 120, 0.17);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #f7f1e5;
  --muted: #b0abc2;
  --gold: #f6c478;
  --gold-bright: #ffe1a8;
  --gold-deep: #d88a3c;
  --mint: #7ee0a3;
  --danger: #f08080;
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 50% 0%, #172042 0%, #0b1021 55%, #070b17 100%);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- ЗВЁЗДНОЕ НЕБО ---------------- */
.night-sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.stars-layer {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}

.stars-sm {
  background-image:
    radial-gradient(1.2px 1.2px at 14% 18%, rgba(255, 240, 200, 0.7), transparent),
    radial-gradient(1px 1px at 42% 8%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 78% 22%, rgba(255, 230, 170, 0.75), transparent),
    radial-gradient(1px 1px at 90% 48%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.2px 1.2px at 22% 66%, rgba(255, 232, 180, 0.55), transparent),
    radial-gradient(1px 1px at 64% 82%, rgba(255, 255, 255, 0.45), transparent);
  background-size: 380px 380px;
  animation: twinkle 7s ease-in-out infinite alternate;
}

.stars-lg {
  background-image:
    radial-gradient(2px 2px at 28% 30%, rgba(255, 224, 150, 0.8), transparent),
    radial-gradient(1.8px 1.8px at 84% 12%, rgba(255, 244, 210, 0.75), transparent),
    radial-gradient(2px 2px at 66% 58%, rgba(255, 220, 145, 0.6), transparent);
  background-size: 520px 520px;
  animation: twinkle 10s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle {
  from { opacity: 0.45; }
  to { opacity: 0.95; }
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -100px;
  background: rgba(246, 196, 120, 0.14);
}

.orb-2 {
  width: 380px;
  height: 380px;
  bottom: 10%;
  left: -140px;
  background: rgba(110, 130, 220, 0.12);
}

/* ---------------- СКРЫТАЯ АДМИН-ПАНЕЛЬ (?admin=1) ---------------- */
.admin-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(24, 17, 42, 0.94);
  border-bottom: 1px solid rgba(246, 196, 120, 0.35);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.admin-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-controls select {
  width: auto;
  padding: 5px 10px;
  font-size: 12.5px;
  border-radius: 8px;
}

.btn-admin-tab {
  background: rgba(246, 196, 120, 0.16);
  color: var(--gold-bright);
  border: 1px solid rgba(246, 196, 120, 0.35);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 12.5px;
  cursor: pointer;
}

.container { position:relative; z-index:1; width:min(1120px,100%); margin:auto; padding:0 clamp(18px,4vw,48px) 52px; }
body { background:radial-gradient(ellipse at 80% 8%,#203842 0,transparent 42%),#101e29; }
h1,h2,h3,.brand,.jacket strong { font-family:"Cormorant Garamond",Georgia,serif; }
.masthead { display:flex; align-items:center; justify-content:space-between; padding:18px 0; border-bottom:1px solid #ffffff26; }
.masthead a { color:#f2e6cd; text-decoration:none; }
.masthead a:last-child { font-size:14px; font-weight:700; padding:9px 0 9px 9px; }
.brand { font-size:34px; font-weight:bold; line-height:1; }
.brand span { color:#f4ca7f; }
.book-hero { display:grid; grid-template-columns:1.1fr 1fr; gap:clamp(26px,6vw,80px); align-items:center; padding:clamp(28px,4vw,52px) 0; }
.book-copy h1 { margin:0; font-size:clamp(47px,6.5vw,84px); font-weight:600; letter-spacing:-.045em; line-height:.98; }
.book-copy h1 em { color:#f1c989; font-weight:600; }
.book-copy > p { color:#dbded7; font-size:clamp(16px,1.65vw,20px); line-height:1.45; margin:18px 0; max-width:390px; }
.book-copy small { display:block; font-size:13px; line-height:1.5; color:#bfcccc; margin-top:10px; }
.hero-cover { margin:0; overflow:hidden; border-radius:50% 50% 12px 12px; border:1px solid #f4ce8590; background:#172f39; }
.hero-cover img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:cover; }
.sample-strip { display:flex; align-items:center; gap:12px; padding:8px 0; }
.sample-play { display:flex; align-items:center; gap:12px; font:inherit; color:inherit; text-align:left; cursor:pointer; background:transparent; border:0; padding:0; }
.sample-icon { display:grid; place-items:center; border:1px solid #d4ae76; color:#f8d5a0; background:#283c42; width:48px; height:48px; flex:0 0 48px; border-radius:50%; cursor:pointer; font-size:17px; }
.sample-play:hover .sample-icon { background:#3e5254; }
.sample-info { display:grid; }
.sample-info strong { font-size:16px; }
.sample-info span { color:#bdc9cb; font-size:13px; }
.book-action { margin-top:16px; }
.sample-jump { margin-left:60px; padding:6px 0; color:#f1c989; font:inherit; background:none; border:0; cursor:pointer; text-decoration:underline; text-underline-offset:4px; }
.voice-next { margin-top:24px; border-top:1px solid #ffffff26; padding-top:12px; }
.voice-next button { margin: 0 8px 8px 0; }
.draft-box { margin-top: 12px; padding: 16px; border: 1px solid #ffffff26; border-radius: 14px; }
.draft-box button, .draft-box input { margin: 4px 6px 4px 0; }
.draft-box input { max-width: 100%; color-scheme: dark; font: inherit; }
.create-link,.record-button { display:inline-flex; align-items:center; gap:16px; border-radius:12px; padding:12px 20px; font:800 16px/1.4 "Nunito",sans-serif; color:#262116; background:#f1c78b; border:1px solid #ffddac; text-decoration:none; cursor:pointer; }
.create-link:hover,.record-button:hover { background:#ffdc9f; }
.shelf { border-top:1px solid #ffffff25; padding:32px 0; scroll-margin-top:12px; }
.shelf h2,.story-card-panel h2 { font-size:clamp(30px,4vw,44px); font-weight:600; }
.shelf > p { color:#bdc9cb; margin:6px 0 19px; }
.stories-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.jacket { padding:0; overflow:hidden; position:relative; text-align:left; color:#f7f1e5; background:#20313a; border:1px solid #455157; border-radius:12px; font:inherit; cursor:pointer; }
.jacket:hover { border-color:#bcad93; }
.jacket[aria-pressed=true] { border-color:#f1c78b; box-shadow:0 0 0 1px #f1c78b; }
.jacket[aria-pressed=true]::after { content:"✓"; position:absolute; right:9px; top:9px; color:#232b28; background:#f6d08e; border-radius:50%; width:26px; height:26px; display:grid; place-items:center; font-weight:800; }
.jacket img { width:100%; height:clamp(110px,14vw,165px); object-fit:cover; display:block; }
.jacket-copy { display:grid; padding:13px 15px; gap:3px; }
.jacket-copy small { color:#f2c888; font-size:13px; }
.jacket-copy strong { font-size:clamp(22px,2.4vw,30px); line-height:1.12; }
.jacket-copy > span { color:#bfcccc; font-size:13px; }
.story-card-panel > h2 { margin-bottom:15px; }
.nav-links { display:flex; align-items:center; gap:clamp(12px,3vw,32px); font-size:14px; }
.how-band, .parent-questions { margin:clamp(24px,4vw,56px) 0; }
.how-band { border-block:1px solid #ffffff29; padding:clamp(25px,4vw,52px) 0; }
.how-band ol { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(18px,4vw,52px); margin:24px 0 0; padding-left:1.4em; }
.how-band li::marker { color:#f1c989; font-family:Georgia,serif; }
.how-band li strong { color:#f7e8cf; }
.how-band li p, .parent-questions p, .parent-guide p { color:#d2dcd9; }
.how-band li p { margin:6px 0 0; line-height:1.6; }
.how-band + .shelf { border-top:0; padding-top:0; padding-bottom:clamp(30px,4vw,56px); }
.parent-questions { max-width:780px; margin-inline:auto; padding-block:16px; scroll-margin-top:24px; }
.parent-questions h2 { margin-bottom:20px; }
.parent-questions details { border-bottom:1px solid #ffffff26; padding-block:14px; }
.parent-questions summary { cursor:pointer; font-weight:700; min-height:28px; }
.parent-questions p { margin:8px 0 0; max-width:65ch; }
.guide-link,.parent-guide a:not(.create-link) { color:#f1c989; text-underline-offset:4px; }
.guide-link { display:inline-block; margin-top:24px; }
.parent-guide { max-width:700px; margin:clamp(32px,6vw,76px) auto; }
.parent-guide h1 { font-size:clamp(38px,6vw,64px); line-height:1.05; }
.parent-guide h2 { margin-top:1.25em; }
.parent-guide p,.parent-guide li { font-size:17px; line-height:1.7; }
.parent-guide blockquote { margin:16px 0; border-left:2px solid #d4aa74; padding-left:16px; }
@media(max-width:680px) {
  .how-band ol { grid-template-columns:1fr; gap:16px; }
  .nav-links { font-size:13px; }
}
.extras { margin:8px 0 18px; }
.extras summary { color:#f1cea0; cursor:pointer; padding:10px 0; }
.record-box { background:#13252f; border:1px solid #435052; border-radius:15px; padding:18px; margin:18px 0; }
.record-box blockquote { margin:0 0 18px; font:21px/1.45 Georgia,serif; color:#e9ddc7; }
#recTimer { font-variant-numeric:tabular-nums; margin-left:10px; }
.record-button.recording { background:#efad9a; }
.result-cover { width:120px; height:90px; object-fit:cover; border-radius:8px; margin-bottom:10px; }
:focus-visible { outline:3px solid #ffd587; outline-offset:3px; }
@media(max-width:680px) {
  .masthead { padding:12px 0; }
  .brand { font-size:28px; }
  .book-hero { grid-template-columns:1fr; gap:20px; }
  .book-copy h1 { font-size:clamp(43px,10.5vw,66px); }
  .book-copy > p { margin:12px 0; }
  .hero-cover { border-radius:80px 80px 12px 12px; }
  .hero-cover img { aspect-ratio:2.25; object-position:center 54%; }
  .shelf { padding:24px 0; }
  .stories-grid { grid-template-columns:1fr; gap:10px; }
  .jacket { display:grid; grid-template-columns:95px 1fr; align-items:center; }
  .jacket img { height:100%; min-height:105px; }
  .jacket[aria-pressed=true]::after { left:6px; top:6px; right:auto; }
  .jacket-copy { padding:10px 12px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}
/* ---------------- КАРТОЧКИ ШАГОВ ---------------- */
.story-card-panel {
  background: var(--card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
  margin-bottom: clamp(28px, 4vw, 48px);
  box-shadow: 0 20px 50px rgba(4, 7, 18, 0.45), inset 0 1px 0 rgba(255, 240, 200, 0.09);
}

@media (max-width: 520px) {
  .story-card-panel { padding: 20px 16px; }
  h1 { font-size: 38px; }
}

.panel-header {
  margin-bottom: 20px;
}

.step-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(246, 196, 120, 0.13);
  border: 1px solid rgba(246, 196, 120, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  color: #fff7e8;
}

h3 {
  margin: 0 0 8px;
  font-size: 25px;
  color: var(--gold-bright);
}

.panel-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.small-muted { color: var(--muted); font-size: 12.5px; }
.center-txt { text-align: center; }
.hidden { display: none !important; }

/* ---------------- ПОЛЯ И СЕЛЕКТОРЫ ---------------- */
.field-group { margin-bottom: 18px; }

.field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #e9e2d6;
  margin-bottom: 8px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 540px) {
  .grid-2 { grid-template-columns: 1fr; }
}

input[type="text"], textarea, select {
  width: 100%;
  background: var(--field);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 15px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(246, 196, 120, 0.16);
}

/* КТО РАССКАЗЫВАЕТ */
.narrator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 520px) {
  .narrator-grid { grid-template-columns: repeat(2, 1fr); }
}

.narrator-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 16px;
  background: var(--field);
  border: 1px solid var(--border-soft);
  color: #ddd7ea;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.narrator-btn .n-icon { font-size: 22px; }

.narrator-btn.active {
  background: linear-gradient(145deg, rgba(246, 196, 120, 0.22), rgba(216, 138, 60, 0.1));
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 6px 20px rgba(246, 196, 120, 0.15);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--field);
  border: 1px solid var(--border-soft);
  padding: 4px;
  border-radius: 14px;
  gap: 4px;
}

.mini-seg { max-width: 340px; }

.seg-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.16s ease;
}

.seg-btn.active {
  background: linear-gradient(135deg, rgba(246, 196, 120, 0.24), rgba(216, 138, 60, 0.16));
  color: var(--gold-bright);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.chip {
  background: var(--field);
  color: #dfd9ec;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip.active {
  border-color: var(--gold);
  background: rgba(246, 196, 120, 0.18);
  color: var(--gold-bright);
}

.pill-gold {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(246, 196, 120, 0.18);
  color: var(--gold-bright);
  white-space: nowrap;
}

/* ПРЕВЬЮ ТЕКСТА */
.preview-trigger-row { margin-top: 6px; }

.parchment-preview {
  margin-top: 14px;
  background: rgba(9, 13, 27, 0.85);
  border: 1px solid rgba(246, 196, 120, 0.24);
  border-radius: 18px;
  padding: 16px;
}

.parchment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.parchment-meta {
  font-size: 12.5px;
  color: var(--gold);
  font-weight: 700;
}

.parchment-body {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
  font-size: 14.5px;
  color: #eae3d5;
}

.parchment-body p { margin: 0 0 10px; }

/* ---------------- СТУДИЯ ЗАПИСИ: СПИДОМЕТР + ТЕЛЕСУФЛЁР ---------------- */
.soft-hint {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(126, 224, 163, 0.08);
  border: 1px solid rgba(126, 224, 163, 0.22);
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 13.5px;
  color: #e0f0e6;
  margin-bottom: 16px;
}

.hint-icon { color: var(--mint); font-size: 16px; margin-top: 1px; }

.saved-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(246, 196, 120, 0.1);
  border: 1px solid rgba(246, 196, 120, 0.28);
  margin-bottom: 16px;
}

.saved-actions { display: flex; gap: 8px; align-items: center; }

/* ЗАГРУЗКА ФАЙЛА */
.file-panel { margin-bottom: 14px; }

.file-drop {
  display: block;
  border: 1.5px dashed rgba(246, 196, 120, 0.42);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  color: var(--gold-bright);
  background: rgba(246, 196, 120, 0.05);
  font-weight: 700;
}

.file-drop input { display: none; }

/* КАРТОЧКА ПРОСЛУШИВАНИЯ И ПЕРЕЗАПИСИ */
.review-card {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(126, 224, 163, 0.09), rgba(21, 29, 54, 0.85));
  border: 1px solid rgba(126, 224, 163, 0.3);
  border-radius: 18px;
  padding: 16px;
}

.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.btn-rerecord {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-bright);
  border: 1px solid rgba(246, 196, 120, 0.35);
  border-radius: 11px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-rerecord:hover { background: rgba(246, 196, 120, 0.18); }

.review-foot { margin-top: 8px; }

audio { width: 100%; border-radius: 10px; }

/* СОГЛАСИЯ И КНОПКИ */
.consents-box {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.8px;
  color: #d7d1e3;
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 3px;
  accent-color: var(--gold);
  transform: scale(1.18);
}

.cta-wrap {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.btn-golden {
  width: 100%;
  padding: 16px 22px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffe2a4 0%, #f1ae56 55%, #de8f3b 100%);
  color: #191107;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(241, 174, 86, 0.28);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.btn-golden:hover:not(:disabled) { transform: translateY(-1px); }
.btn-golden:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #f3ecdf;
  border: 1px solid rgba(246, 196, 120, 0.28);
  border-radius: 13px;
  padding: 10px 15px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-outline:hover { background: rgba(246, 196, 120, 0.12); }

.btn-amber-sm {
  background: var(--gold);
  color: #1a1207;
  border: none;
  border-radius: 10px;
  padding: 7px 13px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.btn-link-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(240, 128, 128, 0.35);
  border-radius: 10px;
  padding: 7px 13px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.error-banner {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(240, 128, 128, 0.12);
  border: 1px solid rgba(240, 128, 128, 0.35);
  color: #ffb8b8;
  font-size: 13.5px;
}

/* ---------------- ШАГ 3: НОЧНОЙ ПЛЕЕР ---------------- */
.magic-progress-track {
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.magic-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d88a3c, #ffe1a8);
  transition: width 0.35s ease;
}

.night-player-card {
  background: rgba(8, 12, 26, 0.85);
  border: 1px solid rgba(246, 196, 120, 0.25);
  border-radius: 18px;
  padding: 18px;
}

.player-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sleep-timer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.timer-pills { display: flex; gap: 6px; flex-wrap: wrap; }

.pill {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 5px 11px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.pill.active {
  background: rgba(246, 196, 120, 0.2);
  color: var(--gold-bright);
  border-color: var(--gold);
}

.player-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.bone-card {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
}

.bone-card p { margin: 5px 0 0; color: var(--muted); }

.upsell-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(246, 196, 120, 0.13), rgba(24, 32, 60, 0.85));
  border: 1px solid rgba(246, 196, 120, 0.35);
}

.upsell-kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold);
  margin-bottom: 6px;
}

.upsell-tip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(126, 224, 163, 0.1);
  border: 1px solid rgba(126, 224, 163, 0.24);
  font-size: 12.8px;
  color: #dcf2e5;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 28px;
}

.safety-notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 15px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(246, 196, 120, 0.08);
  border: 1px solid rgba(246, 196, 120, 0.24);
  color: #e6dfd2;
  font-size: 12.8px;
  line-height: 1.45;
}

.safety-icon {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.footer p { margin: 4px 0; }


/* ---------------- СТУДИЯ ЗАПИСИ: СПИДОМЕТР + ТЕЛЕСУФЛЁР (в палитре Баюшки) ---------------- */
.studio-wrap { margin-top: 16px; }

.studio-top {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
  align-items: center;
  background: rgba(12, 26, 36, 0.72);
  border: 1px solid rgba(241, 199, 139, 0.18);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

@media (max-width: 620px) {
  .studio-top { grid-template-columns: 1fr; text-align: center; }
}

.speedometer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.speedometer-svg {
  width: 214px;
  height: auto;
  overflow: visible;
}

.gauge-tick {
  fill: #a7b8bd;
  font-size: 10.5px;
  font-weight: 700;
  font-family: "Nunito", sans-serif;
}

#speedoArc {
  transition: stroke-dashoffset 0.25s linear;
  filter: drop-shadow(0 0 8px rgba(241, 199, 139, 0.32));
}

#speedoNeedle {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.speedo-readout {
  text-align: center;
  margin-top: -10px;
}

.speedo-timer {
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  font-weight: 800;
  color: #fff8ea;
  line-height: 1.1;
}

.speedo-status {
  margin-top: 4px;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.mic-action-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mic-pulse-ring {
  padding: 6px;
  border-radius: 999px;
  transition: box-shadow 0.12s ease;
}

.btn-mic-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 230px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 232, 185, 0.45);
  background: linear-gradient(135deg, #ffe09e 0%, #f1ae56 100%);
  color: #161812;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(241, 174, 86, 0.28);
  transition: transform 0.15s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.btn-mic-main:hover { transform: translateY(-1px); }

/* Цвет кнопки записи синхронизирован со спидометром (без тревожного красного!) */
.btn-mic-main.stage-warm {
  background: linear-gradient(135deg, #f7df86 0%, #e9be43 100%);
  color: #1c1708;
  box-shadow: 0 10px 28px rgba(242, 201, 76, 0.32);
}

.btn-mic-main.stage-mint {
  background: linear-gradient(135deg, #a3efc0 0%, #63cf8c 100%);
  color: #0b2214;
  box-shadow: 0 10px 28px rgba(111, 207, 151, 0.34);
}

.btn-mic-main.stage-emerald {
  background: linear-gradient(135deg, #5ce094 0%, #27ae60 100%);
  color: #071f11;
  box-shadow: 0 10px 28px rgba(39, 174, 96, 0.36);
}

.btn-mic-main.stage-gold {
  background: linear-gradient(135deg, #fff0b3 0%, #f5b951 100%);
  color: #1f1404;
  box-shadow: 0 10px 30px rgba(255, 209, 102, 0.42);
}

.mic-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: currentColor;
}

.btn-mic-main.recording .mic-dot {
  animation: blinkDot 1.1s ease-in-out infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.38; transform: scale(0.75); }
}

.teleprompter-card {
  background: rgba(11, 23, 33, 0.9);
  border: 1px solid rgba(241, 199, 139, 0.25);
  border-radius: 18px;
  overflow: hidden;
}

.tele-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(241, 199, 139, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
}

.tele-title { color: var(--gold-bright); font-weight: 700; }

.tele-speed {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.tele-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.tele-stage { position: relative; }

.tele-viewport {
  position: relative;
  height: 215px;
  overflow-y: auto;
  scroll-behavior: auto;
  padding: 20px 20px 68px;
  scrollbar-width: thin;
  scrollbar-color: rgba(241, 199, 139, 0.3) transparent;
}

.tele-fade-top, .tele-fade-bottom {
  position: absolute;
  left: 0;
  right: 8px;
  pointer-events: none;
  z-index: 3;
}

.tele-fade-top {
  top: 0;
  height: 16px;
  background: linear-gradient(180deg, rgba(11, 23, 33, 0.92), transparent);
}

.tele-fade-bottom {
  bottom: 0;
  height: 44px;
  background: linear-gradient(0deg, rgba(11, 23, 33, 0.96), transparent);
}

.tele-para {
  margin-bottom: 22px;
  font-size: 18px;
  line-height: 1.65;
  color: #b5c3c6;
  transition: color 0.3s ease;
}

.tele-para.active {
  color: #fff9ec;
}

.tele-para-tag {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f1c78b;
  margin-bottom: 4px;
}

.tele-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
