/* ==========================================================================
   RAI VIDEOS // SOVEREIGN 3D PIXAR CINEMA & SHORT MOVIE STUDIO MASTER CSS
   Salih BAŞER & RAI Sovereign Intelligence Ecosystem
   Aesthetics: Deep Space Cyber, Glassmorphism, Glowing Cyan & Sapphire
   ========================================================================== */

:root {
  --bg-primary: #070b14;
  --bg-card: rgba(13, 23, 42, 0.75);
  --bg-card-hover: rgba(20, 35, 65, 0.85);
  --bg-panel: rgba(10, 18, 35, 0.85);
  --border-cyan: rgba(0, 240, 255, 0.35);
  --border-cyan-bright: #00f0ff;
  --border-sapphire: #336699;
  --accent-cyan: #00f0ff;
  --accent-sapphire: #336699;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-red: #ef4444;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-orbitron: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-exo: 'Exo 2', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.45);
  --glow-sapphire: 0 0 25px rgba(51, 102, 153, 0.5);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Temel Ayarlar */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.cinema-studio-mode {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-inter);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Siber Derin Uzay & Parallaks Izgara */
.holo-space-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(13, 30, 65, 0.6) 0%, rgba(7, 11, 20, 0.95) 70%, #050810 100%);
  z-index: -2;
  pointer-events: none;
}

.holo-matrix-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 102, 153, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

/* Tipografi Yardımcıları */
.font-orbitron { font-family: var(--font-orbitron); }
.font-mono { font-family: var(--font-mono); }
.font-exo { font-family: var(--font-exo); }

.text-cyan { color: var(--accent-cyan); }
.text-amber { color: var(--accent-amber); }
.text-green { color: var(--accent-emerald); }
.text-red { color: var(--accent-red); }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }

/* Kayan Canlı Ticker */
.cinema-ticker-bar {
  background: rgba(5, 10, 22, 0.95);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 1rem;
  font-size: 0.78rem;
  overflow: hidden;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.ticker-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 2px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.05em;
  margin-right: 15px;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-pulse-dot.amber {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ticker-content-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-scroll-text {
  display: inline-block;
  color: var(--text-secondary);
  animation: scroll-left 45s linear infinite;
}

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

/* Üst Navigasyon Header */
.cinema-app-header {
  background: rgba(10, 18, 35, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(51, 102, 153, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.75rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-avatar-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  position: relative;
  background: #000;
  border: 1.5px solid var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
  overflow: hidden;
}

.brand-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffffff 30%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-glow 1.8s infinite;
}

/* Format & Kalite Seçici */
.header-center {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cinema-format-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.5);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.btn-format-chip {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 14px;
  font-size: 0.78rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-format-chip.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(51, 102, 153, 0.4));
  color: #fff;
  border: 1px solid var(--accent-cyan);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.cinema-quality-tag {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.quality-dot.green {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

/* Header Sağ Taraf */
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-ecosystem-links {
  display: flex;
  gap: 8px;
}

.eco-nav-btn {
  background: rgba(13, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.eco-nav-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: #fff;
}

.user-architect-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 12px 4px 6px;
  border-radius: 30px;
}

.user-pill-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #f59e0b;
}

.user-pill-meta {
  display: flex;
  flex-direction: column;
}

.user-pill-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
}

.user-pill-role {
  font-size: 0.62rem;
  color: #f59e0b;
  letter-spacing: 0.05em;
}

/* ========================================================
   ANA SİNEMA İSKELETİ (3 SÜTUN)
   ======================================================== */
.cinema-main-stage {
  display: grid;
  grid-template-columns: 340px 1fr 340px;
  gap: 18px;
  padding: 1.25rem 1.5rem;
  flex: 1;
  max-width: 2560px;
  margin: 0 auto;
  width: 100%;
}

/* Sütun Genel Yapısı */
.cinema-deck-left,
.cinema-deck-right {
  background: var(--bg-panel);
  border: 1px solid rgba(51, 102, 153, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: calc(100vh - 120px);
  overflow-y: auto;
  position: sticky;
  top: 90px;
}

.panel-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================================
   1. SOL SÜTUN: SAHNE YÖNETMENİ
   ======================================================== */
.director-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
}

.dir-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.71rem;
  padding: 7px 5px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  text-align: center;
}

.dir-tab-btn.active {
  background: rgba(0, 240, 255, 0.2);
  border: 1px solid var(--accent-cyan);
  color: #fff;
  font-weight: 700;
}

/* AI Video & Videoyu Uzat Stilleri */
.form-textarea {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #f1f5f9;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  line-height: 1.45;
  resize: vertical;
  outline: none;
  transition: var(--transition-fast);
}

.form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.form-textarea.enhanced-box {
  background: rgba(4, 15, 30, 0.85);
  border-color: rgba(0, 240, 255, 0.45);
  font-size: 0.69rem;
  color: #38bdf8;
}

.form-textarea.enhanced-box.amber {
  background: rgba(25, 18, 5, 0.85);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.enhanced-prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.btn-copy-prompt {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy-prompt:hover {
  background: rgba(0, 240, 255, 0.2);
  color: #fff;
  border-color: var(--accent-cyan);
}

.btn-ai-enhance-action {
  width: 100%;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: #00f0ff;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: var(--transition-fast);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.btn-ai-enhance-action:hover {
  background: rgba(0, 240, 255, 0.25);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

.btn-ai-enhance-action.amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.btn-ai-enhance-action.amber:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #fff;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
}

.btn-create-clip-action.amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070b14;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.4);
}

.btn-create-clip-action.amber:hover {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.7);
}

.extend-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.74rem;
  color: #fde68a;
  margin-bottom: 10px;
}

