:root {
  --bg: #0e0e10;
  --panel: #17171a;
  --panel-elevated: #1c1c20;
  --line: #2a2a2e;
  --line-subtle: #1f1f24;
  --text: #f2f2f5;
  --text-muted: #9a9aa6;
  --text-dim: #666672;
  --accent: #ff4d2e;
  --accent-soft: rgba(255, 77, 46, 0.14);

  /* Video izleri (mavi-mor soluk tonlar) */
  --clip-v1-bg: #223042;
  --clip-v1-border: #3d5878;
  --clip-v1-text: #c9ddf5;

  --clip-v2-bg: #2c2640;
  --clip-v2-border: #53467a;
  --clip-v2-text: #d7cef5;

  --clip-v3-bg: #21343d;
  --clip-v3-border: #3c6173;
  --clip-v3-text: #c5e3f0;

  /* Ses/Veri izleri (yeşil soluk tonlar) */
  --clip-a1-bg: #1d352e;
  --clip-a1-border: #346355;
  --clip-a1-text: #c2ebe0;

  --clip-a2-bg: #223626;
  --clip-a2-border: #3e6646;
  --clip-a2-text: #c7ebd0;

  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --topbar-h: 46px;
  --timeline-h: 138px;
}

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

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-top: var(--topbar-h);
  padding-bottom: calc(var(--timeline-h) + 24px);
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Odak Görünürlüğü (Erişilebilirlik) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   Üst Editör Çubuğu (Canlı Timecode & Aktif Sahne)
   ========================================================================== */
.editor-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: rgba(23, 23, 26, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 120;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 4px 2px;
}

.brand-playhead-icon {
  width: 2px;
  height: 14px;
  background: var(--accent);
  position: relative;
  display: inline-block;
}

.brand-playhead-icon::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 8px;
  height: 5px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.topbar-divider {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.active-scene-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 11px;
  border-radius: 4px;
}

.tc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.tc-dot.is-scrubbing {
  opacity: 1;
  transform: scale(1.25);
}

.live-timecode {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Ana Sahne (Sahneler & Tipografi)
   ========================================================================== */
.stage {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 36px;
}

.scene {
  min-height: calc(100vh - var(--topbar-h) - var(--timeline-h));
  display: flex;
  align-items: center;
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.scene:last-child {
  border-bottom: none;
}

.scene-inner {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* ==========================================================================
   Açılış Sahnesi ("Render" Girişi <= 1sn)
   ========================================================================== */
.intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 48px;
  align-items: center;
  max-width: 100%;
  padding: 24px 0;
}

.intro-copy {
  min-width: 0;
}

.intro-aside {
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  animation: introAsideFade 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes introAsideFade {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 0.52;
    transform: translateY(0);
  }
}

.intro-monitor {
  width: 100%;
  max-width: 380px;
  background: rgba(23, 23, 26, 0.55);
  border: 1px solid var(--line-subtle);
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.intro-monitor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line-subtle);
  padding-bottom: 10px;
}

.intro-monitor-tc {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.intro-waveform {
  width: 100%;
  height: auto;
  display: block;
}

.intro-mini-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--line-subtle);
  padding-top: 12px;
}

.intro-mini-clip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 4px 8px;
  background: rgba(14, 14, 16, 0.55);
  border: 1px solid var(--line-subtle);
  border-radius: 3px;
}

.imc-code {
  color: var(--text-muted);
  font-weight: 500;
}

.imc-name {
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intro-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.mono-badge {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 77, 46, 0.35);
  padding: 4px 10px;
  border-radius: 3px;
}

.render-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.render-bar {
  width: 72px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  display: inline-block;
}

.render-bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
  animation: renderBarPass 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.render-reveal {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 28px;
  overflow: hidden;
}

