/* ============================================================
   Export Engine — Panel, Frame Overlay, Button
   Glassmorphism · matches TWA design system
   ============================================================ */

/* ── Export button (AnimationBar header) — Add Clips style (primary CTA) ── */

.ae-export-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  background: var(--ae-accent, #1a6fd4);
  color: #fff;
  border: 1px solid rgba(26, 111, 212, 0.6);
  border-radius: 6px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 6px rgba(26, 111, 212, 0.35);
}

.ae-export-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.ae-export-btn:hover {
  background: var(--ae-accent-active, #1355a6);
  border-color: rgba(26, 111, 212, 0.9);
  box-shadow: 0 2px 10px rgba(26, 111, 212, 0.45);
}

.ae-export-btn.active {
  background: var(--ae-accent-active, #1355a6);
  border-color: rgba(26, 111, 212, 0.9);
  color: #fff;
}

/* ── Step 1 popover (aspect ratio) ───────────────────────────── */

/* Base popover — TWA design system (white glass, blur 24px) */
.exp-step1-popover {
  position: fixed;
  z-index: 99991;
  width: 248px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--panel-radius, 16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transition: opacity 220ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
    transform 220ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.exp-step1-popover.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Export popup: match animation bar aesthetic (blur, tone) */
.exp-export-popover {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 280px;
}

.exp-export-popover-res {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.exp-export-res-chips {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.exp-res-chip {
  flex: 1;
  padding: 8px 10px;
  gap: 0;
  font-size: 11px;
}

.exp-res-chip .exp-format-icon,
.exp-res-chip .exp-step1-chip-sub {
  display: none;
}

.exp-export-popover-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  background: var(--accent, #1a6fd4);
  color: #fff;
  border: 1px solid rgba(26, 111, 212, 0.6);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: var(--font-sans, system-ui);
}

.exp-export-popover-btn:hover {
  background: var(--ae-accent-active, #1355a6);
  border-color: rgba(26, 111, 212, 0.9);
}

.exp-export-popover-btn:disabled,
.exp-export-popover-btn.exp-export-popover-btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #94a3b8;
  border-color: rgba(148, 163, 184, 0.6);
}

.exp-export-popover-btn:disabled:hover,
.exp-export-popover-btn.exp-export-popover-btn--disabled:hover {
  background: #94a3b8;
  border-color: rgba(148, 163, 184, 0.6);
}

.exp-export-popover-hint {
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text-muted, #64748b);
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  line-height: 1.35;
}

.exp-step1-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #8e99a8);
  margin-bottom: 10px;
}

.exp-step1-chips {
  display: flex;
  gap: 8px;
}

/* Each chip is a tall card — landscape vs portrait visible at a glance */
.exp-step1-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-sans, system-ui);
  color: var(--text-secondary, #5a6777);
  cursor: pointer;
  transition: all 160ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
  letter-spacing: -0.01em;
}

.exp-step1-chip:hover {
  border-color: rgba(26, 111, 212, 0.35);
  background: rgba(26, 111, 212, 0.05);
  color: var(--accent, #1a6fd4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.exp-step1-chip.active {
  border-color: var(--accent, #1a6fd4);
  background: rgba(26, 111, 212, 0.08);
  color: var(--accent, #1a6fd4);
  box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.12);
}

/* Large ratio preview icons */
.exp-step1-chip .exp-ratio-icon {
  display: block;
  border: 2px solid currentColor;
  border-radius: 3px;
  opacity: 0.8;
  flex-shrink: 0;
  transition: opacity 160ms;
}

.exp-step1-chip:hover .exp-ratio-icon,
.exp-step1-chip.active .exp-ratio-icon {
  opacity: 1;
}

.exp-step1-chip .exp-ratio-icon-169 {
  width: 44px;
  height: 27px;
}

.exp-step1-chip .exp-ratio-icon-916 {
  width: 24px;
  height: 42px;
}

/* Sub-label below the ratio text */
.exp-step1-chip-sub {
  font-size: 9.5px;
  font-weight: 500;
  opacity: 0.6;
  letter-spacing: 0.01em;
}

/* Export format icons (MP4 / PNG) — same card style as ratio icons */
.exp-format-icon {
  display: block;
  border: 2px solid currentColor;
  border-radius: 3px;
  opacity: 0.8;
  flex-shrink: 0;
  transition: opacity 160ms;
  position: relative;
}

.exp-step1-chip:hover .exp-format-icon,
.exp-step1-chip.active .exp-format-icon {
  opacity: 1;
}

/* MP4: rectangle with play triangle */
.exp-format-icon-mp4 {
  width: 44px;
  height: 27px;
}

.exp-format-icon-mp4::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-45%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 14px;
  border-color: transparent transparent transparent currentColor;
}

/* PNG: rectangle with inner frame (image stack) */
.exp-format-icon-png {
  width: 44px;
  height: 27px;
}

.exp-format-icon-png::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
}

/* ── Export panel ────────────────────────────────────────────── */

.exp-panel {
  position: fixed;
  z-index: 99990;
  width: 304px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px) saturate(1.9);
  -webkit-backdrop-filter: blur(28px) saturate(1.9);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 16px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.22),
    0 4px 16px rgba(0, 0, 0, 0.10),
    0 0 0 0.5px rgba(255, 255, 255, 0.7) inset;
  overflow: hidden;

  /* Hidden state — panel opens upward so hidden slides from slightly below */
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.97);
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}

.exp-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Panel header */
.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px 11px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.exp-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-primary);
}

.exp-header-icon {
  width: 15px;
  height: 15px;
  opacity: 0.75;
}

.exp-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.exp-close-btn {
  width: 22px;
  height: 22px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 140ms var(--ease-out);
  flex-shrink: 0;
}

.exp-close-btn svg {
  width: 9px;
  height: 9px;
}

