/* --- ClipYT Pure Obsidian & Electric Blue Glassmorphism Theme (60fps GPU Composited) --- */
:root {
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-hover: #60a5fa;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-glow: rgba(37, 99, 235, 0.35);

  --glass-bg: linear-gradient(135deg, rgba(12, 18, 30, 0.74) 0%, rgba(6, 10, 18, 0.86) 100%);
  --glass-bg-strong: linear-gradient(145deg, rgba(14, 22, 36, 0.84) 0%, rgba(8, 12, 22, 0.94) 100%);
  --glass-border: rgba(37, 99, 235, 0.22);
  --glass-edge: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(96, 165, 250, 0.55);
  --glass-shadow:
    0 20px 48px rgba(0, 0, 0, 0.65),
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 0 20px rgba(37, 99, 235, 0.06);

  --input-bg: rgba(8, 12, 22, 0.85);
  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #809287;

  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: #050811;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}

/* Sharp, completely visible background.png promoted to dedicated VRAM GPU layer (144fps+) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('/background.png?v=20261120_4');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  contain: strict;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  body::before {
    background-image: url('/static/mobilebackground.png?v=20261120_4');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }
}

.bg-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 8%, rgba(37, 99, 235, 0.10) 0%, rgba(6, 9, 7, 0.82) 55%, #050811 100%);
  pointer-events: none;
  z-index: 0;
}

.navbar,
.main-container,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Liquid Glass Card — Pure CSS GPU Compositor (60–144fps butter-smooth) */
.glass-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(8px) saturate(140%) brightness(1.02);
  -webkit-backdrop-filter: blur(8px) saturate(140%) brightness(1.02);
  border: 1.5px solid var(--glass-border);
  outline: 1px solid var(--glass-edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  contain: layout style paint;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card>*,
.clip-card>* {
  position: relative;
  z-index: 2;
}

/* Top-rim specular lens glint — 100% pure CSS, 0 JS reflows */
.glass-card::before,
.clip-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: radial-gradient(ellipse at center,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(218, 246, 255, 0.4) 50%,
      transparent 100%);
  pointer-events: none;
  z-index: 4;
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

/* Fluid radial liquid-glass sheen — pure CSS hover shine */
.glass-card::after,
.clip-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(220, 244, 255, 0.08) 40%,
      transparent 70%);
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.25s ease;
}

.glass-card:hover::before,
.clip-card:hover::before {
  opacity: 1;
}

.glass-card:hover::after,
.clip-card:hover::after {
  opacity: 0.7;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
}

/* Navbar */
.navbar {
  padding: 0.9rem 1.35rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.14);
  background: rgba(253, 251, 255, 0.74);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  position: sticky;
  top: 0;
  z-index: 40;
  transform: translate3d(0, 0, 0);
  box-shadow: 0 2px 14px rgba(109, 64, 198, 0.05);
}

.nav-container {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-play {
  width: 36px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--accent-glow), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-main);
}

.btn-saved {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(139, 92, 246, 0.24);
  color: var(--text-main);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.btn-saved:hover {
  background: #ffffff;
  border-color: var(--accent);
}

/* Main Layout */
.main-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 3.5rem;
  flex: 1;
}

/* ==========================================================================
   Creators & Streamers "PERFECT FOR" Infinite Marquee Loop
   ========================================================================== */
.creators-ticker-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: auto;
  padding: 2.25rem 0 1.25rem;
  user-select: none;
  z-index: 10;
}

.creators-ticker-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
  margin-bottom: 1.15rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.creators-marquee-bar {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  padding: 6px 0;
}

.creators-marquee-track {
  display: flex;
  width: max-content;
  animation: creatorsMarquee 38s linear infinite;
  will-change: transform;
}

.creators-marquee-track:hover {
  animation-play-state: paused;
}

.creators-group {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
  flex-shrink: 0;
}

.creator-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 20, 34, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 0.55rem 1.35rem 0.55rem 0.65rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.creator-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.55);
  background: rgba(18, 26, 44, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(37, 99, 235, 0.25), inset 0 1px 1.5px rgba(255, 255, 255, 0.2);
}

.creator-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.creator-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.creator-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.creator-subs {
  font-size: 0.77rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: -0.01em;
  line-height: 1.2;
}



@keyframes creatorsMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.site-footer {
  display: none;
}

.corner-credit {
  position: absolute;
  right: 16px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px 4px 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 14px rgba(68, 35, 130, 0.12);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.corner-credit:hover {
  transform: translate3d(0, -1px, 0);
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent);
}

.corner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  display: block;
}

@media (max-width: 640px) {
  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1rem 1.25rem;
  }

  .corner-credit {
    position: static;
    align-self: center;
  }
}

.site-footer strong {
  color: var(--text-main);
  font-weight: 700;
}

.footer-heart {
  display: inline-block;
  margin: 0 2px;
}

/* Simple Hero */
.hero-section {
  text-align: center;
  margin-bottom: 2.25rem;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 0.75rem;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.32);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.25);
  user-select: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin-bottom: 1.65rem;
  color: #f8fafc;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.7);
}

.hero-title strong {
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-italic-glow {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: #f1f5f9;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.95rem;
    line-height: 1.24;
  }
}

.input-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.35rem;
}

/* ==========================================================================
   Reference Capsule URL Bar & "Explore demo clips" Tab Design
   ========================================================================== */
.capsule-input-container {
  max-width: 860px;
  margin: 7rem auto 0;
  position: relative;
}

.demo-clips-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #1c222e 0%, #0d1118 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  padding: 0.48rem 1.35rem 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  cursor: pointer;
  margin-left: 28px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  transform: translateY(1.5px);
  position: relative;
  z-index: 2;
}

.demo-clips-tab:hover {
  background: linear-gradient(180deg, #273142 0%, #121822 100%);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.demo-clips-tab strong {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.demo-clips-tab em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: #cbd5e1;
}

.demo-tab-icon {
  font-size: 1rem;
}

.capsule-url-form {
  position: relative;
  z-index: 1;
}

.capsule-bar {
  display: flex;
  align-items: center;
  background: rgba(10, 14, 22, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 6px 8px 6px 20px;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.8),
    inset 0 1px 1px rgba(255, 255, 255, 0.14);
  transition: all 0.22s ease;
}

.capsule-bar:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.85),
    inset 0 1px 1px rgba(255, 255, 255, 0.24);
}

.capsule-yt-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
}

.yt-play-svg {
  filter: drop-shadow(0 2px 5px rgba(255, 0, 0, 0.45));
}