.intro-title {
  font-family: var(--font-sans);
  font-size: clamp(2.45rem, 8.2vw, 6.75rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.0175em;
  color: var(--text);
  overflow-wrap: break-word;
  animation: renderTitleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Tarama çizgisi (Render girişi < 1s) */
.scanline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--accent);
  box-shadow: 0 0 18px 2px var(--accent);
  pointer-events: none;
  z-index: 2;
  animation: scanlineSweep 0.82s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes scanlineSweep {
  0% {
    left: 0%;
    opacity: 1;
  }
  85% {
    left: 100%;
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes renderTitleIn {
  0% {
    clip-path: inset(0 100% 0 0);
    filter: brightness(1.5);
  }
  100% {
    clip-path: inset(0 0% 0 0);
    filter: brightness(1);
  }
}

@keyframes renderBarPass {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

.intro-lead {
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 780px;
  margin-bottom: 24px;
}

.intro-sub {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 100%;
}

.status-led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fb984;
  box-shadow: 0 0 8px rgba(63, 185, 132, 0.6);
  vertical-align: middle;
  margin-right: 10px;
  margin-top: -2px;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   Butonlar
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 4px;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0e0e10;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: #ff6247;
  border-color: #ff6247;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: var(--panel-elevated);
  border-color: #45454d;
  transform: translateY(-1px);
}

.btn-project {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.btn-project:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   Proje Sahneleri (01 – 05)
   ========================================================================== */
.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.project-media {
  width: 100%;
}

/* 16:10 Tarayıcı / Editör Monitör Çerçevesi */
.browser-frame {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.scene.is-active .browser-frame {
  border-color: #3e3e46;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.browser-bar {
  height: 34px;
  background: #141417;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e2e35;
}

.browser-address {
  color: var(--text-muted);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-tc {
  color: var(--text-dim);
  font-size: 0.6875rem;
}

.browser-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #111114;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dosya yoksa görünür kalacak düzgün yer tutucu */
.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.015) 25%, transparent 25%) -16px 0 / 32px 32px,
    #121216;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  z-index: 0;
}

.placeholder-code {
  color: var(--text-muted);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.project-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
}

.project-video.has-error {
  opacity: 0;
}

/* SVG / Kod Animasyon Alanları (03, 04, 05) */
.viz-viewport {
  background: #101014;
}

.viz-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 03 · Reels Outlier Grafiği Animasyonları */
.reels-bars .bar {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.reels-bars .bar.outlier {
  animation: outlierRise 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  filter: drop-shadow(0 0 8px rgba(255, 77, 46, 0.3));
}

@keyframes outlierRise {
  0% {
    transform: scaleY(0.18);
  }
  100% {
    transform: scaleY(1);
  }
}

.outlier-dot {
  animation: outlierPulse 2.2s ease-in-out infinite alternate;
}

@keyframes outlierPulse {
  0% {
    opacity: 0.55;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* 04 · Otomasyon Kurgu Hattı Kesim/Birleşme Animasyonu */
.cut-gap {
  animation: gapSliceOut 4.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center center;
}

.merged-clip.mc-2 {
  animation: snapClip2 4.4s ease-in-out infinite;
}

.merged-clip.mc-3 {
  animation: snapClip3 4.4s ease-in-out infinite;
}

.mini-cut-playhead {
  animation: miniPlayheadSweep 4.4s linear infinite;
}

@keyframes gapSliceOut {
  0%, 20% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
  45%, 80% {
    opacity: 0.18;
    transform: translateY(8px) scaleY(0.88);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes snapClip2 {
  0%, 20% {
    transform: translateX(26px);
  }
  45%, 85% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(26px);
  }
}

@keyframes snapClip3 {
  0%, 20% {
    transform: translateX(52px);
  }
  45%, 85% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(52px);
  }
}

@keyframes miniPlayheadSweep {
  0% {
    transform: translateX(-240px);
  }
  100% {
    transform: translateX(210px);
  }
}

/* Proje Metin Sütunu */
.project-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.scene-tag-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.scene-tag {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 77, 46, 0.3);
  padding: 3px 9px;
  border-radius: 3px;
}

.scene-tag-sep {
  color: var(--text-dim);
}

.scene-tag-sub {
  color: var(--text-muted);
}

.project-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 20px;
}

.project-desc {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.62;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 54ch;
}

.project-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.project-tags li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 3px;
}

.project-action {
  margin-top: 2px;
}

/* ==========================================================================
   Kapanış ("Export" Anı)
   ========================================================================== */
.export-inner {
  max-width: 860px;
  padding: 32px 0;
}

.export-progress-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 18px 22px;
  margin-bottom: 44px;
  max-width: 520px;
}

.export-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.export-tag {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.export-percent {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.export-bar-track {
  width: 100%;
  height: 6px;
  background: #101013;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.export-bar-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
  transition: transform 0.2s ease-out;
}

.export-title {
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.0175em;
  margin-bottom: 18px;
}

.export-desc {
  font-size: clamp(1.125rem, 1.8vw, 1.45rem);
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 52ch;
  margin-bottom: 40px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-bottom: 56px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.2s ease, color 0.2s ease;
}

.contact-card:hover {
  padding-left: 12px;
  color: var(--accent);
}

.contact-type {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.contact-val {
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 1.4vw, 1.05rem);
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
}

.contact-card:hover .contact-val {
  color: var(--accent);
}

.site-footer {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Sabit Alt Kurgu Timeline Şeridi
   ========================================================================== */
.timeline-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--timeline-h);
  background: var(--panel);
  border-top: 1px solid var(--line);
  z-index: 130;
  user-select: none;
  -webkit-user-select: none;
}

.timeline-shell {
  display: grid;
  grid-template-columns: 58px 1fr;
  height: 100%;
  max-width: 100%;
}

/* Sol İz Adları (V1, V2, A1, A2) */
.timeline-track-labels {
  background: #131316;
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-rows: 23px repeat(4, 1fr);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.track-label-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  font-size: 0.625rem;
  color: var(--text-dim);
}

.track-label {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line-subtle);
  font-weight: 500;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.track-label:last-child {
  border-bottom: none;
}

.track-label.is-active {
  color: var(--text);
  background: rgba(255, 77, 46, 0.1);
}

/* Sağ Timeline Çalışma Alanı */
.timeline-workspace {
  position: relative;
  display: grid;
  grid-template-rows: 23px 1fr;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

/* Üst Timecode Cetveli */
.timeline-ruler {
  position: relative;
  height: 23px;
  background: #141418;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    to right,
    #2a2a2e 0px,
    #2a2a2e 1px,
    transparent 1px,
    transparent 2.5%
  );
  background-size: 100% 5px;
  background-position: left bottom;
  background-repeat: no-repeat;
}

.ruler-mark {
  position: absolute;
  top: 3px;
  transform: translateX(4px);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-dim);
  pointer-events: none;
  white-space: nowrap;
}

.ruler-mark-end {
  left: auto !important;
  right: 8px;
  transform: none;
  text-align: right;
}

/* İz Satırları */
.timeline-tracks {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  height: 100%;
  background: #161619;
}

.track-lane {
  position: relative;
  border-bottom: 1px solid var(--line-subtle);
}

.track-lane:last-child {
  border-bottom: none;
}

/* Klip Blokları */
.timeline-clip {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 3px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: filter 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  z-index: 2;
}

.timeline-clip:hover {
  filter: brightness(1.18);
}

.clip-code {
  font-weight: 600;
  flex-shrink: 0;
}

.clip-title {
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clip-video-v1 {
  background: var(--clip-v1-bg);
  border-color: var(--clip-v1-border);
  color: var(--clip-v1-text);
}

.clip-video-v2 {
  background: var(--clip-v2-bg);
  border-color: var(--clip-v2-border);
  color: var(--clip-v2-text);
}

.clip-video-v3 {
  background: var(--clip-v3-bg);
  border-color: var(--clip-v3-border);
  color: var(--clip-v3-text);
}

.clip-audio-a1 {
  background: var(--clip-a1-bg);
  border-color: var(--clip-a1-border);
  color: var(--clip-a1-text);
}

.clip-audio-a2 {
  background: var(--clip-a2-bg);
  border-color: var(--clip-a2-border);
  color: var(--clip-a2-text);
}

.timeline-clip.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 77, 46, 0.45), 0 2px 10px rgba(0, 0, 0, 0.4);
  filter: brightness(1.22);
}

/* Playhead (Kırmızı/Turuncu İmleç) */
.timeline-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0%;
  width: 2px;
  pointer-events: none;
  z-index: 10;
  transform: translateX(-1px);
  will-change: left;
}

