/* =====================================================
   GLOBAL
===================================================== */

html {
  font-size: 20px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(1600px 400px at 20% 20%, rgba(160,220,255,0.35), transparent 60%),
    radial-gradient(1600px 400px at 80% 70%, rgba(255,190,220,0.25), transparent 55%),
    rgba(240,244,248,1);
}


/* =====================================================
   TOP BAR
===================================================== */

.topbar {
  display: flex;
  justify-content: space-between;
  padding: 24px 40px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.brand .title {
  font-size: 24px;
  font-weight: 700;
}

.brand .subtitle {
  font-size: 15px;
  opacity: 0.7;
  margin-top: 6px;
}

.props {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.props label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.props input {
  width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
}


/* =====================================================
   MAIN STUDIO WRAPPER
===================================================== */

.layout {
  position: relative;
  width: 1500px;
  margin: 60px auto 0 auto;

  /* FLOOR for absolute studio panels */
  padding-top: 880px;

  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(22px);
  border-radius: 40px;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.9);
}


/* =====================================================
   ABSOLUTE STUDIO PANELS
===================================================== */

.script {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 850px;
  height: 600px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.85);
}
/* =====================================================
   /* =====================================================
   TELEPROMPTER — STRONG DEPTH VERSION
===================================================== */

.teleprompter {

  position: relative;

  width: 100%;
  margin-top: 60px;

  padding: 40px;

  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);

  border-radius: 30px;

  border: 1px solid rgba(0,0,0,0.08);

  box-shadow:
    0 80px 140px rgba(0,0,0,0.25),   /* large drop */
    0 30px 60px rgba(0,0,0,0.18),    /* mid drop */
    0 10px 25px rgba(0,0,0,0.12),    /* close drop */
    inset 0 1px 0 rgba(255,255,255,0.9); /* light rim */
}


/* Header */

.teleprompter-header {

  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 28px;

  font-weight: 700;
  font-size: 19px;
}


/* Inner viewing window */

/* ================= TELEPROMPTER WRAP ================= */

.teleprompter-wrap {
  margin-top: 40px;
}

/* Header */

.teleprompter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Mode Buttons */

.teleprompter-modes {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.mode-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #ffffff;
  cursor: pointer;
}

.mode-btn.active {
  background: #2e7dff;
  color: white;
  border-color: #2e7dff;
}

/* Teleprompter Window */

.teleprompter-view {
  position: relative;
  min-height: 240px;
  max-height: 360px;
  overflow-y: auto;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    inset 0 4px 14px rgba(0,0,0,0.06),
    0 20px 40px rgba(0,0,0,0.12);
  line-height: 2.0;
  font-size: 20px;
}

/* Words */