.capsule-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  padding: 0.85rem 0.5rem;
}

.capsule-input::placeholder {
  color: #64748b;
  font-size: 0.98rem;
}

.capsule-submit-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #242c3a 0%, #0d121b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  padding: 0.92rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.7),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.capsule-submit-btn:hover {
  background: linear-gradient(180deg, #2f3a4c 0%, #131924 100%);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.8),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.4);
}

.capsule-submit-btn:active {
  transform: translateY(0);
}

.capsule-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.capsule-field-row {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .main-container {
    padding: 2.75rem 1.15rem 3.5rem;
  }

  .top-timer-center-wrap {
    margin: 0.25rem auto 0.75rem;
    padding: 0 8px;
  }

  .global-key-pill {
    padding: 5px 14px;
    font-size: 0.78rem;
  }

  .studio-bar-wrap {
    margin: 0.25rem auto 1.85rem;
    padding: 0 4px;
    width: 100%;
  }

  .studio-pill-bar {
    width: 100%;
    gap: 4px;
    padding: 4px;
    border-radius: 9999px;
  }

  .studio-pill {
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.58rem 0.2rem;
    gap: 4px;
    border-radius: 9999px;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
  }

  .pro-lock-tag {
    font-size: 0.58rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 6px;
    letter-spacing: 0;
  }

  .hero-section {
    margin-bottom: 2.5rem;
  }

  .hero-kicker {
    font-size: 0.68rem;
    padding: 4px 12px;
    margin-bottom: 0.5rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.24;
    margin-bottom: 2.25rem;
  }

  .capsule-input-container {
    margin-top: 10.5rem;
  }

  /* Explore Demo tab: centered floating pill on mobile */
  .demo-clips-tab {
    display: table;
    margin: 0 auto 14px auto;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, #1c222e 0%, #0d1118 100%);
    padding: 0.45rem 1.25rem;
    font-size: 0.82rem;
    color: #f1f5f9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transform: none;
  }

  /* Sleek nested card on mobile */
  .capsule-bar {
    display: flex;
    flex-direction: column;
    background: rgba(10, 14, 22, 0.94);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 10px;
    gap: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  }

  .capsule-field-row {
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(6, 9, 14, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 6px 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7);
  }

  .capsule-yt-badge {
    margin-right: 8px;
  }

  .capsule-input {
    flex: 1;
    font-size: 0.92rem;
    padding: 0.6rem 0.25rem;
    min-width: 0;
  }

  .capsule-input::placeholder {
    font-size: 0.82rem;
  }

  .capsule-submit-btn {
    width: 100%;
    margin-top: 0;
    padding: 0.88rem 1rem;
    font-size: 0.98rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #242c3a 0%, #0d121b 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), inset 0 1px 1.5px rgba(255, 255, 255, 0.3);
  }

  /* Options Row: compact side-by-side on mobile */
  .simple-options-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px !important;
    width: 100%;
  }

  .inline-opt {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 16, 28, 0.72);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 12px;
    padding: 6px 10px;
  }

  .inline-opt label {
    font-size: 0.74rem;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
  }

  .simple-select {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f8fafc;
  }

  /* Trust Badges: neat vertical stack, NO trailing dots */
  .hero-feature-tags {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 1.25rem;
  }

  .feature-sep {
    display: none !important;
  }

  .feature-tag {
    font-size: 0.82rem;
    gap: 8px;
  }
}

/* Feature & Trust Badges directly below URL input box */
.hero-feature-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
  user-select: none;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #cbd5e1;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.feature-tag strong {
  font-weight: 700;
  color: #ffffff;
}

.feature-tag em {
  font-style: italic;
  font-weight: 400;
  color: #94a3b8;
}

.feat-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.45);
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.35);
}

.feature-sep {
  color: rgba(37, 99, 235, 0.45);
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .hero-feature-tags {
    gap: 0.55rem 0.85rem;
    margin-top: 0.95rem;
  }

  .feature-tag {
    font-size: 0.78rem;
  }
}

.url-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.url-row {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .url-row {
    flex-direction: column;
  }
}

.url-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.url-input-wrap input {
  width: 100%;
  background: rgba(7, 11, 20, 0.88);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-md);
  padding: 0.98rem 5rem 0.98rem 1.2rem;
  color: #f8fafc;
  font-size: 0.98rem;
  font-family: var(--font-sans);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.url-input-wrap input::placeholder {
  color: #64748b;
}

.url-input-wrap input:focus {
  background: rgba(9, 14, 24, 0.96);
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.5);
  outline: none;
}

.btn-paste {
  position: absolute;
  right: 0.55rem;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.28);
  color: #60a5fa;
  padding: 0.44rem 0.82rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-paste:hover {
  background: #2563eb;
  color: #050811;
  border-color: #60a5fa;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

/* Primary Liquid Glass Obsidian Black Button with Shimmer Sweep */
.btn-red {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #242c3a 0%, #0d121b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 0.92rem 1.7rem;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.65),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.35);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease;
}

.btn-red:hover {
  background: linear-gradient(180deg, #2f3a4c 0%, #131924 100%);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.45);
}

.btn-red::after,
.btn-create-short::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.46) 50%, transparent 100%);
  transform: translate3d(-160%, 0, 0) skewX(-18deg);
  will-change: transform;
  pointer-events: none;
  transition: transform 0.48s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-red:hover::after,
.btn-create-short:hover::after {
  transform: translate3d(260%, 0, 0) skewX(-18deg);
}

.btn-red:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.5), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.6);
}

.btn-red:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.url-note {
  font-size: 0.84rem;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.45;
  margin-top: -0.1rem;
}

.url-note strong {
  color: var(--text-main);
}

.simple-options-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.inline-opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-soft);
}

.simple-select {
  background: rgba(9, 14, 24, 0.88);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--font-sans);
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.simple-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

/* Error Banner */
.error-banner {
  max-width: 780px;
  margin: 0 auto 1.75rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(254, 226, 226, 0.88);
  border: 1px solid rgba(220, 38, 38, 0.32);
  color: #991b1b;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.08);
}

.banner-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0 4px;
}

/* Video Preview Card */
.video-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.35rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

@media (max-width: 720px) {
  .video-card {
    flex-direction: column;
  }
}

.video-thumb-box {
  position: relative;
  width: 300px;
  min-width: 300px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1a102b;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(109, 64, 198, 0.14);
}

@media (max-width: 720px) {
  .video-thumb-box {
    width: 100%;
    min-width: 0;
  }
}

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

.duration-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(24, 16, 43, 0.86);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
}

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