.playhead-head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 12px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}

.playhead-line {
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 77, 46, 0.65);
}

/* ==========================================================================
   Mobil (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --topbar-h: 44px;
    --timeline-h: 72px;
  }

  body {
    padding-bottom: calc(var(--timeline-h) + 20px);
  }

  .editor-topbar {
    padding: 0 16px;
  }

  .active-scene-badge {
    font-size: 0.6875rem;
  }

  .stage {
    padding: 0 16px;
  }

  .scene {
    min-height: auto;
    padding: 56px 0;
  }

  .scene-intro {
    min-height: calc(100svh - var(--topbar-h) - var(--timeline-h));
  }

  .intro-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .intro-aside {
    display: none;
  }

  .intro-actions {
    width: 100%;
  }

  .intro-actions .btn {
    flex: 1 1 auto;
    min-height: 46px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .btn-project {
    min-height: 46px;
    width: 100%;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 2px;
  }

  /* Mobilde timeline şeridi ~72px: iz adları gizlenir, yalnız "01" gibi numara ve playhead kalır */
  .timeline-shell {
    grid-template-columns: 1fr;
  }

  .timeline-track-labels {
    display: none;
  }

  .timeline-workspace {
    grid-template-rows: 16px 1fr;
  }

  .timeline-ruler {
    height: 16px;
  }

  .ruler-mark {
    top: 1px;
    font-size: 0.5625rem;
  }

  .ruler-mark:not(:first-child):not(:nth-child(4)):not(:last-child) {
    display: none;
  }

  .timeline-clip {
    top: 1px;
    bottom: 1px;
    padding: 0 4px;
    font-size: 0.5625rem;
    gap: 0;
    justify-content: center;
  }

  .clip-track,
  .clip-title {
    display: none;
  }
}

/* ==========================================================================
   prefers-reduced-motion: Animasyonlar Kapanır, Normal Sayfa Gibi Okunur
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .scanline {
    display: none !important;
  }

  .intro-title {
    clip-path: none !important;
    filter: none !important;
  }

  .export-bar-fill {
    transform: scaleX(1) !important;
  }

  .export-content {
    opacity: 1 !important;
    transform: none !important;
  }
}
