* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0c0d12;
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

/* APP LAYOUT */
.app-container {
    display: flex;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, #1a1a2e 0%, #0c0d12 40%, #000 100%);
}

.sidebar {
    width: 280px;
    background: rgba(21, 23, 29, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    box-shadow: 2px 0 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.logo {
    padding: 0 30px 30px;
}

.logo h2 {
    font-weight: 800;
    font-size: 22px;
}

.logo span {
    color: #53f22d;
}

.version-tag {
    background: #53f22d;
    color: #000;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 5px;
    display: inline-block;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    padding: 15px 30px;
    font-weight: 600;
    color: #8b92a5;
    cursor: pointer;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.nav-links li:hover,
.nav-links li.active {
    color: #fff;
    background: #1c1f26;
    border-left-color: #53f22d;
}

.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* GENERAL UI */
.hero-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.subtitle-text {
    color: #8b92a5;
    font-size: 14px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: rgba(26, 29, 36, 0.6);
    backdrop-filter: blur(15px);
    padding: 30px 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(83, 242, 45, 0.1);
    border-color: rgba(83, 242, 45, 0.2);
}

.stat-card h3 {
    color: #8b92a5;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.status {
    font-weight: 800;
    font-size: 22px;
    margin-top: 5px;
}

.online {
    color: #53f22d;
    text-shadow: 0 0 10px rgba(83, 242, 45, 0.4);
}

.pending {
    color: #f59e0b;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #53f22d 0%, #2ea712 100%);
    color: #000;
    padding: 12px 24px;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(83, 242, 45, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(83, 242, 45, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(83, 242, 45, 0.5);
    filter: brightness(1.1);
}

/* VOD LIST */
.vod-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.vod-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 29, 36, 0.5);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.vod-card:hover {
    background: rgba(35, 38, 48, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateX(5px);
}

.vod-details h4 {
    font-size: 18px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.vod-details p {
    color: #8b92a5;
    font-size: 13px;
}

/* EDITOR - PREMIUM */
.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.editor-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: calc(100vh - 150px);
}

.top-row {
    display: flex;
    gap: 15px;
    flex: 2;
    min-height: 400px;
}

/* YENİ GELİŞMİŞ ARAÇ ÇANTASI (SEKMELİ) */
.tools-panel {
    width: 380px;
    background: #0f1015;
    /* Daha koyu, profesyonel arka plan */
    border: 1px solid #1f2128;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tools-tabs {
    display: flex;
    background: #111217;
    border-bottom: 1px solid #1f2128;
    padding: 10px 10px 0 10px;
    gap: 5px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    padding: 10px 15px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover {
    color: #fff;
    background: #1a1c23;
}

.tab-btn.active {
    background: rgba(16, 185, 129, 0.05);
    /* Daha hafif yeşil */
    border: 1px solid #1f2128;
    /* Orijinal screenshot'taki gibi siyahımsı sınır */
    border-bottom: 2px solid #0f1015;
    /* Çizgiyi örtmek için zemin rengi */
    color: #10b981;
    margin-bottom: -1px;
}

.tab-content-container {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

.pane-desc {
    color: #8b92a5;
    font-size: 12px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* ÖZEL SLIDER (Tıpkı resimdeki gibi İnce gri çizgi + Yeşil dolgu) */
.slider-group {
    margin-bottom: 25px;
}

.slider-group label {
    display: block;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-range {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #10b981 0%, #2a2d36 0%);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
}

/* Chrome/Safari başlıkları */
.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10b981;
    /* Resimdeki yeşil ton */
    cursor: pointer;
    transition: transform 0.1s;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.slider-val {
    color: #10b981;
    font-size: 14px;
    font-weight: 700;
    min-width: 45px;
    text-align: right;
    font-family: monospace;
}

.slider-val-input {
    background: transparent;
    border: none;
    color: #10b981;
    font-size: 14px;
    font-weight: 700;
    width: 80px;
    text-align: right;
    font-family: monospace;
    outline: none;
    border-bottom: 1px dashed #2a2d36;
    padding-bottom: 2px;
}

.slider-val-input:focus {
    border-bottom: 1px solid #10b981;
}

/* MULTI TRIM SATIRLARI */
.multi-trim-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #15161d;
    border: 1px solid #1f2128;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.multi-trim-row input {
    width: 80px;
    background: #0f1015;
    border: 1px solid #2a2d36;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    outline: none;
}

.multi-trim-row input:focus {
    border-color: #10b981;
}

.add-range-btn {
    width: 100%;
    background: transparent;
    border: 1px dashed #2a2d36;
    color: #8b92a5;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    margin-top: 5px;
    margin-bottom: 25px;
}

.add-range-btn:hover {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.del-range-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s;
}

.del-range-btn:hover {
    background: #ef4444;
    color: #fff;
}

/* Yeni Kurgu İndir Butonu */
.action-btn-primary {
    width: 100%;
    background: #10b981;
    /* Neon green */
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.action-btn-primary:active {
    transform: scale(0.97);
}

.action-btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.time-label {
    font-size: 13px;
    color: #8b92a5;
    margin-bottom: 15px;
    display: block;
    padding-left: 5px;
}

/* VIDEO CANVAS */
.video-preview-canvas {
    flex: 1;
    background: #050508;
    background-image: radial-gradient(circle at center, #111 0%, #000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.video-placeholder {
    font-size: 20px;
    font-weight: 800;
    color: #444;
}

.current-time-hud {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 16px;
    color: #53f22d;
}

.shorts-mode {
    aspect-ratio: 9/16 !important;
    height: 100% !important;
    width: auto !important;
    object-fit: contain !important;
    border-left: 2px dashed #ff3366;
    border-right: 2px dashed #ff3366;
}

/* TIMELINE */
.timeline-container {
    flex: 1;
    background: #1a1d24;
    border-radius: 8px;
    position: relative;
    overflow-x: auto;
    border: 1px solid #282c35;
    display: flex;
    flex-direction: column;
}

.timeline-ruler {
    height: 30px;
    background: #111217;
    font-size: 11px;
    color: #6b7280;
    border-bottom: 1px solid #282c35;
    position: relative;
    /* Bu önemli, absolute olan yazılar buna göre yerleşecek */
    min-width: 100%;
}

.timeline-tracks {
    flex: 1;
    position: relative;
    padding: 10px 0;
    overflow-y: hidden;
    cursor: pointer;
    min-width: 100%;
}

/* Kırpma (Trim) Bölgesi */
.trim-region {
    position: absolute;
    top: 10px;
    bottom: 10px;
    background: rgba(83, 242, 45, 0.25);
    border-top: 1px solid #53f22d;
    border-bottom: 1px solid #53f22d;
    z-index: 40;
    display: none;
    /* Video yüklenince js ile görünür olur */
}

/* Elle Kırpma Kulpları (Handles) */
.trim-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #53f22d;
    cursor: ew-resize;
    z-index: 45;
    box-shadow: 0 0 10px rgba(83, 242, 45, 0.5);
    border-radius: 3px;
    transition: transform 0.1s;
}

.trim-handle:hover {
    transform: scaleX(1.5);
}

.trim-left {
    left: 0;
}

.trim-right {
    right: 0;
}

.playhead-line {
    position: absolute;
    top: -25px;
    /* Cetvelin içine kadar uzanması için yukarı çıkarıldı */
    bottom: 0;
    width: 2px;
    background: #53f22d;
    left: 0%;
    z-index: 50;
    pointer-events: none;
    /* Fare tıklamalarının alttaki track'e geçmesi için */
    /* CSS transition iptal edildi. Mouse takibi gecikmesi yapıyordu. (5 FPS hissini engeller) */
}

.playhead-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -7px;
    width: 16px;
    height: 18px;
    background: #53f22d;
    clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Eski .timeline-ruler burada silindi (yukarıda birleştirildi) */

.ruler-tick {
    position: absolute;
    bottom: 5px;
    transform: translateX(-50%);
    font-family: monospace;
    font-weight: 600;
}

.ruler-tick::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 1px;
    height: 5px;
    background: #4a4f5f;
}

.track {
    height: 45px;
    margin: 5px 10px;
    background: #20232c;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.track::after {
    /* İçerik kalabalığı yapmasın diye ismini transparent yaptık */
    content: attr(data-name);
    position: absolute;
    left: 10px;
    top: 15px;
    font-size: 10px;
    font-weight: bold;
    color: rgba(139, 146, 165, 0.4);
    pointer-events: none;
    z-index: 1;
}

.video-track-1 {
    background: #111217;
    border: 1px solid #1f4287;
    display: flex;
    /* İçindeki klipleri yan yana dizmek yerine mutlak pozisyonlayacağız, display block da kalabilir */
    position: relative;
}

.clip-segment {
    position: absolute;
    height: 100%;
    background: #1a5c9e;
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05) 10px, transparent 10px, transparent 20px);
    border: 1px solid #000;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.1);
    z-index: 5;
    /* Text içerecek */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
}

.clip-segment:hover {
    filter: brightness(1.2);
}

.clip-segment.selected {
    border: 2px solid #ffaa00;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.audio-track-1 {
    background: #111217;
    border: 1px solid #2f4f4f;
}

/* HEATMAP */
.chat-heatmap {
    height: 25px;
    position: relative;
    background: #0c0d12;
    border-top: 1px solid #282c35;
}

.heatmap-wave {
    position: absolute;
    bottom: 0;
    width: 3px;
    background: #53f22d;
    border-radius: 3px 3px 0 0;
    opacity: 0.7;
}

.heatmap-wave:hover {
    opacity: 1;
    background: #fff;
}

/* ANİMASYONLAR */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}