.yt-title {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.yt-channel-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: #94a3b8;
  margin-bottom: 0.85rem;
}

.yt-author {
  color: #60a5fa;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.yt-views {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
}

.yt-caption {
  font-size: 0.9rem;
  color: #f1f5f9;
  font-weight: 500;
  white-space: pre-line;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  max-height: 86px;
  overflow: hidden;
  line-height: 1.55;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(37, 99, 235, 0.12);
  transition: all 0.2s ease;
}

.yt-caption.expanded {
  max-height: none;
}

.btn-link {
  background: none;
  border: none;
  color: #60a5fa;
  font-size: 0.86rem;
  font-weight: 700;
  margin-top: 0.55rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.analyzing-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

/* Section Headers */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.section-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: var(--accent);
}

/* Engagement & Interaction Map */
.map-card {
  padding: 1.45rem;
  margin-bottom: 1.75rem;
}

.chart-wrapper {
  position: relative;
  height: 215px;
  width: 100%;
}

/* Compact Settings Bar */
.settings-bar {
  padding: 1.3rem 1.45rem;
  margin-bottom: 1.65rem;
}

.settings-bar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem 1.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .settings-bar-grid {
    grid-template-columns: 1fr;
  }
}

.setting-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.block-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.setting-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.choice-pill {
  background: rgba(12, 18, 30, 0.72);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: #94a3b8;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.choice-pill:hover {
  background: rgba(22, 34, 26, 0.9);
  border-color: rgba(96, 165, 250, 0.45);
  color: #ffffff;
}

.choice-pill.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: rgba(96, 165, 250, 0.85);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.caption-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
}

.compact-selects {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(139, 92, 246, 0.24);
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}

.slider:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(24, 16, 43, 0.22);
  transition: transform 0.2s ease;
}

input:checked+.slider {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

input:checked+.slider:before {
  transform: translateX(18px);
}

/* Mode Tabs (Most Engaging Moments | Select Manually) */
.mode-tabs-bar {
  margin-bottom: 1.15rem;
}

.mode-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  outline: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
  box-shadow: 0 6px 18px rgba(109, 64, 198, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.mode-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.52rem 1.2rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.mode-tab:hover {
  color: var(--text-main);
}

.mode-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 3px 12px var(--accent-glow), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* Manual Clip Selector Card */
.manual-card {
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.manual-frames-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 640px) {
  .manual-frames-grid {
    grid-template-columns: 1fr;
  }
}

.manual-frame-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.manual-frame-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-soft);
}

.manual-sprite-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background-color: #18102b;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(109, 64, 198, 0.12);
  overflow: hidden;
  contain: layout style paint;
}

/* Dual Range Timeline Slider */
.dual-slider-wrap {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
}

.dual-slider-track {
  position: relative;
  width: 100%;
  height: 7px;
  background: rgba(37, 99, 235, 0.18);
  border-radius: 9999px;
  overflow: hidden;
}

.dual-slider-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0%;
  width: 20%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 9999px;
}

.dual-range {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.dual-range::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 10px rgba(109, 64, 198, 0.35);
  cursor: grab;
  transition: transform 0.12s ease;
}

.dual-range::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
}

.dual-range::-moz-range-thumb {
  pointer-events: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 10px rgba(109, 64, 198, 0.35);
  cursor: grab;
}

.manual-controls-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 720px) {
  .manual-controls-row {
    grid-template-columns: 1fr;
  }
}

.manual-summary-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

.manual-summary-box strong {
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* Clips Grid with Video Frame Pictures */
.clips-section {
  margin-bottom: 2.5rem;
}

.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.35rem;
}

.clip-card {
  position: relative;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(8px) saturate(140%) brightness(1.02);
  -webkit-backdrop-filter: blur(8px) saturate(140%) brightness(1.02);
  border: 1.5px solid var(--glass-border);
  outline: 1px solid var(--glass-edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: 320px 380px;
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.16s ease;
}

.clip-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: var(--glass-border-hover);
}

/* Video Frame Picture Header */
.clip-frame-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #18102b;
  overflow: hidden;
}

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

.clip-frame-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(24, 16, 43, 0.45) 0%, transparent 40%, rgba(24, 16, 43, 0.65) 100%);
  pointer-events: none;
}

.frame-top-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.moment-badge {
  background: rgba(255, 255, 255, 0.90);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(24, 16, 43, 0.18);
}

.engagement-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.frame-time-overlay {
  position: absolute;
  bottom: 9px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.peak-pill {
  background: rgba(24, 16, 43, 0.80);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.clip-card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Spacious MM:SS / HH:MM:SS Time Inputs */
.timing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.timing-field {
  background: rgba(12, 18, 30, 0.75);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.timing-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #809287;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.timing-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.time-text-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: rgba(6, 10, 18, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 6px;
  padding: 4px 4px;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  outline: none;
}

.time-text-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.step-btn {
  width: 24px;
  height: 26px;
  min-width: 24px;
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.step-btn:hover {
  background: var(--accent);
  color: #ffffff;
}

.clip-foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.clip-foot-row strong {
  color: var(--text-main);
  font-family: var(--font-mono);
}

.yt-watch-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.yt-watch-link:hover {
  text-decoration: underline;
}

.btn-create-short {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(96, 165, 250, 0.5);
  border-radius: var(--radius-md);
  padding: 0.78rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 6px 18px rgba(37, 99, 235, 0.35),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.45);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease;
}

.btn-create-short:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--glass-bg);
  border: 1px dashed rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  padding: 1.65rem;
  background: linear-gradient(145deg, rgba(16, 26, 20, 0.95) 0%, rgba(7, 11, 20, 0.98) 100%);
  border: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 24px rgba(37, 99, 235, 0.15);
  border-radius: 20px;
  color: #f8fafc;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.1rem;
}

.modal-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-video-wrap {
  width: 100%;
  max-height: 58vh;
  background: #120b21;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(139, 92, 246, 0.22);
}

.modal-video-wrap video {
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  display: block;
}

.modal-result-meta {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
}

.modal-result-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(37, 99, 235, 0.14);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-soft);
}

#progress-pct {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}

/* Spinners */
.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.spinner-sm {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(37, 99, 235, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

/* =====================================================================
   PRO STUDIO MODE SWITCHER, INSTAGRAM FOLLOW GATE & DUAL-BOX EDITOR
   ===================================================================== */
.top-studio-switcher {
  display: flex;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.top-timer-center-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0.65rem auto 1.15rem;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

.studio-bar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.25rem auto 2.25rem;
  position: relative;
  z-index: 10;
  max-width: 820px;
  width: 100%;
}

.studio-pill-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px;
  border-radius: 9999px;
  background: rgba(8, 12, 24, 0.55);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.studio-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(14, 22, 36, 0.6) 0%, rgba(8, 12, 22, 0.75) 100%);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  padding: 0.65rem 1.45rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.1), inset 0 0 10px rgba(37, 99, 235, 0.04);
}

