/* ==========================================================================
   EPIC UTTARAKHAND - BROADCAST VIDEO NEWS EDITOR STUDIO (1920x1080 & 1080x1920)
   Professional Newsroom Graphic Packaging: Logo Watermark, Headline Lower-Third,
   Animated Breaking Ticker & Dynamic Multi-Aspect Canvas Stage.
   ========================================================================== */

/* Main Video Editor Container */
.video-editor-container {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 1.25rem;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .video-editor-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   1. LIVE BROADCAST VIDEO STAGE & CANVAS PREVIEW
   ========================================================================== */
.editor-stage-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.editor-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.editor-stage-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.editor-stage-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.editor-stage-subtitle {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Standard Screen Layout Aspect Ratio Switcher & Quick Upload */
.editor-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.editor-quick-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #030712;
  background: linear-gradient(135deg, var(--accent-cyan), #00b4d8);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.45);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.editor-quick-upload-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.7);
}

.editor-aspect-tabs {
  display: flex;
  align-items: center;
  background: rgba(8, 14, 26, 0.95);
  padding: 0.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  gap: 0.25rem;
}

.editor-aspect-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.editor-aspect-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.editor-aspect-btn.active {
  background: var(--accent-cyan);
  color: #030712;
  box-shadow: var(--shadow-glow-cyan);
  font-weight: 800;
}

/* Video Canvas Stage Frame */
.editor-video-stage-frame {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 229, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.editor-video-stage-frame.drag-active {
  border: 2.5px dashed var(--accent-cyan) !important;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.6), inset 0 0 30px rgba(0, 229, 255, 0.3) !important;
}

.editor-stage-drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 25;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 800;
  pointer-events: none;
}

.editor-video-stage-frame.drag-active .editor-stage-drop-overlay {
  display: flex;
}

.editor-video-stage-frame.aspect-16-9 {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 100%;
}

.editor-video-stage-frame.aspect-9-16 {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 380px;
  height: auto;
}

.editor-video-stage-frame.aspect-1-1 {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 480px;
}

/* Base Video Player inside Studio Stage */
.editor-stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: #000;
}

/* Video Stage Empty Placeholder */
.editor-stage-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  z-index: 2;
  background: linear-gradient(135deg, #070d18 0%, #0c1424 100%);
  padding: 1.5rem;
  text-align: center;
}

/* ==========================================================================
   2. BROADCAST OVERLAYS (WATERMARK, HEADLINE, TICKER)
   ========================================================================== */

/* 2.1 LOGO WATERMARK LAYER (ONLY LOGO, 1 PADDING) */
.stage-watermark-overlay {
  position: absolute;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2.5px; /* 1 padding */
  background: rgba(8, 12, 20, 0.85);
  border: 1.5px solid rgba(0, 229, 255, 0.45);
  border-radius: 50%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 229, 255, 0.3);
  user-select: none;
  pointer-events: none;
  transition: all 0.25s ease;
}

/* Positions - Default Top Right at same height as top-left location */
.stage-watermark-overlay.pos-top-right {
  top: 0.65rem;
  right: 0.65rem;
}
.stage-watermark-overlay.pos-top-left {
  top: 0.65rem;
  left: 0.65rem;
}
.stage-watermark-overlay.pos-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  min-width: 150px;
  min-height: 150px;
  max-width: 150px;
  max-height: 150px;
  padding: 0;
  border-radius: 50%;
  border: 2.5px solid rgba(0, 229, 255, 0.85);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.6), 0 0 50px rgba(245, 158, 11, 0.45), inset 0 0 15px rgba(0, 0, 0, 0.75);
}
.stage-watermark-overlay.pos-bottom-right {
  bottom: 2.6rem;
  right: 0.65rem;
}
.stage-watermark-overlay.pos-bottom-left {
  bottom: 2.6rem;
  left: 0.65rem;
}

.stage-watermark-logo-img {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-gold);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
  display: block;
  flex-shrink: 0;
}

.stage-watermark-overlay.pos-center .stage-watermark-logo-img {
  width: 150px !important;
  height: 150px !important;
  min-width: 150px !important;
  min-height: 150px !important;
  max-width: 150px !important;
  max-height: 150px !important;
  border-radius: 50%;
  object-fit: cover !important;
  box-shadow: none;
}

