body { font-family: sans-serif; margin: 0; background: #f4f4f9; }

.layout { display: flex; height: 100vh; }

.sidebar { 
    width: 300px; 
    background: #fff; 
    border-right: 1px solid #ddd; 
    overflow-y: auto; 
    padding: 1rem;
}

.video-item { 
    list-style: none; 
    padding: 10px; 
    border-bottom: 1px solid #eee; 
    cursor: pointer; 
    transition: background 0.2s;
}

.video-item:hover { background: #eef2ff; }

.video-title { display: block; font-weight: bold; color: #333; }

.video-id { font-size: 0.75rem; color: #888; }

.content { flex: 1; padding: 2rem; }

.video-wrapper { 
    position: relative; 
    padding-top: 56.25%; 
    background: #000; 
    border-radius: 12px; 
    overflow: hidden; 
}

/* Upload area */
.upload-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0 14px;
    border-bottom: 2px solid #e0e0f0;
    margin-bottom: 10px;
}

.upload-area input[type="text"] {
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
}

.upload-area input[type="text"]:focus { border-color: #6366f1; }

.upload-area input[type="file"] { display: none; }

.file-label {
    display: inline-block;
    padding: 6px 12px;
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    text-align: center;
    transition: background 0.2s;
}

.file-label:hover { background: #c7d2fe; }

.upload-filename {
    font-size: 0.78rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-area button {
    padding: 8px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.upload-area button:hover:not(:disabled) { background: #4f46e5; }
.upload-area button:disabled { background: #a5b4fc; cursor: not-allowed; }

.upload-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-progress.hidden { display: none; }

.upload-bar-track {
    flex: 1;
    height: 8px;
    background: #e0e7ff;
    border-radius: 4px;
    overflow: hidden;
}

.upload-bar {
    height: 8px;
    background: #6366f1;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s;
}

.upload-status {
    font-size: 0.8rem;
    color: #555;
    min-height: 1em;
    margin: 0;
}