.studio-pill:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(20, 32, 54, 0.82) 0%, rgba(12, 18, 30, 0.9) 100%);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 18px rgba(37, 99, 235, 0.2), inset 0 1px 1.5px rgba(255, 255, 255, 0.25);
  transform: translateY(-1.5px);
}

.studio-pill.active {
  background: linear-gradient(180deg, #242c3a 0%, #0e131c 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), inset 0 1px 1.5px rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.pro-lock-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #60a5fa;
}

.studio-pill.active .pro-lock-tag {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.pro-lock-tag.unlocked {
  background: rgba(37, 99, 235, 0.25);
  border-color: rgba(96, 165, 250, 0.6);
  color: #bfdbfe;
}

.studio-pill.active .pro-lock-tag.unlocked {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Pro Hero Badge */
.pro-hero {
  margin-bottom: 1.5rem;
}

.pro-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(109, 64, 198, 0.1);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.vod-hero-badge {
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  animation: livePulse 1.6s infinite;
}

@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.25);
  }
}

/* Pro Source Bar */
.pro-source-bar {
  padding: 1rem 1.3rem;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pro-source-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex: 1;
}

.pro-status-live {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.pro-status-live.is-vod {
  background: rgba(37, 99, 235, 0.14);
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.3);
}

.pro-source-titles {
  min-width: 0;
}

.pro-source-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-source-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pro-refresh-btn {
  flex-shrink: 0;
  font-size: 0.84rem;
  padding: 0.5rem 1rem;
}

/* Pro Timing Card */
.pro-timing-card {
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.25rem;
}

.pro-live-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.pro-timing-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pro-sub-tabs .mode-tab {
  font-size: 0.8rem;
  padding: 0.42rem 0.95rem;
}

.pro-timing-hint {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pro-manual-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pro-dvr-scale-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
}

.dvr-live-edge {
  color: #dc2626;
}

.pro-preview-at-btn {
  font-size: 0.76rem;
  padding: 0.36rem 0.78rem;
  margin-top: 2px;
}

.pro-live-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: flex-start;
}

.pro-vod-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

/* Pro Dual-Box Editor Grid (16:9 Stage + 9:16 Live Preview) */
.pro-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(250px, 0.85fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: stretch;
}

.pro-canvas-card,
.pro-preview-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.pro-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.tag-cam {
  color: #2563eb;
}

.tag-stream {
  color: #0284c7;
}

/* 16:9 Interactive Box Placement Stage */
.pro-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #140d24;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(45, 20, 95, 0.22);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.pro-stage img.pro-frame-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  z-index: 1;
}

.pro-yt-player-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.pro-rewind-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.28);
  padding: 3px 8px;
  border-radius: 9999px;
}

.pro-rewind-mini-input {
  width: 54px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  padding: 2px 4px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
}

.pro-rewind-mini-input:focus {
  border-color: var(--accent);
}

/* Exact Start & End Boundary Frame Verification Grid */
.pro-boundary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .pro-boundary-grid {
    grid-template-columns: 1fr;
  }
}

.pro-boundary-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pro-boundary-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: #140d24;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(68, 35, 130, 0.14);
  overflow: hidden;
}

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

.pro-yt-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.pro-boxes-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 48px;
  height: calc(100% - 48px);
  z-index: 5;
  pointer-events: none;
}

.pro-boxes-overlay .crop-box {
  pointer-events: none !important;
}

.pro-boxes-overlay .crop-drag-body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none !important;
}

.pro-boxes-overlay .crop-box-label {
  pointer-events: auto !important;
  cursor: grab !important;
  touch-action: none;
}

.pro-boxes-overlay .crop-box-label:active {
  cursor: grabbing !important;
}

.pro-boxes-overlay .crop-handle {
  pointer-events: auto !important;
  touch-action: none;
}

/* When Boxes Locked (Interact with YouTube Video mode), clicks pass straight to YouTube player! */
.pro-boxes-overlay.boxes-locked .crop-box,
.pro-boxes-overlay.boxes-locked .crop-drag-body,
.pro-boxes-overlay.boxes-locked .crop-box-label,
.pro-boxes-overlay.boxes-locked .crop-handle {
  pointer-events: none;
}

.pro-boxes-overlay.boxes-locked .crop-box {
  border-style: dashed;
  opacity: 0.72;
}

.pro-boxes-overlay.boxes-locked .crop-handle {
  opacity: 0;
}

.pro-lock-boxes-btn {
  flex-shrink: 0;
  font-size: 0.8rem;
  padding: 0.42rem 0.9rem;
}

.pro-lock-boxes-btn.is-locked {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  border-color: transparent;
}

/* Live Start / Stop Clip Recorder Bar */
.pro-recorder-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(109, 64, 198, 0.08);
}

.pro-rec-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.btn-rec-start {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  border-radius: 9999px;
  padding: 0.62rem 1.3rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.34), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-rec-start:hover {
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.44);
}

.btn-rec-start.is-recording {
  background: linear-gradient(135deg, #b91c1c 0%, #2563eb 100%);
  animation: recGlow 1.3s ease-in-out infinite;
}

@keyframes recGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55), 0 6px 18px rgba(239, 68, 68, 0.35);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0), 0 8px 22px rgba(37, 99, 235, 0.45);
  }
}

.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  flex-shrink: 0;
}

.btn-rec-start.is-recording .rec-dot {
  border-radius: 2px;
  background: #fef08a;
}

.pro-rec-cancel {
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
}

.pro-rec-status-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pro-rec-timer {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 800;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.34);
  padding: 4px 10px;
  border-radius: 9999px;
}

.pro-player-clock {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 10px;
  border-radius: 9999px;
}

.pro-rec-ready-pill {
  font-size: 0.8rem;
  font-weight: 800;
  color: #1e40af;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(37, 99, 235, 0.35);
  padding: 4px 11px;
  border-radius: 9999px;
}

