/* Axios VideoShare // Ultra-Clean Mobile First UI & Studio Styles */

:root {
  --bg-deep: #060913;
  --bg-surface: #0e1526;
  --bg-card: #131b2e;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(139, 92, 246, 0.4);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-green: #00c875;
  --accent-gold: #fdab3d;
  --accent-red: #ef4444;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, #05070d 0%, #090e1a 100%);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.mobile-app-container {
  width: 100%;
  max-width: 540px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px;
  padding-bottom: 50px;
}

/* Event Top Bar */
.event-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  margin-bottom: 24px;
}

.event-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.8); opacity: 0.5; }
}

.btn-gpu-status {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c084fc;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-gpu-status:hover {
  background: rgba(139, 92, 246, 0.3);
  color: #fff;
}

.btn-sub-badge {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #facc15;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-sub-badge:hover {
  background: rgba(234, 179, 8, 0.3);
  color: #fff;
}

.btn-qr-share {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #67e8f9;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-qr-share:hover {
  background: rgba(6, 182, 212, 0.3);
  color: #fff;
}

.sub-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sub-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.sub-card.active {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.08);
}

/* Prompt Header */
.prompt-header {
  text-align: center;
  margin-bottom: 24px;
}

.prompt-header h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 8px;
}

.prompt-header p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
}

/* Prominent Hero Action Buttons */
.hero-button-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-action-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.hero-action-btn:active {
  transform: scale(0.98);
}

.btn-record {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(139, 92, 246, 0.2));
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
}

.btn-record:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(139, 92, 246, 0.3));
  border-color: #ef4444;
}

.btn-record .btn-icon-box {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
}

.btn-upload {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.btn-upload:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
  border-color: #8b5cf6;
}

.btn-upload .btn-icon-box {
  background: #8b5cf6;
  color: #fff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
}

.btn-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-icon-box i, .btn-icon-box svg {
  width: 26px;
  height: 26px;
}

.btn-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.btn-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-arrow {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Quick Contributor Tag */
.tag-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 20px;
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag-icon {
  color: var(--accent-purple);
  width: 18px;
  height: 18px;
}

.tag-input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  outline: none;
}

.tag-input::placeholder {
  color: var(--text-secondary);
}

/* 2-Tier Selector Card */
.tier-selector-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
}

.tier-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tier-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tier-help {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  cursor: pointer;
}

.tier-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier-option {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.tier-option.active {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.08);
}

.tier-option.tier-premium.active {
  border-color: var(--accent-gold);
  background: rgba(253, 171, 61, 0.08);
  box-shadow: 0 0 20px rgba(253, 171, 61, 0.15);
}

.tier-badge-pill {
  position: absolute;
  top: -10px;
  right: 14px;
  background: linear-gradient(135deg, #fdab3d, #ea580c);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.05em;
}

.tier-radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tier-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  flex: 1;
  cursor: pointer;
}

.tier-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.tier-premium .tier-price {
  color: var(--accent-gold);
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 24px;
}

.tier-features li {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tier-features li i, .tier-features li svg {
  width: 12px;
  height: 12px;
  color: var(--accent-green);
  flex-shrink: 0;
}

/* Live Sync Status & Angle Counter */
.sync-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 24px;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.status-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-synced {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(0, 200, 117, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 200, 117, 0.35);
  padding: 2px 8px;
  border-radius: 10px;
}

.status-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
}

.pooled-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.counter-item {
  display: flex;
  flex-direction: column;
}

.counter-num {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-mono);
}

.counter-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.btn-trigger-ai {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

/* Pooled Videos Stream */
.stream-section {
  margin-bottom: 24px;
}

.stream-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pooled-clips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clip-stream-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.clip-thumb {
  width: 68px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: #000;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.clip-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip-info {
  flex: 1;
}

.clip-contributor {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.clip-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

.clip-sync-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 4px 8px;
  border-radius: 6px;
}

/* Master Film Card */
.master-film-card {
  background: linear-gradient(180deg, #131b2e 0%, #080c14 100%);
  border: 1px solid rgba(253, 171, 61, 0.5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(253, 171, 61, 0.2);
  margin-bottom: 24px;
  animation: filmEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes filmEnter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.master-film-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.5);
}

.badge-finished {
  font-size: 11px;
  font-weight: 800;
  color: #fdab3d;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.btn-close-film {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
}

.video-player-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
}

.master-film-info {
  padding: 16px;
}

.master-film-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.master-film-info p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.master-actions-row {
  display: flex;
  gap: 10px;
}

.format-tab-btn {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
}

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

.format-tab-btn.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c084fc;
}

.btn-action-primary {
  background: var(--accent-purple);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-action-primary:hover {
  background: #7c3aed;
}

.btn-action-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-action-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Modal Windows */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input, .form-select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-purple);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--accent-purple); color: #fff; }
.btn-outline { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; }

/* Fullscreen Mobile Camera Modal */
.fullscreen-recorder-modal {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 2000;
  display: none;
  flex-direction: column;
}

.fullscreen-recorder-modal.active {
  display: flex;
}

.recorder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.btn-icon {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rec-live-timer {
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
}

.camera-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.camera-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recorder-bottom-bar {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.rec-shutter-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: transparent;
  border: 4px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.shutter-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-red);
  transition: all 0.2s ease;
}

.rec-shutter-btn.recording .shutter-inner {
  border-radius: 12px;
  width: 32px;
  height: 32px;
}

.shutter-hint {
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  color: #fff;
}

/* AI Processing Overlay */
.ai-processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ai-processing-overlay.active {
  display: flex;
}

.ai-processing-card {
  background: #0f172a;
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9);
}

.ai-radar-anim {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  border: 2px dashed var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  margin: 0 auto 16px auto;
  animation: spinRadar 4s linear infinite;
}

@keyframes spinRadar { 100% { transform: rotate(360deg); } }

.ai-processing-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.ai-processing-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 20px;
}

.ai-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.ai-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-msg {
  background: #0f172a;
  border: 1px solid rgba(0, 200, 117, 0.4);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  pointer-events: auto;
}
