
.editor-container {
    width: 100%;
    max-width: none;
    margin: 0;
    font-family: sans-serif;
    padding: 0 12px 12px;
    box-sizing: border-box;
}


.compact-header {
    margin: 6px 0;
    height: 24px;
}

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

.back-link {
    color: #6b7280;
    font-size: 0.9rem;
}

.movie-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.movie-director {
    color: #6b7280;
    font-size: 0.9rem;
}
.editor-layout {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 8px;
    align-items: start;
}


.video-panel {
    display: flex;
    flex-direction: column;
}

.video-header {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 8px 10px;
}

.video-header .movie-title {
    font-size: 1.1rem;
    margin: 0;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.yt-player {
    position: absolute;
    width: 100%;
    height: 100%;
}

.subtitle-display {
    background: #111;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1rem;
    min-height: 44px;
    border-radius: 0 0 8px 8px;
}

.table-panel {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: calc(100vh - 90px);
    overflow: hidden;
}

.table-container {
    overflow-y: auto;
    height: 100%;
    max-height: none;
}

.cue-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.cue-table thead {
    background: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 1;
}

.cue-table th {
    padding: 4px;
    text-align: left;
    color: #9ca3af;
    font-weight: 500;
}

.cue-table td {
    padding: 4px;
}

.order-column,
.cue-order-layout {
    width: 7%;
}

.timing-column,
.cue-timing-layout {
    width: 17%;
}

.text-column,
.cue-text-layout {
    width: 76%;
}

.cue-row {
    border-bottom: 1px solid #f3f4f6;
}

.cue-row.active {
    background: #473f3ea6;
}

.cue-order-layout {
    text-align: center;
    vertical-align: middle;
}

.cue-number {
    font-size: 1rem;
    color: #374151;
    margin: 4px 0;
}

.order-button {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    padding: 3px 7px;
    color: #6b7280;
    border-radius: 4px;
    font-size: 0.7rem;
}

.cue-timing-layout {
    vertical-align: middle;
}

.time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 4px;
}

.time-label {
    display: block;
    font-size: 0.68rem;
    color: #9ca3af;
    margin-bottom: 2px;
}

.cue-input {
    width: 100%;
    box-sizing: border-box;
    padding: 3px 5px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #374151;
    font-size: 0.82rem;
}

.cue-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
}

.cue-action-button {
    padding: 3px 6px;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.82rem;
}

.delete-button {
    color: #9ca3af;
}

.cue-text-layout {
    vertical-align: middle;
}

.cue-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    resize: vertical;
    min-height: 76px;
    color: #374151;
    font-size: 0.9rem;
}

.cue-text {
    color: #374151;
    font-size: 0.9rem;
}

.loading-cell {
    padding: 20px;
    text-align: center;
    color: #9ca3af;
}

.color-dot-small {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}




.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.toolbar-label {
    font-size: 0.78rem;
    color: #9ca3af;
}

.version-label {
    margin-left: 8px;
}

.current-time {
    font-variant-numeric: tabular-nums;
}

.subtitle-select {
    padding: 5px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #374151;
}

.toolbar-spacer {
    flex: 1;
}

.btn {
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-primary {
    background: #f0f4ff;
    color: #3b5bdb;
    border: 1px solid #c5d0fa;
}

.btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.context-menu {
    display: none;
    position: fixed;
    z-index: 9999;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 6px;
    min-width: 120px;
}

.context-menu-item {
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.context-menu-item:hover {
    background: #f9fafb;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.context-menu-divider {
    margin: 4px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.clear-item {
    color: #9ca3af;
    font-size: 0.85rem;
}

@media (max-width: 1100px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }
}