/* Simple 4-Step Live Studio Guide Bar */
.live-steps-bar {
  padding: 0.78rem 1.15rem;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.live-step-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.36rem 0.82rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(139, 92, 246, 0.16);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.live-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.16);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.live-step-item.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.live-step-item.active .live-step-num {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.live-step-item.done {
  background: rgba(37, 99, 235, 0.16);
  color: #1e40af;
  border-color: rgba(37, 99, 235, 0.34);
}

.live-step-item.done .live-step-num {
  background: #2563eb;
  color: #ffffff;
}

.live-step-arrow {
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.85rem;
  opacity: 0.6;
}

@media (max-width: 640px) {
  .live-step-arrow {
    display: none;
  }
}

.crop-box {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 10px;
  cursor: move;
  touch-action: none;
  box-sizing: border-box;
  will-change: transform, width, height;
}

.crop-box-cam {
  z-index: 6;
  border: 2.5px solid #2563eb;
  background: rgba(37, 99, 235, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65), 0 6px 20px rgba(37, 99, 235, 0.35);
}

.crop-box-stream {
  z-index: 4;
  border: 2.5px solid #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55), 0 6px 20px rgba(2, 132, 199, 0.28);
}

.crop-box.is-dragging {
  z-index: 9;
}

.crop-box-label {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 2px 8px;
  border-radius: 9999px;
  color: #ffffff;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.label-cam {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.label-stream {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
}

/* Corner Resize Handles (large hit area for touch + desktop) */
.crop-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid currentColor;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.crop-box-cam .crop-handle {
  color: #2563eb;
}

.crop-box-stream .crop-handle {
  color: #0284c7;
}

.handle-nw {
  top: -8px;
  left: -8px;
  cursor: nwse-resize;
}

.handle-ne {
  top: -8px;
  right: -8px;
  cursor: nesw-resize;
}

.handle-sw {
  bottom: -8px;
  left: -8px;
  cursor: nesw-resize;
}

.handle-se {
  bottom: -8px;
  right: -8px;
  cursor: nwse-resize;
}

.pro-presets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.preset-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
}

/* 9:16 Live Split-Screen Phone Preview */
.pro-phone-frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pro-preview-canvas {
  width: 100%;
  max-width: 245px;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  background: #0f0a1d;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(45, 20, 95, 0.25);
  display: block;
}

/* Pro Settings Card */
.pro-settings-card {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.pro-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
  align-items: start;
}

.pro-create-btn {
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

/* Instagram Follow Unlock Modal */
.pro-unlock-card {
  max-width: 470px;
}

.pro-unlock-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.12);
}

.pro-unlock-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.pro-unlock-desc {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.unlock-step {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  margin-bottom: 0.9rem;
  transition: opacity 0.22s ease;
}

.unlock-step-locked {
  opacity: 0.52;
}

.unlock-step-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.72rem;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-insta-follow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  color: #ffffff;
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 48%, #8134af 100%);
  box-shadow: 0 8px 20px rgba(221, 42, 123, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.45);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-insta-follow:hover {
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 10px 24px rgba(221, 42, 123, 0.36);
}

.insta-wait-status {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}

.insta-wait-status.ready {
  color: #1d4ed8;
}

.insta-verify-row {
  display: flex;
  gap: 0.55rem;
}

.insta-handle-input {
  flex: 1;
  min-width: 0;
  padding: 0.68rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(139, 92, 246, 0.28);
  background: #ffffff;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
}

.insta-handle-input:focus {
  border-color: var(--accent);
}

.insta-verify-error {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #dc2626;
}

@media (max-width: 860px) {
  .pro-editor-grid {
    grid-template-columns: 1fr;
  }

  .pro-vod-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .studio-pill-bar {
    width: 100%;
    gap: 6px;
    padding: 5px;
  }

  .studio-pill {
    flex: 1 1 0;
    font-size: 0.78rem;
    padding: 0.52rem 0.45rem;
    gap: 4px;
    white-space: nowrap;
    text-align: center;
  }

  .pro-lock-tag {
    font-size: 0.6rem;
    padding: 1px 4px;
  }

  .insta-verify-row {
    flex-direction: column;
  }
}

/* =====================================================================
   PRO STUDIO LIVE CHAT HYPE RADAR
   ===================================================================== */
.pro-radar-card {
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pro-radar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pro-radar-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pro-radar-toggle {
  font-size: 0.78rem;
  padding: 0.34rem 0.8rem;
}

.pro-radar-chart-wrap {
  position: relative;
  width: 100%;
  height: 145px;
}

.pro-radar-spikes {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pro-radar-empty {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.52);
  border: 1px dashed rgba(139, 92, 246, 0.28);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  text-align: center;
}

.radar-spike-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.74);
  border: 1.5px solid rgba(168, 85, 247, 0.32);
  border-radius: var(--radius-sm);
  padding: 0.62rem 0.88rem;
  box-shadow: 0 4px 14px rgba(109, 64, 198, 0.09);
}

.radar-spike-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.radar-spike-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
}

.radar-spike-ago {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.12);
  padding: 2px 7px;
  border-radius: 9999px;
}

.radar-spike-tags {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
}

.radar-spike-sample {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-clip-spike {
  flex-shrink: 0;
  border: none;
  border-radius: 9999px;
  padding: 0.48rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-clip-spike:hover {
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.48);
}


/* =============================================================
   AUTO-VIRAL CHAT SPIKES & VIRAL PEAK CARDS
   ============================================================= */
.auto-viral-card {
  border: 1px solid rgba(239, 68, 68, 0.25);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.08);
}

.viral-peaks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.15rem;
}

.viral-peak-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.viral-peak-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.viral-peak-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.viral-rank-badge {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.viral-score-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.22);
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
}

.viral-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f0a1c;
  border-radius: 12px;
  overflow: hidden;
}

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

.viral-hook-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 10, 28, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ffedd5;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.viral-duration-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.viral-info-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.viral-chat-sample {
  font-size: 0.82rem;
  color: var(--text-main);
  background: rgba(243, 244, 246, 0.7);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border-left: 3px solid #ef4444;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viral-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
}

.viral-tag-pill {
  background: rgba(147, 51, 234, 0.08);
  color: #7e22ce;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.viral-autobox-pill {
  background: rgba(37, 99, 235, 0.10);
  color: #1e40af;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.viral-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-generate-viral {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-generate-viral:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.48);
}

.btn-generate-viral:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-edit-peak {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text-main);
  padding: 0.65rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-edit-peak:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* =====================================================================
   MANDATORY 2-TASK SITE UNLOCK GATE & LIVE VERIFIER
   ===================================================================== */