.ai-studio-intro {
  margin-bottom: 8px;
}

.ai-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 6px;
}

.status-pulse-dot.cyan {
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
  animation: pulse-glow 1.5s infinite;
}

.ai-status-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 20, 45, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.ai-status-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.ai-status-spinner.amber {
  border-color: rgba(245, 158, 11, 0.2);
  border-top-color: var(--accent-amber);
}

.ai-status-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-status-title {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 700;
}

.ai-status-sub {
  font-size: 0.67rem;
  color: var(--text-secondary);
}

.tab-explainer {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

.scenario-presets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preset-scenario-card {
  background: rgba(13, 23, 42, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 10px;
  padding: 12px;
  transition: var(--transition-smooth);
}

.preset-scenario-card:hover {
  background: rgba(20, 35, 65, 0.8);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.15);
}

.preset-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.preset-icon {
  font-size: 1.4rem;
}

.preset-name {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
}

.preset-badge {
  font-size: 0.68rem;
  color: var(--accent-cyan);
}

.preset-summary {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.btn-load-scenario {
  width: 100%;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-load-scenario:hover {
  background: var(--accent-cyan);
  color: #070b14;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

/* Klip Üret Formu */
.custom-clip-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.form-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.form-select,
.form-input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-select:focus,
.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-create-clip-action {
  background: linear-gradient(135deg, #00f0ff, #336699);
  border: none;
  color: #070b14;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.05em;
  margin-top: 6px;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.4);
  transition: var(--transition-smooth);
}

.btn-create-clip-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.7);
}

/* RAI DNA Canon Card */
.rai-dna-canon-card {
  margin-top: auto;
  background: rgba(5, 12, 28, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  padding: 12px;
}

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

.dna-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #34d399;
}

.dna-verified-badge {
  font-size: 0.65rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 2px 6px;
  border-radius: 4px;
}

.dna-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 8px;
}

.dna-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dna-tag {
  font-size: 0.62rem;
  background: rgba(51, 102, 153, 0.3);
  color: #93c5fd;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(51, 102, 153, 0.5);
}

/* ========================================================
   2. ORTA SÜTUN: MASTER CİNEMA PLAYER & STORYBOARD TIMELINE
   ======================================================== */
.cinema-deck-center {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cybernetic Master Video Player */
.master-player-container {
  background: #020408;
  border: 1.5px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), var(--glow-cyan);
  transition: var(--transition-smooth);
}

/* 4 Siber Köşe Parantezi */
.holo-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent-cyan);
  z-index: 20;
  pointer-events: none;
}
.holo-corner.top-left { top: 6px; left: 6px; border-top: 2.5px solid var(--accent-cyan); border-left: 2.5px solid var(--accent-cyan); }
.holo-corner.top-right { top: 6px; right: 6px; border-top: 2.5px solid var(--accent-cyan); border-right: 2.5px solid var(--accent-cyan); }
.holo-corner.bottom-left { bottom: 6px; left: 6px; border-bottom: 2.5px solid var(--accent-cyan); border-left: 2.5px solid var(--accent-cyan); }
.holo-corner.bottom-right { bottom: 6px; right: 6px; border-bottom: 2.5px solid var(--accent-cyan); border-right: 2.5px solid var(--accent-cyan); }

