@font-face { font-family: TimelineSans; src: url("BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: TimelineSerif; src: url("PTSerif-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: TimelineHand; src: url("Kalam-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
body[data-editor-mode="timeline"] .editor-layout { min-height: 0 !important; height: auto; padding-bottom: 0; margin-bottom: 0; }
body[data-editor-mode="timeline"] .preview-column:has(> .preview-main[hidden]) { display: none; }
.tl-editor { --tl-accent: var(--red, #cf2735); --tl-line: var(--line, #dedbd5); --tl-panel: var(--panel, #fff); --tl-brand-font: TimelineSans, sans-serif; --tl-brand-weight: 700; color: var(--ink, #252328); max-width: 1500px; margin: 0 auto 48px; padding: 24px; }
.tl-editor[data-font-key="alfa"] { --tl-brand-font: "Alfa Slab One", serif; --tl-brand-weight: 400; }
.tl-editor[data-font-key="hand"] { --tl-brand-font: TimelineHand, cursive; }
.tl-editor[data-font-key="serif"] { --tl-brand-font: TimelineSerif, serif; --tl-brand-weight: 400; }
.tl-editor [hidden], .tl-editor[hidden] { display: none !important; }
.tl-editor *, .tl-editor *::before, .tl-editor *::after { box-sizing: border-box; }
.tl-editor button, .tl-editor input, .tl-editor select, .tl-editor textarea { font: inherit; font-size: 13px; }
.tl-editor button, .tl-editor summary, .tl-upload { cursor: pointer; }
.tl-editor button:not(.primary-button) { min-height: 36px; border: 1px solid var(--tl-line); border-radius: 8px; padding: 7px 11px; background: var(--tl-panel); color: inherit; font-weight: 700; }
.tl-editor button:hover:not(:disabled) { border-color: var(--tl-accent); }
.tl-editor button:disabled { opacity: .4; cursor: default; }
.tl-editor :focus-visible { outline: 3px solid var(--tl-accent); outline-offset: 3px; }
.tl-editor input:not([type="checkbox"]):not([type="range"]):not([type="file"]), .tl-editor select, .tl-editor textarea { width: 100%; min-height: 38px; border: 1px solid var(--tl-line); border-radius: 7px; padding: 8px; background: #fff; color: #252328; }
.tl-editor input[type="color"] { padding: 3px !important; min-width: 48px; }
.tl-editor input[type="range"] { width: 100%; accent-color: var(--tl-accent); }
.tl-editor textarea { resize: vertical; }
.tl-editor label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; min-width: 0; }
.tl-editor hr { border: 0; border-top: 1px solid var(--tl-line); margin: 20px 0; }
.tl-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 0 24px; }
.tl-eyebrow { color: var(--tl-accent); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.tl-heading h2 { font: 700 clamp(38px, 5vw, 60px)/1 "Barlow Condensed", sans-serif; margin: 7px 0; letter-spacing: -.025em; }
.tl-heading p { font-size: 13px; margin: 8px 0 0; color: #6b6669; }
.tl-format { font-size: 11px; line-height: 1.9; letter-spacing: .06em; text-align: right; }
.tl-workspace, .tl-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.tl-workspace { display: grid; gap: 16px; }
.tl-layout { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(260px, 1.5fr) minmax(220px, 1fr); gap: 16px; align-items: start; }
.tl-card { border: 1px solid var(--tl-line); border-radius: 14px; background: var(--tl-panel); padding: 18px; min-width: 0; }
.tl-card h3 { margin: 0 0 16px; font: 700 22px/1 "Barlow Condensed", sans-serif; color: var(--tl-accent); }
.tl-card h3 span { color: var(--ink, #252328); margin-left: 8px; }
.tl-library, .tl-fields { display: grid; gap: 14px; }
.tl-hint { font-size: 11px; line-height: 1.6; color: #777078; margin: 0; }
.tl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-row > label, .tl-row > select { flex: 1; }
.tl-editor .tl-check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.tl-upload { position: relative; display: flex !important; min-height: 42px; align-items: center; justify-content: center; border: 1px dashed var(--tl-accent); background: color-mix(in srgb, var(--tl-accent) 5%, white); color: var(--tl-accent); border-radius: 8px; padding: 10px; overflow: hidden; }
.tl-upload input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tl-upload:focus-within { outline: 3px solid var(--tl-accent); outline-offset: 2px; }
.tl-sources { display: grid; gap: 7px; max-height: 190px; overflow: auto; }
.tl-source { display: flex; gap: 8px; align-items: center; padding: 5px; background: #f6f4f0; border-radius: 7px; min-width: 0; }
.tl-source img, .tl-source video { width: 42px; height: 38px; object-fit: cover; border-radius: 4px; background: #222; }
.tl-source span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.tl-editor details summary { font-size: 12px; font-weight: 700; padding: 7px 0; }
.tl-editor details[open] { display: grid; }
.tl-editor details > label, .tl-editor details > .tl-row, .tl-editor details > p { margin-top: 10px; }
.tl-monitor-heading { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; letter-spacing: .1em; color: #716a72; margin-bottom: 12px; }
.tl-stage { display: grid; place-items: center; padding: 14px; border-radius: 8px; background: radial-gradient(ellipse at top, #ebe7e0, #e0dbd3); }
.tl-preview { position: relative; width: min(100%, 250px); aspect-ratio: 9 / 16; overflow: hidden; background: #000; container-type: inline-size; box-shadow: 0 6px 25px #211a2126; isolation: isolate; }
.tl-media, .tl-overlays, .tl-transition { position: absolute; inset: 0; }
.tl-media > video, .tl-media > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tl-transition { pointer-events: none; z-index: 1; opacity: 0; }
.tl-overlays { z-index: 3; pointer-events: none; }
.tl-overlay { position: absolute; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.2; pointer-events: auto; cursor: move; touch-action: none; font-weight: 700; text-shadow: 0 1px 3px #0005; border-radius: 1px; outline: 1px solid transparent; padding: 0; }
.tl-overlay[data-font="brand"] { font-family: var(--tl-brand-font); font-weight: var(--tl-brand-weight); }
.tl-overlay[data-font="sans"] { font-family: TimelineSans, sans-serif; }
.tl-overlay[data-font="serif"] { font-family: TimelineSerif, serif; font-weight: 400; }
.tl-overlay[data-font="hand"] { font-family: TimelineHand, cursive; }
.tl-overlay.is-selected { outline: 1px dashed #fff; outline-offset: 4px; }
.tl-logo, .tl-logo-plate { position: absolute; z-index: 2; pointer-events: none; }
.tl-logo { object-fit: contain; }
.tl-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #bbb; font: 700 22px "Barlow Condensed", sans-serif; pointer-events: none; }
.tl-empty small { margin-top: 10px; font: 10px sans-serif; color: #777; }
.tl-transport { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin: 12px 0; }
.tl-transport output { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.tl-transport input { grid-column: 1 / -1; }
.tl-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tl-toolbar h3 { margin: 0; }
.tl-icon-tools { display: flex; gap: 4px; align-items: center; padding: 3px; border: 1px solid var(--tl-line); border-radius: 9px; background: #f6f4f0; }
.tl-editor .tl-icon-tools button { display: grid; place-items: center; width: 36px; height: 36px; padding: 6px; min-height: 36px; border: 0; background: transparent; }
.tl-icon-tools svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.tl-tool-separator { width: 1px; height: 22px; margin: 0 2px; background: var(--tl-line); }
.tl-editor .tl-scale { display: flex; flex: 0 1 150px; align-items: center; gap: 8px; font-size: 10px; }
.tl-scale input { flex: 1; min-width: 0; max-width: 90px; }
.tl-scroll { overflow: auto; overscroll-behavior-x: contain; margin-top: 12px; border-radius: 9px; border: 1px solid var(--tl-line); background: repeating-linear-gradient(90deg, #f9f8f5 0 23px, #f0eee9 23px 24px); }
.tl-track-area { position: relative; min-width: 100%; padding-bottom: 8px; }
.tl-ruler { height: 30px; position: relative; cursor: crosshair; touch-action: none; border-bottom: 1px solid #d6d2cb; background: #f3f1ec; }
.tl-ruler span { position: absolute; top: 0; bottom: 0; padding: 7px 5px; border-left: 1px solid #c8c3ba; font-size: 9px; color: #777078; font-variant-numeric: tabular-nums; }
.tl-clips { height: 82px; display: flex; align-items: stretch; gap: 0; padding: 5px 0; }
.tl-clip { position: relative; flex: 0 0 auto; min-width: 0; display: flex; align-items: center; background: #e3e6e2; border: 2px solid transparent; border-radius: 6px; overflow: hidden; touch-action: none; cursor: grab; }
.tl-clip.is-selected { border-color: var(--tl-accent); }
.tl-clip.is-dragging { opacity: .65; outline: 2px dashed var(--tl-accent); outline-offset: 2px; z-index: 5; }
.tl-filmstrip { position: absolute; inset: 0; display: flex; pointer-events: none; background: #344146; }
.tl-filmstrip img { display: block; height: 100%; flex: 1 1 0; min-width: 0; object-fit: cover; border-right: 1px solid #ffffff25; pointer-events: none; }
.tl-filmstrip:empty::after { content: 'Kareler hazırlanıyor…'; color: #fff; font: 10px sans-serif; padding: 8px 14px; }
.tl-filmstrip[data-status="unavailable"]:empty::after { content: 'Kareler okunamadı'; }
.tl-clip-caption { position: absolute; left: 13px; right: 13px; bottom: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; font-weight: 700; color: white; text-shadow: 0 1px 3px #000; pointer-events: none; }
.tl-editor .tl-edge { position: absolute; top: 0; bottom: 0; width: 12px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: #25232899 !important; cursor: ew-resize; z-index: 2; touch-action: none; }
.tl-edge::after { content: ""; display: block; width: 2px; height: 18px; margin: auto; background: #fff; border-radius: 2px; }
.tl-edge[data-edge="left"] { left: 0; }
.tl-edge[data-edge="right"] { right: 0; }
.tl-text-track { position: relative; min-height: 38px; max-height: 230px; overflow-y: auto; overflow-x: hidden; background: #f2ece0a6; }
.tl-text-lane { position: absolute; left: 0; right: 0; height: 38px; border-bottom: 1px solid #c7a86830; }
.tl-text-segment { position: absolute; top: 3px; height: 32px; border: 1px solid #c7a868; background: #e9d9b7; color: #634a1c; border-radius: 4px; touch-action: none; cursor: grab; }
.tl-text-caption { position: absolute; inset: 5px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; pointer-events: none; }
.tl-text-segment.is-selected { outline: 2px solid var(--tl-accent); outline-offset: -2px; }
.tl-text-segment.is-dragging { z-index: 5; box-shadow: 0 0 0 2px #c7a86855; }
.tl-music-track { position: relative; height: 64px; font-size: 10px; overflow: hidden; background: #e3efee; padding-top: 4px; }
.tl-music-band { position: relative; height: 56px; background: #153942; color: #e2f2f3; overflow: hidden; border-radius: 4px; }
.tl-waveform { position: absolute; left: 0; bottom: 0; width: 100%; height: 48px; pointer-events: none; }
.tl-music-caption { position: absolute; top: 3px; left: 8px; right: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px #000; background: #153942b0; }
.tl-music-band[data-waveform="loading"]::after { content: 'Ses dalgası hazırlanıyor…'; position: absolute; left: 8px; bottom: 5px; opacity: .7; }
.tl-music-band[data-waveform="unavailable"]::after { content: 'Ses dalgası okunamadı'; position: absolute; left: 8px; bottom: 5px; opacity: .7; }
.tl-inspector .tl-toolbar { align-items: start; }
#timelineTextPanel > .tl-hint { margin-bottom: 14px; }
.tl-playhead { position: absolute; width: 2px; top: 0; bottom: 0; background: var(--tl-accent); z-index: 6; pointer-events: none; }
.tl-playhead::before { content: ""; position: absolute; left: -4px; top: 0; border: 5px solid transparent; border-top-color: var(--tl-accent); }
.tl-editor button[aria-pressed="true"] { border-color: var(--tl-accent); background: color-mix(in srgb, var(--tl-accent) 10%, white); }
.tl-danger { color: #ae2934 !important; }
.tl-export { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tl-export .primary-button { width: min(100%, 330px); }
.tl-message { font-size: 13px; line-height: 1.6; min-height: 24px; margin: 14px 0; }
.tl-result { margin-top: 16px; }
.tl-result video { display: block; width: min(100%, 300px); max-height: 65vh; margin-bottom: 16px; background: #000; }
.tl-result p { font-size: 12px; }
.tl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 1051px) {
  .tl-heading { padding-bottom: 16px; }
  .tl-heading h2 { font-size: 46px; }
  .tl-heading p { margin-top: 6px; }
  .tl-library, .tl-inspector { max-height: 490px; overflow-y: auto; scrollbar-width: thin; }
  .tl-monitor { padding: 14px; }
  .tl-preview { width: min(100%, 190px); }
  .tl-stage { padding: 10px; }
  .tl-transport { gap: 6px; margin: 8px 0; }
  .tl-transport button { min-height: 32px !important; }
  .tl-monitor > .tl-hint { font-size: 10px; }
}
@media (max-width: 1050px) { .tl-layout { grid-template-columns: minmax(190px, 1fr) minmax(250px, 1.2fr); } .tl-inspector { grid-column: 1 / -1; } .tl-inspector .tl-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; } .tl-text-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tl-editor { padding: 14px; } .tl-heading { align-items: start; } .tl-format { font-size: 9px; } .tl-layout { display: flex; flex-direction: column; } .tl-layout > * { width: 100%; } .tl-monitor { order: -1; } .tl-preview { width: min(100%, 220px); } .tl-inspector .tl-fields, .tl-text-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tl-editor .tl-edge { width: 18px; } .tl-clip-caption { left: 20px; right: 20px; } .tl-export { align-items: stretch; flex-direction: column; } .tl-export .primary-button { width: 100%; } .tl-toolbar .tl-row { gap: 6px; } .tl-card { padding: 14px; } }