.unlock-gate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 12, 28, 0.82);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px);
  padding: 1.25rem;
  overflow-y: auto;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.unlock-gate-card {
  max-width: 490px;
  width: 100%;
  border-radius: 24px;
  padding: 2.2rem 2rem 1.8rem;
  background: rgba(15, 20, 32, 0.96);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
  animation: gatePopIn 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gatePopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.unlock-gate-header {
  text-align: center;
  margin-bottom: 1.35rem;
}

.unlock-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
  margin-bottom: 0.75rem;
}

.gate-lock-icon {
  font-size: 0.85rem;
}

.unlock-gate-title {
  font-size: 1.62rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.unlock-gate-subtitle {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

.unlock-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 1.25rem;
}

.unlock-task-card {
  background: rgba(22, 30, 49, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.unlock-task-card.active-working {
  border-color: #2563eb;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.unlock-task-card.task-done {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.15);
}

.unlock-task-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.unlock-task-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yt-icon {
  background: rgba(255, 0, 0, 0.09);
}

.ig-icon {
  background: rgba(221, 42, 123, 0.09);
}

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

.unlock-task-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.unlock-task-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
}

.unlock-task-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

.task-status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.2s ease;
}

.task-status-pill.ready {
  background: rgba(245, 158, 11, 0.18);
  color: #d97706;
}

.task-status-pill.verified {
  background: rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
}

.btn-task-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.74rem 1rem;
  border-radius: 11px;
  font-size: 0.91rem;
  font-weight: 800;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-yt {
  background: linear-gradient(135deg, #ff0000 0%, #d90429 100%);
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.28);
}

.btn-yt:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.38);
}

.btn-ig {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
  box-shadow: 0 4px 14px rgba(221, 42, 123, 0.28);
}

.btn-ig:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(221, 42, 123, 0.38);
}

.task-handle-wrap {
  margin-top: 0.65rem;
}

.task-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.72rem 0.95rem;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 15, 25, 0.88);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #f8fafc;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.task-input::placeholder {
  color: #64748b;
  font-weight: 500;
}

.task-input:focus {
  border-color: #3b82f6;
  background: rgba(11, 15, 25, 0.98);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.task-hint-status {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #60a5fa;
  text-align: center;
}

.task-hint-status.ready {
  color: #1d4ed8;
}

.unlock-verifier-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.verifier-live-card {
  background: #0f172a;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.verifier-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
  margin-top: 2px;
}

.verifier-steps-log {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.81rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.verifier-step-line {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.verifier-step-line.active {
  color: #38bdf8;
  font-weight: 700;
}

.verifier-step-line.done {
  color: #60a5fa;
  font-weight: 700;
}

.btn-verify-master {
  width: 100%;
  padding: 0.95rem 1.4rem;
  border: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.btn-verify-master:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

.btn-verify-master:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-verify-master.btn-verify-pulse {
  animation: pulseVerifyBtn 1.4s infinite ease-in-out;
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.7) !important;
}

@keyframes pulseVerifyBtn {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.025);
  }

  100% {
    transform: scale(1);
  }
}

.unlock-gate-error {
  font-size: 0.82rem;
  font-weight: 700;
  color: #dc2626;
  text-align: center;
  margin: 0;
  background: rgba(239, 68, 68, 0.08);
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.22);
}

.unlock-gate-footer-note {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
}

@media (max-width: 600px) {
  .unlock-gate-card {
    padding: 1.5rem 1.25rem 1.3rem;
    border-radius: 18px;
  }

  .unlock-gate-title {
    font-size: 1.35rem;
  }
}

/* =====================================================================
   CLIP EXPORT RATE LIMIT BADGE (3 CLIPS PER 4 HOURS)
   ===================================================================== */
.quota-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.95rem;
}

.rate-limit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(139, 92, 246, 0.28);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s ease;
  user-select: none;
}

.quota-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.65);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.rate-limit-pill.depleted {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(254, 242, 242, 0.95);
  color: #b91c1c;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15);
}

.rate-limit-pill.depleted .quota-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}

/* ==========================================================================
   Telegram 6-Hour Access Key System & Live Studio Enhancements
   ========================================================================== */

.global-key-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(13, 17, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.global-key-pill:hover {
  border-color: rgba(37, 99, 235, 0.45);
  color: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 14px rgba(37, 99, 235, 0.2);
}

.global-key-pill.unlocked {
  background: rgba(13, 24, 28, 0.92);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 16px rgba(34, 197, 94, 0.14);
}

.global-key-pill .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.65);
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.global-key-pill.unlocked .live-dot {
  background: #22c55e !important;
  box-shadow: 0 0 8px #22c55e !important;
}

.key-countdown-text {
  letter-spacing: -0.01em;
  line-height: 1;
}

.live-key-card {
  max-width: 420px;
  width: 90%;
  padding: 1.5rem 1.35rem;
  border-radius: 20px;
  background: rgba(10, 16, 28, 0.94);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 24px rgba(37, 99, 235, 0.15);
  animation: modalPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.live-key-header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.18s ease;
}

.live-key-header-link:hover {
  color: #60a5fa;
}

.live-key-header-link .tg-svg-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.live-key-header-link:hover .tg-svg-icon {
  transform: scale(1.1);
}

.live-key-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
}

.live-key-title {
  margin: 0.85rem 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
}

.live-key-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.btn-telegram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.38);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  margin-bottom: 1.25rem;
}

.btn-telegram-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.48);
}

.live-key-input-wrap {
  position: relative;
  width: 100%;
}

.live-key-input-wrap input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  background: rgba(6, 10, 18, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.live-key-input-wrap input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.live-key-footer-note {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
}

.pro-key-status-row {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.live-key-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.35);
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e3a8a;
}

.key-countdown-text {
  font-family: var(--font-mono, monospace);
  color: #1e40af;
  font-weight: 800;
}

.btn-renew-link {
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: 4px;
}

/* 📺 Live Player Frame */
.pro-yt-player-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0716;
  box-shadow: 0 8px 24px rgba(45, 20, 95, 0.2);
}

.pro-live-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   UNIFIED BIG LIVE STAGE & ONE-CLICK RECORDING UI
   ========================================================================== */

.pro-big-player-card {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 2rem auto;
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(9, 14, 24, 0.88);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.pro-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding: 0 0.25rem;
}

.pro-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}

.pro-title-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pro-stream-title {
  margin: 0;
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 580px;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.pro-stream-author {
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

/* BIG 16:9 Widescreen Stage */
.pro-big-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.pro-yt-embed-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.pro-yt-embed-wrap iframe,
.pro-live-iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block;
}

/* Overlay with Pointer-Events (ends above YouTube 48px bottom control bar so settings gear is never covered) */
.pro-boxes-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 48px;
  width: 100%;
  height: calc(100% - 48px);
  z-index: 10;
  pointer-events: none;
}