.exp-close-btn:hover {
  background: rgba(0, 0, 0, 0.07);
  color: var(--text-primary);
}

/* Panel body */
.exp-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exp-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-section-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ── Ratio chips ─────────────────────────────────────────────── */

.exp-ratio-chips {
  display: flex;
  gap: 5px;
}

.exp-ratio-chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 6px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.02);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 140ms var(--ease-out);
  white-space: nowrap;
}

.exp-ratio-chip:hover {
  border-color: rgba(26, 111, 212, 0.4);
  background: rgba(26, 111, 212, 0.04);
  color: var(--accent);
}

.exp-ratio-chip.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

/* Aspect ratio preview icons */
.exp-ratio-icon {
  display: block;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  opacity: 0.75;
  flex-shrink: 0;
}

.exp-ratio-icon-169 {
  width: 13px;
  height: 8px;
}

.exp-ratio-icon-916 {
  width: 8px;
  height: 13px;
}

.exp-ratio-icon-11 {
  width: 10px;
  height: 10px;
}

/* Frame draw button */
.exp-frame-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 7px;
  padding: 8px 10px;
  border: 1.5px dashed rgba(26, 111, 212, 0.35);
  border-radius: 8px;
  background: rgba(26, 111, 212, 0.03);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 150ms var(--ease-out);
}

.exp-frame-btn:hover {
  background: rgba(26, 111, 212, 0.08);
  border-color: var(--accent);
}

.exp-frame-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  border-style: solid;
  color: #fff;
}

/* ── Format options ──────────────────────────────────────────── */

.exp-format-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.exp-format-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.015);
  cursor: pointer;
  transition: all 140ms var(--ease-out);
  text-align: left;
  width: 100%;
  font-family: var(--font-sans);
}

.exp-format-opt:hover {
  border-color: rgba(26, 111, 212, 0.35);
  background: rgba(26, 111, 212, 0.03);
}

.exp-format-opt.active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.exp-format-radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-dark);
  flex-shrink: 0;
  position: relative;
  transition: border-color 140ms;
}

.exp-format-opt.active .exp-format-radio {
  border-color: var(--accent);
}

.exp-format-opt.active .exp-format-radio::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--accent);
  border-radius: 50%;
}

.exp-format-info {
  flex: 1;
  min-width: 0;
}

.exp-format-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.exp-format-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

.exp-soon-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  background: var(--warning-light);
  color: var(--warning);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.exp-format-check {
  width: 13px;
  height: 13px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 140ms;
  flex-shrink: 0;
}

.exp-format-opt.active .exp-format-check {
  opacity: 1;
}

/* ── OBS section ─────────────────────────────────────────────── */

.exp-obs-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.exp-obs-badge {
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(26, 111, 212, 0.12);
  color: var(--accent);
}

.exp-obs-url-wrap {
  display: flex;
  gap: 5px;
  align-items: center;
}

.exp-obs-url {
  flex: 1;
  min-width: 0;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
}

.exp-obs-copy-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.02);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 140ms var(--ease-out);
}

.exp-obs-copy-btn svg {
  width: 13px;
  height: 13px;
}

.exp-obs-copy-btn:hover {
  background: var(--accent-light);
  border-color: rgba(26, 111, 212, 0.4);
  color: var(--accent);
}

.exp-obs-copy-btn.copied {
  background: var(--success-light);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--success);
}

/* ── Progress ────────────────────────────────────────────────── */

.exp-progress {
  padding: 0 14px 10px;
  display: none;
}

.exp-progress.visible {
  display: block;
}

.exp-progress-track {
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.exp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #4da3ff);
  border-radius: 2px;
  width: 0%;
  transition: width 100ms linear;
}

.exp-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-muted);
}

/* ── Full-screen export overlay (no on-screen playback) ───────── */

.exp-export-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.exp-export-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.exp-export-overlay-box {
  width: 328px;
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.exp-export-overlay-head {
  margin-bottom: 14px;
}

.exp-export-overlay-kicker {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted, #8e99a8);
  margin-bottom: 6px;
}

.exp-export-overlay-title {
  font-size: 22px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--text-primary, #1c2533);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.exp-export-overlay-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.exp-export-overlay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent, #1a6fd4);
  background: rgba(26, 111, 212, 0.1);
  border: 1px solid rgba(26, 111, 212, 0.18);
}

.exp-export-overlay-track {
  height: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.exp-export-overlay-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #4da3ff);
  border-radius: 999px;
  width: 0%;
  transition: width 120ms linear;
  box-shadow: 0 0 18px rgba(77, 163, 255, 0.35);
}

.exp-export-overlay-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary, #5a6777);
}

#exp-overlay-label {
  font-weight: 600;
  letter-spacing: -0.01em;
}

#exp-overlay-count {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--text-muted, #8e99a8);
}

/* ── Footer ──────────────────────────────────────────────────── */

.exp-footer {
  padding: 0 14px 14px;
}

.exp-do-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a6fd4 0%, #1355a6 100%);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 150ms var(--ease-out);
  letter-spacing: -0.01em;
  box-shadow: 0 2px 12px rgba(26, 111, 212, 0.4);
}

.exp-do-btn:hover:not(:disabled) {
  box-shadow: 0 4px 18px rgba(26, 111, 212, 0.55);
  transform: translateY(-1px);
}

.exp-do-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(26, 111, 212, 0.35);
}

.exp-do-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.exp-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: exp-spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

/* ── Export Frame Overlay (map) ──────────────────────────────── */

.eft-frame {
  position: absolute;
  z-index: 200;
  cursor: move;
  border: 2px solid rgba(66, 133, 244, 0.85);
  box-shadow:
    0 0 12px rgba(66, 133, 244, 0.35),
    0 0 0 1px rgba(66, 133, 244, 0.2);
  border-radius: 2px;
}