.tp-word {
  position: relative;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

/* Progress highlight */

.progress-highlight {
  background: linear-gradient(180deg, #dce8ff 0%, #c9dcff 100%);
}

/* Marker base */

.marker {
  position: absolute;
  top: -8px;
  right: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,0.35);
}

/* Pickup */

.marker-pickup {
  background: radial-gradient(circle at 30% 30%, #ffb6b6, #ff3c3c);
}
.glow-pickup {
  background: rgba(255,60,60,0.15);
}

/* Delete */

.marker-delete {
  background: radial-gradient(circle at 30% 30%, #cfd8dc, #455a64);
}
.glow-delete {
  background: rgba(69,90,100,0.15);
}

/* Replace */

.marker-replace {
  background: radial-gradient(circle at 30% 30%, #fff3b0, #ffb300);
}
.glow-replace {
  background: rgba(255,179,0,0.18);
}

/* Legend */

.teleprompter-legend {
  margin-top: 18px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-highlight {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #2e7dff;
  margin-right: 6px;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}

.legend-dot.pickup {
  background: #ff3c3c;
}

.legend-dot.delete {
  background: #455a64;
}

.legend-dot.replace {
  background: #ffb300;
}
/* ================= CREDITS ================= */
/* =========================
   CREDITS BLOCK
========================= */

.credits-block {

  position: relative;     /* stays in normal flow */
  top: 0px;
  left: 0px;

  width: 520px;           /* pixel control */
  padding: 36px;

  background-color: #ffffff;

  border-radius: 28px;
  border: 1px solid #e6e6e6;

  box-shadow:
    0 50px 90px rgba(0,0,0,0.18),
    0 20px 40px rgba(0,0,0,0.12),
    0 5px 15px rgba(0,0,0,0.08);

  margin-top: 60px;       /* vertical spacing control */
}

/* Heading */
.credits-block h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 700;
}

/* Labels */
.credits-block label {

  display: block;
  margin-top: 20px;

  font-weight: 600;
  font-size: 15px;
}

/* Inputs */
.credits-block input {

  width: 100%;                 /* fills inside container correctly */
  box-sizing: border-box;      /* prevents overflow */

  padding: 12px 14px;
  margin-top: 8px;

  border-radius: 12px;
  border: 1px solid #dcdcdc;

  font-size: 15px;

  outline: none;
}

/* Optional focus polish */
.credits-block input:focus {
  border-color: #999;
}

/* RECORDER */
.recorder {
  position: absolute;
  top: 40px;
  left: 965px;
  width: 440px;
  height: 380px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.85);
}

.record-selection {
  position: absolute;
  top: 560px;
  left: 965px;
  width: 440px;
  height: 220px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.85);
}


/* =====================================================
   SCRIPT AREA
===================================================== */

.script-input {
  width: 100%;
  min-height: 180px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  resize: vertical;
  font-size: 18px;
}

.script-view {
  margin-top: 20px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.4);
  font-size: 20px;
  line-height: 1.9;
}


/* =====================================================
   RECORD SELECTION CONTROLS
===================================================== */

.record-selection .controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}


/* =====================================================
   RECORDER CONTROLS
===================================================== */

.recorder .controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
/* =====================================================
   TAKES — OUTSIDE MAIN (FLOATING PANEL)
===================================================== */

.takes {

  position: relative; 

  top: 25px;    /* adjust to sit visually below main */
  left: 1080px;     /* horizontal control */

  width: 440px;
  padding: 36px;

  background-color: #ffffff;

  border-radius: 28px;
  border: 1px solid #e6e6e6;

  box-shadow:
    0 60px 120px rgba(0,0,0,0.20),
    0 25px 60px rgba(0,0,0,0.14),
    0 8px 25px rgba(0,0,0,0.10);

  z-index: 20;
}

.takes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.take {
  padding: 18px;
  margin-top: 16px;

  border-radius: 18px;

  background-color: #f5f5f5;
  border: 1px solid #e2e2e2;

  box-shadow:
    0 15px 25px rgba(0,0,0,0.10),
    0 5px 10px rgba(0,0,0,0.06);
}

/* =====================================================
   CLEANER (FLOW BELOW MAIN)
===================================================== */

.acx-cleaner {

  position: relative;   /* change to absolute if you want it to float */
  
  top: 25px;             /* vertical movement control */
  left: 93px;            /* horizontal movement control */

  width: 720px;         /* size control */
  padding: 36px;

  background-color: #ffffff;

  border-radius: 28px;

  border: 1px solid #e6e6e6;

  /* real layered shadow */
  box-shadow:
    0 50px 90px rgba(0,0,0,0.18),   /* main drop */
    0 20px 40px rgba(0,0,0,0.12),   /* mid depth */
    0 5px 15px rgba(0,0,0,0.08);    /* close shadow */

}

/* =====================================================
   TRACKS (FLOW BELOW CLEANER)
===================================================== */

#tracksPanel {
  width: 500px;
  margin: 80px auto 0 auto;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.85);
}


/* =====================================================
   BUTTONS
===================================================== */

.btn {
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: white;
  cursor: pointer;
}

.btn.primary {
  background: rgba(50,110,255,0.9);
  color: white;
  border: none;
}

.btn.danger {
  background: rgba(200,60,60,0.9);
  color: white;
  border: none;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
  width: 1250px;
  margin: 100px auto;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  opacity: 0.7;
}