.pro-boxes-overlay .crop-box {
  pointer-events: none !important;
}

.pro-boxes-overlay .crop-drag-body {
  pointer-events: none !important;
}

.pro-boxes-overlay .crop-box-label {
  pointer-events: auto !important;
  cursor: grab !important;
}

.pro-boxes-overlay .crop-box-label:active {
  cursor: grabbing !important;
}

.pro-boxes-overlay .crop-handle {
  pointer-events: auto !important;
}

/* Quick Corner Presets Toolbar (Docked cleanly below the big video in Obsidian Dark) */
.pro-stage-presets-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 0.75rem;
  padding: 0.65rem 0.95rem;
  border-radius: 14px;
  background: rgba(10, 14, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.preset-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.preset-buttons-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.stage-mini-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 24, 38, 0.9);
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.stage-mini-pill:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.stage-mini-pill:active {
  transform: translateY(1px);
}

/* Dual Box Tabs & Active Focus Styling */
.box-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.box-dot.cam-dot {
  background: #a855f7;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.6);
}

.box-dot.stream-dot {
  background: #0284c7;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.6);
}

.vod-dual-box-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

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

.crop-box.is-active-box {
  z-index: 10 !important;
}

.crop-box-cam.is-active-box {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.45), 0 8px 24px rgba(37, 99, 235, 0.4);
}

.crop-box-stream.is-active-box {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.45), 0 8px 24px rgba(2, 132, 199, 0.4);
}

.stage-mini-pill:hover,
.stage-mini-pill:active {
  background: rgba(37, 99, 235, 0.15);
  border-color: #2563eb;
  color: #60a5fa;
  transform: translateY(-1px);
}

/* Live Compact Toolbar Directly Below Big Video */
.pro-timeline-control-bar {
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: rgba(10, 14, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pro-live-compact-bar {
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: rgba(10, 14, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pro-live-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.pro-live-buttons-row .btn-jump {
  flex: 1;
  max-width: 220px;
  padding: 0.65rem 1.25rem;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
}

.pro-live-buttons-row .btn-1080p {
  background: rgba(14, 21, 37, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-live-buttons-row .btn-1080p:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.7);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.pro-live-buttons-row .btn-1080p:active {
  transform: translateY(1px);
}

/* Header Toggle Boxes Button (Obsidian Stealth with glowing state) */
.btn-toggle-boxes {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.btn-toggle-boxes:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-toggle-boxes.active-settings-mode {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(249, 115, 22, 0.25));
  border-color: rgba(234, 179, 8, 0.6);
  color: #fef08a;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.3);
}

.pro-scrub-track-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.live-only-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.45rem 0.85rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
}

.live-realtime-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fca5a5;
  letter-spacing: 0.04em;
}

.live-dot-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: liveEdgePulse 1.6s infinite ease-in-out;
}

@keyframes liveEdgePulse {
  0% { transform: scale(0.9); opacity: 0.65; box-shadow: 0 0 4px #ef4444; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px #ef4444; }
  100% { transform: scale(0.9); opacity: 0.65; box-shadow: 0 0 4px #ef4444; }
}

.btn-jump.active-live {
  background: rgba(220, 38, 38, 0.22) !important;
  border-color: rgba(239, 68, 68, 0.55) !important;
  color: #fca5a5 !important;
}

.time-readout {
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
  font-weight: 800;
  color: #38bdf8;
  min-width: 65px;
  letter-spacing: 0.02em;
  user-select: none;
}

.time-readout-live {
  font-family: var(--font-mono, monospace);
  font-size: 0.84rem;
  font-weight: 700;
  color: #94a3b8;
  min-width: 65px;
  text-align: right;
  white-space: nowrap;
  letter-spacing: 0.02em;
  user-select: none;
}

.pro-scrubber-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 4px;
}

.pro-scrubber-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 9px;
  border-radius: 9999px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  touch-action: none;
  transition: all 0.2s ease;
}

.pro-scrubber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #38bdf8;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pro-scrubber-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 16px rgba(56, 189, 248, 1);
}

.pro-scrubber-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.25);
}

.pro-scrubber-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #38bdf8;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
  cursor: grab;
}

/* VOD Timeline & Scrubber Customization */
.vod-timeline-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.pro-playback-buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.playback-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.btn-jump {
  padding: 0.52rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #182234 0%, #0c1220 100%);
  color: #f1f5f9;
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.16s ease;
  user-select: none;
}

.btn-jump:hover {
  background: linear-gradient(180deg, #253147 0%, #121a2c 100%);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.playback-btn-group .btn-jump {
  flex: 1;
  max-width: 120px;
  text-align: center;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.playback-btn-group .btn-play-pause {
  max-width: 160px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: rgba(96, 165, 250, 0.4);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.playback-btn-group .btn-play-pause:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.5);
}

.vod-window-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.vod-window-icon {
  font-size: 0.95rem;
}

.vod-window-label {
  font-weight: 600;
  color: #cbd5e1;
}

.vod-window-time {
  color: #38bdf8;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.02em;
}

.vod-master-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35) !important;
}

.vod-master-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.5) !important;
}

.btn-live-edge {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}

.btn-lock-moment {
  background: rgba(56, 189, 248, 0.12);
  color: #0284c7;
  border-color: rgba(56, 189, 248, 0.4);
  font-weight: 800;
}

.btn-lock-moment:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #0369a1;
  border-color: #0284c7;
}

.btn-lock-moment.active-locked {
  background: #0284c7;
  color: #ffffff;
  border-color: #0369a1;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.5);
  animation: pulse-border 1.5s infinite;
}

.recording-window-preview {
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

.recording-window-preview strong {
  color: #93c5fd;
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif);
  font-weight: 700;
}