/* 2.2 TOP-LEFT LOCATION & CATEGORY OVERLAY (EXACT SAME HEIGHT AS LOGO) */
.stage-top-meta-overlay {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  pointer-events: none;
  max-width: calc(100% - 60px); /* Leaves space for top-right logo */
  flex-wrap: wrap;
}

.stage-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(8, 14, 26, 0.95);
  border: 1px solid rgba(0, 229, 255, 0.6);
  color: var(--accent-cyan);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.14rem 0.48rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.stage-category-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: var(--accent-gold);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.12rem 0.40rem;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

/* 2.3 HEADLINE LOWER THIRD BANNER OVERLAY (DECREASED COMPACT HEIGHT) */
.stage-headline-overlay {
  position: absolute;
  bottom: 2.5rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 14;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: all 0.3s ease;
}

.editor-video-stage-frame.no-ticker .stage-headline-overlay {
  bottom: 0.55rem;
}

.stage-headline-banner {
  background: linear-gradient(135deg, rgba(8, 14, 26, 0.96) 0%, rgba(15, 23, 42, 0.92) 100%);
  border-left: 3px solid var(--accent-red);
  border-radius: var(--radius-sm);
  padding: 0.22rem 0.55rem; /* Decreased compact height */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.8);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.85);
  max-width: 92%;
}

/* Headline Themes */
.stage-headline-banner.theme-red {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, rgba(20, 6, 10, 0.96) 0%, rgba(35, 10, 18, 0.92) 100%);
  border-top-color: rgba(239, 68, 68, 0.4);
}
.stage-headline-banner.theme-cyan {
  border-left-color: var(--accent-cyan);
  background: linear-gradient(135deg, rgba(6, 18, 28, 0.96) 0%, rgba(10, 30, 48, 0.92) 100%);
  border-top-color: rgba(0, 229, 255, 0.4);
}
.stage-headline-banner.theme-gold {
  border-left-color: var(--accent-gold);
  background: linear-gradient(135deg, rgba(26, 18, 4, 0.96) 0%, rgba(38, 26, 6, 0.92) 100%);
  border-top-color: rgba(245, 158, 11, 0.4);
}
.stage-headline-banner.theme-obsidian {
  border-left-color: #94a3b8;
  background: rgba(8, 12, 20, 0.96);
  border-top-color: rgba(255, 255, 255, 0.12);
}

.stage-headline-text {
  font-size: 0.76rem; /* Decreased font size for compact height */
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 2.4 BROADCAST BREAKING NEWS TICKER OVERLAY (MARQUEE) */
.stage-ticker-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 16;
  height: 34px;
  background: linear-gradient(90deg, #1c080d 0%, #0b111e 25%, #080c14 100%);
  border-top: 1.5px solid var(--accent-red);
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.stage-ticker-badge {
  background: linear-gradient(135deg, #ef4444, #ff6d00);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 0.75rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  z-index: 5;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.stage-ticker-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  padding-left: 0.75rem;
}

.stage-ticker-content {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  animation: stageTickerScroll 18s linear infinite;
}

@keyframes stageTickerScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Video Stage Player Controls Bar */
.editor-stage-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(8, 14, 26, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  flex-wrap: wrap;
}

.stage-playback-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stage-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: none;
  color: #030712;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-glow-cyan);
  transition: all var(--transition-fast);
}
.stage-play-btn:hover {
  transform: scale(1.08);
}

.stage-time-display {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.stage-scrub-bar {
  flex: 1;
  min-width: 140px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

/* ==========================================================================
   3. EDITOR CONTROLS PANEL (RIGHT COLUMN / SIDEBAR)
   ========================================================================== */
.editor-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(8, 14, 26, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  overflow-y: auto;
  max-height: 720px;
}

/* Control Navigation Tabs (Watermark, Title, Ticker, Media) */
.editor-tool-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.editor-tool-tab {
  padding: 0.45rem 0.3rem;
  font-size: 0.70rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-muted);
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.editor-tool-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.editor-tool-tab.active {
  background: var(--accent-cyan);
  color: #030712;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
  font-weight: 800;
}

/* Controls Tab Content Blocks */
.editor-tool-content-block {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  animation: fadeIn 0.25s ease;
}

.editor-tool-content-block.active {
  display: flex;
}

/* Upload Dropzone & Media Ingestion Card */
.editor-upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: rgba(0, 229, 255, 0.03);
  border: 1.5px dashed rgba(0, 229, 255, 0.35);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 0.4rem;
}

.editor-upload-dropzone:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
  transform: translateY(-1px);
}

.editor-upload-dropzone .dropzone-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.editor-upload-dropzone .dropzone-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
}

.editor-upload-dropzone .dropzone-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.video-loaded-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--accent-green);
  font-size: 0.74rem;
  font-weight: 800;
  width: 100%;
  justify-content: center;
}