/* Video Üst Bar */
.player-top-status {
  background: rgba(8, 14, 28, 0.9);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  font-size: 0.76rem;
}

.player-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deck-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.deck-dot.red { background: #ef4444; }
.deck-dot.yellow { background: #f59e0b; }
.deck-dot.green { background: #10b981; }

.active-media-title {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.player-status-right {
  display: flex;
  gap: 8px;
}

.fps-badge, .codec-badge {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
}

/* Video Sahnesi Viewport */
.player-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cinema-studio-mode.aspect-916 .player-viewport {
  aspect-ratio: 9 / 16;
  max-height: 600px;
}

#masterVideoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Büyük Ortada Play Butonu */
.btn-center-big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--accent-cyan);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
  z-index: 15;
}

.btn-center-big-play i {
  margin-left: 4px;
}

.btn-center-big-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent-cyan);
  color: #070b14;
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.8);
}

.master-player-container.is-playing .btn-center-big-play {
  opacity: 0;
  pointer-events: none;
}

/* Birleştirme / Yükleme Animasyonu */
.player-loader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 20, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 30;
  backdrop-filter: blur(10px);
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

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

.loader-text {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
}

.loader-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Ambiyans Yansıma */
.player-ambient-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: radial-gradient(ellipse at bottom, rgba(0, 240, 255, 0.2) 0%, transparent 80%);
  pointer-events: none;
}

/* Özel Kontrol Çubuğu */
.player-controls-bar {
  background: rgba(10, 18, 35, 0.95);
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  padding: 8px 16px 10px;
}

/* Scrubber İlerleme Çubuğu */
.timeline-scrubber-wrapper {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 8px;
}

.scrubber-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  width: 0%;
  pointer-events: none;
}

.scrubber-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #336699, #00f0ff);
  border-radius: 4px;
  width: 0%;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.scrubber-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

/* Kontrol Butonları Satırı */
.controls-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ctrl-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
}

.timecode-display {
  font-size: 0.8rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin-left: 6px;
}

.volume-control-box {
  display: flex;
  align-items: center;
  gap: 4px;
}