.eft-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.4;
}

.eft-grid-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
}

/* Corner handles */
.eft-handle {
  position: absolute;
  width: 11px;
  height: 11px;
  background: #fff;
  border: 2px solid rgba(26, 111, 212, 0.85);
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 120ms var(--ease-spring);
  z-index: 201;
}

.eft-handle:hover {
  transform: scale(1.3);
}

.eft-handle-tl {
  top: -6px;
  left: -6px;
  cursor: nwse-resize;
}

.eft-handle-tr {
  top: -6px;
  right: -6px;
  cursor: nesw-resize;
}

.eft-handle-bl {
  bottom: -6px;
  left: -6px;
  cursor: nesw-resize;
}

.eft-handle-br {
  bottom: -6px;
  right: -6px;
  cursor: nwse-resize;
}

/* Dimension label */
.eft-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.03em;
}

/* ── Frame Setup Mode (16:9 / 9:16) ─────────────────────────────────────
   Full-screen overlay: UI hidden, dark around frame, Done button */

/* Safe zone mode: sidebar/anim bar visible (they define safe zone boundaries) */

/* Glassy blur overlay — hafif geçirgen, TWA UI estetiği */
/* Viewport mode: unified vignette (no corner artifacts) */
.eft-vignette-unified {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  -webkit-mask-image:
    linear-gradient(#000, #000),
    linear-gradient(#fff, #fff);
  mask-image:
    linear-gradient(#000, #000),
    linear-gradient(#fff, #fff);
  -webkit-mask-position: 0 0, var(--eft-x, 0) var(--eft-y, 0);
  mask-position: 0 0, var(--eft-x, 0) var(--eft-y, 0);
  -webkit-mask-size: 100% 100%, var(--eft-w, 0) var(--eft-h, 0);
  mask-size: 100% 100%, var(--eft-w, 0) var(--eft-h, 0);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Fallback: strip styling when unified vignette not used (map-container mode) */
.exp-frame-setup-overlay .eft-strip-top,
.exp-frame-setup-overlay .eft-strip-bottom,
.exp-frame-setup-overlay .eft-strip-left,
.exp-frame-setup-overlay .eft-strip-right {
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

/* Blur mode: area outside export frame when Animation Bar visible */
.eft-blur-mode {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: backdrop-filter 0.3s ease, background 0.3s ease;
}

/* Blur unified: fixed overlay, mask cuts out frame (viewport coords)
   z-index: map (0) ve weather (10) üstünde, sidebar (50) altında */
.eft-blur-unified {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  -webkit-mask-image:
    linear-gradient(#000, #000),
    linear-gradient(#fff, #fff);
  mask-image:
    linear-gradient(#000, #000),
    linear-gradient(#fff, #fff);
  -webkit-mask-position: 0 0, var(--eft-x, 0) var(--eft-y, 0);
  mask-position: 0 0, var(--eft-x, 0) var(--eft-y, 0);
  -webkit-mask-size: 100% 100%, var(--eft-w, 0) var(--eft-h, 0);
  mask-size: 100% 100%, var(--eft-w, 0) var(--eft-h, 0);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: backdrop-filter 0.3s ease;
}

/* Frame outline: mavi şerit, export alanını vurgular (sidebar altında) */
.eft-frame-outline {
  position: fixed;
  pointer-events: none;
  z-index: 46;
  border: 3px solid var(--ae-accent, #1a6fd4);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  transition: box-shadow 0.2s ease;
}

/* Lock butonu: blur alanında, frame'in sağ üstü dışında (sidebar 50 üstünde tıklanabilir) */
.eft-lock-btn {
  position: fixed;
  z-index: 51;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted, #6b7280);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 160ms ease;
}

.eft-lock-btn svg {
  width: 14px;
  height: 14px;
}

.eft-lock-btn:hover {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-primary, #1c2533);
}

.eft-lock-btn.locked {
  background: rgba(26, 111, 212, 0.25);
  color: var(--ae-accent, #1a6fd4);
  border-color: rgba(26, 111, 212, 0.5);
}

/* Frame setup: row wrapper for cancel + done buttons */
.exp-frame-setup-done-row {
  position: fixed;
  bottom: 100px;
  /* animation bar üstünde */
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-frame-setup-cancel {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  color: var(--text-muted, #8e99a8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all 160ms var(--ease-out);
}

.exp-frame-setup-cancel svg {
  width: 10px;
  height: 10px;
}

.exp-frame-setup-cancel:hover {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-primary, #1c2533);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.exp-frame-setup-lock {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  color: var(--text-muted, #8e99a8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all 160ms var(--ease-out);
}

.exp-frame-setup-lock .exp-lock-icon {
  width: 14px;
  height: 14px;
}

.exp-frame-setup-lock:hover {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-primary, #1c2533);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.exp-frame-setup-lock.locked {
  background: rgba(26, 111, 212, 0.2);
  color: var(--accent, #1a6fd4);
  border-color: rgba(26, 111, 212, 0.4);
}

.exp-frame-setup-done {
  padding: 10px 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  color: var(--accent, #1a6fd4);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 160ms var(--ease-out);
}

.exp-frame-setup-done:hover {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* ── Export Experience (full-screen) ─────────────────────────── */

body.exp-experience-mode #twa-sidebar,
body.exp-experience-mode .twa-animation-bar,
body.exp-experience-mode #twa-add-panel,
body.exp-experience-mode .mapboxgl-ctrl,
body.exp-experience-mode .twa-draw-panel,
body.exp-experience-mode .twa-text-panel {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: opacity 180ms var(--ease-out);
}

.exp-experience {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: flex;
  flex-direction: column;
  background: #d8dce4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.985);
  transition: opacity 260ms var(--ease-out), visibility 260ms, transform 260ms var(--ease-out);
}

.exp-experience.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.exp-experience-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-radius: 14px;
  margin: var(--canvas-gap, 16px);
  margin-bottom: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.exp-experience-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #111);
}

.exp-experience-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted, #666);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.exp-experience-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary, #111);
}

.exp-experience-close svg {
  flex-shrink: 0;
}

.exp-experience-body {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 16px;
  gap: 16px;
}

.exp-experience-left {
  width: 210px;
  flex-shrink: 0;
  min-height: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.exp-experience-left-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted, #8e99a8);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.exp-experience-left-placeholder {
  font-size: 12px;
  color: var(--text-muted, #888);
  margin: 0;
  line-height: 1.5;
}

.exp-banner-overlays {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: auto;
}

/* Format preview: banner container in frame area (blur mode) */
.eft-banner-preview {
  z-index: 46;
  inset: unset;
}


.exp-banner-overlay-added {
  animation: exp-banner-slide-in 0.4s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
}

@keyframes exp-banner-slide-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

/* ── Banner overlay (draggable, inside preview) ─────────────── */

.exp-banner-overlay {
  position: absolute;
  z-index: 10;
  user-select: none;
}

.exp-banner-overlay.dragging {
  cursor: grabbing;
}

.exp-banner-overlay.dragging * {
  cursor: grabbing;
}

/* ── Banner base structures ────────────────────────────────── */

/* Shared flex base for bar & alert */
.exp-bo-bar,
.exp-bo-alert,
.exp-bo-lower {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: grab;
  transition: box-shadow 150ms;
  font-family: var(--font-sans, system-ui);
}

/* Classic Bar */
.exp-bo-classic {
  background: rgba(8, 15, 40, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.exp-banner-overlay.near-center .exp-bo-classic {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(26, 111, 212, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Storm Alert — cyberpunk neon hazard stripes */
.exp-bo-storm {
  position: relative;
  overflow: hidden;
  background: rgba(12, 2, 2, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(239, 68, 68, 0.18), 0 0 48px rgba(239, 68, 68, 0.08), inset 0 1px 0 rgba(255, 100, 100, 0.1);
}

.exp-banner-overlay.near-center .exp-bo-storm {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(239, 68, 68, 0.6), 0 0 24px rgba(239, 68, 68, 0.2), inset 0 1px 0 rgba(255, 100, 100, 0.1);
}

.exp-bo-storm-stripes {
  position: absolute;
  inset: -30%;
  z-index: 0;
  background: repeating-linear-gradient(-45deg,
      transparent 0,
      transparent 10px,
      rgba(239, 68, 68, 0.35) 10px,
      rgba(239, 68, 68, 0.35) 20px);
  box-shadow: inset 0 0 40px rgba(239, 68, 68, 0.12), 0 0 20px rgba(239, 68, 68, 0.2);
  mask-image: linear-gradient(to right, transparent 5%, rgba(0, 0, 0, 0.85) 20%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0.85) 80%, transparent 95%);
  -webkit-mask-image: linear-gradient(to right, transparent 5%, rgba(0, 0, 0, 0.85) 20%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0.85) 80%, transparent 95%);
  animation: exp-storm-stripes-sweep 5s ease-in-out infinite;
}

.exp-bo-storm .exp-bo-alert-icon,
.exp-bo-storm .exp-bo-text,
.exp-bo-storm .exp-bo-drag {
  position: relative;
  z-index: 1;
}

@keyframes exp-storm-stripes-sweep {

  0%,
  100% {
    transform: translateX(-12%) scale(1.15);
    opacity: 0.7;
  }

  50% {
    transform: translateX(12%) scale(1.15);
    opacity: 1;
  }
}

/* Clean Lower Third */
.exp-bo-clean {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.exp-banner-overlay.near-center .exp-bo-clean {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(26, 111, 212, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Minimal Pill */
.exp-bo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  cursor: grab;
  transition: box-shadow 150ms;
  font-family: var(--font-sans, system-ui);
}

.exp-bo-minimal {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.exp-banner-overlay.near-center .exp-bo-minimal {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22), 0 0 0 2px rgba(26, 111, 212, 0.5);
}

/* ── Banner content elements ───────────────────────────────── */

.exp-bo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 220, 60, 0.15);
  border-radius: 50%;
}

.exp-bo-icon svg {
  width: 18px;
  height: 18px;
}

.exp-bo-alert-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exp-bo-alert-icon svg {
  width: 22px;
  height: 22px;
}

.exp-bo-accent {
  width: 3px;
  height: 36px;
  border-radius: 2px;
  background: linear-gradient(180deg, #60c8ff 0%, #1a6fd4 100%);
  flex-shrink: 0;
}

.exp-bo-text {
  flex: 1;
  min-width: 0;
}

.exp-bo-city {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  outline: none;
  min-width: 20px;
}

.exp-bo-clean .exp-bo-city {
  font-size: 15px;
}

.exp-bo-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.52);
  margin-top: 2px;
  outline: none;
  min-width: 20px;
}

/* Minimal banner text */
.exp-bo-minimal .exp-bo-city,
.exp-bo-minimal .exp-bo-temp {
  font-size: 13px;
  font-weight: 600;
  color: #1c2533;
  outline: none;
  min-width: 16px;
}

.exp-bo-sep {
  color: rgba(0, 0, 0, 0.28);
  font-weight: 400;
}

/* Storm alert text */
.exp-bo-heading {
  font-size: 12px;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  outline: none;
  min-width: 20px;
}

.exp-bo-msg {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 2px;
  outline: none;
  min-width: 20px;
}

/* Clean lower: station tag */
.exp-bo-station {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-left: auto;
  flex-shrink: 0;
  outline: none;
  min-width: 16px;
}

/* contenteditable focus style */
[contenteditable]:focus {
  outline: 1px solid rgba(26, 111, 212, 0.5);
  border-radius: 3px;
  background: rgba(26, 111, 212, 0.08);
}

/* Drag handle */
.exp-bo-drag {
  color: rgba(255, 255, 255, 0.22);
  cursor: grab;
  padding: 4px;
  flex-shrink: 0;
  transition: color 140ms;
  display: flex;
  align-items: center;
}

.exp-bo-drag:hover {
  color: rgba(255, 255, 255, 0.6);
}

.exp-bo-drag-icon {
  width: 16px;
  height: 16px;
}

/* Minimal banner drag handle is dark */
.exp-bo-minimal .exp-bo-drag {
  color: rgba(0, 0, 0, 0.2);
}

.exp-bo-minimal .exp-bo-drag:hover {
  color: rgba(0, 0, 0, 0.5);
}

/* ── Center snap ring pulse ────────────────────────────────── */

.exp-banner-snap-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 2px solid rgba(26, 111, 212, 0.9);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.exp-banner-overlay.near-center .exp-banner-snap-ring {
  animation: exp-snap-pulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes exp-snap-pulse {
  0% {
    opacity: 1;
    transform: scale(0.5);
  }

  60% {
    opacity: 0.8;
    transform: scale(1.3);
  }

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

.exp-banner-coming-soon {
  font-size: 10px;
  color: var(--text-muted, #8e99a8);
  margin: 10px 0 0;
  text-align: center;
  flex-shrink: 0;
}

.exp-experience-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  background: #0e0e16;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
  overflow-y: auto;
  overflow-x: hidden;
  gap: 0;
}

/* Preview: explicit px dimensions injected by JS — fixed frame, non-resizable (video-like) */
.exp-experience-preview {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  flex-grow: 0;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 32px rgba(0, 0, 0, 0.5);
}

.exp-experience-preview .mapboxgl-map {
  width: 100% !important;
  height: 100% !important;
}

.exp-experience-controls {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.exp-experience-play-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--ae-accent, #1a6fd4);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.exp-experience-play-btn:hover {
  background: #1557b0;
  transform: scale(1.05);
}

.exp-experience-play-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.exp-experience-scrubber {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-experience-scrubber-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.exp-experience-scrubber-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--ae-accent, #1a6fd4);
  border-radius: 3px;
  pointer-events: none;
}

.exp-experience-scrubber-handle {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid var(--ae-accent, #1a6fd4);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: grab;
  pointer-events: auto;
}

.exp-experience-time {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  min-width: 36px;
  font-family: var(--font-mono, monospace);
}

.exp-experience-right {
  width: 260px;
  flex-shrink: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exp-experience-right .exp-section-label {
  color: var(--text-muted, #666);
}

.exp-resolution-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.exp-resolution-chip {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: var(--text-primary, #111);
  cursor: pointer;
  transition: all 0.15s;
}

.exp-resolution-chip:hover {
  background: rgba(26, 111, 212, 0.06);
  border-color: rgba(26, 111, 212, 0.3);
}

.exp-resolution-chip.active {
  background: rgba(26, 111, 212, 0.12);
  border-color: rgba(26, 111, 212, 0.5);
  color: var(--accent, #1a6fd4);
}

.exp-resolution-chip .exp-rec {
  font-size: 9px;
  font-weight: 500;
  opacity: 0.85;
  margin-left: 2px;
}

.exp-experience-right .exp-format-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-experience-right .exp-format-opt {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-primary, #111);
}

.exp-experience-right .exp-format-opt:hover {
  background: rgba(0, 0, 0, 0.06);
}

.exp-experience-right .exp-format-opt.active {
  background: rgba(26, 111, 212, 0.1);
  border: 1px solid rgba(26, 111, 212, 0.4);
}

.exp-experience-right .exp-format-name {
  color: inherit;
}

.exp-experience-right .exp-format-sub {
  color: var(--text-muted, #666);
}

.exp-experience-right .exp-obs-url {
  color: var(--text-primary, #111);
}

.exp-save-frame-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: var(--text-primary, #111);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.exp-save-frame-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

.exp-save-frame-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.exp-save-frame-btn svg {
  flex-shrink: 0;
}

.exp-experience-right .exp-do-btn {
  margin-top: auto;
}

/* ── Live Banners Panel ────────────────────────────────────────────── */

.exp-lb-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0;
  overflow-y: auto;
}

.exp-lb-type-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.exp-lb-type-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  text-align: left;
  font-family: var(--font-sans);
}

.exp-lb-type-card:hover {
  border-color: rgba(26, 111, 212, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.exp-lb-thumb {
  height: 40px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.exp-lb-type-name {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-primary, #1a2030);
  padding: 4px 6px;
  display: block;
}

/* Thumbnail backgrounds */
.exp-lb-thumb-storm {
  background: linear-gradient(135deg, #0e0505 0%, #3d0808 50%, #5c0f0f 100%);
}

.exp-lb-thumb-storm::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 4px,
      rgba(239, 68, 68, 0.12) 4px, rgba(239, 68, 68, 0.12) 8px);
}

.exp-lb-thumb-storm::after {
  content: '\26A1';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.8));
}

.exp-lb-thumb-temp {
  background: linear-gradient(135deg, #1a3060 0%, #2a5ca8 60%, #4a90d8 100%);
}

.exp-lb-thumb-temp::before {
  content: '\1F321';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
}

.exp-lb-thumb-news {
  background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 100%);
}

.exp-lb-thumb-news::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  height: 10px;
  background: rgba(26, 111, 212, 0.7);
  border-radius: 2px;
}

.exp-lb-thumb-wind {
  background: linear-gradient(135deg, #0a2a1a 0%, #0d4a2a 60%, #1a6a3a 100%);
}

.exp-lb-thumb-wind::before {
  content: '\1F4A8';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
}

.exp-lb-thumb-breaking {
  background: linear-gradient(135deg, #1a0a00 0%, #3d1800 60%, #5c2500 100%);
}

.exp-lb-thumb-breaking::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 10px;
  background: rgba(255, 90, 0, 0.75);
  border-radius: 2px;
}

.exp-lb-thumb-forecast {
  background: linear-gradient(135deg, #0a1a30 0%, #0d2a50 100%);
}

.exp-lb-thumb-forecast::before {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  height: 8px;
  background: linear-gradient(90deg, rgba(255, 200, 60, 0.7), rgba(26, 111, 212, 0.7));
  border-radius: 2px;
}

/* Active banners accordion list — scrollable when many banners */
.exp-lb-active-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.exp-lb-active-list::-webkit-scrollbar {
  width: 6px;
}

.exp-lb-active-list::-webkit-scrollbar-track {
  background: transparent;
}

.exp-lb-active-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
}

.exp-lb-active-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* Active banner cards */
.exp-lb-banner {
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.exp-lb-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.exp-lb-banner-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary, #1a2030);
}

.exp-lb-banner-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted, #8e99a8);
  padding: 0 2px;
  line-height: 1;
  border-radius: 4px;
}

.exp-lb-banner-remove:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.exp-lb-banner-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-lb-state {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  overflow: hidden;
}

.exp-lb-state-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  background: rgba(26, 111, 212, 0.06);
  border-bottom: 1px solid rgba(26, 111, 212, 0.08);
}

.exp-lb-state-time {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent, #1a6fd4);
  font-variant-numeric: tabular-nums;
}

.exp-lb-state-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted, #8e99a8);
  padding: 0;
  border-radius: 3px;
}

.exp-lb-state-remove:hover {
  color: #ef4444;
}

.exp-lb-state-body {
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.exp-lb-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.exp-lb-label {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #8e99a8);
  width: 46px;
  flex-shrink: 0;
}

.exp-lb-input {
  flex: 1;
  padding: 3px 6px;
  font-size: 10.5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-primary, #1a2030);
  min-width: 0;
  font-family: var(--font-sans);
}

.exp-lb-dur-input {
  width: 42px;
  flex: none;
}

.exp-lb-unit {
  font-size: 9.5px;
  color: var(--text-muted, #8e99a8);
}

.exp-lb-select {
  flex: 1;
  padding: 3px 4px;
  font-size: 10.5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-primary, #1a2030);
  min-width: 0;
  font-family: var(--font-sans);
}

.exp-lb-add-state {
  background: none;
  border: 1.5px dashed rgba(26, 111, 212, 0.3);
  border-radius: 7px;
  padding: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent, #1a6fd4);
  cursor: pointer;
  width: 100%;
  transition: all 120ms;
  font-family: var(--font-sans);
}

.exp-lb-add-state:hover {
  background: rgba(26, 111, 212, 0.06);
  border-color: rgba(26, 111, 212, 0.5);
}

/* ══════════════════════════════════════════════════════════════════
   LIVE BANNER OVERLAY
════════════════════════════════════════════════════════════════════ */

.exp-lb-overlay {
  position: absolute;
  z-index: 11;
  pointer-events: auto;
  transition:
    width 500ms cubic-bezier(0.16, 1, 0.3, 1),
    height 500ms cubic-bezier(0.16, 1, 0.3, 1),
    top 500ms cubic-bezier(0.16, 1, 0.3, 1),
    bottom 500ms cubic-bezier(0.16, 1, 0.3, 1),
    left 500ms cubic-bezier(0.16, 1, 0.3, 1),
    right 500ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  min-height: 40px;
  overflow: hidden; /* Prevent text bleeding during keyframe size transitions */
}

/* Banner [data-field] text: clip instead of wrap during size transitions */
.lb-storm [data-field],
.lb-temp [data-field],
.lb-news [data-field],
.lb-wind [data-field],
.lb-breaking [data-field],
.lb-forecast [data-field] {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ── Banner free-resize handles ─────────────────────────────────────────────── */
.ae-banner-resize-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent, #1A6FD4);
  border: 2px solid #fff;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.15s, transform 0.1s;
  z-index: 20;
  pointer-events: all;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Large invisible hit area for easier grabbing */
.ae-banner-resize-handle::before {
  content: '';
  position: absolute;
  inset: -8px;
  cursor: inherit;
}

.exp-lb-overlay:hover .ae-banner-resize-handle {
  opacity: 1;
}

.ae-banner-resize-handle:hover {
  opacity: 1 !important;
  transform: scale(1.25);
  background: #4a8ff7;
}

/* Corner positions */
.ae-resize-nw {
  top: -4px;
  left: -4px;
  cursor: nw-resize;
}

.ae-resize-ne {
  top: -4px;
  right: -4px;
  cursor: ne-resize;
}

.ae-resize-sw {
  bottom: -4px;
  left: -4px;
  cursor: sw-resize;
}

.ae-resize-se {
  bottom: -4px;
  right: -4px;
  cursor: se-resize;
}

/* Edge positions */
.ae-resize-w {
  top: 50%;
  left: -4px;
  cursor: w-resize;
  transform: translateY(-50%);
}

.ae-resize-e {
  top: 50%;
  right: -4px;
  cursor: e-resize;
  transform: translateY(-50%);
}

.exp-lb-overlay.dragging {
  transition: none;
  cursor: grab;
}

/* ── Storm Alert ───────────────────────────────────────────────── */
.lb-storm {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 60px;
  background: linear-gradient(135deg, #0e0505 0%, #1f0808 40%, #2d0a0a 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.lb-storm-stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0px, transparent 8px,
      rgba(239, 68, 68, 0.06) 8px, rgba(239, 68, 68, 0.06) 16px);
  animation: lb-stripes-drift 4s linear infinite;
}

@keyframes lb-stripes-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 32px 32px;
  }
}

.lb-storm-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(239, 68, 68, 0.18) 0%, transparent 60%);
  animation: lb-storm-pulse 2s ease-in-out infinite alternate;
}

@keyframes lb-storm-pulse {
  from {
    opacity: 0.6;
  }

  to {
    opacity: 1;
  }
}

.lb-storm-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  width: 100%;
}

.lb-storm-icon {
  width: clamp(24px, 4vw, 44px);
  height: clamp(24px, 4vw, 44px);
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.7));
  animation: lb-icon-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes lb-icon-pulse {
  from {
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.6));
  }

  to {
    filter: drop-shadow(0 0 14px rgba(239, 68, 68, 1));
  }
}

.lb-storm-text {
  flex: 1;
}

.lb-storm-heading {
  font-size: clamp(11px, 2.5vw, 24px);
  font-weight: 900;
  color: var(--lb-accent, rgba(255, 120, 120, 1));
  letter-spacing: 0.12em;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
}

.lb-storm-msg {
  font-size: clamp(9px, 1.8vw, 16px);
  color: rgba(255, 180, 180, 0.85);
  margin-top: 3px;
}

.lb-storm-scanline {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(239, 68, 68, 0.06) 50%, transparent 100%);
  animation: lb-scanline 3s ease-in-out infinite;
}

@keyframes lb-scanline {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* ── Temperature Card ──────────────────────────────────────────── */
.lb-temp {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 60px;
  background: linear-gradient(135deg, #0d1f40 0%, #1a3a6a 50%, #2a5ca8 100%);
  border: 1px solid rgba(74, 144, 216, 0.35);
  border-radius: 10px;
  overflow: hidden;
}

.lb-temp-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(255, 220, 60, 0.12) 0%, transparent 55%);
  animation: lb-storm-pulse 3s ease-in-out infinite alternate;
}

.lb-temp-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  height: 100%;
}

.lb-temp-icon {
  width: clamp(28px, 4vw, 44px);
  height: clamp(28px, 4vw, 44px);
  flex-shrink: 0;
  animation: lb-sun-spin 8s linear infinite;
}

@keyframes lb-sun-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.lb-temp-right {
  display: flex;
  flex-direction: column;
}

.lb-temp-city {
  font-size: clamp(9px, 1.6vw, 13px);
  font-weight: 700;
  color: rgba(180, 210, 255, 0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lb-temp-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.lb-temp-val {
  font-size: clamp(14px, 3.5vw, 36px);
  font-weight: 900;
  color: var(--lb-accent, rgba(255, 240, 180, 1));
  text-shadow: 0 0 16px rgba(255, 212, 59, 0.6);
  font-variant-numeric: tabular-nums;
}

.lb-temp-cond {
  font-size: clamp(8px, 1.4vw, 12px);
  color: rgba(180, 210, 255, 0.75);
}

.lb-temp-glow {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(74, 144, 216, 0.2);
  border-radius: 50%;
  filter: blur(20px);
  animation: lb-storm-pulse 2s ease-in-out infinite alternate;
}

/* ── News Lower Third ──────────────────────────────────────────── */
.lb-news {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 56px;
  background: rgba(8, 15, 35, 0.92);
  backdrop-filter: blur(16px);
  border-top: 2px solid var(--lb-accent, var(--accent, #1a6fd4));
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.lb-news-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #1a6fd4, #00d4ff);
  animation: lb-accent-pulse 2s ease-in-out infinite alternate;
}

@keyframes lb-accent-pulse {
  from {
    opacity: 0.7;
  }

  to {
    opacity: 1;
    box-shadow: 0 0 8px rgba(26, 111, 212, 0.8);
  }
}

.lb-news-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 16px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.lb-news-tag {
  font-size: clamp(7px, 1.2vw, 10px);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: white;
  background: var(--accent, #1a6fd4);
  padding: 3px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

.lb-news-text {
  display: flex;
  flex-direction: column;
}

.lb-news-title {
  font-size: clamp(10px, 2vw, 18px);
  font-weight: 800;
  color: white;
  letter-spacing: 0.06em;
}

.lb-news-sub {
  font-size: clamp(8px, 1.5vw, 13px);
  color: rgba(180, 210, 255, 0.8);
}

.lb-news-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #1a6fd4, #00d4ff, #1a6fd4);
  background-size: 200% 100%;
  animation: lb-ticker 2.5s linear infinite;
}

@keyframes lb-ticker {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

/* ── Wind Alert ────────────────────────────────────────────────── */
.lb-wind {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 60px;
  background: linear-gradient(135deg, #0a1a12 0%, #0d2a1e 50%, #0f3a28 100%);
  border: 1px solid rgba(110, 231, 183, 0.25);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.lb-wind-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.lb-wind-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 183, 0.3), transparent);
  animation: lb-wind-flow 1.8s ease-in-out infinite;
}

.lb-wind-line-1 {
  top: 30%;
  width: 60%;
  animation-delay: 0s;
}

.lb-wind-line-2 {
  top: 50%;
  width: 80%;
  animation-delay: 0.3s;
}

.lb-wind-line-3 {
  top: 70%;
  width: 50%;
  animation-delay: 0.6s;
}

@keyframes lb-wind-flow {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translateX(200%);
    opacity: 0;
  }
}

.lb-wind-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  width: 100%;
}

.lb-wind-icon {
  width: clamp(22px, 3vw, 32px);
  height: clamp(22px, 3vw, 32px);
  flex-shrink: 0;
}

.lb-wind-speed {
  font-size: clamp(18px, 4vw, 44px);
  font-weight: 900;
  color: var(--lb-accent, rgba(110, 231, 183, 1));
  text-shadow: 0 0 12px rgba(110, 231, 183, 0.5);
  font-variant-numeric: tabular-nums;
}

.lb-wind-info {
  display: flex;
  flex-direction: column;
}

.lb-wind-unit {
  font-size: clamp(8px, 1.3vw, 11px);
  color: rgba(110, 231, 183, 0.7);
  font-weight: 700;
}

.lb-wind-dir {
  font-size: clamp(9px, 1.5vw, 14px);
  color: var(--lb-accent, rgba(180, 255, 220, 0.9));
  font-weight: 800;
}

/* ── Breaking Weather ──────────────────────────────────────────── */
.lb-breaking {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 60px;
  background: linear-gradient(135deg, #1a0800 0%, #2d1000 50%, #3d1800 100%);
  border: 1.5px solid rgba(255, 100, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.lb-breaking-scan {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 100, 0, 0.08), transparent);
  animation: lb-scan 2s ease-in-out infinite;
}

@keyframes lb-scan {
  0% {
    left: -50%;
  }

  100% {
    left: 150%;
  }
}

.lb-breaking-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 80, 0, 0.8), rgba(255, 160, 0, 0.8), rgba(255, 80, 0, 0.8));
  animation: lb-breaking-bar-anim 1.5s ease-in-out infinite alternate;
}

@keyframes lb-breaking-bar-anim {
  from {
    opacity: 0.7;
  }

  to {
    opacity: 1;
    box-shadow: 0 0 8px rgba(255, 100, 0, 0.8);
  }
}

.lb-breaking-inner {
  position: relative;
  z-index: 1;
  padding: 10px 14px;
  width: 100%;
}

.lb-breaking-tag {
  font-size: clamp(7px, 1.2vw, 10px);
  font-weight: 900;
  color: var(--lb-accent, rgba(255, 140, 0, 1));
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  animation: lb-breaking-in 0.4s 0.1s both;
}

.lb-breaking-heading {
  font-size: clamp(11px, 2.5vw, 24px);
  font-weight: 900;
  color: white;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(255, 100, 0, 0.6);
  animation: lb-breaking-in 0.4s 0.15s both;
}

.lb-breaking-msg {
  font-size: clamp(8px, 1.5vw, 14px);
  color: rgba(255, 200, 150, 0.85);
  margin-top: 3px;
  animation: lb-breaking-in 0.4s 0.2s both;
}

.lb-breaking-pulse {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  background: rgba(255, 80, 0, 1);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: lb-pulse-ring 1.2s ease-out infinite;
}

@keyframes lb-pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 80, 0, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 80, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 80, 0, 0);
  }
}

/* ── Forecast Strip ────────────────────────────────────────────── */
.lb-forecast {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 56px;
  background: rgba(10, 20, 45, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(74, 144, 216, 0.2);
  border-radius: 8px;
  overflow: hidden;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  animation: lb-forecast-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lb-forecast-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

.lb-forecast-label {
  font-size: clamp(7px, 1.1vw, 9px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(100, 160, 255, 0.8);
  margin-bottom: 6px;
}

.lb-forecast-days {
  display: flex;
  justify-content: space-around;
  flex: 1;
}

.lb-forecast-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  animation: lb-forecast-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lb-forecast-day-1 {
  animation-delay: 0.05s;
}

.lb-forecast-day-2 {
  animation-delay: 0.10s;
}

.lb-forecast-day-3 {
  animation-delay: 0.15s;
}

.lb-forecast-day-4 {
  animation-delay: 0.20s;
}

.lb-forecast-day-5 {
  animation-delay: 0.25s;
}

.lb-fd-name {
  font-size: clamp(7px, 1.1vw, 9px);
  font-weight: 700;
  color: rgba(150, 190, 255, 0.8);
  letter-spacing: 0.06em;
}

.lb-fd-icon {
  font-size: clamp(12px, 2vw, 20px);
  line-height: 1;
}

.lb-fd-temp {
  font-size: clamp(9px, 1.5vw, 13px);
  font-weight: 800;
  color: rgba(255, 240, 200, 0.95);
}

/* ── Banner Timeline Strip ──────────────────────────────────────────────── */
.exp-lb-timeline-strip {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 10px 10px;
  border-top: none;
  padding: 4px 8px 6px 8px;
  margin-top: 0;
  min-height: 44px;
  overflow: hidden;
}

.exp-lbt-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  margin-bottom: 6px;
}

.exp-lbt-empty {
  font-size: 11px;
  color: rgba(255, 255, 255, .25);
  text-align: center;
  padding: 4px 0;
}

.exp-lbt-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-lbt-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.exp-lbt-row-label {
  font-size: 9px;
  color: rgba(255, 255, 255, .4);
  width: 60px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
}

.exp-lbt-row-track {
  position: relative;
  flex: 1;
  height: 18px;
  background: rgba(255, 255, 255, .05);
  border-radius: 4px;
  overflow: hidden;
}

.exp-lbt-block {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 3px;
  cursor: pointer;
  opacity: .82;
  transition: opacity .15s;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.exp-lbt-block:hover {
  opacity: 1;
}

.exp-lbt-block-label {
  font-size: 8px;
  color: #fff;
  font-weight: 600;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.exp-lbt-handle {
  position: absolute;
  top: 0;
  width: 5px;
  height: 100%;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity .12s;
}

.exp-lbt-handle-left {
  left: 0;
  cursor: ew-resize;
}

.exp-lbt-handle-right {
  right: 0;
  cursor: ew-resize;
}

.exp-lbt-block:hover .exp-lbt-handle {
  opacity: 1;
}

.exp-lbt-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1.5px;
  background: rgba(255, 255, 255, .6);
  pointer-events: none;
  /* Account for label column width: 60px label + 6px gap + 10px padding */
  margin-left: calc(60px + 6px + 10px);
}

.exp-lb-state-highlight {
  outline: 2px solid #4a9eff;
  outline-offset: 2px;
}