.stream-url-input-row {
  display: flex;
  gap: 0.4rem;
}

.stream-url-input-row input {
  flex: 1;
}

.stream-url-input-row .btn-load-stream {
  padding: 0.45rem 0.75rem;
  background: var(--accent-cyan);
  color: #030712;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.76rem;
  cursor: pointer;
  white-space: nowrap;
}

.editor-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.editor-field-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-field-group input[type="text"],
.editor-field-group textarea,
.editor-field-group select {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.82rem;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.editor-field-group input[type="text"]:focus,
.editor-field-group textarea:focus,
.editor-field-group select:focus {
  border-color: var(--accent-cyan);
  outline: none;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Position Selector Grid */
.position-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.position-picker-btn {
  padding: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.position-picker-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.position-picker-btn.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Theme Color Swatches */
.theme-picker-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.theme-swatch-btn {
  padding: 0.35rem 0.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 800;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-swatch-btn.red { background: rgba(239, 68, 68, 0.2); color: #ef4444; border-color: rgba(239, 68, 68, 0.4); }
.theme-swatch-btn.cyan { background: rgba(0, 229, 255, 0.2); color: var(--accent-cyan); border-color: rgba(0, 229, 255, 0.4); }
.theme-swatch-btn.gold { background: rgba(245, 158, 11, 0.2); color: var(--accent-gold); border-color: rgba(245, 158, 11, 0.4); }
.theme-swatch-btn.obsidian { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.4); }

.theme-swatch-btn.active {
  transform: scale(1.04);
  box-shadow: 0 0 12px currentColor;
  font-weight: 900;
}

/* Toggle Switches */
.editor-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.editor-toggle-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.editor-switch-input {
  width: 36px;
  height: 20px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

/* Range Slider Control Cards & Numeric Pill Indicators */
.editor-slider-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.editor-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.editor-slider-header .slider-val-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.12);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 229, 255, 0.35);
}

.editor-range-slider {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  accent-color: var(--accent-cyan);
  cursor: pointer;
  transition: all 0.2s ease;
}

.editor-range-slider:hover {
  background: rgba(0, 229, 255, 0.25);
}

.editor-slider-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.editor-subheading {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

/* Sample Video Selector Pills */
.sample-videos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.sample-video-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.sample-video-btn:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--accent-cyan);
  color: #fff;
}

/* Primary Action Buttons */
.editor-actions-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-publish-broadcast {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--accent-cyan), #0099ff);
  color: #030712;
  font-weight: 800;
  font-size: 0.88rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-glow-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-publish-broadcast:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.6);
}

.btn-export-frame {
  width: 100%;
  padding: 0.55rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-export-frame:hover {
  background: var(--accent-gold);
  color: #030712;
  box-shadow: var(--shadow-glow-gold);
}

/* Video Editor Modal Fullscreen Overlay */
.video-editor-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.video-editor-modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.video-editor-modal-window {
  width: 100%;
  max-width: 1200px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-accent);
  background: var(--bg-primary);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 229, 255, 0.2);
  position: relative;
}

.video-editor-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all var(--transition-fast);
}

.video-editor-modal-close:hover {
  background: var(--accent-red);
  transform: scale(1.1);
}

/* 4. DISTRICT SELECTOR CHIPS GRID & UPLOAD DISTRICT PICKER */
.editor-district-select-group {
  background: rgba(0, 229, 255, 0.03);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.editor-select-main {
  width: 100%;
  background: rgba(3, 7, 18, 0.9) !important;
  border: 1.5px solid rgba(0, 229, 255, 0.4) !important;
  color: #fff !important;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.editor-district-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-height: 120px;
  overflow-y: auto;
  padding: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.editor-district-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.editor-district-chip-btn:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-1px);
}

.editor-district-chip-btn.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(0, 229, 255, 0.12));
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 800;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}