.volume-slider {
  width: 70px;
  height: 4px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

/* ========================================================
   KURGU ZAMAN ÇİZELGESİ (STORYBOARD PANEL)
   ======================================================== */
.storyboard-timeline-panel {
  background: var(--bg-panel);
  border: 1px solid rgba(51, 102, 153, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.timeline-title {
  font-size: 0.92rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.timeline-meta {
  display: flex;
  gap: 10px;
}

.meta-pill {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.btn-timeline-action {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-timeline-action:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff;
}

/* Sahnelerin Sıralandığı Bant */
.timeline-slots-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 4px 14px;
  min-height: 140px;
  align-items: center;
}

.timeline-slots-container::-webkit-scrollbar {
  height: 6px;
}
.timeline-slots-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
.timeline-slots-container::-webkit-scrollbar-thumb {
  background: var(--accent-sapphire);
  border-radius: 3px;
}

.timeline-scene-card {
  flex: 0 0 160px;
  background: rgba(13, 23, 42, 0.8);
  border: 1.5px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.timeline-scene-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
  transform: translateY(-2px);
}

.timeline-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  overflow: hidden;
}

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

.timeline-scene-num {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--accent-cyan);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--accent-cyan);
}

.timeline-scene-dur {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.62rem;
  padding: 1px 5px;
  border-radius: 3px;
}

.timeline-card-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-scene-title {
  font-size: 0.72rem;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-card-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.btn-card-ctrl {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.68rem;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-card-ctrl:hover {
  background: var(--accent-cyan);
  color: #070b14;
}

.btn-card-ctrl.remove:hover {
  background: #ef4444;
  color: #fff;
}

/* Boş Çizelge Durumu */
.timeline-empty-hint {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 2rem;
}

/* Birleştirme Aksiyon Barı */
.movie-render-action-bar {
  background: rgba(8, 14, 28, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.render-inputs-row {
  display: flex;
  gap: 12px;
}

.render-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.render-input-group.flex-2 {
  flex: 2;
}

.render-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.btn-stitch-primary {
  width: 100%;
  background: linear-gradient(135deg, #00f0ff 0%, #336699 60%, #10223d 100%);
  border: 1px solid #00f0ff;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.06em;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  transition: var(--transition-smooth);
}

.btn-stitch-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.75);
}

/* ========================================================
   3. SAĞ SÜTUN: FİLM ARŞİVİ & KLİP KÜTÜPHANESİ
   ======================================================== */
.library-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
}

.lib-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lib-tab-btn.active {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--accent-amber);
  color: #fff;
  font-weight: 700;
}

.library-toolbar {
  display: flex;
  gap: 8px;
}

.library-search-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  outline: none;
}

.library-search-input:focus {
  border-color: var(--accent-amber);
}

.btn-lib-refresh {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  width: 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-lib-refresh:hover {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
}

.library-cards-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: calc(100vh - 350px);
  padding-right: 4px;
}

.library-cards-scroll::-webkit-scrollbar {
  width: 5px;
}
.library-cards-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* Kütüphane Kartları */
.lib-media-card {
  background: rgba(13, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition-smooth);
}

.lib-media-card:hover {
  background: rgba(20, 35, 65, 0.85);
  border-color: var(--accent-amber);
  transform: translateY(-2px);
}

.lib-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.lib-media-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.lib-media-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}

.lib-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.btn-lib-play {
  flex: 1;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #fff;
  font-size: 0.72rem;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-lib-play:hover {
  background: var(--accent-cyan);
  color: #070b14;
}

.btn-lib-add {
  flex: 1;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.72rem;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-lib-add:hover {
  background: #10b981;
  color: #070b14;
}

.btn-lib-dl {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-size: 0.72rem;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-lib-dl:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.library-footer-info {
  margin-top: auto;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

/* ========================================================
   TOAST BİLDİRİMİ
   ======================================================== */
.cinema-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(10, 18, 35, 0.95);
  border: 1.5px solid var(--accent-cyan);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.82rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--glow-cyan);
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 10px;
  transform: translateY(20px);
  animation: toast-in 0.3s forwards ease;
}

@keyframes toast-in {
  to { transform: translateY(0); opacity: 1; }
}

/* ========================================================
   RESPONSIVE UYUMLULUK
   ======================================================== */
@media (max-width: 1400px) {
  .cinema-main-stage {
    grid-template-columns: 300px 1fr 300px;
    gap: 14px;
    padding: 1rem;
  }
}

@media (max-width: 1100px) {
  .cinema-main-stage {
    grid-template-columns: 1fr;
  }
  .cinema-deck-left,
  .cinema-deck-right {
    position: static;
    height: auto;
  }
}