/* Bottom Recording Panel */
.pro-recording-panel {
  margin-top: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.pro-settings-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.pro-mini-setting {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.setting-caption {
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

.pro-mini-setting .choice-pill {
  background: rgba(15, 21, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 9px;
  padding: 0.55rem 0.95rem;
  transition: all 0.16s ease;
}

.pro-mini-setting .choice-pill:hover {
  background: rgba(24, 34, 53, 0.95);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.pro-mini-setting .choice-pill.active {
  background: linear-gradient(180deg, #242f44 0%, #101726 100%) !important;
  border: 1.5px solid rgba(96, 165, 250, 0.7) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

.simple-select {
  background: rgba(15, 21, 33, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  color: #f1f5f9;
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
}

.pro-master-record-btn {
  width: 100%;
  padding: 1rem 1.75rem;
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 26px rgba(239, 68, 68, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.pro-master-record-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 34px rgba(239, 68, 68, 0.55);
}

.rec-dot-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  animation: recPulse 1.2s infinite ease-in-out;
  display: inline-block;
  margin-right: 6px;
}

@keyframes recPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 14px rgba(239, 68, 68, 1);
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE PERFECTION FOR LIVE STUDIO (SYSTEMATIC & UNCLUSTERED)
   ========================================================================== */

@media (max-width: 768px) {

  /* Clean Hero & Badges on Mobile */
  .pro-hero {
    margin-bottom: 1rem;
  }

  .pro-hero-badge {
    font-size: 0.68rem;
    padding: 4px 10px;
    letter-spacing: 0.3px;
    text-align: center;
  }

  .pro-hero-desc {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
  }

  .live-key-active-pill {
    font-size: 0.78rem;
    padding: 4px 10px;
    gap: 6px;
  }

  /* Main Stage Container Padding */
  .pro-big-player-card {
    padding: 0.75rem 0.6rem;
    border-radius: 16px;
    margin-bottom: 1.25rem;
  }

  /* Stream Title & Overlay Toggle Header on Mobile */
  .pro-player-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "badge toggle"
      "title title";
    align-items: center;
    gap: 0.45rem 0.5rem;
    margin-bottom: 0.65rem;
  }

  .pro-header-info {
    display: contents;
  }

  #pro-live-badge {
    grid-area: badge;
    justify-self: start;
    font-size: 0.72rem;
    padding: 3px 9px;
  }

  .pro-overlay-toggle-wrap {
    grid-area: toggle;
    justify-self: end;
  }

  #btn-toggle-overlay-mode {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    white-space: nowrap;
  }

  .pro-title-wrap {
    grid-area: title;
    width: 100%;
    margin-top: 0.15rem;
  }

  .pro-stream-title {
    font-size: 0.92rem;
    max-width: 100%;
    line-height: 1.3;
  }

  .pro-stream-author {
    font-size: 0.75rem;
  }

  /* Stage & Floating Presets */
  .pro-big-stage {
    border-radius: 10px;
  }

  /* Preset Toolbar: Clean 5-Button Mobile Grid */
  .pro-stage-presets-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 0.55rem 0.65rem;
    margin-top: 0.55rem;
    border-radius: 10px;
  }

  .preset-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #64748b;
  }

  .preset-buttons-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    width: 100%;
  }

  .stage-mini-pill {
    padding: 7px 2px;
    font-size: 0.68rem;
    text-align: center;
    justify-content: center;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Dual Crop Boxes on Mobile */
  .crop-box-label {
    font-size: 0.64rem;
    padding: 2px 6px;
    top: 4px;
    left: 4px;
  }

  .crop-handle {
    width: 20px;
    height: 20px;
    border-width: 3px;
  }

  .crop-handle::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
  }

  /* DVR Timeline Bar on Mobile */
  .pro-timeline-control-bar,
  .pro-live-compact-bar {
    margin-top: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 12px;
  }

  .pro-live-buttons-row {
    display: flex;
    gap: 6px;
    width: 100%;
  }

  .pro-live-buttons-row .btn-jump {
    flex: 1;
    max-width: none;
    padding: 0.55rem 0.35rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .btn-toggle-boxes {
    padding: 0.32rem 0.65rem;
    font-size: 0.72rem;
  }

  .pro-boxes-overlay {
    bottom: 44px !important;
    height: calc(100% - 44px) !important;
  }

  .playback-btn-group {
    display: flex;
    gap: 4px;
    width: 100%;
  }

  .playback-btn-group .btn-jump {
    flex: 1;
    padding: 0.48rem 0.2rem;
    font-size: 0.72rem;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 8px;
    min-width: 0;
  }

  .playback-btn-group .btn-play-pause {
    flex: 1.35;
    font-size: 0.74rem;
  }

  .vod-window-card {
    padding: 0.45rem 0.65rem;
    font-size: 0.74rem;
    gap: 5px;
  }

  .vod-window-time {
    font-size: 0.76rem;
  }

  .time-readout,
  .time-readout-live {
    font-size: 0.78rem;
    min-width: 54px;
  }

  .recording-window-preview {
    width: 100%;
    text-align: center;
    padding: 8px 10px;
    background: rgba(14, 20, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    font-size: 0.8rem;
  }

  /* Settings Panel Systematic Stack */
  .pro-recording-panel {
    margin-top: 0.75rem;
    padding: 1rem 0.85rem;
    border-radius: 14px;
    gap: 0.95rem;
  }

  .pro-settings-flex {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }

  .pro-mini-setting {
    width: 100%;
    gap: 0.35rem;
  }

  .setting-caption {
    font-size: 0.72rem;
  }

  /* Perfect Symmetric Grid for Each Picker on Mobile (Live Clipper + Manual Clipper) */
  #pro-pos-picker,
  #vod-pos-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }

  #pro-pos-picker button:nth-child(3),
  #vod-pos-picker button:nth-child(3) {
    grid-column: 1 / -1;
  }

  #pro-ratio-picker,
  #vod-ratio-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
  }

  #pro-duration-picker,
  #vod-duration-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    width: 100%;
  }

  #pro-res-picker,
  #vod-res-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }

  .pro-mini-setting .choice-pill {
    padding: 9px 4px;
    font-size: 0.8rem;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .compact-selects,
  #pro-sub-style,
  #vod-sub-style {
    width: 100%;
    height: 44px;
    font-size: 0.86rem;
    padding: 0 12px;
    border-radius: 9px;
  }

  .pro-master-record-btn {
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    border-radius: 12px;
  }
    padding: 0.95rem 1rem;
    font-size: 1.05rem;
    border-radius: 12px;
  }
}

/* Compact Smartphones (iPhone SE, Galaxy A, screens <= 420px) */
@media (max-width: 420px) {
  .pro-big-player-card {
    padding: 0.6rem 0.45rem;
    border-radius: 14px;
  }

  .stage-mini-pill {
    font-size: 0.63rem;
    padding: 6px 1px;
  }

  .btn-jump {
    font-size: 0.67rem;
    padding: 7px 1px;
  }

  .pro-mini-setting .choice-pill {
    font-size: 0.73rem;
    padding: 7px 2px;
  }

  .crop-handle {
    width: 22px;
    height: 22px;
  }

  .crop-handle::after {
    inset: -14px;
  }

  .crop-box-label {
    font-size: 0.6rem;
    padding: 2px 5px;
  }
}